﻿/* =====================================================
   HelloHRMS â Design System Override
   Sits on top of the compiled Bootstrap + WowDash theme
   ===================================================== */

/* ---------- Tokens ---------- */
:root,
[data-theme="light"] {
  --hrms-primary:       #487FFF;
  --hrms-primary-dark:  #3665d6;
  --hrms-primary-light: #e8effe;
  --hrms-sidebar-bg:           #ffffff;
  --hrms-sidebar-border:       #e2e8f0;
  --hrms-sidebar-text:         #64748b;
  --hrms-sidebar-link:         #475569;
  --hrms-sidebar-link-hover:   #1e40af;
  --hrms-sidebar-hover:        #e8efff;
  --hrms-sidebar-hover-icon:   #2563eb;
  --hrms-sidebar-active-bg:    var(--hrms-primary-light);
  --hrms-sidebar-active-text:  var(--hrms-primary-dark);
  --hrms-sidebar-logo:         #0f172a;
  --hrms-sidebar-logo-border:  #e2e8f0;
  --hrms-sidebar-chevron:      #64748b;
  --hrms-sidebar-shadow:       2px 0 12px rgba(15, 23, 42, 0.06);
  --hrms-sidebar-active:       #487FFF;
  --hrms-sidebar-w:     300px;
  --hrms-sidebar-w-collapsed: 3.75rem;
  --hrms-radius:        12px;
  --hrms-shadow:        0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --hrms-shadow-md:     0 4px 24px rgba(0,0,0,.12);
  --hrms-font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-primary:         #487FFF;
  --bs-primary-rgb:     72, 127, 255;
}

[data-theme="dark"] {
  --hrms-sidebar-bg:           #0d1117;
  --hrms-sidebar-border:       rgba(255, 255, 255, 0.06);
  --hrms-sidebar-text:         #94a3b8;
  --hrms-sidebar-link:         #f8fafc;
  --hrms-sidebar-link-hover:   #e0eaff;
  --hrms-sidebar-hover:        rgba(72, 127, 255, 0.14);
  --hrms-sidebar-hover-icon:   #93c5fd;
  --hrms-sidebar-active-bg:    rgba(72, 127, 255, 0.18);
  --hrms-sidebar-active-text:  #7badff;
  --hrms-sidebar-logo:         #ffffff;
  --hrms-sidebar-logo-border:  rgba(255, 255, 255, 0.06);
  --hrms-sidebar-chevron:      rgba(248, 250, 252, 0.7);
  --hrms-sidebar-shadow:       2px 0 20px rgba(0, 0, 0, 0.15);
}

/* ---------- Base ---------- */
html {
  overflow-x: clip;
}

body {
  font-family: var(--hrms-font);
  overflow-x: clip;
  max-width: 100%;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--hrms-sidebar-bg) !important;
  border-right: 1px solid var(--hrms-sidebar-border) !important;
  box-shadow: var(--hrms-sidebar-shadow);
  width: var(--hrms-sidebar-w) !important;
}

@media (min-width: 1200px) {
  .sidebar.active {
    width: var(--hrms-sidebar-w-collapsed) !important;
    overflow: visible !important;
  }

  /* Collapsed: stay narrow — flyout shows menu on icon hover (not full sidebar expand) */
  .sidebar.active:hover {
    width: var(--hrms-sidebar-w-collapsed) !important;
  }

  .sidebar.active .sidebar-menu-area {
    overflow-x: visible !important;
    overflow-y: auto !important;
  }

  .sidebar.active .sidebar-logo {
    padding: 12px 6px;
    justify-content: center;
    min-height: 56px;
  }

  .sidebar.active .sidebar-logo img {
    max-height: 34px;
    max-width: 34px;
  }

  .sidebar.active .sidebar-menu {
    padding: 0 6px;
  }

  .sidebar.active .sidebar-menu > li > a,
  .sidebar.active .sidebar-menu .dropdown > a {
    justify-content: center;
    padding: 10px 6px;
    gap: 0;
  }

  .sidebar.active .sidebar-menu > li > a > span,
  .sidebar.active .sidebar-menu .dropdown > a > span {
    display: none !important;
  }

  .sidebar.active .sidebar-menu > li > a .menu-icon,
  .sidebar.active .sidebar-menu .dropdown > a .menu-icon {
    margin: 0 !important;
  }

  .sidebar.active .sidebar-menu > li.dropdown.open > .sidebar-submenu,
  .sidebar.active .sidebar-menu > li.dropdown.dropdown-open > .sidebar-submenu {
    display: none !important;
  }
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--hrms-sidebar-logo-border);
  margin-bottom: 8px;
  min-height: 72px;
}

.sidebar-logo img {
  display: block;
  max-height: 52px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.sidebar-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hrms-sidebar-logo);
  letter-spacing: -.3px;
  line-height: 1.2;
}

.sidebar-logo .logo-sub {
  font-size: .65rem;
  color: var(--hrms-sidebar-text);
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.sidebar-menu-label {
  color: var(--hrms-sidebar-text) !important;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 12px 6px;
  margin: 0;
}

.sidebar-close-btn {
  color: var(--hrms-sidebar-link);
}

/* Menu items */
.sidebar-menu { padding: 0 10px; list-style: none; margin: 0; }
.sidebar-menu > li { margin-bottom: 2px; }

.sidebar-menu > li > a,
.sidebar-menu .dropdown > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hrms-sidebar-link);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
}

.sidebar-menu > li > a > span,
.sidebar-menu .dropdown > a > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu > li > a:hover,
.sidebar-menu .dropdown > a:hover {
  background: var(--hrms-sidebar-hover);
  color: var(--hrms-sidebar-link-hover);
}

.sidebar-menu > li > a:hover:not(.active-page) .menu-icon,
.sidebar-menu .dropdown > a:hover:not(.active-page) .menu-icon,
.sidebar-menu > li > a:hover:not(.active-page) [data-lucide].menu-icon,
.sidebar-menu .dropdown > a:hover:not(.active-page) [data-lucide].menu-icon {
  color: var(--hrms-sidebar-hover-icon);
}

.sidebar-menu > li > a.active-page:hover,
.sidebar-menu .dropdown > a.active-page:hover {
  background: color-mix(in srgb, var(--hrms-sidebar-active-bg) 88%, var(--hrms-primary) 12%);
  color: var(--hrms-sidebar-active-text);
}

.sidebar-menu > li.active-menu > a,
.sidebar-menu > li > a.active-page {
  background: var(--hrms-sidebar-active-bg);
  color: var(--hrms-sidebar-active-text);
}

/* Beat WowDash style.css solid-blue sidebar states */
.sidebar-menu li.dropdown.open > a,
.sidebar-menu li.dropdown.dropdown-open > a,
.sidebar-menu li > a.active-page,
.sidebar-menu .sidebar-submenu li.active-page a,
.sidebar-menu .sidebar-submenu li a.active-page {
  background: var(--hrms-sidebar-active-bg) !important;
  color: var(--hrms-sidebar-active-text) !important;
}

.sidebar-menu li.dropdown.open > a:hover,
.sidebar-menu li.dropdown.dropdown-open > a:hover,
.sidebar-menu li > a.active-page:hover,
.sidebar-menu .sidebar-submenu li.active-page a:hover,
.sidebar-menu .sidebar-submenu li a.active-page:hover {
  background: color-mix(in srgb, var(--hrms-sidebar-active-bg) 88%, var(--hrms-primary) 12%) !important;
  color: var(--hrms-sidebar-active-text) !important;
}

.sidebar-menu li.dropdown.open > a .menu-icon,
.sidebar-menu li.dropdown.dropdown-open > a .menu-icon,
.sidebar-menu li > a.active-page .menu-icon,
.sidebar-menu li > a.active-page [data-lucide].menu-icon {
  color: var(--hrms-sidebar-active-text) !important;
}

.sidebar-menu .menu-icon,
.sidebar-menu [data-lucide].menu-icon,
.hrms-breadcrumb [data-lucide].bc-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: inherit;
  stroke: currentColor;
}

.sidebar-menu .menu-icon {
  font-size: 1rem;
  text-align: center;
}

/* Submenu — override WowDash extra indent that squeezes labels */
.sidebar-menu .sidebar-submenu {
  padding-inline-start: 0 !important;
}

.sidebar-submenu {
  list-style: none;
  padding: 2px 0 4px 0;
  margin: 0;
  overflow: hidden;
}

.sidebar-submenu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 34px;
  border-radius: 8px;
  color: var(--hrms-sidebar-link);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.sidebar-submenu li a > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-submenu li a .hrms-nav-lock-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.5;
}

.sidebar-submenu li a:hover:not(.active-page) {
  background: var(--hrms-sidebar-hover);
  color: var(--hrms-sidebar-link-hover);
}

.sidebar-submenu li a.active-page {
  background: var(--hrms-sidebar-active-bg);
  color: var(--hrms-sidebar-active-text);
}

.sidebar-submenu li a.active-page:hover {
  background: color-mix(in srgb, var(--hrms-sidebar-active-bg) 88%, var(--hrms-primary) 12%);
  color: var(--hrms-sidebar-active-text);
}

.sidebar-submenu li a .sub-icon {
  font-size: .85rem;
  color: var(--hrms-sidebar-text);
  flex-shrink: 0;
}

.sidebar-submenu li a [data-lucide].sub-icon {
  width: .82rem;
  height: .82rem;
}

/* Single expand indicator (overrides theme remixicon ::after) */
.sidebar-menu li.dropdown > a::after,
.sidebar-menu .dropdown > a::after {
  content: '' !important;
  font-family: inherit !important;
  font-size: 0 !important;
  position: static !important;
  inset: auto !important;
  width: 7px;
  height: 7px;
  margin-left: auto;
  margin-inline-end: 4px;
  border: none;
  border-right: 2px solid var(--hrms-sidebar-chevron);
  border-bottom: 2px solid var(--hrms-sidebar-chevron);
  transform: rotate(-45deg) !important;
  transition: transform .2s;
  flex-shrink: 0;
}

.sidebar-menu .dropdown.open > a::after,
.sidebar-menu .dropdown.dropdown-open > a::after,
.sidebar-menu .dropdown > a[aria-expanded="true"]::after {
  transform: rotate(45deg) !important;
}

@media (min-width: 1200px) {
  .sidebar.active .sidebar-menu li.dropdown > a::after {
    display: none !important;
  }
}

/* Collapsed sidebar — hover flyout panel (one menu at a time) */
.hrms-sidebar-flyout {
  position: fixed;
  z-index: 1200;
  min-width: 228px;
  max-width: 280px;
  background: var(--hrms-sidebar-bg);
  border: 1px solid var(--hrms-sidebar-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 8px;
  animation: hrmsSidebarFlyoutIn 0.16s ease;
}

.hrms-sidebar-flyout[hidden] {
  display: none !important;
}

@keyframes hrmsSidebarFlyoutIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.hrms-sidebar-flyout__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hrms-sidebar-text);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--hrms-sidebar-border);
  margin-bottom: 4px;
}

.hrms-sidebar-flyout__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.hrms-sidebar-flyout__menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--hrms-sidebar-link);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.hrms-sidebar-flyout__menu li a:hover {
  background: var(--hrms-sidebar-hover);
  color: var(--hrms-sidebar-link-hover);
}

.hrms-sidebar-flyout__menu li a.active-page {
  background: var(--hrms-sidebar-active-bg);
  color: var(--hrms-sidebar-active-text);
}

.hrms-sidebar-flyout__menu li a > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrms-sidebar-flyout__single {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hrms-sidebar-link);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.hrms-sidebar-flyout__single:hover {
  background: var(--hrms-sidebar-hover);
  color: var(--hrms-sidebar-link-hover);
}

.hrms-sidebar-flyout__single.active-page {
  background: var(--hrms-sidebar-active-bg);
  color: var(--hrms-sidebar-active-text);
}

/* Override WowDash full-sidebar expand on collapsed hover */
@media (min-width: 1200px) {
  .sidebar.active:hover {
    width: var(--hrms-sidebar-w-collapsed) !important;
  }

  .sidebar.active:hover .sidebar-menu li a span {
    display: none !important;
  }

  .sidebar.active:hover .sidebar-menu li.dropdown.dropdown-open .sidebar-submenu,
  .sidebar.active:hover .sidebar-menu li.dropdown.open .sidebar-submenu {
    display: none !important;
  }

  .sidebar.active:hover .sidebar-menu li.dropdown a::after {
    display: none !important;
  }
}

@media (min-width: 1400px) {
  .sidebar.active:hover {
    width: var(--hrms-sidebar-w-collapsed) !important;
  }
}

@media (min-width: 1650px) {
  .sidebar.active:hover {
    width: var(--hrms-sidebar-w-collapsed) !important;
  }
}

/* ---------- Navbar ---------- */
.navbar-header {
  height: 64px !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0 24px !important;
  display: flex;
  align-items: center;
  box-shadow: none !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Full-width row so profile + theme toggle sit at the right edge */
.navbar-header > .row {
  flex: 1 1 auto;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.navbar-header-end {
  margin-inline-start: auto !important;
}

.navbar-header-end > .d-flex {
  justify-content: flex-end;
}

[data-theme="dark"] .navbar-header {
  background: #0d1117 !important;
  border-bottom-color: rgba(255,255,255,.07) !important;
}

.navbar-search input {
  border-radius: 8px !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  font-size: .85rem;
}

/* ---------- Cards ---------- */
.card {
  border-radius: var(--hrms-radius) !important;
  border: 1px solid #e8edf3 !important;
  box-shadow: var(--hrms-shadow) !important;
  transition: box-shadow .2s, transform .2s;
}

.card:hover { box-shadow: var(--hrms-shadow-md) !important; }

/* Stat cards (top of dashboard) */
.stat-card {
  border-radius: var(--hrms-radius) !important;
  padding: 20px 22px;
  border: 1px solid #e8edf3;
  box-shadow: var(--hrms-shadow);
  transition: transform .2s, box-shadow .2s;
  background: #fff;
  cursor: pointer;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hrms-shadow-md) !important;
}

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  margin-top: 4px;
}

.stat-card .stat-label {
  font-size: .8rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: .01em;
}

.stat-card .stat-link {
  font-size: .75rem;
  color: var(--hrms-primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
  display: inline-block;
}

/* Color variants */
.stat-card.blue   .stat-icon { background: #eff6ff; color: #3b82f6; }
.stat-card.green  .stat-icon { background: #f0fdf4; color: #22c55e; }
.stat-card.amber  .stat-icon { background: #fffbeb; color: #f59e0b; }
.stat-card.purple .stat-icon { background: #f5f3ff; color: #8b5cf6; }
.stat-card.rose   .stat-icon { background: #fff1f2; color: #f43f5e; }
.stat-card.teal   .stat-icon { background: #f0fdfa; color: #14b8a6; }

/* ---------- Section header ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h5,
.section-header h6 {
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* ---------- Tables ---------- */
.table { font-size: .85rem; }
.table thead th {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 10px 14px;
  white-space: nowrap;
}
.table tbody td { padding: 11px 14px; vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8fafc; }

/* ---------- Badges ---------- */
.badge {
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 8px !important;
  font-weight: 500;
  font-size: .85rem;
}

.btn-primary {
  background: var(--hrms-primary) !important;
  border-color: var(--hrms-primary) !important;
}
.btn-primary:hover {
  background: var(--hrms-primary-dark) !important;
  border-color: var(--hrms-primary-dark) !important;
}

/* ---------- Avatar chip ---------- */
.avatar-chip {
  display: inline-flex; align-items: center; gap: 8px;
}
.avatar-chip .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* dashboard-main-body padding defined in the standardisation block below */

/* ---------- Page header ---------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-header .page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.page-header .page-subtitle {
  font-size: .8rem;
  color: #64748b;
  margin: 2px 0 0;
}

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 20px; padding: 3px 10px;
  font-size: .75rem; font-weight: 600;
}
.status-pill::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
}
.status-pill.active   { background:#f0fdf4; color:#16a34a; }
.status-pill.pending  { background:#fffbeb; color:#d97706; }
.status-pill.inactive { background:#f8fafc; color:#64748b; }

/* ---------- Setup banner (top) ---------- */
.setup-banner {
  border-radius: var(--hrms-radius);
  background: linear-gradient(120deg, #487FFF 0%, #6366f1 100%);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.setup-banner .setup-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.setup-banner .progress {
  height: 5px; background: rgba(255,255,255,.25); border-radius: 3px;
}
.setup-banner .progress-bar { background: #fff; border-radius: 3px; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center; padding: 48px 24px;
}
.empty-state .empty-icon {
  font-size: 2.5rem; color: #cbd5e1; margin-bottom: 12px;
}
.empty-state h6 { color: #475569; font-weight: 600; margin-bottom: 6px; }
.empty-state p  { color: #94a3b8; font-size: .85rem; margin: 0; }

/* ---------- Attendance ring (small) ---------- */
.attend-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-weight: 700; font-size: .9rem;
}

/* ---------- Performance bar ---------- */
.perf-bar { height: 6px; border-radius: 3px; background: #e2e8f0; }
.perf-bar-fill { height: 100%; border-radius: 3px; background: var(--hrms-primary); }

/* ---------- Notification bell badge ---------- */
.notif-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #475569; cursor: pointer;
  transition: background .15s;
}
.notif-btn:hover { background: #f1f5f9; }
.notif-badge {
  position: absolute; top: -3px; right: -3px;
  width: 16px; height: 16px;
  border-radius: 50%; background: #ef4444;
  color: #fff; font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Welcome / greeting bar ---------- */
.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.welcome-bar .wb-greeting {
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.welcome-bar .wb-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.welcome-bar .wb-date {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Quick action buttons */
.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.quick-action-btn:hover { transform: translateY(-1px); }
.quick-action-btn.primary {
  background: var(--hrms-primary);
  border-color: var(--hrms-primary);
  color: #fff;
}
.quick-action-btn.primary:hover { background: var(--hrms-primary-dark); border-color: var(--hrms-primary-dark); color: #fff; }
.quick-action-btn.outline {
  background: #fff;
  border-color: #e2e8f0;
  color: #374151;
}
.quick-action-btn.outline:hover { background: #f8fafc; color: #0f172a; }

/* ---------- Stat cards v2 (smarter, 4-col) ---------- */
.kpi-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  padding: 20px 22px 16px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}
.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 14px 0 0 14px;
}
.kpi-card.blue::after   { background: #3b82f6; }
.kpi-card.green::after  { background: #22c55e; }
.kpi-card.amber::after  { background: #f59e0b; }
.kpi-card.purple::after { background: #8b5cf6; }
.kpi-card.rose::after   { background: #f43f5e; }
.kpi-card.teal::after   { background: #14b8a6; }

.kpi-card .kpi-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.kpi-card.blue   .kpi-icon { background: #eff6ff; color: #3b82f6; }
.kpi-card.green  .kpi-icon { background: #f0fdf4; color: #22c55e; }
.kpi-card.amber  .kpi-icon { background: #fffbeb; color: #f59e0b; }
.kpi-card.purple .kpi-icon { background: #f5f3ff; color: #8b5cf6; }
.kpi-card.rose   .kpi-icon { background: #fff1f2; color: #f43f5e; }
.kpi-card.teal   .kpi-icon { background: #f0fdfa; color: #14b8a6; }

.kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -.03em;
}

.kpi-card .kpi-label {
  font-size: .8rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 4px;
}

.kpi-card .kpi-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.kpi-card .kpi-sub a {
  color: inherit;
  text-decoration: none;
}

.kpi-card.blue   .kpi-sub { color: #3b82f6; }
.kpi-card.green  .kpi-sub { color: #22c55e; }
.kpi-card.amber  .kpi-sub { color: #d97706; }
.kpi-card.purple .kpi-sub { color: #8b5cf6; }
.kpi-card.rose   .kpi-sub { color: #f43f5e; }
.kpi-card.teal   .kpi-sub { color: #14b8a6; }

/* ---------- Dashboard overview boxes ---------- */
.dash-overview-box {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  padding: 20px 22px 16px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.dash-overview-box--employees,
.dash-overview-box--projects {
  cursor: pointer;
}
.dash-overview-box--employees:hover,
.dash-overview-box--projects:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}
.dash-overview-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.dash-overview-box--employees::before { background: #3b82f6; }
.dash-overview-box--revenue::before { background: #22c55e; }
.dash-overview-box--projects::before { background: #f59e0b; }

.dash-overview-box__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.dash-overview-box__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.dash-overview-box__icon.blue { background: #eff6ff; color: #3b82f6; }
.dash-overview-box__icon.green { background: #f0fdf4; color: #22c55e; }
.dash-overview-box__icon.amber { background: #fffbeb; color: #f59e0b; }

.dash-overview-box__title {
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.dash-overview-box__subtitle {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
}
.dash-stat-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.dash-stat-grid--employees {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-stat-item--action {
  color: inherit;
  border-radius: 10px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-stat-item--action:hover {
  background: rgba(245, 158, 11, 0.08);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}
.dash-stat-item--action .dash-stat-label {
  color: #d97706;
}
.dash-stat-item--leave:hover {
  background: rgba(14, 165, 233, 0.08);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}
.dash-stat-item--leave .dash-stat-label {
  color: #0284c7;
}
.dash-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.dash-stat-label {
  font-size: .72rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
}

.dash-revenue-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.dash-revenue-split-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.dash-revenue-split-label {
  font-size: .72rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
}
.dash-revenue-goal {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.dash-revenue-goal-label,
.dash-revenue-goal-pct {
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
}
.dash-revenue-goal-pct { color: #16a34a; }
.dash-revenue-goal-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.dash-revenue-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 99px;
  transition: width .35s ease;
  min-width: 0;
}
.dash-revenue-goal-meta {
  font-size: .72rem;
  color: #94a3b8;
}
.dash-revenue-goal-deadline {
  font-size: .72rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}
.dash-revenue-goal-deadline.is-overdue {
  color: #dc2626;
}
.dash-goal-btn {
  padding: 4px 8px;
  line-height: 1;
}

.chart-canvas-wrap--performers {
  padding-bottom: 4px;
}
.dash-performer-table .hrms-employee-cell__name {
  max-width: 140px;
}
.dash-performer-table td {
  vertical-align: middle;
}

.dash-period-btn {
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.dash-period-menu {
  min-width: 220px;
  font-size: .85rem;
}

.dash-overview-alert {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: .78rem;
  font-weight: 600;
}

.dash-overview-box__footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
}
.dash-overview-box--employees .dash-overview-box__footer { color: #3b82f6; }
.dash-overview-box--projects .dash-overview-box__footer { color: #d97706; }

@media (max-width: 575.98px) {
  .dash-stat-grid--3 { grid-template-columns: 1fr; }
}

/* ---------- Smart card (chart/summary) ---------- */
.smart-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  overflow: hidden;
  height: 100%;
}

.smart-card .sc-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.smart-card .sc-title {
  font-size: .9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.smart-card .sc-subtitle {
  font-size: .75rem;
  color: #94a3b8;
  margin: 0;
}

.smart-card .sc-body {
  padding: 20px;
}

/* Attendance ring stat inside smart card */
.att-ring-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.att-ring-stat .val {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.att-ring-stat .lbl {
  font-size: .72rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Performance tier badge */
.perf-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.perf-tier:last-child { border-bottom: none; }
.perf-tier .pt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 600;
  color: #374151;
}
.perf-tier .pt-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.perf-tier .pt-count {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

/* Section label */
.content-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 32px 0 14px;
}

.dashboard-main-body > .content-section-label:first-child,
.dashboard-main-body > .welcome-bar + .content-section-label {
  margin-top: 0;
}

/* Smart dropdown button */
.sc-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #374151;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.sc-dropdown-btn:hover { background: #f1f5f9; color: #0f172a; }

/* ---------- Scrollbar (Webkit) ---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ---------- Dashboard-main layout fix ---------- */
.dashboard-main {
  box-sizing: border-box;
  min-height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
  transition: margin-inline-start 0.3s ease, width 0.3s ease, max-width 0.3s ease;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 1200px) {
  .dashboard-main {
    margin-inline-start: var(--hrms-sidebar-w) !important;
    width: calc(100% - var(--hrms-sidebar-w)) !important;
    max-width: calc(100% - var(--hrms-sidebar-w)) !important;
  }

  .dashboard-main.active {
    margin-inline-start: var(--hrms-sidebar-w-collapsed) !important;
    width: calc(100% - var(--hrms-sidebar-w-collapsed)) !important;
    max-width: calc(100% - var(--hrms-sidebar-w-collapsed)) !important;
  }
}

@media (max-width: 1199px) {
  .dashboard-main {
    margin-inline-start: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ================================================================
   PAGE-LEVEL STANDARDISATION
   All list / datatable pages share these styles for consistency
   ================================================================ */

/* ---- Content body padding ---- */
.dashboard-main-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  padding: 28px 32px 36px !important;
  background: #f1f5f9;
}

.dashboard-main-body .row {
  margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
  margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
  max-width: 100%;
}

.dashboard-main-body > * {
  max-width: 100%;
}

@media (min-width: 1400px) {
  .dashboard-main-body {
    padding: 32px 40px 48px !important;
  }
}

/* Vertical rhythm inside content shell */
.dashboard-main-body .mb-24 {
  margin-bottom: 28px !important;
}

.dashboard-main-body .row.mb-4 {
  margin-bottom: 28px !important;
}

/* ---- Page header bar (breadcrumb + title) ---- */
.page-hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.page-hdr .page-hdr-left h5,
.page-hdr .page-hdr-left h6 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -.02em;
}

.page-hdr .page-hdr-left p {
  font-size: .78rem;
  color: #94a3b8;
  margin: 3px 0 0;
}

/* Breadcrumb */
.hrms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .78rem;
  font-weight: 500;
  color: #64748b;
}

.hrms-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.hrms-breadcrumb li::before { display: none; }
.hrms-breadcrumb li + li::before {
  content: '/';
  color: #cbd5e1;
  font-size: .7rem;
}

.hrms-breadcrumb a {
  color: var(--hrms-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity .15s;
}
.hrms-breadcrumb a:hover { opacity: .75; }
.hrms-breadcrumb .bc-active { color: #374151; font-weight: 600; }

/* Fallback: also style the old inline breadcrumb pattern */
.d-flex > ul.d-flex.align-items-center.gap-2 {
  font-size: .78rem;
  color: #64748b;
}
.d-flex > ul.d-flex.align-items-center.gap-2 li { list-style: none; }
.d-flex > ul.d-flex.align-items-center.gap-2 a { color: var(--hrms-primary); }

/* ---- Card: list / datatable page standard ---- */
.card.basic-data-table {
  border-radius: 14px !important;
  border: 1px solid #e8edf3 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04) !important;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.card.basic-data-table .card-header {
  background: #fff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 10px;
}

.card.basic-data-table .card-header .card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.card.basic-data-table .card-body {
  padding: 0 !important;
}

/* ---- General card header ---- */
.card .card-header {
  background: #fff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 14px 20px !important;
}

.card .card-header .card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* ---- Tables ---- */
.table {
  font-size: .84rem;
  margin: 0 !important;
}

.table thead th {
  background: #f8fafc !important;
  color: #374151 !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  border-bottom: 1px solid #e8edf3 !important;
  padding: 11px 14px !important;
  white-space: nowrap;
}

.table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s;
}

.table tbody tr:last-child { border-bottom: none; }

.table tbody tr:hover { background: #f8fafc !important; }

.table tbody td {
  padding: 11px 14px !important;
  vertical-align: middle !important;
  color: #374151;
  font-size: .84rem;
}

.table.bordered-table { border-collapse: separate !important; }
.table.bordered-table thead th:first-child { border-radius: 0; }

/* ---- DataTables wrapper (supports both v1 and v2) ---- */
.dataTables_wrapper,
.dt-container {
  padding: 16px 20px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.dataTables_scrollBody,
.dt-scroll-body {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.basic-data-table .card-body .table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
  max-height: none;
}

.basic-data-table table.dataTable,
.basic-data-table table.bordered-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}

/* Override theme min-width that forces list tables wider than their card */
.basic-data-table table.bordered-table {
  min-width: 0 !important;
}

.basic-data-table table.dataTable thead th,
.basic-data-table table.dataTable tbody td,
.basic-data-table table.bordered-table thead th,
.basic-data-table table.bordered-table tbody td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Default list-table alignment: data columns left, actions right */
.basic-data-table table.dataTable thead th:not(.hrms-col-check):not(.hrms-col-actions):not(.text-end):not(.hrms-col-sl):not(.dt-type-numeric),
.basic-data-table table.dataTable tbody td:not(.hrms-col-check):not(.hrms-col-actions):not(.text-end):not(.hrms-col-sl):not(.dt-type-numeric),
.basic-data-table table.bordered-table thead th:not(.hrms-col-check):not(.hrms-col-actions):not(.text-end):not(.hrms-col-sl):not(.dt-type-numeric),
.basic-data-table table.bordered-table tbody td:not(.hrms-col-check):not(.hrms-col-actions):not(.text-end):not(.hrms-col-sl):not(.dt-type-numeric),
.basic-data-table table.dataTable thead th.hrms-col-primary,
.basic-data-table table.dataTable tbody td.hrms-col-primary,
.basic-data-table table.bordered-table thead th.hrms-col-primary,
.basic-data-table table.bordered-table tbody td.hrms-col-primary {
  text-align: left !important;
}

/* Serial / index columns */
.hrms-col-sl,
.basic-data-table table.dataTable th.hrms-col-sl,
.basic-data-table table.dataTable td.hrms-col-sl,
.basic-data-table table.bordered-table th.hrms-col-sl,
.basic-data-table table.bordered-table td.hrms-col-sl {
  width: 4.5rem !important;
  min-width: 4.5rem !important;
  max-width: 5rem !important;
  text-align: center !important;
  white-space: nowrap;
}

.basic-data-table table.dataTable th.hrms-col-sl.dt-type-numeric,
.basic-data-table table.dataTable td.hrms-col-sl.dt-type-numeric,
.basic-data-table table.bordered-table th.hrms-col-sl.dt-type-numeric,
.basic-data-table table.bordered-table td.hrms-col-sl.dt-type-numeric {
  text-align: center !important;
}

/* Primary label/name columns expand naturally */
.basic-data-table table.dataTable th.hrms-col-primary,
.basic-data-table table.dataTable td.hrms-col-primary,
.basic-data-table table.bordered-table th.hrms-col-primary,
.basic-data-table table.bordered-table td.hrms-col-primary {
  width: auto !important;
  min-width: 8rem;
}

.basic-data-table table.dataTable tbody td,
.basic-data-table table.bordered-table tbody td {
  white-space: normal;
}

.basic-data-table .dataTables_wrapper,
.basic-data-table .dt-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  overflow-x: clip;
}

.basic-data-table .dataTables_scroll,
.basic-data-table .dt-scroll,
.basic-data-table .dataTables_scrollHead,
.basic-data-table .dataTables_scrollBody,
.basic-data-table .dt-scroll-head,
.basic-data-table .dt-scroll-body {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* List tables: keep action cells compact — avoid min-width forcing page scroll */
.basic-data-table .table thead th.hrms-col-actions,
.basic-data-table .table thead th.text-end,
.basic-data-table .table tbody td.hrms-col-actions,
.basic-data-table .table tbody td:has(.hrms-table-actions),
.basic-data-table .table tbody td:has(.action-btns-circle),
.basic-data-table .table tbody td:has(.action-btns),
.basic-data-table .table thead tr th:last-child:not(.hrms-col-check):not(.hrms-no-sort),
.basic-data-table .table tbody tr td:last-child:not(.hrms-col-check):has(.hrms-table-actions),
.basic-data-table .table tbody tr td:last-child:not(.hrms-col-check):has(.action-btns-circle),
.basic-data-table .table tbody tr td:last-child:not(.hrms-col-check):has(.action-btns),
.basic-data-table .table tbody tr td:last-child:not(.hrms-col-check):has(form) {
  min-width: 0;
  width: auto;
  white-space: normal;
}

/* Non-datatable tables in dashboard content */
.hrms-scroll-x {
  overflow-x: auto !important;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.dashboard-main-body .table-responsive:not(.hrms-scroll-x) {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.dashboard-main-body .table-responsive:not(.hrms-scroll-x) > .table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}

/* DT v1 label */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-size: .8rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* DT v2 layout row */
.dt-container .dt-layout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.dt-container .dt-length label,
.dt-container .dt-search label {
  font-size: .8rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* DT inputs (both v1 and v2) */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input,
.dt-container .dt-input {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: .82rem !important;
  color: #374151 !important;
  background: #f8fafc !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .15s, background .15s;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dt-container .dt-input:focus {
  border-color: var(--hrms-primary) !important;
  background: #fff !important;
}

/* DT info */
.dataTables_wrapper .dataTables_info,
.dt-container .dt-info {
  font-size: .78rem !important;
  color: #94a3b8 !important;
  padding: 8px 0 !important;
}

/* DT v1 pagination */
.dataTables_wrapper .dataTables_paginate {
  padding: 4px 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 7px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 5px 11px !important;
  margin: 0 2px !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background: #fff !important;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--hrms-primary) !important;
  border-color: var(--hrms-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(72,127,255,.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: .4 !important;
  cursor: default;
}

/* DT v2 pagination */
.dt-container .dt-paging {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dt-container .dt-paging-button {
  border-radius: 7px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 5px 11px !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background: #fff !important;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  line-height: 1.4;
}

.dt-container .dt-paging-button:hover:not(.disabled) {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.dt-container .dt-paging-button.current,
.dt-container .dt-paging-button.current:hover {
  background: var(--hrms-primary) !important;
  border-color: var(--hrms-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(72,127,255,.3);
}

.dt-container .dt-paging-button.disabled {
  opacity: .4;
  cursor: default;
}

/* ---- Badges / Status pills ---- */
.badge {
  font-size: .72rem !important;
  font-weight: 600 !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  letter-spacing: .02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill.active   { color: #16a34a; background: #f0fdf4; }
.status-pill.inactive { color: #dc2626; background: #fff1f2; }
.status-pill.pending  { color: #d97706; background: #fffbeb; }
.status-pill.present  { color: #16a34a; background: #f0fdf4; }
.status-pill.absent   { color: #dc2626; background: #fff1f2; }
.status-pill.leave    { color: #8b5cf6; background: #f5f3ff; }

/* ---- Row action buttons ---- */
.action-btns {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.hrms-table-actions {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
  max-width: 100%;
}

.action-btns-circle {
  flex-wrap: nowrap;
}

/* Actions column — right-aligned on all list tables */
.table thead th.hrms-col-actions,
.table thead th.text-end {
  text-align: right !important;
  width: 1%;
  min-width: 120px;
  white-space: nowrap;
  padding-right: 16px !important;
}

.table tbody td.hrms-col-actions,
.table tbody td:has(.hrms-table-actions),
.table tbody td:has(.action-btns-circle),
.table tbody td:has(.action-btns) {
  text-align: right !important;
  width: 1%;
  min-width: 120px;
  white-space: nowrap;
  vertical-align: middle !important;
  padding-right: 16px !important;
}

/* Last column is usually actions when not a checkbox */
.table thead tr th:last-child:not(.hrms-col-check):not(.hrms-no-sort) {
  text-align: right !important;
  width: 1%;
  min-width: 120px;
  white-space: nowrap;
  padding-right: 16px !important;
}

.table tbody tr td:last-child:not(.hrms-col-check):has(.hrms-table-actions),
.table tbody tr td:last-child:not(.hrms-col-check):has(.action-btns-circle),
.table tbody tr td:last-child:not(.hrms-col-check):has(.action-btns) {
  text-align: right !important;
  width: 1%;
  min-width: 120px;
  white-space: nowrap;
  padding-right: 16px !important;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.btn-icon:hover { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.btn-icon.edit:hover  { background: #eff6ff; color: #3b82f6; border-color: #93c5fd; }
.btn-icon.delete:hover { background: #fff1f2; color: #ef4444; border-color: #fca5a5; }
.btn-icon.view:hover  { background: #f0fdf4; color: #22c55e; border-color: #86efac; }

/* Icon-only Bootstrap action buttons (table rows) */
.btn.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  min-width: 1.75rem;
  min-height: 1.75rem;
}

.btn.btn-icon-only > [data-lucide] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.action-btns.btn-group .btn-icon-only {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

/* List table bulk selection */
.hrms-col-check {
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  vertical-align: middle;
  text-align: center;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.hrms-col-check .form-check-input {
  margin: 0;
  float: none;
}

.basic-data-table table.dataTable thead th.hrms-col-check,
.basic-data-table table.dataTable thead td.hrms-col-check {
  cursor: default;
}

.basic-data-table table.dataTable thead th.hrms-col-check .dt-column-order,
.basic-data-table table.dataTable thead th.hrms-col-check:before,
.basic-data-table table.dataTable thead th.hrms-col-check:after,
table.dataTable thead th.hrms-col-check.sorting:before,
table.dataTable thead th.hrms-col-check.sorting:after,
table.dataTable thead th.hrms-col-check.sorting_asc:before,
table.dataTable thead th.hrms-col-check.sorting_asc:after,
table.dataTable thead th.hrms-col-check.sorting_desc:before,
table.dataTable thead th.hrms-col-check.sorting_desc:after {
  display: none !important;
  content: none !important;
}

.hrms-list-bulk-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.basic-data-table .card-header .hrms-list-bulk-bar.d-none {
  display: none !important;
}

/* Status toggle switch */
.hrms-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.hrms-status-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hrms-status-toggle__track {
  position: relative;
  width: 2.5rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hrms-status-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.hrms-status-toggle__input:checked + .hrms-status-toggle__track {
  background: var(--primary-600, #2563eb);
}

.hrms-status-toggle__input:checked + .hrms-status-toggle__track::after {
  transform: translateX(1.1rem);
}

.hrms-status-toggle__input:disabled + .hrms-status-toggle__track {
  opacity: 0.6;
}

.hrms-status-toggle__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary-light, #6b7280);
  min-width: 3.5rem;
}

.hrms-status-toggle__input:checked ~ .hrms-status-toggle__label {
  color: var(--primary-600, #2563eb);
}

/* Awards hub visuals */
.hrms-award-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid transparent;
  min-height: 88px;
}

.hrms-award-stat-card--gold {
  background: linear-gradient(135deg, #fff9eb 0%, #fff3d6 100%);
  border-color: #fde68a;
}

.hrms-award-stat-card--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.hrms-award-stat-card--violet {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #ddd6fe;
}

.hrms-award-stat-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-600, #2563eb);
}

.hrms-award-stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary-light, #111827);
}

.hrms-award-stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-secondary-light, #6b7280);
}

.hrms-award-employee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hrms-award-employee__medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
}

.basic-data-table.hrms-hr-resources-card table.dataTable {
  table-layout: auto;
  width: 100% !important;
}

.basic-data-table.hrms-hr-resources-card table.dataTable th.hrms-col-check,
.basic-data-table.hrms-hr-resources-card table.dataTable td.hrms-col-check {
  width: 3rem !important;
  min-width: 3rem !important;
  max-width: 3rem !important;
}

.basic-data-table.hrms-hr-resources-card table.dataTable th.hrms-col-actions,
.basic-data-table.hrms-hr-resources-card table.dataTable td.hrms-col-actions {
  width: 7.5rem !important;
  white-space: nowrap;
}

#employeeSalariesTable td.hrms-col-actions,
#employeeSalariesTable th.hrms-col-actions,
#employeesTable td.hrms-col-actions,
#employeesTable th.hrms-col-actions {
  min-width: 11rem;
  white-space: nowrap;
}

/* ---- Card list toolbar (search + meta + actions) ---- */
.hrms-card-header {
  gap: 12px !important;
}

.hrms-card-header--rich {
  display: grid !important;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
  align-items: center !important;
}

.hrms-card-header__search {
  min-width: 0;
}

.hrms-card-header__meta {
  min-width: 0;
}

.hrms-card-header__actions {
  justify-self: end;
}

.hrms-table-search {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.hrms-table-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: inline-flex;
}

.hrms-table-search__icon svg,
.hrms-table-search__icon i {
  width: 16px;
  height: 16px;
}

.hrms-table-search .form-control {
  padding-left: 38px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  min-height: 38px;
}

.hrms-table-search .form-control:focus {
  border-color: var(--hrms-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(72, 127, 255, 0.12) !important;
}

.hrms-employee-license-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.hrms-employee-license-hint--limit {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border-color: #fed7aa;
}

.hrms-employee-license-hint__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hrms-employee-license-hint__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: #64748b;
  white-space: nowrap;
}

.hrms-employee-license-hint__stat.is-ok .hrms-employee-license-hint__stat-value {
  color: #0f766e;
}

.hrms-employee-license-hint__stat.is-warn .hrms-employee-license-hint__stat-value {
  color: #c2410c;
}

.hrms-employee-license-hint__stat-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.hrms-employee-license-hint__stat-value {
  font-size: .92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.hrms-employee-license-hint__stat-label {
  font-weight: 500;
}

.hrms-employee-license-hint__meter {
  flex: 1 1 80px;
  min-width: 80px;
  max-width: 140px;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.hrms-employee-license-hint__meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.hrms-employee-license-hint--limit .hrms-employee-license-hint__meter-fill {
  background: linear-gradient(90deg, #fb923c, #ea580c);
}

.hrms-employee-license-hint__action {
  margin-left: auto;
  white-space: nowrap;
}

.hrms-dt-footer {
  border-top: 1px solid #f1f5f9;
  margin: 0;
  padding: 12px 20px 16px !important;
  width: 100%;
}

.basic-data-table.hrms-hr-resources-card .dataTables_wrapper,
.basic-data-table.hrms-hr-resources-card .dt-container {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.basic-data-table.hrms-hr-resources-card .table-responsive {
  min-width: 0;
}

.basic-data-table.hrms-hr-resources-card .hrms-dt-footer {
  margin: 0;
  width: 100%;
  padding: 12px 20px 16px !important;
}

.hrms-employees-table thead th.hrms-col-avatar {
  min-width: 200px;
  width: 28%;
}

.hrms-employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hrms-employee-cell__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(72, 127, 255, 0.12);
  color: var(--hrms-primary);
  font-size: .82rem;
  font-weight: 700;
}

.hrms-employee-cell__avatar--photo {
  object-fit: cover;
}

.hrms-employee-cell__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.hrms-employee-cell__name {
  font-weight: 600;
  color: #0f172a;
  font-size: .86rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrms-employee-cell__id {
  font-size: .74rem;
  color: #94a3b8;
}

.hrms-avatar-stack {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.hrms-avatar-stack__item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(72, 127, 255, 0.12);
  color: var(--hrms-primary);
  font-size: .72rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
  margin-left: -8px;
  cursor: default;
  overflow: hidden;
}

.hrms-avatar-stack__item:first-child {
  margin-left: 0;
}

.hrms-avatar-stack__item:hover,
.hrms-avatar-stack__item:focus-visible {
  z-index: 1;
  transform: scale(1.08);
  transition: transform 0.15s ease;
}

.hrms-avatar-stack__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hrms-avatar-stack__initials {
  line-height: 1;
}

.hrms-employee-picker__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hrms-employee-picker__search {
  margin-bottom: 10px;
}

.hrms-employee-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
}

.hrms-employee-picker__item {
  margin: 0;
  cursor: pointer;
}

.hrms-employee-picker__check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hrms-employee-picker__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  min-height: 100%;
}

.hrms-employee-picker__item:hover .hrms-employee-picker__card {
  border-color: rgba(72, 127, 255, 0.35);
  background: rgba(72, 127, 255, 0.03);
}

.hrms-employee-picker__check:checked + .hrms-employee-picker__card {
  border-color: var(--hrms-primary);
  background: rgba(72, 127, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(72, 127, 255, 0.2);
}

.hrms-employee-picker__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hrms-employee-picker__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 127, 255, 0.12);
  color: var(--hrms-primary);
  font-size: .82rem;
  font-weight: 700;
}

.hrms-employee-picker__name {
  font-size: .78rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

/* ---------- Organizational chart ---------- */
.hrms-org-chart-card .card-body {
  padding: 0 20px 24px !important;
}

.hrms-org-chart__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.hrms-org-chart__pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}

.hrms-org-chart__pill:hover {
  border-color: rgba(72, 127, 255, 0.35);
  color: var(--hrms-primary);
}

.hrms-org-chart__pill.active {
  background: rgba(72, 127, 255, 0.1);
  border-color: rgba(72, 127, 255, 0.35);
  color: var(--hrms-primary);
}

.hrms-org-chart__canvas-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 42%);
  overflow: hidden;
}

.hrms-org-canvas {
  padding: 28px 24px 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  min-height: 280px;
  max-height: min(72vh, calc(100dvh - 280px));
}

.hrms-org-canvas.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.hrms-org-chart__scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.hrms-org-chart__scroll-hint [data-lucide],
.hrms-org-chart__scroll-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hrms-org-tree,
.hrms-org-tree ul,
.hrms-org-tree__branch {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  min-width: min-content;
}

.hrms-org-tree--company {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
}

.hrms-org-tree ul,
.hrms-org-tree__branch {
  padding-top: 28px;
}

.hrms-org-tree__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 12px 0;
  flex: 0 0 auto;
  transition: opacity .2s, filter .2s;
}

.hrms-org-tree__item.hrms-org-chart__hidden {
  display: none;
}

.hrms-org-tree__item.hrms-org-chart__dimmed {
  opacity: 0.28;
  filter: grayscale(0.35);
}

.hrms-org-tree__item.hrms-org-chart__highlight .hrms-org-tree__card {
  border-color: rgba(72, 127, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(72, 127, 255, 0.12), 0 8px 24px rgba(72, 127, 255, 0.12);
}

.hrms-org-tree__item.is-collapsed > .hrms-org-tree__branch {
  display: none;
}

.hrms-org-tree__item.is-collapsed > .hrms-org-tree__card {
  border-color: rgba(72, 127, 255, 0.22);
}

.hrms-org-tree__toggle {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--hrms-primary, #487fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}

.hrms-org-tree__toggle:hover {
  background: rgba(72, 127, 255, 0.08);
  border-color: rgba(72, 127, 255, 0.35);
}

.hrms-org-tree__item.is-collapsed > .hrms-org-tree__card .hrms-org-tree__toggle {
  transform: translateX(-50%) rotate(-90deg);
}

.hrms-org-tree__card:has(.hrms-org-tree__toggle) {
  margin-bottom: 6px;
}

.hrms-org-tree__item::before,
.hrms-org-tree__item::after {
  content: '';
  position: absolute;
  top: 0;
  height: 28px;
  z-index: 0;
  pointer-events: none;
}

/* Horizontal segment toward the left sibling rail */
.hrms-org-tree__item::before {
  right: 50%;
  width: 50%;
  border-top: 2px solid #94a3b8;
}

/* Vertical stem from the rail down to this card */
.hrms-org-tree__item::after {
  left: 50%;
  width: 0;
  transform: translateX(-1px);
  border-top: 0 none;
  border-left: 2px solid #94a3b8;
}

.hrms-org-tree__item:only-child::before,
.hrms-org-tree__item:only-child::after {
  display: none;
}

.hrms-org-tree__item:only-child {
  padding-top: 0;
}

.hrms-org-tree--company > .hrms-org-tree__item {
  padding-top: 0;
}

.hrms-org-tree--company > .hrms-org-tree__item::before,
.hrms-org-tree--company > .hrms-org-tree__item::after {
  display: none;
}

.hrms-org-tree__item:first-child::before {
  border-top: 0 none;
}

.hrms-org-tree ul::before,
.hrms-org-tree__branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-1px);
  width: 0;
  height: 28px;
  border-left: 2px solid #94a3b8;
  z-index: 0;
  pointer-events: none;
}

.hrms-org-tree__item:has(> .hrms-org-tree__branch) > .hrms-org-tree__card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-1px);
  width: 0;
  height: 28px;
  border-left: 2px solid #94a3b8;
  z-index: 0;
  pointer-events: none;
}

.hrms-org-tree__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 200px;
  max-width: 100%;
  padding: 16px 14px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  flex-shrink: 0;
}

.hrms-org-tree__card:hover {
  border-color: rgba(72, 127, 255, 0.35);
  box-shadow: 0 8px 20px rgba(72, 127, 255, 0.1);
  transform: translateY(-2px);
}

.hrms-org-tree__edit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}

.hrms-org-tree__card:hover .hrms-org-tree__edit {
  opacity: 1;
}

.hrms-org-tree__edit:hover {
  color: var(--hrms-primary);
  background: rgba(72, 127, 255, 0.08);
  border-color: rgba(72, 127, 255, 0.25);
}

.hrms-org-tree__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(72, 127, 255, 0.15);
}

.hrms-org-tree__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hrms-org-tree__initials {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 127, 255, 0.12);
  color: var(--hrms-primary);
  font-size: .95rem;
  font-weight: 700;
}

.hrms-org-tree__body {
  min-width: 0;
  width: 100%;
}

.hrms-org-tree__name {
  font-size: .88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrms-org-tree__role {
  font-size: .76rem;
  font-weight: 600;
  color: var(--hrms-primary);
  margin-top: 2px;
}

.hrms-org-tree__dept {
  display: inline-block;
  margin-top: 5px;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrms-org-tree__email {
  font-size: .72rem;
  color: #94a3b8;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrms-org-tree__reports {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px 8px;
}

.hrms-org-chart__empty-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 127, 255, 0.1);
  color: var(--hrms-primary);
}

.hrms-org-chart__empty-icon [data-lucide],
.hrms-org-chart__empty-icon svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 767px) {
  .hrms-org-tree__card {
    width: 170px;
    padding: 14px 12px 12px;
  }

  .hrms-org-tree__edit {
    opacity: 1;
  }

  .hrms-org-chart__scroll-hint {
    font-size: .72rem;
  }

  .hrms-org-dept__badge {
    display: none;
  }
}

.hrms-folder-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hrms-folder-pills__item {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hrms-folder-pills__item:hover {
  color: var(--hrms-primary);
  border-color: rgba(72, 127, 255, 0.35);
  background: rgba(72, 127, 255, 0.05);
}

.hrms-folder-pills__item.is-active {
  color: #fff;
  background: var(--hrms-primary);
  border-color: var(--hrms-primary);
}

.hrms-media-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.hrms-media-thumb--file {
  background: #f1f5f9;
}

/* Media library app (superadmin) */
.hrms-media-library__topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.hrms-media-library__shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  min-height: 620px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.hrms-media-library__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  min-height: 100%;
}

.hrms-media-library__sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.hrms-media-library__folder-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.hrms-media-library__folder-link:hover {
  background: #eef2ff;
  color: var(--hrms-primary, #2563eb);
}

.hrms-media-library__folder-link.is-active {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.hrms-media-library__folder-link-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.hrms-media-library__folder-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.hrms-media-library__folder-link.is-active .hrms-media-library__folder-count {
  color: #16a34a;
}

.hrms-media-library__folder-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hrms-media-library__folder-add {
  color: #64748b;
  line-height: 1;
}

.hrms-media-library__storage {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.hrms-media-library__storage-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.hrms-media-library__storage-value {
  font-size: 0.95rem;
  color: #0f172a;
}

.hrms-media-library__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.hrms-media-library__toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.hrms-media-library__search {
  position: relative;
}

.hrms-media-library__search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.hrms-media-library__search .form-control {
  padding-left: 2.2rem;
}

.hrms-media-library__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hrms-media-library__view-toggle .btn.is-active {
  background: rgba(22, 163, 74, 0.12);
  border-color: #86efac;
  color: #15803d;
}

.hrms-media-library__sort {
  min-width: 140px;
}

.hrms-media-library__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.hrms-media-library__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
}

.hrms-media-library__stat--files {
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
}

.hrms-media-library__stat--storage {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.hrms-media-library__stat--images {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

.hrms-media-library__content {
  flex: 1 1 auto;
  padding: 1.25rem;
  min-height: 360px;
}

.hrms-media-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.hrms-media-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hrms-media-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.hrms-media-card__preview {
  position: relative;
  aspect-ratio: 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hrms-media-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hrms-media-card__file-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.hrms-media-card__type {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.hrms-media-card__actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hrms-media-card:hover .hrms-media-card__actions {
  opacity: 1;
}

.hrms-media-card__body {
  padding: 0.85rem;
}

.hrms-media-card__name {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrms-media-card__meta,
.hrms-media-card__date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.hrms-media-library__empty,
.hrms-media-library__no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}

.hrms-media-library__empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  margin-bottom: 1rem;
}

.hrms-media-library__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.hrms-media-library__pagination-summary {
  font-size: 0.82rem;
  color: #64748b;
}

.hrms-media-library__pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 1199.98px) {
  .hrms-media-library__toolbar {
    grid-template-columns: 1fr;
  }

  .hrms-media-library__stats {
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  .hrms-media-library__shell {
    grid-template-columns: 1fr;
  }

  .hrms-media-library__sidebar {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .hrms-media-library__storage {
    margin-top: 0;
  }
}

.hrms-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.hrms-empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 127, 255, 0.1);
  color: var(--hrms-primary);
  margin-bottom: 12px;
}

.hrms-hr-resources-card .table tbody td {
  padding: 10px 14px !important;
}

@media (max-width: 991.98px) {
  .hrms-card-header--rich {
    grid-template-columns: 1fr;
  }

  .hrms-card-header__actions {
    justify-self: stretch;
    width: 100%;
  }

  .hrms-card-header__actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .hrms-table-search {
    max-width: none;
  }

  .hrms-employee-license-hint__meter {
    display: none;
  }
}

/* ---- Primary button (add / CTA) ---- */
.btn-primary {
  background: var(--hrms-primary) !important;
  border-color: var(--hrms-primary) !important;
  font-weight: 600 !important;
  font-size: .84rem !important;
  border-radius: 9px !important;
  padding: 8px 16px !important;
  transition: background .15s, transform .1s, box-shadow .15s !important;
}

.btn-primary:hover {
  background: var(--hrms-primary-dark) !important;
  border-color: var(--hrms-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72,127,255,.3) !important;
}

/* ---- Form select/filter ---- */
.form-select, .form-control {
  border-radius: 8px !important;
  border-color: #e2e8f0 !important;
  font-size: .84rem !important;
  color: #374151 !important;
}

.form-select:focus, .form-control:focus {
  border-color: var(--hrms-primary) !important;
  box-shadow: 0 0 0 3px rgba(72,127,255,.12) !important;
}

/* ---- Filter bar (inside page, above table) ---- */
.filter-bar {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.empty-state p {
  font-size: .88rem;
  margin: 0;
}

/* ---- Avatar (employee list) ---- */
.emp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8edf3;
}

.emp-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emp-avatar-placeholder--icon [data-lucide],
.emp-avatar-placeholder--icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.emp-avatar-cell {
  min-width: 36px;
  min-height: 36px;
}

.emp-avatar-placeholder--profile {
  width: 96px;
  height: 96px;
  font-size: 1.75rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.hrms-profile-card__avatar-wrap.emp-avatar-cell {
  min-width: 96px;
  min-height: 96px;
}

/* ---- Toast (flash messages) ---- */
.hrms-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  animation: slideUp .25s ease;
}

@keyframes slideUp {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ---- Settings & billing pages ---- */
.settings-page-title {
  color: #0f172a;
  font-size: 1.05rem;
}

.settings-page-subtitle {
  font-size: .78rem;
  color: #94a3b8;
  margin: 3px 0 0;
}

.settings-form-card.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.settings-form-card .card-body {
  padding: 1.5rem 1.75rem;
}

.settings-form-card .form-label {
  font-size: .8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: .35rem;
}

.settings-form-card .form-control,
.settings-form-card .form-select {
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-color: #e2e8f0;
  font-size: .875rem;
}

.settings-form-card .select2-container {
  width: 100% !important;
}

/* ---- Select2 (HRMS theme â single select) ---- */
.select2-container--default.hrms-select2 {
  width: 100% !important;
}

.select2-container--default.hrms-select2 .select2-selection--single {
  height: 42px;
  min-height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #fff;
  font-size: .875rem;
  color: #374151;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.select2-container--default.hrms-select2.select2-container--focus .select2-selection--single,
.select2-container--default.hrms-select2.select2-container--open .select2-selection--single {
  border-color: var(--hrms-primary, #487fff);
  box-shadow: 0 0 0 3px rgba(72, 127, 255, .12);
}

.select2-container--default.hrms-select2 .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 12px;
  padding-right: 36px;
  color: #374151;
}

.select2-container--default.hrms-select2 .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
}

.select2-container--default.hrms-select2 .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 10px;
}

.select2-container--default.hrms-select2 .select2-selection--single .select2-selection__arrow b {
  border-color: #64748b transparent transparent transparent;
}

.select2-container--default.hrms-select2 .select2-selection--single .select2-selection__clear {
  margin-right: 26px;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 40px;
}

.select2-dropdown.hrms-select2-dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .875rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
  overflow: hidden;
  z-index: 1060;
}

.select2-dropdown.hrms-select2-dropdown .select2-search--dropdown {
  padding: 8px;
}

.select2-dropdown.hrms-select2-dropdown .select2-search--dropdown .select2-search__field {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .875rem;
  padding: 6px 10px;
}

.select2-dropdown.hrms-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--hrms-primary, #487fff);
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 127, 255, .12);
}

.select2-container--default.hrms-select2 .select2-results__option {
  padding: 8px 12px;
  font-size: .875rem;
}

.select2-container--default.hrms-select2 .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--hrms-primary, #487fff);
  color: #fff;
}

.filter-bar .select2-container--default.hrms-select2,
.list-page-filter-card .select2-container--default.hrms-select2 {
  width: 100% !important;
}

@media (max-width: 767.98px) {
  .settings-form-card .select2-container--default.hrms-select2,
  .settings-form-card .select2-container--default.hrms-select2 .select2-selection--single {
    width: 100% !important;
  }
}

.settings-form-card .form-text {
  font-size: .75rem;
  color: #94a3b8;
}

.settings-form-card .btn-primary {
  border-radius: 8px;
  font-weight: 600;
  padding: .55rem 1.25rem;
}

.settings-form-card .btn-primary.w-100 {
  margin-top: .5rem;
}

.settings-stack > .card + .card {
  margin-top: 1.25rem;
}

/* ---- Company setup & settings sections ---- */
.hrms-company-setup.settings-stack > .card + .card {
  margin-top: 1.5rem;
}

.hrms-settings-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f7;
}

.hrms-settings-section-head__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hrms-settings-section-head__icon svg,
.hrms-settings-section-head__icon i {
  width: 20px;
  height: 20px;
}

.hrms-settings-section-head--primary .hrms-settings-section-head__icon {
  background: #eff6ff;
  color: #2563eb;
}

.hrms-settings-section-head--violet .hrms-settings-section-head__icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.hrms-settings-section-head--amber .hrms-settings-section-head__icon {
  background: #fffbeb;
  color: #d97706;
}

.hrms-settings-section-head--emerald .hrms-settings-section-head__icon {
  background: #ecfdf5;
  color: #059669;
}

.hrms-settings-section-head__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.hrms-settings-section-head__desc {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 52rem;
}

.hrms-settings-group {
  margin-bottom: 1.5rem;
}

.hrms-settings-group:last-of-type {
  margin-bottom: 0;
}

.hrms-settings-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.85rem;
}

.hrms-settings-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}

.hrms-settings-footer .btn {
  min-width: 9rem;
  font-weight: 600;
}

.hrms-setup-inline-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #92400e;
}

.hrms-setup-inline-banner__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hrms-setup-inline-banner__title {
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.hrms-setup-inline-banner__text {
  font-size: 0.78rem;
  margin: 0;
  color: #b45309;
  line-height: 1.45;
}

.hrms-page-tabs--sub {
  background: #f8fafc;
  border-color: #e8edf3;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 1.25rem !important;
}

.hrms-page-tabs--sub .nav-link {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: 7px !important;
}

[data-theme="dark"] .hrms-settings-section-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hrms-settings-section-head__title {
  color: #f1f5f9;
}

[data-theme="dark"] .hrms-settings-section-head__desc,
[data-theme="dark"] .hrms-settings-group__title {
  color: #94a3b8;
}

[data-theme="dark"] .hrms-settings-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Dynamic gems rules manager */
.hrms-gems-rules-group + .hrms-gems-rules-group {
  border-top: 1px solid #eef2f7;
}

.hrms-gems-rules-group__head {
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
}

.hrms-gems-rules-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 700;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  padding: 8px 12px;
}

.hrms-gems-rules-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.hrms-gems-rules-table__row--off {
  opacity: 0.55;
}

.hrms-gems-rules-table .form-check-input {
  cursor: pointer;
}

[data-theme="dark"] .hrms-gems-rules-group__head {
  background: rgba(255, 255, 255, 0.04);
}

/* Lucide icons (global) */
[data-lucide] {
  display: inline-block;
  vertical-align: -0.125em;
  stroke: currentColor;
}

.navbar-header [data-lucide] {
  width: 1rem;
  height: 1rem;
}

/* Header profile menu (top-right) */
.header-profile-dropdown {
  position: relative;
}
.header-profile-toggle:focus-visible {
  outline: 2px solid var(--hrms-primary, #2563eb);
  outline-offset: 2px;
}
.header-profile-avatar {
  border: 2px solid #e2e8f0;
}
.header-profile-menu {
  min-width: 220px;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 8px !important;
}
.header-profile-menu-head {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 8px;
}
.header-profile-menu-name {
  font-weight: 700;
  font-size: .9rem;
  color: #0f172a;
  line-height: 1.3;
}
.header-profile-menu-meta {
  font-size: .78rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
  word-break: break-word;
}
.header-profile-menu .dropdown-item {
  border-radius: 6px;
  font-size: .85rem;
  padding: 8px 12px;
  display: flex;
  align-items: center;
}
.header-profile-menu .dropdown-item [data-lucide] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.header-profile-menu .header-profile-logout {
  border-top: 1px solid #e2e8f0;
  margin-top: 6px;
  padding-top: 10px !important;
}
[data-theme="dark"] .header-profile-menu {
  border-color: rgba(255, 255, 255, .1) !important;
  background: #161b22 !important;
}
[data-theme="dark"] .header-profile-menu-head {
  background: rgba(255, 255, 255, .05);
}
[data-theme="dark"] .header-profile-menu-name {
  color: #e6edf3;
}
[data-theme="dark"] .header-profile-avatar {
  border-color: rgba(255, 255, 255, .15);
}

.btn [data-lucide] {
  width: 1em;
  height: 1em;
}

.card-title [data-lucide] {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--hrms-primary, #2563eb);
}

/* Holiday settings â weekly off day toggles */
.weekly-off-day-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.weekly-off-day-toggle {
  flex: 0 0 auto;
}

.weekly-off-day-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.weekly-off-day-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.weekly-off-day-btn:hover {
  border-color: var(--hrms-primary, #2563eb);
  color: var(--hrms-primary, #2563eb);
  background: #f8fafc;
}

.weekly-off-day-input:focus-visible + .weekly-off-day-btn {
  outline: 2px solid var(--hrms-primary, #2563eb);
  outline-offset: 2px;
}

.weekly-off-day-input:checked + .weekly-off-day-btn {
  color: #fff;
  background: var(--hrms-primary, #2563eb);
  border-color: var(--hrms-primary, #2563eb);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.weekly-off-day-input:checked + .weekly-off-day-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.weekly-off-settings-row .settings-info-box {
  height: 100%;
}

.settings-info-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .8rem;
  color: #0c4a6e;
}

.settings-info-box h6 {
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.settings-info-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.settings-info-box li + li {
  margin-top: .25rem;
}

.holiday-settings-grid > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

.holiday-settings-grid .card {
  flex: 1;
}

.master-holiday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem 1rem;
}

.settings-sidebar-panel.smart-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
}

.settings-sidebar-panel h6 {
  font-size: .88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .75rem;
}

.gem-type-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.gem-type-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: #475569;
  margin-bottom: .5rem;
}

.gem-type-list [data-lucide] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* Gems configuration — payroll toggle */
.hrms-gems-payroll-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hrms-gems-payroll-toggle.is-enabled {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.hrms-gems-payroll-toggle__main {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.hrms-gems-payroll-toggle__badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1d4ed8;
  background: #fff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.hrms-gems-payroll-toggle__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  cursor: pointer;
}

.hrms-gems-payroll-toggle__desc {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}

.hrms-gems-payroll-switch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.hrms-gems-payroll-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hrms-gems-payroll-switch__track {
  position: relative;
  width: 3.25rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.22s ease, box-shadow 0.22s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
}

.hrms-gems-payroll-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.22s ease;
}

.hrms-gems-payroll-switch__input:checked + .hrms-gems-payroll-switch__track {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hrms-gems-payroll-switch__input:checked + .hrms-gems-payroll-switch__track .hrms-gems-payroll-switch__thumb {
  transform: translateX(1.45rem);
}

.hrms-gems-payroll-switch__input:focus-visible + .hrms-gems-payroll-switch__track {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.hrms-gems-payroll-switch__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.hrms-gems-payroll-toggle.is-enabled .hrms-gems-payroll-switch__label {
  color: #1d4ed8;
}

/* Gems configuration — crystal icons */
.hrms-gem-crystal {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hrms-gems-rate-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.hrms-gems-rate-type__icon {
  width: 2rem;
  height: 2.3rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hrms-gems-guide__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.hrms-gems-guide__head-gem {
  width: 3.25rem;
  height: 3.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 14px rgba(251, 191, 36, 0.22));
}

.hrms-gems-guide__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hrms-gems-guide__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.875rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hrms-gems-guide__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.hrms-gems-guide__gem {
  width: 3rem;
  height: 3.45rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hrms-gems-guide__item--green .hrms-gems-guide__gem {
  filter: drop-shadow(0 8px 12px rgba(16, 185, 129, 0.25));
}

.hrms-gems-guide__item--yellow .hrms-gems-guide__gem {
  filter: drop-shadow(0 8px 12px rgba(251, 191, 36, 0.28));
}

.hrms-gems-guide__item--silver .hrms-gems-guide__gem {
  filter: drop-shadow(0 8px 12px rgba(148, 163, 184, 0.3));
}

.hrms-gems-guide__item--black .hrms-gems-guide__gem {
  filter: drop-shadow(0 8px 12px rgba(51, 65, 85, 0.28));
}

.hrms-gems-guide__item--green {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}

.hrms-gems-guide__item--yellow {
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
  border-color: #fde68a;
}

.hrms-gems-guide__item--silver {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-color: #e2e8f0;
}

.hrms-gems-guide__item--black {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
}

.hrms-gems-guide__label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.hrms-gems-guide__text p {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .hrms-gems-payroll-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .hrms-gems-payroll-switch {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

.form-check-input-align {
  margin-top: .2rem;
}

.list-page-filter-card .card-body {
  padding: 1rem 1.25rem !important;
}

.tasks-page-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tasks-page-stack > .card + .card {
  margin-top: 0;
}

.task-gems-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
}

.task-gems-badge__icon {
  flex-shrink: 0;
}

.task-gems-badge--pending {
  color: #86efac;
}

.task-gems-badge--pending .task-gems-badge__icon,
.task-gems-badge--pending [data-lucide] {
  color: #86efac;
  stroke: #86efac;
}

.task-gems-badge--eligible {
  color: #166534;
}

.task-gems-badge--eligible .task-gems-badge__icon,
.task-gems-badge--eligible [data-lucide] {
  color: #166534;
  stroke: #166534;
}

.task-gems-badge__label {
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
  .weekly-off-day-toggles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .weekly-off-day-toggle {
    width: 100%;
  }

  .weekly-off-day-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Billing / plan cards */
.billing-interval-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.billing-interval-label {
  font-size: .9rem;
  font-weight: 600;
  color: #475569;
}

.billing-interval-toggle {
  display: inline-flex;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.billing-interval-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: .875rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .2s, color .2s, box-shadow .2s;
}

.billing-interval-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.billing-interval-save {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 999px;
}

.billing-plans-row {
  max-width: 1100px;
}

.billing-plans-row--vertical {
  max-width: 640px;
  margin-inline: auto;
}

.billing-plans-row--vertical .plan-card {
  height: auto;
}

.upgrade-plan-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upgrade-plan-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  margin: 0;
  background: #fff;
}

.upgrade-plan-option:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}

.upgrade-plan-option.is-selected {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, .12);
}

.upgrade-plan-option.is-current:not(.is-selected) {
  border-color: #93c5fd;
  background: #eff6ff;
}

.upgrade-plan-option__radio {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #16a34a;
}

.upgrade-plan-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.upgrade-plan-option__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upgrade-plan-option__name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.upgrade-plan-option__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.upgrade-plan-option__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.upgrade-plan-option__price [data-plan-headline] {
  color: #16a34a;
}

.upgrade-plan-option__price [data-plan-unit],
.upgrade-plan-option__interval {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
}

.upgrade-plan-option__price-icon {
  color: #64748b;
}

.upgrade-plan-option__detail {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

.upgrade-plan-option__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.upgrade-plan-option__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.upgrade-plan-option__feature svg,
.upgrade-plan-option__feature [data-lucide] {
  width: 0.75rem;
  height: 0.75rem;
}

.plan-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  transition: border-color .2s, box-shadow .2s;
}

.plan-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.plan-card.plan-featured {
  border-color: var(--hrms-primary, #2563eb);
  box-shadow: 0 4px 20px rgba(37, 99, 235, .12);
}

.plan-card .plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .5rem;
}

.plan-card .plan-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.plan-card .plan-price span {
  font-size: .85rem;
  font-weight: 500;
  color: #64748b;
}

.plan-card .plan-limit {
  font-size: .85rem;
  color: #64748b;
  margin: .75rem 0 1.25rem;
  flex-grow: 1;
}

.plan-card .btn {
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
}

.plan-card .btn-secondary {
  background: #64748b;
  border-color: #64748b;
}

.plan-card .btn-secondary:hover {
  background: #475569;
  border-color: #475569;
}

.plan-card.plan-current {
  border-color: #16a34a;
  box-shadow: 0 4px 20px rgba(22, 163, 74, .12);
}

.plan-current-badge,
.plan-popular-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.plan-current-badge {
  background: #dcfce7;
  color: #15803d;
}

.plan-popular-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: #475569;
  margin-bottom: .35rem;
}

.plan-feature-icon {
  width: 1rem;
  height: 1rem;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: .1rem;
}

.billing-active-card {
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.billing-active-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.billing-active-icon [data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
}

.billing-active-detail {
  font-size: .85rem;
  color: #475569;
}

.billing-active-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.billing-active-price span {
  font-size: .85rem;
  font-weight: 500;
  color: #64748b;
}

/* Billing overview (current plan + license seats) */
.billing-overview-card {
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 58%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  border-radius: 12px;
  overflow: hidden;
}

.billing-overview-card--limit {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 58%);
}

.billing-overview-card--limit .billing-overview-plan__icon {
  background: #fef3c7;
  color: #d97706;
}

.billing-overview-card--empty {
  border-color: #e2e8f0;
  background: #fff;
}

.billing-overview-card__body {
  padding: 1.25rem 1.5rem;
}

.billing-overview-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.billing-overview-plan--empty {
  align-items: center;
}

.billing-overview-plan__main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 280px;
  min-width: 0;
}

.billing-overview-plan__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.billing-overview-plan__icon--warn {
  background: #fef3c7;
  color: #d97706;
}

.billing-overview-plan__icon [data-lucide],
.billing-overview-plan__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.billing-overview-plan__label {
  display: block;
  font-size: .78rem;
  color: #64748b;
  margin-bottom: .2rem;
}

.billing-overview-plan__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.billing-overview-plan__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: .35rem;
}

.billing-overview-plan__meta {
  font-size: .85rem;
  color: #475569;
  line-height: 1.45;
}

.billing-overview-plan__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 0 1 auto;
}

.billing-overview-plan__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  text-align: right;
}

.billing-overview-plan__price span {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: #64748b;
}

.billing-overview-plan__action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.billing-overview-plan__action-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  border-radius: 8px;
}

.billing-overview-seats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.25rem;
}

.billing-overview-seats--muted {
  opacity: .9;
}

.billing-overview-seat {
  background: rgba(255, 255, 255, .92);
  padding: .9rem 1rem;
  text-align: center;
}

.billing-overview-seat.is-limit .billing-overview-seat__value {
  color: #d97706;
}

.billing-overview-seat__value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.billing-overview-seat__label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  margin-top: .25rem;
}

.plan-card__body {
  flex: 1 1 auto;
  min-height: 0;
}

.plan-card__cta {
  margin-top: auto;
  padding-top: .5rem;
}

.plan-card--request {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-card--request .plan-features {
  flex: 1 1 auto;
}

.billing-plan-request-row .plan-card {
  min-height: 100%;
}

.plan-tier-preamble {
  font-size: .78rem;
  color: #94a3b8;
  margin: -.5rem 0 .75rem;
}

.billing-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .75rem;
}

.billing-status-badge {
  font-size: .72rem;
  font-weight: 700;
}

.billing-transactions-card {
  border-radius: 12px;
  overflow: hidden;
}

.billing-transactions-card .card-header {
  padding: .85rem 1.25rem;
  background: #f8fafc;
}

.billing-transactions-card .card-header [data-lucide] {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: -.2em;
}

.billing-transactions-table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  white-space: nowrap;
  background: #f8fafc;
}

.billing-transactions-table td {
  font-size: .875rem;
  vertical-align: middle;
}

.billing-transactions-table .btn-outline-secondary {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .billing-overview-plan__actions {
    width: 100%;
    justify-content: space-between;
  }

  .billing-overview-plan__price {
    text-align: left;
  }

  .billing-overview-plan__action-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

.billing-add-licenses-stat {
  text-align: center;
  padding: 0.875rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.billing-add-licenses-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.billing-add-licenses-stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.header-profile-initials {
  width: 40px;
  height: 40px;
  background: var(--hrms-primary, #487fff);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  border: 2px solid #e2e8f0;
}

.header-profile-avatar-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--hrms-primary-light, #e8effe);
}

.header-profile-avatar:not(.header-profile-initials) {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.header-profile-avatar-wrap .header-profile-avatar:not(.header-profile-initials) {
  display: block;
}

/* ---- Dashboard layout (desktop + mobile) ---- */
.content-section-label {
  display: block;
  width: 100%;
  flex: 0 0 100%;
}

.kpi-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 8px;
}

.kpi-snapshot-item {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid #f1f5f9;
}

.kpi-snapshot-item:first-child {
  padding-left: 0;
  border-left: none;
}

.kpi-value-sm {
  font-size: 1.35rem !important;
}

.chart-canvas-wrap {
  position: relative;
  height: 260px;
  padding: 12px 16px 16px;
}

.chart-canvas-wrap--tall {
  height: 280px;
}

.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.att-summary-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 12px 0 16px;
}

.att-summary-stats > div[style*="width:1px"] {
  display: none;
}

@media (min-width: 480px) {
  .att-summary-stats > div[style*="width:1px"] {
    display: block;
  }
}

.smart-card .sc-header {
  flex-wrap: wrap;
  align-items: flex-start;
}

.smart-card .sc-header .sc-title {
  flex: 1 1 auto;
  min-width: 0;
}

.smart-card .sc-header .sc-subtitle {
  margin-top: 2px;
}

.smart-card .sc-header > .d-flex {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.smart-card .sc-header .dropdown,
.smart-card .sc-header > a,
.smart-card .sc-header > button {
  flex-shrink: 0;
}

/* Navbar mobile */
@media (max-width: 767px) {
  .navbar-header {
    padding: 0 12px !important;
  }

  .navbar-header > .row {
    margin: 0;
  }

  .navbar-search {
    display: none !important;
  }

  .navbar-header .col-auto {
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar-header .d-flex.gap-3,
  .navbar-header .d-flex.gap-4 {
    gap: 8px !important;
  }

  [data-theme-toggle].notif-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  [data-theme-toggle].notif-btn i {
    font-size: 1rem !important;
  }
}

@media (max-width: 768px) {
  .welcome-bar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .welcome-bar .wb-title {
    font-size: 1.15rem;
    word-break: break-word;
  }

  .welcome-bar .d-flex.gap-2 {
    width: 100%;
  }

  .quick-action-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    font-size: .76rem;
    padding: 7px 10px;
  }

  .quick-action-btn.primary {
    flex: 1 1 100%;
  }

  .kpi-card {
    padding: 16px 18px 14px;
  }

  .kpi-card .kpi-value {
    font-size: 1.65rem;
  }

  .content-section-label {
    margin: 24px 0 12px;
  }

  .chart-canvas-wrap {
    height: 220px;
    padding: 8px 10px 12px;
  }

  .chart-canvas-wrap--tall {
    height: 240px;
  }

  .att-ring-stat .val {
    font-size: 1.45rem;
  }

  .smart-card .sc-header {
    padding: 14px 16px;
  }

  .smart-card .sc-body {
    padding: 16px;
  }
}

/* ---- URL-based page tabs (HRMS GO pill style) ---- */
.hrms-page-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin: 0 0 24px;
  list-style: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: visible;
}

.hrms-page-tabs--stretch {
  display: flex;
  width: 100%;
  max-width: 100%;
}

.hrms-page-tabs--stretch .nav-item {
  flex: 1 1 0;
  min-width: 0;
}

.hrms-page-tabs--stretch .nav-link {
  width: 100%;
  justify-content: center;
}

.hrms-page-tabs .nav-item {
  margin: 0;
}

.hrms-page-tabs .nav-link,
.hrms-page-tabs .hrms-page-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none !important;
  border-radius: 8px !important;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b !important;
  white-space: nowrap;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
  line-height: 1.25;
}

.hrms-page-tabs .nav-link:not(.active),
.hrms-page-tabs .hrms-page-tab-link:not(.active) {
  color: #64748b !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hrms-page-tabs .nav-link:not(.active) .hrms-tab-icon,
.hrms-page-tabs .nav-link:not(.active) svg,
.hrms-page-tabs .hrms-page-tab-link:not(.active) .hrms-tab-icon,
.hrms-page-tabs .hrms-page-tab-link:not(.active) svg {
  color: #94a3b8 !important;
  stroke: #94a3b8 !important;
}

.tab-content {
  overflow: visible;
}

.tab-content > .tab-pane {
  overflow: visible;
}

.hrms-page-tabs .nav-link:not(.active):hover,
.hrms-page-tabs .hrms-page-tab-link:not(.active):hover {
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}

.hrms-page-tabs .nav-link:focus-visible {
  outline: 2px solid rgba(72, 127, 255, 0.35);
  outline-offset: 1px;
}

.hrms-page-tabs .nav-link.active,
.hrms-page-tabs .hrms-page-tab-link.active {
  color: var(--hrms-primary, #487fff) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.hrms-page-tabs .nav-link i,
.hrms-page-tabs .nav-link svg,
.hrms-page-tabs .nav-link .hrms-tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hrms-page-tabs .nav-link.active .hrms-tab-icon,
.hrms-page-tabs .nav-link.active svg {
  color: var(--hrms-primary, #487fff);
}

.hrms-tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .hrms-page-tabs--stretch {
    flex-direction: column;
    align-items: stretch;
  }

  .hrms-page-tabs .nav-link {
    white-space: normal;
    text-align: center;
  }
}

/* ---- Attendance matrix: desktop table + mobile calendar ---- */
.attendance-matrix-mobile {
  display: none;
}

.attendance-matrix-desktop {
  display: block;
}

.attendance-matrix-wrap {
  overflow-x: auto;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.attendance-matrix-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  font-size: clamp(0.58rem, 0.72vw, 0.72rem);
  margin-bottom: 0;
}

.attendance-matrix-table th,
.attendance-matrix-table td {
  padding: 2px 1px !important;
  vertical-align: middle;
}

.attendance-matrix-table tbody td:not(.attendance-matrix-sticky-col) {
  width: 28px;
  min-width: 28px;
  max-width: 32px;
}

.attendance-matrix-sticky-col {
  text-align: left;
  width: 128px;
  min-width: 128px;
  max-width: 148px;
  position: sticky;
  left: 0;
  background: #f8fafc;
  z-index: 2;
  font-weight: 600;
  color: #0f172a;
  border-right: 1px solid #e2e8f0;
  padding: 4px 6px !important;
  overflow: hidden;
  box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.08);
}

.attendance-matrix-sticky-col--total {
  left: auto;
  right: 0;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center;
  border-right: none;
  border-left: 1px solid #e2e8f0;
  box-shadow: -4px 0 8px -4px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

thead .attendance-matrix-sticky-col--total {
  z-index: 4;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  vertical-align: bottom;
  padding-bottom: 4px !important;
}

tbody .attendance-matrix-sticky-col--total {
  background: #fff;
}

.attendance-matrix-present-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

thead .attendance-matrix-sticky-col {
  z-index: 3;
}

tbody .attendance-matrix-sticky-col {
  background: #fff;
  z-index: 1;
}

.attendance-matrix-emp-name {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendance-matrix-emp-meta {
  display: block;
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.attendance-matrix-th-day {
  width: 28px;
  min-width: 28px;
  max-width: 32px;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.05;
  padding: 3px 0 !important;
  overflow: hidden;
}

.attendance-matrix-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #64748b;
  background: #fff;
}

.attendance-matrix-scroll-hint [data-lucide],
.attendance-matrix-scroll-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.attendance-matrix-th-day__dow {
  display: block;
  color: #64748b;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.attendance-matrix-th-day__num {
  display: block;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 700;
}

.attendance-matrix-th--weekend {
  color: #64748b;
  background: #eef2f7 !important;
}

.attendance-matrix-th--weekend .attendance-matrix-th-day__dow,
.attendance-matrix-th--weekend .attendance-matrix-th-day__num {
  color: #64748b;
}

.attendance-matrix-td--weekend,
.attendance-matrix-td--weekoff {
  background: #eef2f7 !important;
}

.attendance-matrix-table tbody tr:hover .attendance-matrix-td--weekend,
.attendance-matrix-table tbody tr:hover .attendance-matrix-td--weekoff {
  background: #e4eaf2 !important;
}

.attendance-matrix-table tbody tr:hover .attendance-matrix-sticky-col {
  background: #f8fafc;
}

.attendance-matrix-cell {
  display: inline-flex;
  width: clamp(16px, 1.6vw, 22px);
  height: clamp(16px, 1.6vw, 22px);
  min-width: 16px;
  min-height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--att-day-fg, #64748b);
  background: var(--att-day-bg, #f1f5f9);
  line-height: 1;
}

.attendance-matrix-cell.att-day-present {
  --att-day-fg: #16a34a;
  --att-day-bg: rgba(22, 163, 74, 0.12);
}

.attendance-matrix-cell.att-day-late {
  --att-day-fg: #d97706;
  --att-day-bg: rgba(217, 119, 6, 0.14);
}

.attendance-matrix-cell.att-day-half_day {
  --att-day-fg: #ea580c;
  --att-day-bg: rgba(234, 88, 12, 0.12);
}

.attendance-matrix-cell.att-day-absent {
  --att-day-fg: #dc2626;
  --att-day-bg: rgba(220, 38, 38, 0.1);
}

.attendance-matrix-cell.att-day-leave {
  --att-day-fg: #7c3aed;
  --att-day-bg: rgba(124, 58, 237, 0.12);
}

.attendance-matrix-cell.att-day-holiday {
  --att-day-fg: #2563eb;
  --att-day-bg: rgba(37, 99, 235, 0.12);
}

.attendance-matrix-cell.att-day-empty,
.attendance-matrix-cell.att-day-future,
.attendance-matrix-cell.att-day-weekend,
.attendance-matrix-cell.att-day-weekoff {
  --att-day-fg: #cbd5e1;
  --att-day-bg: transparent;
}

.attendance-matrix-cell.att-day-not_added {
  --att-day-fg: #94a3b8;
  --att-day-bg: rgba(148, 163, 184, 0.12);
}

.attendance-matrix-cell.att-day-early_departure {
  --att-day-fg: #c026d3;
  --att-day-bg: rgba(192, 38, 211, 0.12);
}

.attendance-matrix-cell.att-day-overtime {
  --att-day-fg: #0891b2;
  --att-day-bg: rgba(8, 145, 178, 0.14);
}

.attendance-matrix-cell__symbol {
  display: none;
}

.attendance-matrix-cell-btn,
.attendance-matrix-cell-btn:hover,
.attendance-matrix-cell-btn:focus,
.attendance-matrix-cell-btn:active {
  text-decoration: none !important;
  box-shadow: none !important;
}

.hrms-att-stat-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  min-height: 72px;
}

.hrms-att-stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.hrms-att-stat-card--compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.hrms-att-stat-card--compact .hrms-att-stat-card__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.hrms-att-stat-card--compact .hrms-att-stat-card__value {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1;
}

.hrms-att-stat-card--compact .hrms-att-stat-card__label {
  font-size: .68rem;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.2;
}

.hrms-att-stat-card__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 4px;
  color: inherit;
}

.hrms-att-stat-card__symbol [data-lucide],
.hrms-att-stat-card__symbol svg {
  stroke: currentColor;
}

.hrms-att-stat-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.hrms-att-stat-card__label {
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.hrms-att-stat-card--present { border-color: rgba(22, 163, 74, 0.25); background: rgba(22, 163, 74, 0.04); }
.hrms-att-stat-card--absent { border-color: rgba(220, 38, 38, 0.25); background: rgba(220, 38, 38, 0.04); }
.hrms-att-stat-card--late { border-color: rgba(217, 119, 6, 0.25); background: rgba(217, 119, 6, 0.05); }
.hrms-att-stat-card--half_day { border-color: rgba(234, 88, 12, 0.25); }
.hrms-att-stat-card--leave { border-color: rgba(124, 58, 237, 0.25); }
.hrms-att-stat-card--not_added { border-color: rgba(148, 163, 184, 0.35); }

.hrms-reg-card {
  border-radius: 14px;
}

.hrms-reg-times {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.hrms-reg-times__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hrms-reg-times__label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hrms-reg-times__value {
  font-size: .82rem;
  font-weight: 600;
}

.hrms-reg-times__arrow {
  color: #94a3b8;
  display: flex;
  justify-content: center;
}

.attendance-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.attendance-matrix-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 600;
  color: #64748b;
}

.attendance-matrix-legend__icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
}

.attendance-matrix-cell.attendance-day-trigger {
  cursor: pointer;
}

.attendance-matrix-cell svg,
.attendance-matrix-cell [data-lucide] {
  width: clamp(10px, 1.1vw, 13px);
  height: clamp(10px, 1.1vw, 13px);
  stroke: currentColor;
}

.attendance-employee-card {
  padding: 14px 16px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.attendance-employee-card:last-child {
  border-bottom: none;
}

.attendance-employee-card__name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.attendance-employee-card__summary {
  margin: 2px 0 10px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.attendance-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  max-width: 100%;
}

.attendance-calendar-weekday {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
}

.attendance-calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  padding: 4px 2px;
  border: none;
  border-radius: 8px;
  background: var(--att-day-bg, #f8fafc);
  color: var(--att-day-fg, #64748b);
  font: inherit;
  line-height: 1;
}

.attendance-calendar-day--empty {
  background: transparent;
  min-height: 0;
  padding: 0;
}

.attendance-calendar-day__num {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

.attendance-calendar-day__icon,
.attendance-calendar-day__icon svg {
  width: 12px;
  height: 12px;
}

.attendance-calendar-day.attendance-day-trigger:not(:disabled) {
  cursor: pointer;
}

.attendance-calendar-day.attendance-day-trigger:not(:disabled):active {
  transform: scale(0.96);
}

.attendance-calendar-day:disabled {
  cursor: default;
  opacity: 1;
}

.attendance-calendar-day--weekend {
  background: #eef2f7 !important;
}

.attendance-calendar-day--weekend .attendance-calendar-day__num {
  color: #64748b;
}

.attendance-calendar-day-form {
  margin: 0;
  min-width: 0;
}

.attendance-calendar-day-form .attendance-calendar-day {
  width: 100%;
}

.attendance-calendar-day.att-day-present {
  --att-day-fg: #16a34a;
  --att-day-bg: rgba(22, 163, 74, 0.14);
}

.attendance-calendar-day.att-day-late {
  --att-day-fg: #d97706;
  --att-day-bg: rgba(217, 119, 6, 0.16);
}

.attendance-calendar-day.att-day-half_day {
  --att-day-fg: #ea580c;
  --att-day-bg: rgba(234, 88, 12, 0.14);
}

.attendance-calendar-day.att-day-absent {
  --att-day-fg: #dc2626;
  --att-day-bg: rgba(220, 38, 38, 0.12);
}

.attendance-calendar-day.att-day-leave {
  --att-day-fg: #7c3aed;
  --att-day-bg: rgba(124, 58, 237, 0.14);
}

.attendance-calendar-day.att-day-holiday {
  --att-day-fg: #2563eb;
  --att-day-bg: rgba(37, 99, 235, 0.14);
}

.attendance-calendar-day.att-day-empty,
.attendance-calendar-day.att-day-future,
.attendance-calendar-day.att-day-weekend,
.attendance-calendar-day.att-day-weekoff {
  --att-day-fg: #94a3b8;
  --att-day-bg: #f8fafc;
}

.attendance-calendar-day.att-day-not_added {
  --att-day-fg: #94a3b8;
  --att-day-bg: rgba(148, 163, 184, 0.14);
}

.attendance-calendar-day.att-day-early_departure {
  --att-day-fg: #c026d3;
  --att-day-bg: rgba(192, 38, 211, 0.14);
}

.attendance-calendar-day.att-day-overtime {
  --att-day-fg: #0891b2;
  --att-day-bg: rgba(8, 145, 178, 0.16);
}

.attendance-matrix-mobile-list {
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .attendance-matrix-mobile {
    display: block;
    overflow-x: hidden;
  }

  .attendance-matrix-desktop {
    display: none !important;
  }

  .attendance-matrix-legend {
    gap: 8px 10px;
    padding: 8px 10px;
  }

  .attendance-matrix-legend__item {
    font-size: 0.68rem;
  }

  .attendance-matrix-legend__icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  #attendanceMatrixCard .hrms-card-header {
    flex-direction: column;
    align-items: stretch !important;
  }

  #attendanceMatrixCard .hrms-table-search {
    max-width: none;
  }

  .attendance-calendar-day {
    min-height: 44px;
  }

  .attendance-calendar-day__num {
    font-size: 0.7rem;
  }

  .attendance-calendar-day__icon svg,
  .attendance-calendar-day__icon [data-lucide] {
    width: 13px;
    height: 13px;
  }

  .attendance-filters .col-6 .btn,
  .attendance-filters .col-12 .btn {
    width: 100%;
  }

  .basic-data-table .card-body.p-0 {
    overflow-x: hidden;
  }
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  .dashboard-main-body { padding: 20px 16px 28px !important; }
  .card.basic-data-table .card-header { flex-direction: column; align-items: flex-start !important; }
  .page-hdr { flex-direction: column; align-items: flex-start; }
  .dataTables_wrapper { padding: 12px !important; }
}

/* ---- Modal stacking (footer below backdrop) ---- */
.d-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  z-index: 1055 !important;
}

.modal .select2-container {
  z-index: 1060 !important;
}

/* ---- Manage Tasks modal (projects.php) ---- */
#manageTasksModal.manage-tasks-modal .modal-header {
  border-bottom: 1px solid #e2e8f0;
}

#manageTasksModal .manage-tasks-modal-body {
  padding: 0.75rem 1rem 1rem;
}

.manage-tasks-panel {
  --manage-tasks-gap: 0.625rem;
  --manage-tasks-sidebar-width: 6.75rem;
  font-size: 0.8125rem;
}

.manage-tasks-panel--page {
  display: flex;
  flex-direction: column;
  gap: var(--manage-tasks-gap);
  max-width: 960px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

.manage-tasks-page-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.manage-tasks-project-name {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.manage-tasks-layout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.manage-tasks-sidebar {
  flex: 0 0 var(--manage-tasks-sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.manage-tasks-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--manage-tasks-gap);
}

.manage-tasks-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.3rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  line-height: 1.2;
}

.manage-tasks-stat__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #64748b;
}

.manage-tasks-stat__value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  max-width: 100%;
  word-break: break-word;
}

.manage-tasks-sidebar .manage-tasks-stat__value {
  font-size: 0.7rem;
}

.manage-tasks-stat--remaining {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.manage-tasks-stat--remaining .manage-tasks-stat__value {
  color: #166534;
}

.manage-tasks-stat--warn {
  border-color: #fecaca;
  background: #fef2f2;
}

.manage-tasks-stat--warn .manage-tasks-stat__value {
  color: #b91c1c;
}

.manage-tasks-form {
  margin: 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  --bs-gutter-y: 0.5rem;
  --bs-gutter-x: 0.5rem;
}

.manage-tasks-panel .form-label {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
}

.manage-tasks-panel .form-control-sm,
.manage-tasks-panel .form-select-sm {
  min-height: calc(1.5em + 0.5rem + 2px);
}

.manage-tasks-desc {
  min-height: 2.75rem;
  max-height: 4.5rem;
  resize: vertical;
}

.manage-tasks-add-btn {
  min-height: 31px;
}

#manageTasksModal .manage-tasks-form .select2-container {
  width: 100% !important;
}

#manageTasksModal .select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: #fff;
}

#manageTasksModal .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  font-size: 0.875rem;
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  color: #212529;
}

#manageTasksModal .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6c757d;
}

#manageTasksModal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(1.5em + 0.5rem);
  top: 1px;
  right: 0.35rem;
}

#manageTasksModal .select2-container--default.select2-container--focus .select2-selection--single,
#manageTasksModal .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.manage-tasks-list {
  margin: 0;
}

.manage-tasks-section-title {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

#manageTasksModal .manage-tasks-section-title {
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.manage-tasks-table-wrap {
  max-height: min(42vh, 320px);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.manage-tasks-table {
  font-size: 0.75rem;
}

#manageTasksModal .manage-tasks-table {
  font-size: 0.6875rem;
}

.manage-tasks-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.3rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  background: #f1f5f9;
  border-bottom-width: 1px;
  white-space: nowrap;
}

#manageTasksModal .manage-tasks-table thead th {
  padding: 0.22rem 0.35rem;
  font-size: 0.6rem;
}

.manage-tasks-table tbody td {
  padding: 0.28rem 0.45rem;
  vertical-align: middle;
}

#manageTasksModal .manage-tasks-table tbody td {
  padding: 0.2rem 0.35rem;
}

#manageTasksModal .manage-tasks-gem-pill {
  font-size: 0.625rem;
  min-width: 1.35rem;
}

#manageTasksModal .manage-tasks-status-badge {
  font-size: 0.6rem;
}

#manageTasksModal .manage-tasks-table .btn-sm {
  font-size: 0.625rem;
}

@media (max-width: 575.98px) {
  .manage-tasks-layout {
    flex-direction: column;
    gap: 0.625rem;
  }

  .manage-tasks-sidebar {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .manage-tasks-sidebar .manage-tasks-stat {
    flex: 1 1 calc(33.333% - 0.35rem);
    min-width: 5rem;
  }
}

.manage-tasks-cell-title {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-tasks-gem-pill {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  line-height: 1.2;
}

.manage-tasks-gem-pill--eligible {
  color: #854d0e;
  background: #fef9c3;
}

.manage-tasks-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2em 0.45em;
  color: #475569 !important;
  background: #e2e8f0 !important;
}

/* ---- Tag / chip input (departments, etc.) ---- */
.hrms-tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: text;
}

.hrms-tag-input:focus-within {
  border-color: var(--hrms-primary, #487fff);
  box-shadow: 0 0 0 3px rgba(72, 127, 255, 0.12);
}

.hrms-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hrms-tag-chip button {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 0 2px;
  line-height: 1;
  cursor: pointer;
  font-size: 1rem;
}

.hrms-tag-chip button:hover {
  color: #dc2626;
}

.hrms-tag-input-field {
  flex: 1 1 120px;
  min-width: 100px;
  border: none;
  outline: none;
  font-size: 0.875rem;
  padding: 4px 2px;
  background: transparent;
}

/* ---- Employee signup / update forms ---- */
.employee-form-card.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.employee-form-card .form-control,
.employee-form-card .form-select {
  border-radius: 8px;
  border-color: #e2e8f0;
}

.employee-form-card .icon-field .form-control {
  padding-left: 2.75rem;
  border-radius: 8px;
}

/* Signup/update forms use basic-data-table card shell but need readable form padding */
.employee-form-card.basic-data-table .card-body {
  padding: 1.5rem 1.75rem !important;
}

.employee-form-card.basic-data-table .card-header + .card-body {
  padding-top: 1.25rem !important;
}

.hrms-employee-signup-form {
  --bs-gutter-y: 1.5rem;
  --bs-gutter-x: 1rem;
  margin-top: 0.35rem;
}

.hrms-employee-signup-form > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.employee-form-card .form-label,
.hrms-employee-signup-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.employee-form-card .form-control,
.employee-form-card .form-select,
.hrms-employee-signup-form .form-control,
.hrms-employee-signup-form .form-select {
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-color: #e2e8f0;
  font-size: 0.875rem;
}

.hrms-employee-signup-form .password-guidelines {
  margin-top: 0.5rem;
}

.hrms-employee-signup-form .hrms-phone-field {
  position: relative;
}

.hrms-employee-signup-form .hrms-phone-field .iti {
  display: block;
  width: 100%;
}

.hrms-employee-signup-form .hrms-phone-field .iti__flag-container,
.hrms-employee-signup-form .hrms-phone-field .iti--separate-dial-code .iti__selected-flag {
  border-radius: 8px 0 0 8px;
}

.hrms-employee-signup-form .hrms-phone-field .form-control {
  width: 100%;
  padding-left: 0.75rem;
}

.hrms-employee-signup-form .hrms-phone-field .iti--separate-dial-code .form-control {
  padding-left: 5.5rem;
}

.hrms-employee-signup-form > .col-md-12:first-of-type,
.hrms-employee-signup-form > .col-12 {
  margin-top: 0.25rem;
}

.hrms-employee-signup-form > .col-12 > .card {
  margin-top: 0.5rem;
}

.hrms-employee-signup-form .drag-drop-box {
  margin-top: 0.125rem;
}

.hrms-employee-signup-form .document-row {
  margin-bottom: 0.75rem !important;
}

[data-theme="dark"] .employee-form-card.basic-data-table {
  border-color: #334155 !important;
}

[data-theme="dark"] .employee-form-card.basic-data-table .card-header {
  background: var(--dark-bg, #0d1117) !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .employee-form-card.basic-data-table .card-header .card-title {
  color: var(--dark-text, #e6edf3);
}

[data-theme="dark"] .employee-form-card .form-label,
[data-theme="dark"] .hrms-employee-signup-form .form-label {
  color: #94a3b8;
}

[data-theme="dark"] .employee-form-card .form-control,
[data-theme="dark"] .employee-form-card .form-select,
[data-theme="dark"] .hrms-employee-signup-form .form-control,
[data-theme="dark"] .hrms-employee-signup-form .form-select {
  border-color: #334155;
  background-color: var(--dark-bg, #0d1117);
  color: var(--dark-text, #e6edf3);
}

[data-theme="dark"] .employee-form-card .password-guidelines {
  background: #161b22;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .hrms-employee-signup-form .location-autocomplete-list {
  background: var(--dark-bg, #0d1117);
  border-color: #334155;
}

[data-theme="dark"] .hrms-employee-signup-form .location-autocomplete-list li {
  border-bottom-color: #334155;
  color: var(--dark-text, #e6edf3);
}

[data-theme="dark"] .hrms-employee-signup-form .location-autocomplete-list li:hover,
[data-theme="dark"] .hrms-employee-signup-form .location-autocomplete-list li.active {
  background: #1e293b;
}

/* ---- Employee profile (view-profile.php) ---- */
.hrms-profile-page .content-section-label {
  margin: 0 0 10px;
}

.hrms-profile-card {
  overflow: hidden;
}

.hrms-profile-card__banner {
  height: 72px;
  background: linear-gradient(135deg, #487fff 0%, #6366f1 55%, #818cf8 100%);
}

.hrms-profile-card__body {
  padding: 0 1.25rem 1.25rem;
  margin-top: -2.75rem;
}

.hrms-profile-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.hrms-profile-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.hrms-profile-card__email {
  font-size: 0.8rem;
  color: #64748b;
}

.hrms-profile-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hrms-profile-meta__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) 1fr;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
}

.hrms-profile-meta__row dt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hrms-profile-meta__icon {
  flex-shrink: 0;
  color: #94a3b8;
}

.hrms-profile-meta__row dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.hrms-profile-panel {
  display: flex;
  flex-direction: column;
}

.hrms-profile-panel__tabs-wrap {
  padding: 0 1rem;
  border-bottom: 1px solid #e8edf3;
}

.hrms-profile-tabs.nav-tabs {
  border-bottom: none;
}

.hrms-profile-tab-content {
  padding: 1rem 1.25rem 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Calendar panel: avoid clipping FC toolbar (smart-card uses overflow:hidden) */
.hrms-profile-page .smart-card.hrms-profile-panel {
  overflow-x: auto;
  overflow-y: visible;
}

.hrms-profile-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.hrms-profile-legend__chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.hrms-profile-legend__chip--present {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.hrms-profile-legend__chip--approved {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.hrms-profile-legend__chip--pending {
  color: #854d0e;
  background: #fef9c3;
  border-color: #fde68a;
}

.hrms-profile-legend__chip--rejected {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.hrms-profile-legend__chip--birthday {
  color: #6d28d9;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.hrms-profile-gems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hrms-profile-gem {
  flex: 1 1 calc(20% - 0.5rem);
  min-width: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.hrms-profile-gem__icon {
  flex-shrink: 0;
  display: block;
  line-height: 1;
}

.hrms-profile-gem__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.hrms-profile-gem__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hrms-profile-gem--green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.hrms-profile-gem--green .hrms-profile-gem__value {
  color: #166534;
}

.hrms-profile-gem--green .hrms-profile-gem__icon,
.hrms-profile-gem--green .hrms-profile-gem__icon [data-lucide],
.hrms-profile-gem--green .hrms-profile-gem__icon svg {
  color: #16a34a;
  stroke: #16a34a;
}

.hrms-profile-gem--yellow {
  background: #fffbeb;
  border-color: #fde68a;
}

.hrms-profile-gem--yellow .hrms-profile-gem__value {
  color: #854d0e;
}

.hrms-profile-gem--yellow .hrms-profile-gem__icon,
.hrms-profile-gem--yellow .hrms-profile-gem__icon [data-lucide],
.hrms-profile-gem--yellow .hrms-profile-gem__icon svg {
  color: #ca8a04;
  stroke: #ca8a04;
}

.hrms-profile-gem--silver {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.hrms-profile-gem--silver .hrms-profile-gem__value {
  color: #475569;
}

.hrms-profile-gem--silver .hrms-profile-gem__icon,
.hrms-profile-gem--silver .hrms-profile-gem__icon [data-lucide],
.hrms-profile-gem--silver .hrms-profile-gem__icon svg {
  color: #64748b;
  stroke: #64748b;
}

.hrms-profile-gem--black {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.hrms-profile-gem--black .hrms-profile-gem__value {
  color: #0f172a;
}

.hrms-profile-gem--black .hrms-profile-gem__icon,
.hrms-profile-gem--black .hrms-profile-gem__icon [data-lucide],
.hrms-profile-gem--black .hrms-profile-gem__icon svg {
  color: #0f172a;
  stroke: #0f172a;
}

.hrms-profile-gem--red {
  background: #fef2f2;
  border-color: #fecaca;
}

.hrms-profile-gem--red .hrms-profile-gem__value {
  color: #b91c1c;
}

.hrms-profile-gem--red .hrms-profile-gem__icon,
.hrms-profile-gem--red .hrms-profile-gem__icon [data-lucide],
.hrms-profile-gem--red .hrms-profile-gem__icon svg {
  color: #dc2626;
  stroke: #dc2626;
}

.hrms-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.hrms-profile-stat.manage-tasks-stat {
  min-height: 0;
  padding: 0.45rem 0.5rem;
}

.hrms-profile-wallet-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
}

.hrms-profile-wallet-metric__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hrms-profile-wallet-metric__value {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.hrms-profile-subcard {
  box-shadow: none;
  border: 1px solid #f1f5f9;
}

.hrms-profile-subcard .sc-header {
  border-bottom: 1px solid #f1f5f9;
}

.hrms-profile-pill {
  display: inline-flex;
  min-width: 1.75rem;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.hrms-profile-pill--pending {
  background: #fef9c3;
  color: #854d0e;
}

.hrms-profile-pill--progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.hrms-profile-pill--done {
  background: #dcfce7;
  color: #166534;
}

.hrms-profile-pill--rejected {
  background: #fee2e2;
  color: #b91c1c;
}

/* FullCalendar â profile attendance tab (white smart-card; scoped toolbar UI) */
.hrms-profile-page .hrms-profile-calendar,
.hrms-profile-page #attendanceCalendar {
  --hrms-profile-cal-title: #0f172a;
  --hrms-profile-cal-day: #475569;
  --hrms-profile-cal-day-bg: #f1f5f9;
  --hrms-profile-cal-btn-bg: #fff;
  --hrms-profile-cal-btn-muted-bg: #f8fafc;
  --hrms-profile-cal-btn-border: #e2e8f0;
  --hrms-profile-cal-btn-text: #334155;
  --hrms-profile-cal-btn-hover-bg: #f1f5f9;
  --hrms-profile-cal-btn-hover-border: #cbd5e1;
  --hrms-profile-cal-btn-active-bg: var(--hrms-primary, #487fff);
  --hrms-profile-cal-btn-active-text: #fff;
  --hrms-profile-cal-btn-active-border: var(--hrms-primary, #487fff);
  --hrms-profile-cal-today-text: #475569;
  --hrms-profile-cal-today-border: #cbd5e1;
  --hrms-profile-cal-cell-bg: #fff;
  --hrms-profile-cal-cell-border: #f1f5f9;
  --hrms-profile-cal-day-num: #334155;
  --hrms-profile-cal-slot-min: 2rem;
  --hrms-profile-cal-allday-min: 2.75rem;
  --hrms-profile-cal-btn-radius: 8px;
  --hrms-profile-cal-btn-height: 2.125rem;
  min-width: 0;
  padding: 0 0.35rem 0.25rem;
}

/* Grid only â keep toolbar buttons bordered (global style.css .fc-state-default also targets profile) */
.hrms-profile-page .hrms-profile-calendar .fc-header,
.hrms-profile-page .hrms-profile-calendar .fc-header td,
.hrms-profile-page #attendanceCalendar .fc-header,
.hrms-profile-page #attendanceCalendar .fc-header td {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-border-separate,
.hrms-profile-page .hrms-profile-calendar .fc-border-separate th,
.hrms-profile-page .hrms-profile-calendar .fc-border-separate td,
.hrms-profile-page #attendanceCalendar .fc-border-separate,
.hrms-profile-page #attendanceCalendar .fc-border-separate th,
.hrms-profile-page #attendanceCalendar .fc-border-separate td {
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Month/year (FC v3: .fc-header-title h2; v4+: .fc-toolbar-title) */
.hrms-profile-page .fc-header-title h2,
.hrms-profile-page .fc-toolbar-title {
  color: var(--hrms-profile-cal-title) !important;
  font-weight: 600 !important;
}

/* Day names (Sun, Mon, â¦) */
.hrms-profile-page .fc-border-separate tr.fc-last th,
.hrms-profile-page .fc-day-header {
  background: var(--hrms-profile-cal-day-bg) !important;
  color: var(--hrms-profile-cal-day) !important;
  font-weight: 600 !important;
}

.hrms-profile-page .fc-border-separate tr.fc-last th a {
  color: inherit !important;
}

.hrms-profile-page .fc-day-number {
  color: var(--hrms-profile-cal-day-num) !important;
}

/* Toolbar / header: breathing room so prev|next|today and month|week|day are not clipped */
.hrms-profile-page .fc-toolbar.fc-header-toolbar,
.hrms-profile-page .fc-header {
  margin-bottom: 0.65rem !important;
  padding: 0.15rem 0.35rem 0.25rem !important;
}

.hrms-profile-page .fc-toolbar.fc-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.hrms-profile-page .fc-toolbar .fc-left,
.hrms-profile-page .fc-toolbar .fc-center,
.hrms-profile-page .fc-toolbar .fc-right,
.hrms-profile-page .fc-header-left,
.hrms-profile-page .fc-header-center,
.hrms-profile-page .fc-header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: auto !important;
  float: none !important;
  white-space: normal;
}

.hrms-profile-page .fc-toolbar .fc-right,
.hrms-profile-page .fc-header-right {
  padding-right: 0.35rem;
  justify-content: flex-end;
}

.hrms-profile-page .fc-toolbar .fc-center,
.hrms-profile-page .fc-header-center {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 8rem;
  padding: 0 0.35rem;
}

/* ââ Toolbar buttons (override global style.css .fc-state-default link-like blue text) ââ */
.hrms-profile-page .hrms-profile-calendar .fc-button-group,
.hrms-profile-page #attendanceCalendar .fc-button-group {
  display: inline-flex !important;
  flex-wrap: nowrap;
  gap: 0;
  vertical-align: middle;
  border-radius: var(--hrms-profile-cal-btn-radius);
  overflow: hidden;
}

.hrms-profile-page .hrms-profile-calendar .fc-button-group > .fc-button,
.hrms-profile-page #attendanceCalendar .fc-button-group > .fc-button {
  float: none !important;
  margin: 0 !important;
  position: relative;
}

.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button,
.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-default,
.hrms-profile-page .hrms-profile-calendar .fc-toolbar .fc-button,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-default {
  appearance: none;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: var(--hrms-profile-cal-btn-height);
  margin: 0 !important;
  padding: 0 0.85rem !important;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: capitalize;
  white-space: nowrap;
  border: 1px solid var(--hrms-profile-cal-btn-border) !important;
  border-radius: var(--hrms-profile-cal-btn-radius) !important;
  background: var(--hrms-profile-cal-btn-bg) !important;
  color: var(--hrms-profile-cal-btn-text) !important;
  box-shadow: none !important;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button:focus-visible,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button:focus-visible {
  outline: 2px solid var(--hrms-profile-cal-btn-active-bg);
  outline-offset: 2px;
}

.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button .fc-text-arrow,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button .fc-text-arrow {
  color: inherit !important;
  font-size: 1.05rem;
  line-height: 1;
  margin: 0;
}

.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-hover:not(.fc-state-active):not(.fc-state-down),
.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-default:hover:not(.fc-state-active):not(.fc-state-down),
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-hover:not(.fc-state-active):not(.fc-state-down),
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-default:hover:not(.fc-state-active):not(.fc-state-down) {
  background: var(--hrms-profile-cal-btn-hover-bg) !important;
  border-color: var(--hrms-profile-cal-btn-hover-border) !important;
  color: var(--hrms-profile-cal-btn-text) !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-active,
.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-down,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-active,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-down {
  background: var(--hrms-profile-cal-btn-active-bg) !important;
  border-color: var(--hrms-profile-cal-btn-active-border) !important;
  color: var(--hrms-profile-cal-btn-active-text) !important;
  z-index: 1;
}

.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-active .fc-text-arrow,
.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-down .fc-text-arrow,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-active .fc-text-arrow,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-down .fc-text-arrow {
  color: inherit !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-header .fc-button.fc-state-disabled,
.hrms-profile-page #attendanceCalendar .fc-header .fc-button.fc-state-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Prev / next â compact icon pill pair */
.hrms-profile-page .hrms-profile-calendar .fc-header-left > .fc-button-group,
.hrms-profile-page #attendanceCalendar .fc-header-left > .fc-button-group {
  border: 1px solid var(--hrms-profile-cal-btn-border);
  background: var(--hrms-profile-cal-btn-bg);
  box-shadow: none;
}

.hrms-profile-page .hrms-profile-calendar .fc-header-left > .fc-button-group > .fc-button,
.hrms-profile-page #attendanceCalendar .fc-header-left > .fc-button-group > .fc-button {
  min-width: var(--hrms-profile-cal-btn-height);
  padding: 0 0.55rem !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-header-left > .fc-button-group > .fc-prev-button,
.hrms-profile-page #attendanceCalendar .fc-header-left > .fc-button-group > .fc-prev-button {
  border-right: 1px solid var(--hrms-profile-cal-btn-border) !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-header-left > .fc-button-group > .fc-button.fc-corner-left,
.hrms-profile-page .hrms-profile-calendar .fc-header-left > .fc-button-group > .fc-button.fc-corner-right,
.hrms-profile-page #attendanceCalendar .fc-header-left > .fc-button-group > .fc-button.fc-corner-left,
.hrms-profile-page #attendanceCalendar .fc-header-left > .fc-button-group > .fc-button.fc-corner-right {
  border-radius: 0 !important;
}

/* Today â outline secondary, separate from nav */
.hrms-profile-page .hrms-profile-calendar .fc-today-button,
.hrms-profile-page #attendanceCalendar .fc-today-button {
  margin-left: 0.15rem !important;
  background: var(--hrms-profile-cal-btn-muted-bg) !important;
  border-color: var(--hrms-profile-cal-today-border) !important;
  color: var(--hrms-profile-cal-today-text) !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-today-button.fc-state-hover:not(.fc-state-disabled),
.hrms-profile-page #attendanceCalendar .fc-today-button.fc-state-hover:not(.fc-state-disabled) {
  background: var(--hrms-profile-cal-btn-hover-bg) !important;
  border-color: var(--hrms-profile-cal-btn-hover-border) !important;
  color: var(--hrms-profile-cal-today-text) !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-today-button.fc-state-disabled,
.hrms-profile-page #attendanceCalendar .fc-today-button.fc-state-disabled {
  background: var(--hrms-profile-cal-btn-muted-bg) !important;
  border-color: var(--hrms-profile-cal-today-border) !important;
  color: var(--hrms-profile-cal-today-text) !important;
}

/* Month | week | day â segmented view switcher */
.hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group,
.hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group {
  border: 1px solid var(--hrms-profile-cal-btn-border);
  background: var(--hrms-profile-cal-btn-muted-bg);
  padding: 2px;
  gap: 2px;
  border-radius: calc(var(--hrms-profile-cal-btn-radius) + 2px);
  overflow: visible;
}

.hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group > .fc-button,
.hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group > .fc-button {
  min-width: 3.25rem;
  padding: 0 0.75rem !important;
  border: 1px solid transparent !important;
  border-radius: calc(var(--hrms-profile-cal-btn-radius) - 2px) !important;
  background: transparent !important;
  color: var(--hrms-profile-cal-btn-text) !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group > .fc-button.fc-state-hover:not(.fc-state-active):not(.fc-state-down),
.hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group > .fc-button.fc-state-hover:not(.fc-state-active):not(.fc-state-down) {
  background: var(--hrms-profile-cal-btn-bg) !important;
  border-color: var(--hrms-profile-cal-btn-border) !important;
}

.hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group > .fc-button.fc-state-active,
.hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group > .fc-button.fc-state-down,
.hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group > .fc-button.fc-state-active,
.hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group > .fc-button.fc-state-down {
  background: var(--hrms-profile-cal-btn-active-bg) !important;
  border-color: var(--hrms-profile-cal-btn-active-border) !important;
  color: var(--hrms-profile-cal-btn-active-text) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group > .fc-button.fc-corner-left,
.hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group > .fc-button.fc-corner-right,
.hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group > .fc-button.fc-corner-left,
.hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group > .fc-button.fc-corner-right {
  border-radius: calc(var(--hrms-profile-cal-btn-radius) - 2px) !important;
}

.hrms-profile-page .fc-widget-content,
.hrms-profile-page .fc-day,
.hrms-profile-page .fc-day-top {
  border: 1px solid var(--hrms-profile-cal-cell-border) !important;
  background: var(--hrms-profile-cal-cell-bg) !important;
}

/* Agenda week / day (FC v3: .fc-agenda-view + .fc-time-grid; legacy: .fc-agenda-*) */
.hrms-profile-page .fc-agenda-view .fc-day-header,
.hrms-profile-page .fc-agenda-view .fc-widget-header th {
  padding: 0.45rem 0.4rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  vertical-align: middle !important;
}

.hrms-profile-page .fc-agenda-view .fc-day-header a {
  color: inherit !important;
}

.hrms-profile-page .fc-agenda-view .fc-axis {
  padding: 0.25rem 0.45rem !important;
  font-size: 0.72rem;
  color: var(--hrms-profile-cal-day) !important;
}

.hrms-profile-page .fc-agenda-view .fc-day-grid .fc-row {
  min-height: var(--hrms-profile-cal-allday-min) !important;
}

.hrms-profile-page .fc-agenda-allday .fc-day-content,
.hrms-profile-page .fc-agenda-view .fc-day-grid .fc-content-skeleton {
  min-height: var(--hrms-profile-cal-allday-min);
}

.hrms-profile-page .fc-agenda-slots td div,
.hrms-profile-page .fc-time-grid .fc-slats td {
  height: auto !important;
  min-height: var(--hrms-profile-cal-slot-min) !important;
}

.hrms-profile-page .fc-agenda-divider-inner {
  min-height: 3px;
}

.hrms-profile-page .fc-time-grid-event,
.hrms-profile-page .fc-agenda-view .fc-day-grid-event {
  min-height: 1.35em;
}

.hrms-profile-page .fc-time-grid-event .fc-content,
.hrms-profile-page .fc-day-grid-event .fc-content {
  padding: 2px 4px;
  line-height: 1.3;
}

.hrms-profile-page .fc-scroller {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.hrms-profile-page .fc-view-container {
  min-width: 0;
}

@media (max-width: 575.98px) {
  .hrms-profile-page .fc-toolbar .fc-center,
  .hrms-profile-page .fc-header-center {
    flex: 1 1 100%;
    order: -1;
    justify-content: center;
  }

  .hrms-profile-page .hrms-profile-calendar .fc-header .fc-button,
  .hrms-profile-page #attendanceCalendar .fc-header .fc-button {
    padding: 0 0.65rem !important;
    font-size: 0.75rem;
  }

  .hrms-profile-page .hrms-profile-calendar .fc-header-right > .fc-button-group > .fc-button,
  .hrms-profile-page #attendanceCalendar .fc-header-right > .fc-button-group > .fc-button {
    min-width: 2.75rem;
  }
}

/* Dark theme: smart-card panel stays light â same toolbar tokens as light (readable on white) */
[data-theme="dark"] .hrms-profile-page .hrms-profile-calendar,
[data-theme="dark"] .hrms-profile-page #attendanceCalendar {
  --hrms-profile-cal-title: #0f172a;
  --hrms-profile-cal-day: #475569;
  --hrms-profile-cal-day-bg: #f1f5f9;
  --hrms-profile-cal-btn-bg: #fff;
  --hrms-profile-cal-btn-muted-bg: #f8fafc;
  --hrms-profile-cal-btn-border: #e2e8f0;
  --hrms-profile-cal-btn-text: #334155;
  --hrms-profile-cal-btn-hover-bg: #f1f5f9;
  --hrms-profile-cal-btn-hover-border: #cbd5e1;
  --hrms-profile-cal-btn-active-bg: var(--hrms-primary, #487fff);
  --hrms-profile-cal-btn-active-text: #fff;
  --hrms-profile-cal-btn-active-border: var(--hrms-primary, #487fff);
  --hrms-profile-cal-today-text: #475569;
  --hrms-profile-cal-today-border: #cbd5e1;
  --hrms-profile-cal-cell-bg: #fff;
  --hrms-profile-cal-cell-border: #f1f5f9;
  --hrms-profile-cal-day-num: #334155;
}

@media (max-width: 767.98px) {
  .hrms-profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hrms-profile-gem {
    flex: 1 1 calc(33.333% - 0.5rem);
  }

  .hrms-profile-meta__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ---------- Auth pages (sign-in, etc.) ---------- */
.auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--hrms-font);
  background: #f1f5f9;
}

.auth-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

@media (min-width: 992px) {
  .auth-shell {
    flex-direction: row;
  }
}

.auth-panel-left {
  --auth-panel-deep: #0b1f4a;
  --auth-panel-mid: #1e3a5f;
  --auth-panel-bright: #1e40af;
  --auth-accent-yellow: #fbbf24;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  background: linear-gradient(145deg, var(--auth-panel-deep) 0%, var(--auth-panel-mid) 52%, var(--auth-panel-bright) 100%);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .auth-panel-left {
    flex: 0 0 48%;
    max-width: 48%;
    padding: 2.5rem 3rem;
    overflow-y: auto;
  }
}

.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.auth-panel-left__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.auth-panel-left .auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

.auth-panel-left .auth-brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 88px;
  max-width: min(260px, 100%);
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.auth-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.auth-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.auth-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0;
  max-width: 380px;
}

.auth-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-feature-item .fi {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--auth-accent-yellow, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--auth-panel-bright, #1e40af);
  flex-shrink: 0;
}

.auth-feature-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.auth-stat {
  flex: 1 1 calc(50% - 6px);
  min-width: 120px;
  padding: 14px 16px;
  border-radius: var(--hrms-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.auth-stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.auth-panel-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.25rem;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
  position: relative;
}

@media (min-width: 992px) {
  .auth-panel-right {
    flex: 1 1 52%;
    padding: 2.5rem;
  }
}

.auth-panel-right::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 127, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8edf3;
  box-shadow: var(--hrms-shadow-md);
  padding: 2rem 1.75rem;
}

.auth-card.smart-card {
  height: auto;
}

.auth-card .auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.auth-card .auth-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}

.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding: 12px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  box-shadow: var(--hrms-shadow);
  width: fit-content;
}

.auth-mobile-brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 200px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.auth-mobile-brand span {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
}

@media (min-width: 992px) {
  .auth-mobile-brand {
    display: none;
  }
}

.login-type-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.login-type-tabs input[type="radio"] {
  display: none;
}

.login-type-tabs label {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.login-type-tabs input:checked + label {
  background: #fff;
  color: var(--hrms-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-field {
  position: relative;
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.auth-field label.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.auth-field .field-icon {
  position: absolute;
  left: 14px;
  bottom: 0;
  height: 48px;
  display: flex;
  align-items: center;
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
}

.auth-field .field-icon-right {
  position: absolute;
  right: 14px;
  bottom: 0;
  height: 48px;
  display: flex;
  align-items: center;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
}

.auth-field input {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 42px;
  font-size: 0.9rem;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--hrms-primary);
  box-shadow: 0 0 0 3px rgba(72, 127, 255, 0.12);
  background: #fff;
}

.auth-field input::placeholder {
  color: #94a3b8;
}

.auth-link {
  color: var(--hrms-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--hrms-primary-dark);
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: var(--auth-panel-bright, #1e40af);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s, transform 0.1s;
}

.auth-btn:hover {
  background: var(--auth-panel-mid, #1e3a5f);
}

.auth-btn:active {
  transform: scale(0.99);
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.auth-footer a {
  color: var(--hrms-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer .auth-muted-link {
  color: #64748b;
  font-weight: 500;
}

.auth-footer .auth-muted-link:hover {
  color: #334155;
}

.auth-alert {
  border-radius: 10px;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

/* ---------- Employee portal ---------- */
.hrms-employee-portal .settings-page-title {
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.hrms-employee-portal .settings-page-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

.hrms-employee-portal .smart-card {
  border: 1px solid #e8edf3;
  border-radius: var(--hrms-radius);
  box-shadow: var(--hrms-shadow);
  background: #fff;
}

.hrms-employee-portal .hrms-emp-gem-card__icon {
  color: var(--hrms-primary);
  stroke: currentColor;
}

.hrms-employee-portal .hrms-emp-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
}

.hrms-employee-portal .hrms-emp-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  min-height: 52px;
}

/* Gem chips â tinted background + matching icon/label (portal + dashboard) */
.hrms-employee-portal .hrms-emp-stat-chip--green,
.hrms-emp-dashboard .hrms-emp-stat-chip--green {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #86efac;
}
.hrms-employee-portal .hrms-emp-stat-chip--green [data-lucide],
.hrms-emp-dashboard .hrms-emp-stat-chip--green [data-lucide],
.hrms-employee-portal .hrms-emp-stat-chip--green .hrms-emp-stat-chip__label,
.hrms-emp-dashboard .hrms-emp-stat-chip--green .hrms-emp-stat-chip__label {
  color: #16a34a;
}
.hrms-employee-portal .hrms-emp-stat-chip--green .hrms-emp-stat-chip__value,
.hrms-emp-dashboard .hrms-emp-stat-chip--green .hrms-emp-stat-chip__value {
  color: #14532d;
}

.hrms-employee-portal .hrms-emp-stat-chip--yellow,
.hrms-emp-dashboard .hrms-emp-stat-chip--yellow {
  background: linear-gradient(145deg, #fefce8 0%, #fef08a 100%);
  border-color: #fde047;
}
.hrms-employee-portal .hrms-emp-stat-chip--yellow [data-lucide],
.hrms-emp-dashboard .hrms-emp-stat-chip--yellow [data-lucide],
.hrms-employee-portal .hrms-emp-stat-chip--yellow .hrms-emp-stat-chip__label,
.hrms-emp-dashboard .hrms-emp-stat-chip--yellow .hrms-emp-stat-chip__label {
  color: #ca8a04;
}
.hrms-employee-portal .hrms-emp-stat-chip--yellow .hrms-emp-stat-chip__value,
.hrms-emp-dashboard .hrms-emp-stat-chip--yellow .hrms-emp-stat-chip__value {
  color: #854d0e;
}

.hrms-employee-portal .hrms-emp-stat-chip--silver,
.hrms-emp-dashboard .hrms-emp-stat-chip--silver {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}
.hrms-employee-portal .hrms-emp-stat-chip--silver [data-lucide],
.hrms-emp-dashboard .hrms-emp-stat-chip--silver [data-lucide],
.hrms-employee-portal .hrms-emp-stat-chip--silver .hrms-emp-stat-chip__label,
.hrms-emp-dashboard .hrms-emp-stat-chip--silver .hrms-emp-stat-chip__label {
  color: #64748b;
}
.hrms-employee-portal .hrms-emp-stat-chip--silver .hrms-emp-stat-chip__value,
.hrms-emp-dashboard .hrms-emp-stat-chip--silver .hrms-emp-stat-chip__value {
  color: #334155;
}

.hrms-employee-portal .hrms-emp-stat-chip--black,
.hrms-emp-dashboard .hrms-emp-stat-chip--black {
  background: linear-gradient(145deg, #f1f5f9 0%, #cbd5e1 100%);
  border-color: #94a3b8;
}
.hrms-employee-portal .hrms-emp-stat-chip--black [data-lucide],
.hrms-emp-dashboard .hrms-emp-stat-chip--black [data-lucide],
.hrms-employee-portal .hrms-emp-stat-chip--black .hrms-emp-stat-chip__label,
.hrms-emp-dashboard .hrms-emp-stat-chip--black .hrms-emp-stat-chip__label {
  color: #1e293b;
}
.hrms-employee-portal .hrms-emp-stat-chip--black .hrms-emp-stat-chip__value,
.hrms-emp-dashboard .hrms-emp-stat-chip--black .hrms-emp-stat-chip__value {
  color: #0f172a;
}

.hrms-employee-portal .hrms-emp-stat-chip--red,
.hrms-emp-dashboard .hrms-emp-stat-chip--red {
  background: linear-gradient(145deg, #fef2f2 0%, #fecaca 100%);
  border-color: #fca5a5;
}
.hrms-employee-portal .hrms-emp-stat-chip--red [data-lucide],
.hrms-emp-dashboard .hrms-emp-stat-chip--red [data-lucide],
.hrms-employee-portal .hrms-emp-stat-chip--red .hrms-emp-stat-chip__label,
.hrms-emp-dashboard .hrms-emp-stat-chip--red .hrms-emp-stat-chip__label {
  color: #dc2626;
}
.hrms-employee-portal .hrms-emp-stat-chip--red .hrms-emp-stat-chip__value,
.hrms-emp-dashboard .hrms-emp-stat-chip--red .hrms-emp-stat-chip__value {
  color: #991b1b;
}

.hrms-employee-portal .hrms-emp-stat-chip--salary,
.hrms-emp-dashboard .hrms-emp-stat-chip--salary {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.hrms-employee-portal .hrms-emp-stat-chip--salary [data-lucide],
.hrms-emp-dashboard .hrms-emp-stat-chip--salary [data-lucide],
.hrms-employee-portal .hrms-emp-stat-chip--salary .hrms-emp-stat-chip__label,
.hrms-emp-dashboard .hrms-emp-stat-chip--salary .hrms-emp-stat-chip__label {
  color: #2563eb;
}
.hrms-employee-portal .hrms-emp-stat-chip--salary .hrms-emp-stat-chip__value,
.hrms-emp-dashboard .hrms-emp-stat-chip--salary .hrms-emp-stat-chip__value,
.hrms-employee-portal .hrms-emp-stat-chip--salary .hrms-emp-salary-masked,
.hrms-emp-dashboard .hrms-emp-stat-chip--salary .hrms-emp-salary-masked {
  color: #1d4ed8 !important;
}

.hrms-employee-portal .hrms-emp-stat-chip__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.hrms-employee-portal .hrms-emp-stat-chip__value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.navbar-search .navbar-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.navbar-search {
  position: relative;
}

[data-theme="dark"] .hrms-employee-portal .smart-card {
  background: #161b22;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hrms-employee-portal .settings-page-title {
  color: #f1f5f9;
}

[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--green {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-color: rgba(74, 222, 128, 0.35);
}
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--green [data-lucide],
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--green .hrms-emp-stat-chip__label { color: #4ade80; }
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--green .hrms-emp-stat-chip__value { color: #bbf7d0; }

[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--yellow {
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.22) 0%, rgba(234, 179, 8, 0.1) 100%);
  border-color: rgba(250, 204, 21, 0.35);
}
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--yellow [data-lucide],
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--yellow .hrms-emp-stat-chip__label { color: #facc15; }
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--yellow .hrms-emp-stat-chip__value { color: #fef08a; }

[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--silver {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.08) 100%);
  border-color: rgba(148, 163, 184, 0.35);
}
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--silver [data-lucide],
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--silver .hrms-emp-stat-chip__label { color: #cbd5e1; }
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--silver .hrms-emp-stat-chip__value { color: #e2e8f0; }

[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--black {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(100, 116, 139, 0.45);
}
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--black [data-lucide],
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--black .hrms-emp-stat-chip__label { color: #94a3b8; }
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--black .hrms-emp-stat-chip__value { color: #f1f5f9; }

[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--red {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.22) 0%, rgba(239, 68, 68, 0.1) 100%);
  border-color: rgba(248, 113, 113, 0.35);
}
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--red [data-lucide],
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--red .hrms-emp-stat-chip__label { color: #f87171; }
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--red .hrms-emp-stat-chip__value { color: #fecaca; }

[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--salary {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.1) 100%);
  border-color: rgba(96, 165, 250, 0.35);
}
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--salary [data-lucide],
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--salary .hrms-emp-stat-chip__label { color: #60a5fa; }
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--salary .hrms-emp-stat-chip__value,
[data-theme="dark"] .hrms-employee-portal .hrms-emp-stat-chip--salary .hrms-emp-salary-masked { color: #bfdbfe !important; }

.hrms-employee-portal .emp-attendance-card .emp-attendance-progress {
  height: 6px;
  border-radius: 4px;
}

.hrms-employee-portal .emp-attendance-card .emp-attendance-times {
  line-height: 1.5;
}

.hrms-employee-portal .emp-attendance-card #attendanceElapsedTime {
  font-size: 0.95rem;
}

/* Employee leaves page */
.hrms-employee-leaves .hrms-leave-balance-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #f8fafc;
}

.hrms-employee-leaves .hrms-leave-balance-item:last-child {
  margin-bottom: 0 !important;
}

.hrms-employee-leaves .hrms-leave-progress {
  height: 5px;
  border-radius: 4px;
}

.hrms-employee-leaves .hrms-leave-history-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid #e8edf3;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
}

.hrms-employee-leaves .hrms-leave-history-table tbody td {
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

.hrms-employee-leaves .hrms-leave-form .form-label {
  font-weight: 600;
  color: #475569;
}

[data-theme="dark"] .hrms-employee-leaves .hrms-leave-balance-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hrms-employee-leaves .hrms-leave-history-table thead th {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* Employee portal â sticky bottom nav (mobile) */
.hrms-emp-bottom-nav {
  display: none;
}

@media (max-width: 1199px) {
  body.employee-portal {
    --hrms-emp-bottom-nav-h: 56px;
    padding-bottom: calc(var(--hrms-emp-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  body.employee-portal .dashboard-main-body {
    padding-bottom: calc(28px + var(--hrms-emp-bottom-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.employee-portal .d-footer {
    display: none;
  }

  .hrms-emp-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .hrms-emp-bottom-nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: 100%;
    min-height: var(--hrms-emp-bottom-nav-h);
  }

  .hrms-emp-bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.1;
    transition: color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .hrms-emp-bottom-nav__item:hover,
  .hrms-emp-bottom-nav__item:focus-visible {
    color: var(--hrms-primary, #2563eb);
    background: rgba(37, 99, 235, 0.06);
  }

  .hrms-emp-bottom-nav__item.is-active {
    color: var(--hrms-primary, #2563eb);
  }

  .hrms-emp-bottom-nav__item.is-active .hrms-emp-bottom-nav__icon {
    stroke: var(--hrms-primary, #2563eb);
  }

  .hrms-emp-bottom-nav__icon {
    display: block;
    flex-shrink: 0;
  }

  .hrms-emp-bottom-nav__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  [data-theme="dark"] .hrms-emp-bottom-nav {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
  }

  [data-theme="dark"] .hrms-emp-bottom-nav__item {
    color: #94a3b8;
  }

  [data-theme="dark"] .hrms-emp-bottom-nav__item.is-active,
  [data-theme="dark"] .hrms-emp-bottom-nav__item:hover {
    color: #60a5fa;
  }
}

/* HR â department details */
.hrms-dept-details .settings-page-title {
  font-size: 1.05rem;
  color: #0f172a;
}

.hrms-dept-details .settings-page-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
}

.hrms-dept-details .hrms-dept-desig-search {
  max-width: 140px;
  min-width: 100px;
}

.hrms-dept-details .hrms-dept-details-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf3;
}

.hrms-dept-details .hrms-dept-details-table tbody td {
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

.hrms-dept-details .smart-card .sc-header .sc-title {
  font-size: 0.9rem;
}

[data-theme="dark"] .hrms-dept-details .settings-page-title {
  color: #f1f5f9;
}

[data-theme="dark"] .hrms-dept-details .hrms-dept-details-table thead th {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* Employee â task details modal */
.hrms-task-modal-dialog {
  max-width: 440px;
}

.hrms-task-modal {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.hrms-task-modal .modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.hrms-task-modal__tile {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  height: 100%;
}

.hrms-task-modal__panel {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.hrms-task-modal__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.hrms-task-modal__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.hrms-task-modal__text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.hrms-task-modal__gems .badge {
  font-size: 0.7rem;
}

.hrms-task-modal__actions:empty {
  display: none;
}

.hrms-task-modal .modal-footer:has(.hrms-task-modal__actions:empty) {
  display: none;
}

.hrms-task-modal .modal-footer {
  background: #fff;
}

[data-theme="dark"] .hrms-task-modal {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1e293b;
}

[data-theme="dark"] .hrms-task-modal .modal-title,
[data-theme="dark"] .hrms-task-modal__value {
  color: #f1f5f9;
}

[data-theme="dark"] .hrms-task-modal__tile,
[data-theme="dark"] .hrms-task-modal__panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hrms-task-modal .modal-footer {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ================================================================
   Employee dashboard â row layout (attendance â gems â calendar|notices)
   ================================================================ */
body.employee-portal .dashboard-main-body:has(.hrms-emp-dashboard) {
  padding: 16px 20px 24px !important;
  font-size: 0.9375rem;
}

.hrms-emp-dashboard {
  --emp-dash-gap: 16px;
  color: #334155;
  max-width: 1280px;
  margin: 0 auto;
}

/* Override theme h1 (--h1 up to 4.5rem) on employee dashboard */
.hrms-emp-dashboard .hrms-emp-dash-welcome,
.hrms-emp-dashboard__header h1.hrms-emp-dash-welcome {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.15rem !important;
}

.hrms-emp-dash-welcome-sub {
  font-size: 0.7rem;
  color: #64748b;
}

.hrms-emp-dash-section-title {
  font-size: clamp(0.85rem, 1.6vw, 1rem) !important;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.hrms-emp-dashboard__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--emp-dash-gap);
}

.hrms-emp-dashboard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hrms-emp-dashboard__meta .badge {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45em 0.75em;
}

.hrms-emp-dashboard__layout {
  display: flex;
  flex-direction: column;
  gap: var(--emp-dash-gap);
}

/* Top row â Attendance | Gems (side by side on desktop) */
.hrms-emp-dashboard__top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--emp-dash-gap);
  align-items: stretch;
}

.hrms-emp-dashboard__top-row > .smart-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hrms-emp-dashboard__top-row .card-body,
.hrms-emp-dashboard__top-row .sc-body {
  flex: 1;
}

.hrms-emp-dashboard__top-row .hrms-emp-gems-grid {
  grid-template-columns: repeat(2, 1fr);
}

.hrms-emp-dashboard__top-row .hrms-emp-stat-chip {
  min-height: 58px;
  padding: 0.65rem 0.75rem;
}

.hrms-emp-dashboard__top-row .hrms-emp-stat-chip__value {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Attendance hero */
.emp-attendance-hero {
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.emp-attendance-hero__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.emp-attendance-hero__main {
  flex: 1;
  min-height: 0;
}

.emp-attendance-hero__date {
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.emp-attendance-hero__now {
  font-size: 0.7rem;
  line-height: 1.35;
}

.emp-attendance-hero__now strong {
  font-weight: 600;
  font-size: 0.75rem;
}

.emp-attendance-hero__timer {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--hrms-primary, #2563eb);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.emp-attendance-hero__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.emp-attendance-hero__status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2em 0.45em;
}

.emp-attendance-hero__times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.35rem 0.75rem;
  font-size: 0.7rem;
  margin-bottom: 0.65rem;
}

.emp-attendance-hero__times .text-muted {
  font-size: 0.65rem;
}

.emp-attendance-hero__times strong {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.7rem;
}

.emp-attendance-hero__progress .progress {
  height: 6px;
  border-radius: 6px;
}

.emp-attendance-hero__actions {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.emp-attendance-hero__btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.emp-attendance-hero__btn-row .btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-attendance-hero__btn-spacer {
  display: block;
}

.emp-attendance-hero__hint {
  font-size: 0.65rem;
  margin-top: 0.35rem;
  text-align: center;
}

.hrms-emp-dashboard #breakToggle[data-on-break="1"] {
  border-color: #f59e0b;
  color: #b45309;
  background: #fffbeb;
}

/* Row 2 â Gems full width */
.hrms-emp-gems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hrms-emp-dashboard .hrms-emp-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hrms-emp-dashboard .hrms-emp-stat-chip [data-lucide] {
  flex-shrink: 0;
  stroke: currentColor;
}

.hrms-emp-dashboard .hrms-emp-stat-chip__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hrms-emp-dashboard .hrms-emp-stat-chip__value {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hrms-emp-stat-chip--salary .hrms-emp-stat-chip__value-row {
  flex-wrap: nowrap;
}

.hrms-emp-salary-toggle {
  flex-shrink: 0;
  line-height: 1;
  color: #64748b !important;
  text-decoration: none !important;
}

.hrms-emp-salary-toggle:hover {
  color: var(--hrms-primary, #2563eb) !important;
}

.hrms-emp-salary-masked {
  letter-spacing: 0.12em;
  font-size: 1rem !important;
}

/* Row 3 â Calendar | Notices */
.hrms-emp-dashboard__bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--emp-dash-gap);
  align-items: stretch;
}

.hrms-emp-dashboard__calendar,
.hrms-emp-dashboard__notices {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.hrms-emp-dashboard__calendar .sc-body,
.hrms-emp-dashboard__notices .sc-body {
  flex: 1;
}

.hrms-emp-dashboard__legend .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2em 0.5em;
}

.hrms-emp-dashboard__notices-body {
  overflow-y: auto;
  font-size: 0.9rem;
  max-height: 420px;
}

.hrms-emp-dashboard__notices-body .notice-card .card-title {
  font-size: 0.95rem;
}

/* Calendar â readable size */
.hrms-emp-dashboard #attendanceCalendar .fc-toolbar {
  margin-bottom: 8px !important;
  padding: 4px 0 !important;
}

.hrms-emp-dashboard #attendanceCalendar .fc-toolbar h2 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

.hrms-emp-dashboard #attendanceCalendar .fc-button {
  padding: 0.35em 0.65em !important;
  font-size: 0.8rem !important;
}

.hrms-emp-dashboard #attendanceCalendar .fc-day-header {
  padding: 6px 2px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

.hrms-emp-dashboard #attendanceCalendar .fc-day-number {
  font-size: 0.8rem !important;
  padding: 2px 4px !important;
}

.hrms-emp-dashboard #attendanceCalendar .fc-event {
  font-size: 0.68rem !important;
  padding: 1px 3px !important;
}

.hrms-emp-dashboard #attendanceCalendar .fc-row {
  min-height: 2rem !important;
}

/* Salary accordion */
.hrms-emp-dashboard__salary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.hrms-emp-dashboard__salary-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
}

.hrms-emp-dashboard__salary-summary::-webkit-details-marker {
  display: none;
}

.hrms-emp-salary-pill__count {
  font-size: 1.15rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hrms-emp-dashboard__top-row .hrms-emp-gems-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .hrms-emp-dashboard__top-row {
    grid-template-columns: 1fr 1fr;
  }

  .hrms-emp-dashboard__bottom-row {
    grid-template-columns: 1fr 1fr;
  }

  .hrms-emp-dashboard__calendar,
  .hrms-emp-dashboard__notices {
    min-height: 360px;
  }
}

@media (max-width: 575px) {
  body.employee-portal .dashboard-main-body:has(.hrms-emp-dashboard) {
    padding: 12px 14px 20px !important;
  }

  .emp-attendance-hero__btn-row .btn {
    font-size: 0.6875rem;
    padding: 0.4rem 0.25rem;
  }
}

[data-theme="dark"] .hrms-emp-dash-welcome,
[data-theme="dark"] .hrms-emp-dash-section-title,
[data-theme="dark"] .emp-attendance-hero__times strong {
  color: #f1f5f9;
}

[data-theme="dark"] .emp-attendance-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .emp-attendance-hero__actions {
  border-top-color: #334155;
}

[data-theme="dark"] .hrms-emp-dashboard__salary {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hrms-emp-dashboard__salary-summary {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Employee â projects / task list */
.hrms-emp-projects .hrms-emp-stat-strip {
  gap: 6px;
}

.hrms-emp-projects .hrms-emp-stat-chip {
  flex: 1 1 calc(50% - 6px);
  padding: 0.4rem 0.5rem;
}

@media (min-width: 768px) {
  .hrms-emp-projects .hrms-emp-stat-chip {
    flex: 1 1 calc(25% - 6px);
  }
}

.hrms-emp-task-search {
  max-width: 100%;
  width: 10rem;
}

.hrms-emp-task-list-card .sc-header {
  flex-wrap: wrap;
}

@media (max-width: 575px) {
  .hrms-emp-task-search {
    width: 100%;
    order: 3;
  }
}

.hrms-emp-task-card {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
}

.hrms-emp-task-card:last-child {
  margin-bottom: 0;
}

.hrms-emp-task-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.hrms-emp-task-card__project {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.hrms-emp-task-card__task {
  font-size: 0.75rem;
  color: #64748b;
}

.hrms-emp-task-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hrms-emp-task-card__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.hrms-emp-task-card__val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.hrms-emp-task-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 0.45rem;
  border-top: 1px solid #e8edf3;
}

.hrms-emp-task-table-wrap .dataTables_wrapper {
  padding: 0.5rem 0.75rem 0.75rem;
}

.hrms-emp-task-table-wrap thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf3;
  padding: 0.5rem 0.65rem;
}

.hrms-emp-task-table-wrap tbody td {
  font-size: 0.82rem;
  padding: 0.5rem 0.65rem;
  vertical-align: middle;
}

[data-theme="dark"] .hrms-emp-task-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hrms-emp-task-card__project {
  color: #f1f5f9;
}

[data-theme="dark"] .hrms-emp-task-card__foot {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Payroll runs table */
.hrms-payroll-runs-card .table-responsive {
  overflow-x: auto;
}

.hrms-payroll-runs-table {
  table-layout: auto;
  min-width: 960px;
}

.hrms-payroll-runs-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hrms-payroll-runs-table tbody td {
  vertical-align: top;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.hrms-payroll-runs-table tbody td.hrms-payroll-net-cell,
.hrms-payroll-runs-table tbody td.hrms-payroll-status-cell,
.hrms-payroll-runs-table tbody td.hrms-col-actions {
  vertical-align: middle;
}

.hrms-payroll-employee {
  display: grid;
  gap: 0.15rem;
  min-width: 180px;
}

.hrms-payroll-attendance-col,
.hrms-payroll-attendance-cell {
  min-width: 132px;
  width: 132px;
}

.hrms-payroll-attendance {
  display: grid;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
}

.hrms-payroll-attendance__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.hrms-payroll-attendance__line strong {
  color: #475569;
  font-weight: 600;
}

.hrms-payroll-net-cell {
  min-width: 108px;
  font-size: 0.95rem;
}

.hrms-payroll-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 132px;
}

.hrms-payroll-status__form {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.hrms-payroll-status__select {
  width: 118px;
  min-width: 118px;
}

#payrollsTable th.hrms-salary-preview-col,
#payrollsTable td.hrms-salary-preview-cell {
  min-width: 240px;
  width: 22%;
}

#payrollsTable th.hrms-col-primary,
#payrollsTable td.hrms-col-primary {
  min-width: 190px;
}

/* Payroll list — salary breakdown preview (two-panel layout) */
.hrms-salary-preview-cell {
  min-width: 240px;
  vertical-align: top !important;
}

.hrms-salary-preview-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hrms-salary-preview-trigger:hover .hrms-salary-preview__grid,
.hrms-salary-preview-trigger:focus-visible .hrms-salary-preview__grid {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.hrms-salary-preview-trigger:focus-visible {
  outline: none;
}

.hrms-salary-preview-trigger__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
}

.hrms-salary-preview--compact .hrms-salary-preview__grid {
  min-width: 220px;
}

.hrms-salary-preview--modal .hrms-salary-preview__grid {
  min-width: 0;
}

.hrms-salary-preview-modal__summary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.9rem;
}

[data-theme="dark"] .hrms-salary-preview-modal__summary {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hrms-salary-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 400px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.hrms-salary-preview__panel {
  min-width: 0;
}

.hrms-salary-preview__panel--earn {
  border-right: 1px solid #e2e8f0;
}

.hrms-salary-preview__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hrms-salary-preview__panel--earn .hrms-salary-preview__panel-head {
  background: #dcfce7;
  color: #166534;
}

.hrms-salary-preview__panel--ded .hrms-salary-preview__panel-head {
  background: #fee2e2;
  color: #991b1b;
}

.hrms-salary-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.74rem;
  line-height: 1.35;
}

.hrms-salary-preview__row-label {
  flex: 1 1 auto;
  min-width: 0;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrms-salary-preview__row-amt {
  flex: 0 0 auto;
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.hrms-salary-preview__row-amt--earn {
  color: #15803d;
}

.hrms-salary-preview__row-amt--ded {
  color: #b91c1c;
}

.hrms-salary-preview__row--total {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.hrms-salary-preview__row--empty {
  justify-content: center;
  color: #94a3b8;
}

[data-theme="dark"] .hrms-salary-preview__grid {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .hrms-salary-preview__panel--earn {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hrms-salary-preview__row {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hrms-salary-preview__row-label {
  color: #cbd5e1;
}

[data-theme="dark"] .hrms-salary-preview__row--total {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}

/* Employee salary structure modal (HRMS GO style) */
.hrms-salary-structure-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}

.hrms-salary-structure-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbeafe;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
}

.hrms-salary-component-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.hrms-salary-component-meta__label {
  font-weight: 600;
  color: #0f172a;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrms-salary-component-meta__code {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.hrms-salary-component-meta__remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  line-height: 1;
  font-size: 1rem;
  padding: 0 2px;
  cursor: pointer;
}

.hrms-salary-component-meta__remove:hover {
  color: #dc2626;
}

.hrms-salary-structure-tag__label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrms-salary-structure-tag__code {
  font-size: 0.68rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.hrms-salary-structure-tag__remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  line-height: 1;
  font-size: 1rem;
  padding: 0 2px;
  cursor: pointer;
}

.hrms-salary-structure-tag__remove:hover {
  color: #dc2626;
}

.hrms-salary-comp-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hrms-salary-comp-type--earning {
  color: #166534;
  background: #dcfce7;
}

.hrms-salary-comp-type--deduction {
  color: #991b1b;
  background: #fee2e2;
}

.hrms-salary-structure-fields {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.hrms-salary-structure-field .form-label {
  font-size: 0.85rem;
}

.hrms-salary-structure-input .input-group-text {
  background: #fff;
}

.hrms-salary-structure-input__meta {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px !important;
  background: #f8fafc !important;
}

.hrms-salary-structure-input .salary-amount-input {
  min-width: 120px;
  max-width: 180px;
}

.hrms-salary-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hrms-salary-picker-option .hrms-salary-component-meta {
  width: 100%;
}

#salaryStructureModal .select2-container {
  width: 100% !important;
}

[data-theme="dark"] .hrms-salary-structure-tags {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hrms-salary-structure-tag {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(96, 165, 250, 0.25);
  color: #e2e8f0;
}

[data-theme="dark"] .hrms-salary-component-meta__label {
  color: #e2e8f0;
}

[data-theme="dark"] .hrms-salary-component-meta__code {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .hrms-salary-structure-input__meta {
  background: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .hrms-salary-structure-fields {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ---- Employee edit: profile card + compact form ---- */
.hrms-employee-edit-layout__profile {
  position: sticky;
  top: 1rem;
}

.hrms-employee-profile-card {
  border-radius: 12px;
  overflow: hidden;
}

.hrms-employee-profile-card .card-body {
  padding: 1.5rem 1.25rem;
}

.hrms-employee-profile-card__avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
}

.hrms-employee-profile-card__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 127, 255, 0.12);
  color: var(--hrms-primary, #487fff);
  font-size: 2rem;
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.hrms-employee-profile-card__avatar--photo {
  object-fit: cover;
}

.hrms-employee-profile-card__photo-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hrms-primary, #487fff);
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(72, 127, 255, 0.35);
  transition: transform 0.15s ease;
}

.hrms-employee-profile-card__photo-btn:hover {
  transform: scale(1.05);
  color: #fff;
}

.hrms-employee-profile-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.25rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.hrms-employee-profile-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}

.hrms-employee-profile-card__meta-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #94a3b8;
}

.hrms-employee-edit-form.hrms-employee-signup-form {
  --bs-gutter-y: 1rem;
}

.hrms-employee-edit-form .hrms-form-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.hrms-employee-edit-form .form-control,
.hrms-employee-edit-form .form-select {
  min-height: 38px;
  font-size: 0.8125rem;
}

.hrms-employee-edit-form .form-label {
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
  .hrms-employee-edit-layout__profile {
    position: static;
  }
}

[data-theme="dark"] .hrms-employee-profile-card__meta {
  border-top-color: #334155;
}

[data-theme="dark"] .hrms-employee-profile-card__meta li {
  color: #cbd5e1;
}

[data-theme="dark"] .hrms-employee-profile-card__avatar {
  border-color: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .hrms-employee-profile-card__photo-btn {
  border-color: #1e293b;
}

[data-theme="dark"] .hrms-employee-edit-form .hrms-form-section-title {
  color: #94a3b8;
}

/* Primary contact card (company settings) */
.hrms-primary-contact-card .settings-section-head {
  margin-bottom: 1.25rem;
}

.hrms-primary-contact-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(72, 127, 255, 0.06) 100%);
}

.hrms-primary-contact-preview__body {
  flex: 1 1 auto;
  min-width: 0;
}

.hrms-primary-contact-preview__edit {
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 8px;
  white-space: nowrap;
}

.hrms-primary-contact-preview__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.15);
  color: #6d28d9;
  font-size: 1.35rem;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.hrms-primary-contact-preview__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.hrms-primary-contact-preview__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.hrms-primary-contact-preview__role {
  font-size: 0.875rem;
  color: #475569;
}

.hrms-primary-contact-preview__email {
  font-size: 0.8125rem;
  color: #64748b;
  word-break: break-word;
}

.hrms-search-select-field .select2-container {
  width: 100% !important;
}

.hrms-search-select-field .form-label {
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .hrms-primary-contact-preview {
  border-color: rgba(167, 139, 250, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(72, 127, 255, 0.08) 100%);
}

[data-theme="dark"] .hrms-primary-contact-preview__avatar {
  border-color: #1e293b;
  color: #c4b5fd;
}

[data-theme="dark"] .hrms-primary-contact-preview__name {
  color: #f1f5f9;
}

[data-theme="dark"] .hrms-primary-contact-preview__role {
  color: #cbd5e1;
}

/* Sales incentives dashboard */
.hrms-incentive-stat {
  border-radius: 12px;
}

.hrms-incentive-stat__value {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.hrms-incentive-progress {
  min-width: 88px;
}

.hrms-incentive-progress .progress {
  height: 6px;
  border-radius: 999px;
}

.hrms-incentive-progress__pct {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Leave management: list / calendar toggle */
.hrms-view-toggle .btn.active {
  background: rgba(72, 127, 255, 0.1);
  border-color: rgba(72, 127, 255, 0.35);
  color: var(--hrms-primary, #487fff);
  font-weight: 600;
}

.hrms-leave-view-toggle {
  flex-shrink: 0;
}

.hrms-leave-status-filter .form-select {
  min-width: 142px;
  border-radius: 8px;
}

.hrms-leave-calendar-card .card-header.hrms-card-header {
  justify-content: flex-end;
}

.hrms-leave-calendar-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.hrms-leave-calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.hrms-leave-calendar-range {
  text-align: center;
  font-size: .9375rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hrms-leave-calendar-nav {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  gap: 2px;
}

.hrms-leave-calendar-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: .8125rem;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.hrms-leave-calendar-nav__btn:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
}

.hrms-leave-calendar-nav__btn--today {
  min-width: 64px;
}

.hrms-leave-calendar-pane {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hrms-leave-calendar {
  min-height: 400px;
}

.hrms-leave-calendar-dual .hrms-leave-calendar--pane {
  min-height: 360px;
}

.hrms-leave-calendar-dual .fc-toolbar {
  margin-bottom: 8px !important;
}

.hrms-leave-calendar-dual .fc-toolbar h2 {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
}

.hrms-leave-calendar-dual .fc-day-header {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
  padding: 8px 0;
  border-color: #e2e8f0 !important;
}

.hrms-leave-calendar-dual .fc-day-number {
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
  padding: 4px 6px;
}

.hrms-leave-calendar-dual .fc-day {
  border-color: #e8edf3 !important;
}

.hrms-leave-calendar-dual .fc-day.fc-today {
  background: rgba(72, 127, 255, 0.06) !important;
}

.hrms-leave-calendar-dual .fc-day.fc-today .fc-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  background: var(--hrms-primary, #487fff);
  color: #fff;
}

.hrms-leave-calendar-dual .fc-other-month .fc-day-number {
  color: #cbd5e1;
}

.hrms-leave-calendar-dual .fc-row .fc-content-skeleton {
  padding-bottom: 2px;
}

.hrms-leave-calendar-dual .fc-event {
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 3px 6px;
  margin: 1px 2px 2px;
  border: 0 !important;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}

.hrms-leave-calendar-dual .fc-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}

@media (max-width: 991px) {
  .hrms-leave-calendar-dual .hrms-leave-calendar--pane {
    min-height: 320px;
  }

  .hrms-leave-calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hrms-leave-calendar-nav {
    align-self: center;
  }
}

.hrms-leave-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hrms-leave-calendar-legend__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.hrms-leave-calendar-legend__pill--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.hrms-leave-calendar-legend__pill--approved {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.2);
}

.hrms-leave-calendar-legend__pill--rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
}

.hrms-leave-calendar-legend__pill--cancelled {
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.25);
}

.hrms-leave-calendar-card .fc-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}

/* Leave event detail modal */
.hrms-leave-event-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.hrms-leave-event-modal .modal-header {
  padding: 1.25rem 1.25rem .5rem;
}

.hrms-leave-event-modal__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hrms-leave-event-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(72, 127, 255, 0.1);
  color: var(--hrms-primary, #487fff);
  flex-shrink: 0;
}

.hrms-leave-event-modal__icon--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.hrms-leave-event-modal__icon--approved {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.hrms-leave-event-modal__icon--rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.hrms-leave-event-modal__icon--cancelled {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.hrms-leave-event-modal__headline {
  min-width: 0;
}

.hrms-leave-event-modal__headline .modal-title {
  font-size: 1.05rem;
  line-height: 1.3;
}

.hrms-leave-event-modal__type {
  display: block;
  font-size: .8125rem;
  color: #64748b;
}

.hrms-leave-event-modal__status-wrap {
  margin-bottom: 14px;
}

.hrms-leave-event-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hrms-leave-event-modal__status--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.hrms-leave-event-modal__status--approved {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.hrms-leave-event-modal__status--rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.hrms-leave-event-modal__status--cancelled {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.hrms-leave-event-modal__grid {
  display: grid;
  gap: 10px;
}

.hrms-leave-event-modal__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
}

.hrms-leave-event-modal__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.hrms-leave-event-modal__item-body {
  min-width: 0;
}

.hrms-leave-event-modal__label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.hrms-leave-event-modal__value {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}

.hrms-leave-event-modal__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.hrms-leave-event-modal__note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: #ca8a04;
  border: 1px solid #fde68a;
  flex-shrink: 0;
}

.hrms-leave-event-modal__note-text {
  font-size: .875rem;
  color: #713f12;
  line-height: 1.5;
}

.hrms-holiday-calendar-card .card-header.hrms-card-header {
  justify-content: flex-end;
}

.hrms-holiday-calendar {
  min-height: 520px;
}

.hrms-holiday-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.hrms-holiday-calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hrms-holiday-calendar-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.hrms-holiday-calendar-legend__dot--master { background: #487fff; }
.hrms-holiday-calendar-legend__dot--custom { background: #8b5cf6; }

.hrms-holiday-calendar-card .fc-toolbar {
  margin-bottom: 1rem !important;
}

.hrms-holiday-calendar-card .fc-event {
  font-size: 0.72rem;
  padding: 2px 4px;
  cursor: pointer;
}

/* Payroll periods table (inside card, not DataTable) */
.hrms-payroll-periods-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.hrms-payroll-periods-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  margin-bottom: 0;
}

.hrms-payroll-periods-table th,
.hrms-payroll-periods-table td {
  white-space: normal;
  vertical-align: middle;
}

.hrms-payroll-periods-table th:last-child,
.hrms-payroll-periods-table td:last-child {
  width: 168px;
}

.hrms-payroll-periods-table__status {
  width: 108px;
  min-width: 0;
  max-width: 108px;
}

.hrms-report-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hrms-report-card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.hrms-report-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
}

.hrms-notice-content-preview {
  max-width: 260px;
  color: #64748b;
  font-size: 0.875rem;
}

.hrms-notice-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hrms-notice-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.hrms-project-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hrms-project-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.hrms-project-kanban-column h6 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.hrms-project-kanban-dropzone {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hrms-project-kanban-dropzone.is-drag-over {
  border-color: var(--hrms-primary, #487fff) !important;
  background: rgba(72, 127, 255, 0.05) !important;
}

.hrms-project-kanban-card {
  cursor: grab;
}

.hrms-project-kanban-card:active {
  cursor: grabbing;
}

.hrms-project-kanban-card__inner {
  background: #fff;
}

[data-theme="dark"] .hrms-project-kanban-card__inner {
  background: var(--bs-body-bg, #1e293b);
}

[data-theme="dark"] .hrms-project-kanban-dropzone {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Shift cards (HRMS GO style) */
.hrms-shifts-toolbar .input-group .btn {
  white-space: nowrap;
}

.hrms-shift-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  min-height: 88px;
}

.hrms-shift-stat-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hrms-shift-stat-card__icon--neutral { background: #f1f5f9; color: #64748b; }
.hrms-shift-stat-card__icon--green { background: #ecfdf5; color: #16a34a; }
.hrms-shift-stat-card__icon--indigo { background: #eef2ff; color: #4338ca; }
.hrms-shift-stat-card__icon--sky { background: #eff6ff; color: #0284c7; }

.hrms-timesheet-card .card-header {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.hrms-timesheet-hours {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.82rem;
}

.hrms-timesheet-project {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.hrms-timesheet-table td.hrms-col-primary {
  min-width: 220px;
}

[data-theme="dark"] .hrms-timesheet-hours {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

[data-theme="dark"] .hrms-timesheet-project {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.hrms-shift-stat-card__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.hrms-shift-stat-card__label {
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.hrms-shift-card {
  border-radius: 16px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.hrms-shift-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hrms-shift-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hrms-shift-card__icon--day {
  background: #fff7ed;
  color: #ea580c;
}

.hrms-shift-card__icon--night {
  background: #eef2ff;
  color: #4338ca;
}

.hrms-shift-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.hrms-shift-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: .35em .65em;
}

.hrms-shift-badge--type {
  background: #fff7ed;
  color: #c2410c;
}

.hrms-shift-card[data-shift-type="night"] .hrms-shift-badge--type,
.shift-card-col[data-shift-type="night"] .hrms-shift-badge--type {
  background: #ede9fe;
  color: #6d28d9;
}

.hrms-shift-badge--active {
  background: #ecfdf5;
  color: #15803d;
}

.hrms-shift-card__actions .hrms-table-actions {
  flex-wrap: nowrap;
}

.hrms-shift-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.hrms-shift-card__metric-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.hrms-shift-card__metric-value {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: #334155;
}

.hrms-shift-card__desc {
  font-size: .82rem;
  color: #64748b;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.hrms-policy-card__icon {
  background: #eff6ff;
  color: #2563eb;
}

.hrms-policy-card .hrms-shift-card__grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 575px) {
  .hrms-policy-card .hrms-shift-card__grid {
    grid-template-columns: 1fr;
  }
}

/* Employee grid cards & list/grid hub */
.hrms-segmented-toggle {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  gap: 2px;
}

.hrms-segmented-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.hrms-segmented-toggle__btn:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

.hrms-segmented-toggle__btn.is-active {
  background: #fff;
  color: var(--hrms-primary, #487fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.hrms-employees-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 16px;
  padding: 14px 18px;
}

.hrms-employees-toolbar__search {
  min-width: 0;
}

.hrms-employees-toolbar__search .hrms-table-search {
  max-width: none;
}

.hrms-employees-toolbar__meta {
  min-width: 0;
}

.hrms-employees-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.hrms-employees-toolbar__per-page .form-select {
  width: auto;
  min-width: 68px;
  border-radius: 8px;
}

.hrms-employees-hub__header {
  background: #fff;
}

.hrms-employees-hub__grid-body {
  padding: 16px 18px 18px;
  background: #f8fafc;
}

.hrms-employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
}

.hrms-employees-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.hrms-employees-grid__empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 127, 255, 0.1);
  color: var(--hrms-primary, #487fff);
  font-size: 1.5rem;
}

.hrms-employees-hub__grid-footer {
  padding: 12px 18px;
}

.hrms-employees-hub--chart .hrms-employees-hub__chart-body {
  padding: 16px 18px 18px;
  background: #f8fafc;
}

.hrms-employees-hub--chart .hrms-org-chart-card,
.hrms-employees-hub--chart .hrms-org-chart-card + .card {
  border-radius: 14px;
}

.hrms-dept-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(72, 127, 255, 0.08);
  color: #1d4ed8;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrms-employees-table__row {
  transition: background-color .12s ease;
}

.hrms-employees-table tbody tr.hrms-employees-table__row:hover {
  background: #f8fafc;
}

.hrms-employees-table__email {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: .8125rem;
}

.hrms-employees-table__date {
  font-size: .8125rem;
  color: #334155;
  font-weight: 500;
}

.hrms-employee-cell--link:hover .hrms-employee-cell__name {
  color: var(--hrms-primary, #487fff);
}

.hrms-employee-card {
  min-width: 0;
}

.hrms-employee-card__shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hrms-employee-card:hover .hrms-employee-card__shell {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.hrms-employee-card--active .hrms-employee-card__shell {
  border-top: 3px solid #22c55e;
}

.hrms-employee-card--inactive .hrms-employee-card__shell {
  border-top: 3px solid #94a3b8;
}

.hrms-employee-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hrms-employee-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hrms-employee-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hrms-employee-card__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #487fff 0%, #6b9bff 100%);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.hrms-employee-card__name {
  font-size: .9375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}

.hrms-employee-card__id {
  font-size: .72rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: .02em;
}

.hrms-employee-card__email {
  font-size: .78rem;
  color: #64748b;
  padding-left: 60px;
  margin-top: -4px;
}

.hrms-employee-card__status {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  padding: .35em .65em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.hrms-employee-card__status--active {
  background: #ecfdf5;
  color: #15803d;
}

.hrms-employee-card__status--inactive {
  background: #f1f5f9;
  color: #64748b;
}

.hrms-employee-card__meta {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hrms-employee-card__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: #334155;
  font-weight: 500;
  min-width: 0;
}

.hrms-employee-card__meta-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.hrms-employee-card__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hrms-employee-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hrms-employee-card__action {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #fff;
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.hrms-employee-card__action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--hrms-primary, #487fff);
}

.hrms-employee-card__action--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.hrms-employee-card__toggle .form-check-input {
  cursor: pointer;
}

@media (max-width: 1199.98px) {
  .hrms-employees-toolbar {
    grid-template-columns: minmax(200px, 1fr) auto;
  }

  .hrms-employees-toolbar__meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .hrms-employees-toolbar {
    grid-template-columns: 1fr;
  }

  .hrms-employees-toolbar__actions {
    justify-content: stretch;
  }

  .hrms-segmented-toggle {
    flex: 1;
  }

  .hrms-segmented-toggle__btn {
    flex: 1;
  }

  .hrms-employees-toolbar__add {
    flex: 1 1 100%;
  }

  .hrms-employee-card__email {
    padding-left: 0;
    margin-top: 0;
  }
}

@media (max-width: 575.98px) {
  .hrms-segmented-toggle__label {
    display: none;
  }
}

