/* =============================================================
   HRMS - Redesigned Stylesheet (2026)
   ------------------------------------------------------------
   Modern, calm SaaS aesthetic. Every legacy selector is preserved
   so existing PHP templates render correctly with zero code
   changes on the server side.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- Palette aligned to provided design reference --- */
  --brand-50:  rgba(76, 159, 111, .08);
  --brand-100: rgba(76, 159, 111, .14);
  --brand-200: rgba(76, 159, 111, .22);
  --brand-500: #16a34a;
  --brand-600: #15803d;
  --brand-700: #1C242E;

  --ink-950: #000000;
  --ink-900: #000000;
  --ink-800: rgba(0, 0, 0, .92);
  --ink-700: #000000;
  --ink-600: rgba(0, 0, 0, .78);
  --ink-500: rgba(0, 0, 0, .62);
  --ink-400: rgba(0, 0, 0, .46);
  --ink-300: #E5E7EB;
  --ink-200: #E5E7EB;
  --ink-100: #F0F0F1;
  --ink-50:  #FAFAFA;

  /* Semantic values adapted to the approved palette */
  --success-50:  rgba(76, 159, 111, .10);
  --success-500: #4c9f6f;
  --success-700: #4c9f6f;

  --warn-50:  rgba(107, 114, 128, .10);
  --warn-500: #6B7280;
  --warn-700: #1C242E;

  --danger-50:  rgba(28, 36, 46, .08);
  --danger-500: #1C242E;
  --danger-700: #1C242E;

  --info-50:  rgba(76, 159, 111, .08);
  --info-500: #4c9f6f;
  --info-700: #1C242E;

  /* --- Legacy variables kept for compatibility --- */
  --navy-950: var(--ink-950);
  --navy-900: var(--ink-900);
  --navy-800: var(--ink-800);
  --navy-700: var(--ink-700);
  --ink:      var(--ink-900);
  --muted:    var(--ink-500);
  --border:   #E5E7EB;
  --bg:       #FFFFFF;
  --accent:      var(--brand-500);
  --accent-dark: var(--ink-950);
  --teal:   var(--brand-500);
  --green:  var(--brand-500);
  --orange: var(--ink-700);
  --red:    var(--ink-950);
  --purple: var(--ink-700);
  --white:  #ffffff;

  --radius:    16px;
  --radius-sm: 12px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(28, 36, 46, .03);
  --shadow-sm: 0 10px 24px rgba(28, 36, 46, .05);
  --shadow-md: 0 18px 38px rgba(28, 36, 46, .08);
  --shadow-lg: 0 28px 56px rgba(28, 36, 46, .12);

  --shadow: var(--shadow-sm);

  --ring: 0 0 0 4px rgba(76, 159, 111, .16);

  --sidebar-w: 280px;
  --sidebar-w-collapsed: 84px;
  --ui-font-size: 13px;
  --ui-control-height: 40px;
  --hrms-font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html { font-size: var(--ui-font-size); }

* { box-sizing: border-box; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }
*::-webkit-scrollbar-track { background: transparent; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--hrms-font-family);
  background: var(--bg);
  color: var(--ink-900);
  font-size: var(--ui-font-size);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-600); }

body, button, input, select, textarea {
  font-family: var(--hrms-font-family);
}

/* =============================================================
   Login page
   ============================================================= */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(76,159,111,.12), transparent 60%),
    radial-gradient(760px 420px at 100% 100%, rgba(28,36,46,.06), transparent 55%),
    radial-gradient(560px 320px at 50% 110%, rgba(107,114,128,.08), transparent 58%),
    linear-gradient(180deg, #F9FAFB 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.login-body::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.login-card {
  position: relative;
  background: rgba(255,255,255,.98);
  width: 420px;
  max-width: 92vw;
  padding: 40px 40px 32px;
  border-radius: 22px;
  box-shadow:
    0 40px 80px -20px rgba(3, 7, 18, .55),
    0 2px 4px rgba(3, 7, 18, .1),
    inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.6);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .brand-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 60px; height: 60px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--brand-500), var(--ink-950));
  color: var(--ink-950);
  border-radius: 18px;
  box-shadow: 0 14px 28px -10px rgba(76, 159, 111, .34);
  margin-bottom: 14px;
}
.login-brand h1 {
  margin: 4px 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}
.login-brand p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13.5px;
}
.login-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--ink-700);
  letter-spacing: .01em;
}
.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-form input:hover { border-color: var(--ink-300); }
.login-form input:focus {
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}
.btn-block {
  width: 100%;
  margin-top: 24px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}
.login-hint {
  text-align: center;
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--ink-200);
}
.login-hint b { color: var(--ink-800); font-weight: 700; }

/* =============================================================
   App shell
   ============================================================= */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: rgba(255,255,255,.96);
  color: var(--ink-700);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  border-right: 1px solid var(--border);
  box-shadow: 12px 0 36px rgba(28,36,46,.04);
  overflow-y: auto;
  z-index: 20;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 20px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ink-950);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.sidebar-brand .brand-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--ink-950));
  font-size: 16px;
  box-shadow: 0 10px 24px -10px rgba(76,159,111,.35);
}
.sidebar-brand .brand-text {
  color: var(--ink-950);
}

.sidebar-nav {
  flex: 1;
  padding: 14px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink-600);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s, transform .05s;
}
.sidebar-nav a::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background .15s;
}
.sidebar-nav a:hover {
  background: var(--ink-100);
  color: var(--ink-950);
}
.sidebar-nav a:hover::before { background: rgba(148,163,184,.5); }
.sidebar-nav a.active {
  background: transparent;
  color: #10B77F;
  font-weight: 600;
  box-shadow: none;
}
.sidebar-nav a.active::before { background: transparent; }

.nav-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  margin: 16px 14px 6px;
  padding-top: 6px;
  font-weight: 700;
}
.nav-group-label:first-child { margin-top: 4px; }

.sidebar-footer {
  padding: 14px 14px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.88);
  position: sticky; bottom: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--ink-100);
  border: 1px solid var(--border);
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--ink-950));
  color: var(--ink-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  box-shadow: 0 8px 20px -10px rgba(76,159,111,.30);
  flex-shrink: 0;
}
.u-name  { font-size: 13.5px; font-weight: 700; color: var(--ink-950); line-height: 1.2; }
.u-role  { font-size: 11px; color: var(--ink-600); margin-top: 2px; text-transform: capitalize; }
.logout-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink-950);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.logout-link:hover {
  background: var(--brand-50);
  color: var(--brand-500);
}

/* --- Main content --- */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  background: rgba(249,250,251,.92);
  backdrop-filter: blur(14px);
  padding: 2px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: 5;
}
.topbar h1 {
  font-size: 22px;
  margin: 0;
  color: var(--ink-950);
  font-weight: 800;
  letter-spacing: -.02em;
}
.topbar-subtitle {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.topbar-date {
  font-size: 12.5px;
  color: var(--ink-700);
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.content-area { padding: 2px 32px 24px; }

/* =============================================================
   Alerts
   ============================================================= */
.alert {
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  border: 1px solid transparent;
  box-shadow: var(--shadow-xs);
}
.alert::before {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
}
.alert-success {
  background: var(--success-50);
  color: var(--success-700);
  border-color: var(--brand-100);
}
.alert-success::before { content: '✓'; font-weight: 800; }
.alert-danger {
  background: var(--danger-50);
  color: var(--danger-700);
  border-color: var(--brand-500);
}
.alert-danger::before { content: '!'; font-weight: 800; }

/* =============================================================
   Stat cards
   ============================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px 90px at 100% 0%, var(--_glow, transparent), transparent 70%);
  pointer-events: none;
  opacity: .7;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: var(--_bg, var(--brand-500));
  opacity: .9;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-300);
}
.stat-card .stat-icon {
  font-size: 22px;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink-950);
  flex-shrink: 0;
  box-shadow: 0 10px 24px -12px var(--_shadow, rgba(76,159,111,.25));
  background: var(--_bg, linear-gradient(135deg, var(--brand-500), var(--brand-700)));
}
.stat-num  {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-950);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat-label {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 4px;
  font-weight: 500;
}
/* Color modifiers (preserved) */
.stat-card.blue   { --_bg: linear-gradient(135deg, #4c9f6f, #1C242E); --_shadow: rgba(76,159,111,.28); --_glow: rgba(76,159,111,.12); }
.stat-card.green  { --_bg: linear-gradient(135deg, #4c9f6f, #4c9f6f); --_shadow: rgba(76,159,111,.28); --_glow: rgba(76,159,111,.14); }
.stat-card.orange { --_bg: linear-gradient(135deg, #6B7280, #1C242E); --_shadow: rgba(107,114,128,.22); --_glow: rgba(107,114,128,.10); }
.stat-card.teal   { --_bg: linear-gradient(135deg, #1C242E, #4c9f6f); --_shadow: rgba(28,36,46,.18); --_glow: rgba(76,159,111,.10); }
.stat-card.red    { --_bg: linear-gradient(135deg, #1C242E, #1C242E); --_shadow: rgba(28,36,46,.20); --_glow: rgba(28,36,46,.10); }
.stat-card.purple { --_bg: linear-gradient(135deg, #6B7280, #4c9f6f); --_shadow: rgba(107,114,128,.24); --_glow: rgba(76,159,111,.08); }

/* =============================================================
   Summary cards, chips, KPI list
   ============================================================= */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.summary-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.summary-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--ink-950));
  opacity: .0;
  transition: opacity .2s;
}
.summary-card:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.summary-card:hover::before { opacity: 1; }
.summary-card span {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.summary-card strong {
  color: var(--ink-950);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.module-summary-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--brand-100);
}
.summary-chip.muted {
  background: var(--ink-100);
  color: var(--ink-600);
  border-color: var(--ink-200);
}

.kpi-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.kpi-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--ink-50);
  transition: background .15s, border-color .15s;
}
.kpi-list li:hover {
  background: #ffffff;
  border-color: var(--ink-300);
}
.kpi-list li span { color: var(--ink-500); font-weight: 500; font-size: 13px; }
.kpi-list li strong { color: var(--ink-950); font-size: 16px; font-weight: 800; }

/* =============================================================
   Cards & grids
   ============================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card.full-width { grid-column: 1 / -1; }
.card-header {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink-950);
  font-size: 15px;
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #F9FAFB);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-body { padding: 20px; }
.scroll-body { max-height: 560px; overflow-y: auto; }
.form-card { max-width: 1200px; width: 100%; }

.section-intro {
  margin: 0 0 16px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.55;
}

/* =============================================================
   Tables
   ============================================================= */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}
.master-table-wrap {
  background: #ffffff;
}
.table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
}
.table thead,
.table tbody,
.table tbody tr {
  background: #ffffff;
}
.table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--ink-50);
  color: var(--ink-500);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.table th:first-child { border-top-left-radius: 10px; }
.table th:last-child  { border-top-right-radius: 10px; }
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-800);
  vertical-align: middle;
  background: transparent;
}
.table th, .table td { box-sizing: border-box; }

/* ---------- Shared action-icon tooltip (View / Edit / Delete / Reset Password) ----------
   Reuses the [title] attribute already present on every .btn-icon.icon-only so the
   Reset Password key button shows the same black/white tooltip as its peers. */
.btn-icon.icon-only { position: relative; }
.btn-icon.icon-only[title]:hover::after,
.btn-icon.icon-only[title]:focus-visible::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 0);
  background: #111827;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 8px 20px rgba(15,23,42,.28);
  animation: btn-icon-tip-in 120ms ease-out;
}
.btn-icon.icon-only[title]:hover::before,
.btn-icon.icon-only[title]:focus-visible::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #111827;
  pointer-events: none;
  z-index: 30;
  animation: btn-icon-tip-in 120ms ease-out;
}
@keyframes btn-icon-tip-in {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--ink-50); }

.empty-cell {
  text-align: center;
  color: var(--ink-400);
  padding: 36px !important;
  font-style: italic;
  font-size: 13px;
}
.muted-text { color: var(--ink-500); font-size: 12px; }
.actions { white-space: nowrap; }

/* --- Row-table --- */
.row-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.row-table-head, .row-table-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}
.row-table-head {
  background: var(--ink-50);
  color: var(--ink-500);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.row-table-row {
  border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px;
  transition: background .1s;
}
.row-table-row:hover { background: var(--ink-50); }
.row-table-row:last-child { border-bottom: none; }
.inline-select, .inline-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #ffffff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.inline-select:focus, .inline-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}

/* =============================================================
   Badges
   ============================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
  line-height: 1.4;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.badge-success { background: var(--success-50); color: var(--success-700); border-color: var(--brand-100); }
.badge-danger  { background: var(--danger-50);  color: var(--danger-700);  border-color: var(--brand-500); }
.badge-warning { background: var(--warn-50);    color: var(--warn-700);    border-color: var(--ink-300); }
.badge-muted   { background: var(--ink-100);    color: var(--ink-600);     border-color: var(--ink-200); }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s, border-color .15s;
  font-family: inherit;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--ink-950));
  color: var(--ink-950);
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 10px 20px -10px rgba(76,159,111,.32);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--ink-950), var(--brand-500));
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 12px 24px -10px rgba(76,159,111,.34);
}
.btn-secondary {
  background: #ffffff;
  color: var(--ink-800);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--ink-50);
  border-color: var(--ink-300);
}
.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn-icon {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink-600);
  transition: background .15s, border-color .15s, color .15s, transform .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.btn-icon:hover {
  background: var(--ink-100);
  border-color: var(--ink-200);
}

/* HRMS action-icon polish — kill filled backgrounds in action button columns
   so the icon + tooltip are shown cleanly without circles/squares. */
.master-action-group .btn-icon.record-action-icon,
.module-modern-action-group .btn-icon.record-action-icon,
.actions.action-icons-only .btn-icon,
.employee-card-actions .btn-icon,
.master-action-group .btn-icon.record-action-icon:hover,
.master-action-group .btn-icon.record-action-icon:focus,
.master-action-group .btn-icon.record-action-icon:focus-visible,
.module-modern-action-group .btn-icon.record-action-icon:hover,
.module-modern-action-group .btn-icon.record-action-icon:focus,
.module-modern-action-group .btn-icon.record-action-icon:focus-visible,
.actions.action-icons-only .btn-icon:hover,
.actions.action-icons-only .btn-icon:focus,
.actions.action-icons-only .btn-icon:focus-visible,
.employee-card-actions .btn-icon:hover,
.employee-card-actions .btn-icon:focus,
.employee-card-actions .btn-icon:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px !important;
}

.master-table-wrap { display:flex; justify-content:center; }
.master-table-wrap .table-responsive { max-width: 100%; }
.master-table { width: 100%; margin-left: auto; margin-right: auto; }
.master-table th, .master-table td { padding: 10px 12px; }
.master-table th { white-space: nowrap; }
.master-table td { vertical-align: middle; word-break: break-word; }
.master-table th:nth-child(1), .master-table td:nth-child(1) { width: 44px; text-align: center; }
.master-table th:nth-child(2), .master-table td:nth-child(2) { min-width: 160px; }
.master-table th:nth-child(4), .master-table td:nth-child(4) { min-width: 160px; max-width: 280px; }
.master-table th:nth-child(5), .master-table td:nth-child(5) { white-space: nowrap; width: 140px; }
.master-table th:nth-child(6), .master-table td:nth-child(6) { white-space: nowrap; width: 96px; }
.master-table th:nth-child(7), .master-table td:nth-child(7) { white-space: nowrap; width: 110px; text-align: center; }

.master-description-cell { color: var(--ink-700); font-size: 13px; line-height: 1.4; }
.btn-icon.danger:hover  { background: var(--danger-50);  border-color: var(--brand-500); color: var(--danger-700); }
.btn-icon.success:hover { background: var(--success-50); border-color: var(--brand-100); color: var(--success-700); }

/* =============================================================
   Toolbar / forms
   ============================================================= */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-icon-label {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.search-form input,
.search-form input[type="date"] {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  min-width: 240px;
  background: #ffffff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.search-form input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}

/* =============================================================
   Live filter bar (Employees list, etc.) — inline, AJAX-driven
   ============================================================= */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(160px, 1fr)) auto;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.filter-bar input[type="text"] {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  min-width: 0;
  width: 100%;
  background: #ffffff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.filter-bar select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #ffffff;
  color: var(--ink-900);
  min-width: 0;
  width: 100%;
}
.filter-bar input[type="text"]:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}
.filter-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink-200);
  border-top-color: var(--brand-500);
  opacity: 0;
  visibility: hidden;
  animation: filter-spin .6s linear infinite;
  flex-shrink: 0;
}
.filter-spinner.active { opacity: 1; visibility: visible; }
@keyframes filter-spin { to { transform: rotate(360deg); } }
#employeeTableWrapper { transition: opacity .1s; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-span, .form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-700);
  letter-spacing: .005em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--ink-300);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}
.form-group textarea { min-height: 84px; resize: vertical; }
.form-group select {
  /* Native browser dropdown arrow - no SVG/image used */
  background: #ffffff;
  padding-right: 14px;
}
.form-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 900px) {
  .content-area { padding: 2px 20px 24px; }
  .topbar { padding: 2px 20px; }
}
@media (max-width: 700px) {
  :root { --sidebar-w: 72px; }
  .sidebar { width: var(--sidebar-w); }
  .sidebar-brand { justify-content: center; padding: 18px 8px; }
  .sidebar-brand .brand-text { display: none; }
  .sidebar-nav a { justify-content: center; text-align: center; padding: 12px 6px; white-space: nowrap; overflow: hidden; }
  .nav-item-label { display: none; }
  .nav-item-icon { margin-right: 0; font-size: 18px; }
  .nav-collapse-btn { justify-content: center; padding: 12px 6px; }
  .nav-collapse-btn .ncb-label, .nav-collapse-btn .ncb-chevron { display: none; }
  .nav-group-label { text-align: center; font-size: 9px; margin: 10px 4px 4px; }
  .sidebar-user > div:last-child { display: none; }
  .sidebar-user { justify-content: center; padding: 6px; }
  .main-content { margin-left: var(--sidebar-w); }
  .form-grid { grid-template-columns: 1fr; }
  .row-table-head, .row-table-row {
    grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr;
    font-size: 11.5px;
    gap: 6px;
    padding: 10px;
  }
  .topbar-date { display: none; }
  .stat-card { padding: 16px; }
  .stat-num { font-size: 22px; }
}

/* =============================================================
   Print
   ============================================================= */
@media print {
  .sidebar, .topbar, .btn, .actions, .toolbar { display: none !important; }
  .main-content { margin-left: 0; }
  .content-area { padding: 0; }
  .card { box-shadow: none; border-color: var(--border); }
}

/* =============================================================
   HRMS - Employee Profile Module (Tabs, Header, Records)
   ============================================================= */

.profile-header { padding: 24px; margin-bottom: 20px; }
.profile-header-main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-photo {
  width: 84px; height: 84px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-950); font-size: 32px; font-weight: 700; flex-shrink: 0;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-header-info { flex: 1; min-width: 240px; }
.profile-header-info h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 4px; }
.profile-sub { color: var(--ink-500); font-weight: 500; margin-bottom: 8px; }
.profile-meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-600); }
.profile-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

.pf-tabs { padding: 0; overflow: hidden; }
.pf-tab-nav {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 16px;
  background: var(--ink-50); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.pf-tab-btn {
  border: 1px solid transparent; background: transparent; padding: 8px 14px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-600);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.pf-tab-btn:hover { background: #ffffff; color: var(--brand-700); }
.pf-tab-btn.active { background: var(--brand-600); color: var(--ink-950); box-shadow: var(--shadow-sm); }

.pf-tab-body { padding: 22px 24px; }
.pf-pane { display: none; animation: pf-fade .18s ease; }
.pf-pane.active { display: block; }
.pf-fpane { display: none; }
.pf-fpane.active { display: grid; }
@keyframes pf-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.pf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px 24px;
}
.pf-field { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px dashed var(--ink-200); }
.pf-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); font-weight: 700; }
.pf-value { font-size: 14.5px; color: var(--ink-800); font-weight: 500; word-break: break-word; }

.pf-subheading { margin: 24px 0 12px; font-size: 15px; font-weight: 700; color: var(--ink-800); }
.empty-hint { color: var(--ink-400); font-style: italic; padding: 12px 0; }

.pf-list { display: flex; flex-direction: column; gap: 12px; }
.pf-record-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  background: var(--ink-50);
}
.pf-record-head { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 4px; }
.pf-record-head .btn-icon { margin-left: auto; }
.pf-record-meta { font-size: 12.5px; color: var(--ink-500); }
.pf-record-text { font-size: 13.5px; color: var(--ink-700); margin: 6px 0; }
.pf-tags { font-size: 12.5px; color: var(--brand-700); background: var(--brand-50); display: inline-block; padding: 3px 10px; border-radius: 999px; margin-bottom: 4px; }

.pf-add-form {
  margin-top: 16px; border: 1px dashed var(--ink-300); border-radius: var(--radius); padding: 4px 16px;
}
.pf-add-form summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--brand-700); }
.pf-add-form[open] { padding-bottom: 16px; background: var(--ink-50); }
.pf-add-form .form-grid { margin-top: 8px; }
.pf-add-form .form-group.full { grid-column: 1 / -1; }

.pf-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pf-doc-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  text-align: center; background: #ffffff; box-shadow: var(--shadow-xs); transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pf-doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pf-doc-icon { font-size: 30px; }
.pf-doc-name { font-weight: 600; font-size: 13.5px; color: var(--ink-800); }
.pf-doc-meta { font-size: 11.5px; color: var(--ink-500); line-height: 1.4; }
.pf-doc-actions { display: flex; gap: 6px; margin-top: 4px; }

.pf-stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.pf-stat {
  flex: 1; min-width: 110px; background: var(--ink-50); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; text-align: center;
}
.pf-stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--brand-700); }
.pf-stat span:last-child { font-size: 12px; color: var(--ink-500); font-weight: 600; }

.pf-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px;
}
.cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-500);
  background: var(--ink-100); border: 1px solid var(--ink-200);
}
.cal-present { background: var(--success-50); color: var(--success-700); border-color: var(--brand-100); }
.cal-absent  { background: var(--danger-50);  color: var(--danger-700);  border-color: var(--brand-500); }
.cal-late    { background: var(--warn-50);    color: var(--warn-700);    border-color: var(--ink-300); }
.cal-half    { background: var(--info-50);    color: var(--info-700);   border-color: var(--brand-100); }

.emp-name-link { color: var(--brand-700); font-weight: 600; text-decoration: none; }
.emp-name-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .profile-header-main { flex-direction: column; align-items: flex-start; }
  .profile-header-actions { width: 100%; }
  .pf-tab-body { padding: 16px; }
}

@media print {
  .sidebar, .topbar, .profile-header-actions, .pf-tab-nav, .pf-add-form, .btn-icon { display: none !important; }
  .pf-pane { display: block !important; page-break-inside: avoid; margin-bottom: 24px; }
}

.tab-hint { color: var(--ink-500); font-size: 12.5px; margin: 0 0 4px; }
.tab-hint.full { grid-column: 1 / -1; }

/* ── New topbar: search, user, logout (2026 update) ── */
.topbar { gap: 20px; }
.topbar-title { flex-shrink: 0; }
.topbar-search {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search .topbar-search-ico {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-500);
  pointer-events: none;
}
.topbar-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-950);
  transition: border-color .15s, box-shadow .15s;
}
.topbar-search input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(76,159,111,.15);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}
.topbar-user-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-500), var(--ink-950));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.topbar-user-initial { text-transform: uppercase; }
.topbar-user-meta { line-height: 1.15; }
.topbar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-950);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-user-role {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 500;
}
.topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--brand-500);
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(76,159,111,.35);
}
.topbar-logout:hover { background: #3f875e; border-color: #3f875e; }
.topbar-logout:active { transform: translateY(1px); }
.topbar-logout i { font-size: 15px; }
.topbar-logout span { line-height: 1; }

@media (max-width: 1100px) {
  .topbar-search { max-width: 260px; }
  .topbar-user-meta { display: none; }
  .topbar-date { display: none; }
}
@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar-search { order: 3; max-width: none; width: 100%; }
  .topbar-logout span { display: none; }
  .topbar-logout { padding: 9px 11px; }
}

/* =============================================================
   Employee module enhancements
   ============================================================= */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.employee-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.employee-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.employee-card-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
}
.employee-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--brand-100);
}
.employee-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.employee-card-title-wrap { min-width: 0; }
.employee-card-title {
  color: var(--ink-950);
  text-decoration: none;
  font-weight: 700;
  display: block;
}
.employee-card-title:hover { color: var(--brand-600); }
.employee-card-subtitle {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 3px;
}
.employee-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.employee-card-meta div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
}
.employee-card-meta div.full { grid-column: 1 / -1; }
.employee-card-meta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-400);
  margin-bottom: 4px;
  font-weight: 700;
}
.employee-card-meta strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink-800);
  word-break: break-word;
}
.employee-card-actions,
.action-icons-only {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
}
.icon-only i { font-size: 15px; }
.employee-action-view { color: #2563eb; }
.employee-action-edit { color: #16a34a; }
.employee-action-delete { color: #dc2626; }
.employee-action-view:hover,
.employee-action-edit:hover,
.employee-action-delete:hover {
  background: transparent !important;
  border-color: transparent !important;
  transform: translateY(-1px);
}
.view-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.btn-view-toggle {
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-view-toggle.active {
  background: var(--brand-500) !important;
  border-color: var(--brand-500) !important;
  color: #ffffff !important;
}
.toolbar-employee-list {
  align-items: center;
  flex-wrap: nowrap;
}
.nav-item-icon {
  width: 18px;
  text-align: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.nav-item-label {
  display: inline-block;
  min-width: 0;
}
.salary-summary-grid .form-group input[readonly] {
  background: var(--ink-50);
  color: var(--ink-700);
}
.page-form-actions-right {
  margin-left: auto;
}

.employee-form-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.employee-form-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.employee-form-title h1,
.employee-form-title h2,
.employee-form-title h3 {
  margin: 0 0 6px;
  color: var(--ink-950);
}
.employee-form-title p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
}
.page-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.simple-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  position: static;
}
.simple-tab-nav .pf-tab-btn {
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  color: var(--ink-500) !important;
  box-shadow: none !important;
  position: relative;
}
.simple-tab-nav .pf-tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}
.simple-tab-nav .pf-tab-btn.active {
  color: var(--ink-950) !important;
}
.simple-tab-nav .pf-tab-btn.active::after {
  background: var(--brand-500);
}
.profile-photo-picker {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.profile-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--brand-100);
  background: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  font-size: 36px;
  flex-shrink: 0;
}
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.form-section-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}
.form-section-card h4 {
  margin: 0 0 4px;
  color: var(--ink-950);
  font-size: 15px;
}
.form-section-card p {
  margin: 0 0 14px;
  color: var(--ink-500);
  font-size: 12.5px;
}
.repeatable-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.repeatable-item {
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 16px;
  background: var(--ink-50);
}
.repeatable-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.repeatable-item-title {
  font-weight: 700;
  color: var(--ink-800);
}
.repeatable-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.repeatable-placeholder {
  padding: 18px;
  border: 1px dashed var(--ink-300);
  border-radius: 14px;
  color: var(--ink-500);
  font-size: 13px;
  text-align: center;
  background: #ffffff;
}
.required-mark { color: var(--brand-600); }
.pf-pane.active.employee-form-pane { display: block; }
.pf-doc-actions .btn-icon,
.pf-record-head .btn-icon { margin-left: 0; }
.profile-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}
.pf-tab-nav {
  gap: 18px;
  padding: 10px 16px 12px;
  background: transparent;
}
.pf-tab-btn {
  border: none;
  border-radius: 0;
  padding: 10px 0;
  position: relative;
}
.pf-tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}
.pf-tab-btn.active {
  background: transparent !important;
  color: var(--ink-950) !important;
  box-shadow: none !important;
}
.pf-tab-btn.active::after { background: var(--brand-500); }

@media (max-width: 1200px) {
  .toolbar-employee-list {
    flex-wrap: wrap;
  }
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .employee-card-meta { grid-template-columns: 1fr; }
  .employee-form-topbar { align-items: stretch; }
  .page-form-actions { width: 100%; }
}
@media (max-width: 700px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .view-toggle-group,
  .toolbar-actions,
  .page-form-actions {
    width: 100%;
  }
  .page-form-actions .btn,
  .toolbar-actions .btn,
  .view-toggle-group .btn { flex: 1; }
}

/* Force ALL buttons to the unified brand color */
.btn, .btn-primary, .btn-secondary,
.dash2-welcome-cta,
.dash2-add,
input[type="submit"], button[type="submit"] {
  background: var(--brand-500) !important;
  border-color: var(--brand-500) !important;
  color: #ffffff !important;
  background-image: none !important;
}
.btn:hover, .btn-primary:hover, .btn-secondary:hover,
.dash2-welcome-cta:hover, .dash2-add:hover,
input[type="submit"]:hover, button[type="submit"]:hover {
  background: #3f875e !important;
  border-color: #3f875e !important;
  background-image: none !important;
}
/* Ghost/subtle buttons keep neutral background but pick up brand accents */
.btn-secondary { background: transparent !important; color: var(--brand-500) !important; }
.btn-secondary:hover { background: var(--brand-50) !important; color: var(--brand-500) !important; }

/* Employee module refinements */
.toolbar-employee-list {
  display: block;
}
.employee-filter-controls {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}
.employee-filter-controls .filter-search {
  flex: 1 1 280px;
  min-width: 220px;
  height: 44px;
}
.employee-filter-controls .filter-select {
  flex: 0 1 168px;
  min-width: 140px;
  width: auto;
  height: 44px;
}
.employee-filter-controls .filter-select-department { min-width: 160px; }
.employee-filter-controls .filter-select-designation { min-width: 170px; }
.employee-filter-controls .filter-select-status { min-width: 128px; }
.toolbar-actions-inline {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.toolbar-actions-inline .btn,
.view-toggle-group .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-action-btn {
  white-space: nowrap;
}
.employee-filter-controls .filter-spinner {
  align-self: center;
}
.employee-form-topbar {
  margin: 4px 0 10px;
  padding-top: 6px;
}
.page-form-actions {
  margin-left: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}
.form-card {
  overflow: visible;
}
.field-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid,
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}
.pf-section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pf-section-heading h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink-950);
}
.pf-section-heading p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
}
.pf-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pf-timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.pf-timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.pf-timeline-content {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}
.pf-timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.pf-timeline-content h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink-950);
}
.pf-timeline-content p {
  margin: 0;
  color: var(--ink-700);
  font-size: 13.5px;
}
@media (max-width: 900px) {
  .page-form-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
@media (max-width: 700px) {
  .employee-filter-controls,
  .toolbar-actions-inline,
  .page-form-actions {
    width: 100%;
  }
  .employee-filter-controls,
  .toolbar-actions-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .employee-filter-controls .filter-select,
  .employee-filter-controls .filter-search,
  .toolbar-actions-inline .btn,
  .view-toggle-group .btn {
    width: 100%;
    min-width: 0;
  }
  .view-toggle-group {
    width: 100%;
  }
}
@media print {
  @page { size: A4; margin: 12mm; }
  .sidebar, .topbar, .profile-header-actions, .pf-tab-nav, .pf-add-form, .btn-icon, .print-exclude { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .content-area { padding: 0 !important; }
  .profile-header, .pf-tabs, .card {
    border: 1px solid #d9dde5 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .pf-pane {
    display: block !important;
    margin-bottom: 18px !important;
    page-break-inside: avoid;
  }
  .pf-section-heading {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  .pf-field,
  .pf-record-card,
  .pf-doc-card,
  .pf-timeline-content {
    break-inside: avoid;
  }
}


.employee-action-exit { color: #b45309; }
.employee-action-exit:hover { background: transparent !important; border-color: transparent !important; transform: translateY(-1px); }
.employee-action-password { color: #16a34a; }
.employee-action-password:hover { background: transparent !important; border-color: transparent !important; transform: translateY(-1px); }
.employee-filter-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-xs);
  padding: 16px 18px;
}
.employee-filter-controls {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}
.employee-filter-controls .filter-search,
.employee-filter-controls .filter-select,
.employee-filter-controls .filter-action-btn,
.employee-filter-controls .btn-view-toggle { min-height: 46px; }
.employee-filter-controls .filter-search { flex: 1 1 280px; min-width: 240px; }
.employee-filter-controls .filter-select { flex: 0 0 170px; width: 170px; }
.employee-filter-controls .filter-select-status { width: 150px; flex-basis: 150px; }
.employee-filter-controls .filter-action-btn { flex: 0 0 auto; white-space: nowrap; }
.view-toggle-group {
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
  padding: 4px;
  min-height: 46px;
}
.btn-view-toggle { width: auto; min-width: 118px; padding: 0 14px; gap: 8px; }
.app-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: none;
  align-items: center; justify-content: center; z-index: 999; padding: 18px;
}
.app-modal.open { display: flex; }
.app-modal-dialog { background: #ffffff; border-radius: 18px; box-shadow: var(--shadow-lg); width: min(100%, 560px); overflow: hidden; }
.app-modal-sm { width: min(100%, 520px); }
.app-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.app-modal-header h3 { margin: 0; font-size: 17px; color: var(--ink-950); }
.app-modal-body { padding: 18px; }
.app-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 1200px) {
  .employee-filter-controls { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .employee-filter-controls { flex-direction: column; align-items: stretch; }
  .employee-filter-controls .filter-select,
  .employee-filter-controls .filter-search,
  .employee-filter-controls .filter-action-btn,
  .btn-view-toggle,
  .view-toggle-group { width: 100%; min-width: 0; }
  .btn-view-toggle { justify-content: center; }
}


.form-group-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.inline-add-btn {
  border: 1px solid var(--border);
  background: var(--ink-50);
  color: var(--brand-700);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.inline-add-btn:hover { background: var(--brand-50); }
.form-group input[readonly] {
  background: var(--ink-50);
  color: var(--ink-700);
}

/* =============================================================
   Floating Notification System (top-right corner)
   ============================================================= */
.hrms-notification-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100vw - 40px);
  pointer-events: none;
}
.hrms-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--toast-bg, #4c9f6f);
  color: var(--toast-text, #ffffff);
  border: 1px solid var(--toast-border, #3f875e);
  box-shadow: 0 12px 28px rgba(28, 36, 46, .18), 0 2px 6px rgba(28, 36, 46, .08);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity .3s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}
.hrms-toast-visible {
  opacity: 1;
  transform: translateX(0);
}
.hrms-toast-removing {
  opacity: 0;
  transform: translateX(120%);
}
.hrms-toast-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hrms-toast-message {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.hrms-toast-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, .2);
  border: none;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: background .15s;
  padding: 0;
}
.hrms-toast-close:hover {
  background: rgba(255, 255, 255, .35);
}
.hrms-toast-close i {
  font-size: 14px;
}
@media (max-width: 600px) {
  .hrms-notification-stack {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }
  .hrms-toast {
    transform: translateY(-100%);
  }
  .hrms-toast-visible {
    transform: translateY(0);
  }
  .hrms-toast-removing {
    transform: translateY(-120%);
  }
}

/* =============================================================
   Filter borderless controls (cleaner design)
   ============================================================= */
.employee-filter-controls .filter-no-border {
  border: 1px solid transparent !important;
  background: var(--ink-50) !important;
}
.employee-filter-controls .filter-no-border:hover {
  background: var(--ink-100) !important;
}
.employee-filter-controls .filter-no-border:focus,
.employee-filter-controls .filter-no-border:focus-visible {
  outline: none;
  border-color: var(--brand-500) !important;
  background: #ffffff !important;
  box-shadow: var(--ring) !important;
}

/* =============================================================
   Icon-only view toggle (text labels removed)
   ============================================================= */
.btn-view-toggle {
  width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  gap: 0 !important;
}
.btn-view-toggle span {
  display: none !important;
}
.btn-view-toggle i {
  font-size: 17px;
}

/* =============================================================
   Searchable Bank Dropdown
   ============================================================= */
.bank-searchable {
  position: relative;
}
.bank-searchable-input {
  width: 100%;
  padding: 11px 14px;
  padding-right: 36px;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
}
.bank-searchable-input:hover {
  border-color: var(--ink-300);
}
.bank-searchable-input:focus {
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}
.bank-searchable-input::placeholder {
  color: var(--ink-400);
}
.bank-searchable-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-400);
  font-size: 15px;
}
.bank-searchable-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: none;
  padding: 4px;
}
.bank-searchable-dropdown.open {
  display: block;
}
.bank-searchable-option {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink-800);
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bank-searchable-option:hover,
.bank-searchable-option.active {
  background: var(--brand-50);
  color: var(--brand-700);
}
.bank-searchable-option.selected {
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
}
.bank-searchable-empty {
  padding: 12px 14px;
  color: var(--ink-400);
  font-size: 13px;
  text-align: center;
  font-style: italic;
}

/* =============================================================
   HRMS Module polish: Employee + Department
   ============================================================= */
.employee-form-shell .simple-tab-nav,
.employee-form-shell .pf-tab-nav {
  gap: 28px;
  row-gap: 14px;
}
.employee-form-shell .simple-tab-nav .pf-tab-btn,
.employee-form-shell .pf-tab-nav .pf-tab-btn {
  padding-left: 4px;
  padding-right: 4px;
}

.employee-filter-card {
  padding: 10px 12px;
  border-radius: 20px;
}
.employee-filter-controls {
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}
.employee-filter-controls .filter-search,
.employee-filter-controls .filter-select,
.employee-filter-controls .filter-action-btn,
.employee-filter-controls .btn-view-toggle,
.employee-filter-controls .view-toggle-group {
  min-height: 40px;
}
.employee-filter-controls .filter-search {
  flex: 1 1 300px;
  min-width: 250px;
}
.employee-filter-controls .filter-select {
  flex: 0 0 164px;
  width: 164px;
}
.employee-filter-controls .filter-select-status {
  flex-basis: 136px;
  width: 136px;
}
.employee-filter-controls .view-toggle-group {
  padding: 2px;
}
.employee-filter-controls .filter-no-border {
  border: 1px solid var(--border) !important;
  background: #ffffff !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-xs);
  color: var(--ink-900);
}
.employee-filter-controls .filter-no-border:hover {
  background: #ffffff !important;
  border-color: var(--ink-300) !important;
}
.employee-filter-controls .filter-no-border:focus,
.employee-filter-controls .filter-no-border:focus-visible {
  background: #ffffff !important;
  border-color: var(--brand-500) !important;
  box-shadow: var(--ring) !important;
}
@media (max-width: 1200px) {
  .employee-filter-card {
    overflow-x: auto;
  }
  .employee-filter-controls {
    min-width: 920px;
  }
}
@media (max-width: 700px) {
  .employee-filter-card {
    overflow: visible;
  }
  .employee-filter-controls {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .employee-filter-controls .filter-search,
  .employee-filter-controls .filter-select,
  .employee-filter-controls .filter-action-btn,
  .employee-filter-controls .view-toggle-group,
  .employee-filter-controls .btn-view-toggle {
    width: 100%;
    min-width: 0;
  }
  .employee-filter-controls .view-toggle-group {
    padding: 0;
  }
}

.department-toolbar-shell {
  display: block;
}
.department-filter-card {
  width: 100%;
}
.department-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;
}
.department-filter-controls .department-search-input {
  flex: 1 1 320px;
  min-width: 260px;
}
.department-toolbar-btn {
  white-space: nowrap;
}
.department-toolbar-btn.active {
  background: var(--brand-50) !important;
  color: var(--brand-500) !important;
  border-color: var(--brand-100) !important;
}
.department-module-card .card-header {
  gap: 12px;
}
.department-result-count {
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 600;
}
.department-bulk-actions {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}
.department-bulk-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-800);
}
.department-bulk-summary i {
  color: var(--brand-500);
  font-size: 16px;
}
.department-bulk-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.department-bulk-status-select {
  min-width: 160px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  font: inherit;
}
.department-bulk-status-select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}
.department-table {
  min-width: 760px;
}
.department-col-select,
.department-select-cell {
  width: 68px;
}
.department-name-cell strong {
  display: inline-block;
  color: var(--ink-950);
  font-size: 14px;
}
.department-action-group,
.department-grid-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.employee-count-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 700;
}
.employee-count-link:hover {
  color: var(--ink-950);
  text-decoration: underline;
}
.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.department-grid-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: var(--shadow-xs);
  min-height: 200px;
}
.department-grid-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--ink-300);
}
.department-grid-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.department-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
  font-size: 12.5px;
  font-weight: 600;
}
.department-select-wrap.is-disabled {
  opacity: .6;
}
.department-grid-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.department-grid-main h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink-950);
}
.department-grid-serial {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500);
}
.department-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--ink-300);
  border-radius: 18px;
  background: var(--ink-50);
  color: var(--ink-500);
}
input[type="checkbox"] {
  accent-color: var(--brand-500);
}
@media (max-width: 1200px) {
  .department-filter-card {
    overflow-x: auto;
  }
  .department-filter-controls {
    min-width: 760px;
  }
}
@media (max-width: 900px) {
  .department-bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .department-bulk-action-buttons {
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  .department-filter-card {
    overflow-x: auto;
    overflow-y: visible;
  }
  .department-filter-controls {
    min-width: 760px;
    flex-direction: row;
    align-items: center;
  }
  .department-bulk-action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .department-bulk-status-select,
  .department-bulk-action-buttons .btn {
    width: 100%;
  }
}

/* =============================================================
   Employee / Department / Designation filter alignment + actions
   ============================================================= */
.employee-filter-card,
.department-filter-card,
.designation-filter-card {
  overflow-x: auto;
  overflow-y: visible;
}

.employee-filter-controls,
.department-filter-controls,
.designation-filter-controls {
  flex-wrap: nowrap;
  align-items: center;
}

.employee-filter-controls .filter-search,
.employee-filter-controls .filter-select,
.department-filter-controls .department-search-input,
.designation-filter-controls .designation-search-input {
  height: 44px;
  min-height: 44px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2;
  box-sizing: border-box;
}

.employee-filter-controls .filter-search,
.department-filter-controls .department-search-input,
.designation-filter-controls .designation-search-input {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.employee-filter-controls .filter-search::placeholder,
.department-filter-controls .department-search-input::placeholder,
.designation-filter-controls .designation-search-input::placeholder {
  line-height: 1.2;
}

.employee-filter-controls .filter-select {
  padding-left: 16px !important;
  padding-right: 40px !important;
}

.employee-filter-controls .filter-search,
.employee-filter-controls .filter-select,
.employee-filter-controls .filter-action-btn,
.employee-filter-controls .btn-view-toggle,
.employee-filter-controls .view-toggle-group,
.department-filter-controls .department-search-input,
.department-filter-controls .department-toolbar-btn,
.department-filter-controls .btn-view-toggle,
.department-filter-controls .department-view-toggle,
.designation-filter-controls .designation-search-input,
.designation-filter-controls .department-toolbar-btn,
.designation-filter-controls .btn-view-toggle,
.designation-filter-controls .designation-view-toggle {
  min-height: 44px;
}

.employee-filter-controls .view-toggle-group,
.department-filter-controls .department-view-toggle,
.designation-filter-controls .designation-view-toggle {
  flex: 0 0 auto;
}

.department-selection-action,
.designation-selection-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.record-action-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px !important;
}

.record-action-icon:hover,
.record-action-icon:focus,
.record-action-icon:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.record-action-icon i {
  font-size: 18px;
}

.record-action-icon.view-icon {
  color: #2563eb;
}

.record-action-icon.edit-icon {
  color: #16a34a;
}

.record-action-icon.delete-icon {
  color: #dc2626;
}

.record-action-icon.view-icon:hover,
.record-action-icon.view-icon:focus,
.record-action-icon.view-icon:focus-visible {
  color: #1d4ed8;
}

.record-action-icon.edit-icon:hover,
.record-action-icon.edit-icon:focus,
.record-action-icon.edit-icon:focus-visible {
  color: #15803d;
}

.record-action-icon.delete-icon:hover,
.record-action-icon.delete-icon:focus,
.record-action-icon.delete-icon:focus-visible {
  color: #b91c1c;
}

.designation-meta-line {
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .employee-filter-controls {
    min-width: 920px;
  }
  .department-filter-controls,
  .designation-filter-controls {
    min-width: 760px;
  }
}

@media (max-width: 700px) {
  .employee-filter-card,
  .department-filter-card,
  .designation-filter-card {
    overflow-x: auto;
    overflow-y: visible;
  }
  .employee-filter-controls {
    min-width: 920px;
    flex-direction: row;
    align-items: center;
  }
  .department-filter-controls,
  .designation-filter-controls {
    min-width: 760px;
    flex-direction: row;
    align-items: center;
  }
}

/* =============================================================
   HRMS module polish patch
   ============================================================= */
.sidebar-brand {
  align-items: center;
}

.sidebar-brand .brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.sidebar-brand .brand-role {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: capitalize;
  letter-spacing: .04em;
}

.topbar-search {
  max-width: 560px;
}

.topbar-search input {
  min-height: 52px;
  padding: 14px 16px 14px 44px;
  font-size: 14px;
}

.topbar-search .topbar-search-ico {
  left: 16px;
}

.topbar-search.is-searching .topbar-search-ico {
  color: var(--brand-500);
}

.topbar-date {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-600);
}

.topbar-user {
  padding-right: 14px;
}

.topbar-user-meta {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.topbar-user-name {
  font-size: 13.5px;
}

.topbar-user-role {
  display: none;
}

.employee-filter-controls .filter-search,
.employee-filter-controls .filter-select,
.employee-filter-controls .filter-action-btn,
.employee-filter-controls .btn-view-toggle,
.employee-filter-controls .view-toggle-group,
.department-filter-controls .department-search-input,
.department-filter-controls .department-toolbar-btn,
.department-filter-controls .btn-view-toggle,
.department-filter-controls .department-view-toggle,
.designation-filter-controls .designation-search-input,
.designation-filter-controls .department-toolbar-btn,
.designation-filter-controls .btn-view-toggle,
.designation-filter-controls .designation-view-toggle {
  min-height: 48px;
}

.employee-filter-controls .filter-select {
  height: 48px;
  padding: 0 44px 0 16px !important;
  line-height: 1.2;
  color: var(--ink-900);
  background-color: var(--ink-50) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.employee-filter-controls .filter-select:hover {
  background-color: var(--ink-100) !important;
}

.employee-filter-controls .filter-select:focus,
.employee-filter-controls .filter-select:focus-visible {
  background-color: #ffffff !important;
}

.employee-filter-controls .filter-select::-ms-expand {
  display: none;
}

.department-selection-action,
.designation-selection-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.department-selection-action[hidden],
.designation-selection-action[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .sidebar-brand .brand-meta {
    display: none;
  }

  .topbar-search {
    width: 100%;
    max-width: none;
  }
}

.topbar-search-shell {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}

.topbar-search-shell .topbar-search {
  max-width: none;
  width: 100%;
}

.topbar-search-shell .topbar-search.is-open,
.topbar-search-shell .topbar-search:focus-within {
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.12);
}

.topbar-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.topbar-search-dropdown-inner {
  max-height: min(68vh, 520px);
  overflow-y: auto;
  padding: 10px;
}

.topbar-search-empty {
  padding: 14px 16px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.5;
}

.topbar-search-empty.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(14, 159, 110, 0.24);
  border-top-color: var(--brand-500);
  animation: hrmsSpin .7s linear infinite;
  vertical-align: middle;
}

.topbar-search-group + .topbar-search-group {
  margin-top: 6px;
}

.topbar-search-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

.topbar-search-group-items {
  display: grid;
  gap: 4px;
}

.topbar-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-900);
  transition: background .15s ease, transform .15s ease;
}

.topbar-search-item:hover,
.topbar-search-item:focus,
.topbar-search-item:focus-visible {
  background: rgba(14, 159, 110, 0.08);
  transform: translateY(-1px);
}

.topbar-search-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.topbar-search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-950);
}

.topbar-search-item-meta {
  font-size: 12px;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.topbar-search-item-module {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(14, 159, 110, 0.10);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 700;
}

.schedule-toolbar-shell,
.schedule-filter-card,
.schedule-module-card,
.schedule-grid,
.schedule-grid-card,
.schedule-table,
.schedule-action-group,
.schedule-meta-line,
.schedule-summary-grid,
.schedule-summary-card {
  box-sizing: border-box;
}

.schedule-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.schedule-summary-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

.schedule-summary-card span {
  display: block;
  color: var(--ink-500);
  font-size: 12px;
  margin-bottom: 8px;
}

.schedule-summary-card strong {
  font-size: 28px;
  color: var(--ink-950);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.schedule-grid-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(249,250,251,0.96));
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 16px;
}

.schedule-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.09);
}

.schedule-grid-main {
  display: grid;
  gap: 8px;
}

.schedule-grid-main h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink-950);
}

.schedule-meta-line {
  color: var(--ink-500);
  font-size: 13px;
}

.schedule-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.schedule-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-stat-item {
  border-radius: 14px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.schedule-stat-item span {
  display: block;
  font-size: 11px;
  color: var(--ink-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.schedule-stat-item strong {
  color: var(--ink-950);
  font-size: 14px;
}

.schedule-table td,
.schedule-table th {
  vertical-align: middle;
}

.schedule-name-cell {
  display: grid;
  gap: 4px;
}

.schedule-name-cell strong {
  color: var(--ink-950);
}

.schedule-action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-selection-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.schedule-selection-action[hidden] {
  display: none !important;
}

.app-modal-dialog.app-modal-md {
  width: min(100%, 720px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.app-modal-dialog.app-modal-md .app-modal-body {
  overflow-y: auto;
}

.app-modal-dialog.app-modal-md .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-modal-dialog.app-modal-md .form-grid .full {
  grid-column: 1 / -1;
}

.form-readonly {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink-700);
  font-weight: 600;
}

@keyframes hrmsSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .topbar-search-shell {
    max-width: none;
    width: 100%;
  }

  .app-modal-dialog.app-modal-md .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar-search-dropdown {
    left: -8px;
    right: -8px;
  }

  .topbar-search-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-search-item-module {
    align-self: flex-start;
  }

  .schedule-stat-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
}


/* === Unified HRMS action buttons === */
.employee-card-actions,
.action-icons-only,
.department-action-group,
.department-grid-actions,
.schedule-action-group,
.salary-action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.record-action-icon,
.employee-action-view,
.employee-action-edit,
.employee-action-delete,
.employee-action-exit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
  line-height: 1;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.record-action-icon:hover,
.record-action-icon:focus,
.record-action-icon:focus-visible,
.employee-action-view:hover,
.employee-action-view:focus,
.employee-action-view:focus-visible,
.employee-action-edit:hover,
.employee-action-edit:focus,
.employee-action-edit:focus-visible,
.employee-action-delete:hover,
.employee-action-delete:focus,
.employee-action-delete:focus-visible,
.employee-action-exit:hover,
.employee-action-exit:focus,
.employee-action-exit:focus-visible {
  background: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10) !important;
}

.record-action-icon:focus-visible,
.employee-action-view:focus-visible,
.employee-action-edit:focus-visible,
.employee-action-delete:focus-visible,
.employee-action-exit:focus-visible {
  outline: none;
}

.record-action-icon i,
.employee-action-view i,
.employee-action-edit i,
.employee-action-delete i,
.employee-action-exit i {
  font-size: 16px;
}

.record-action-icon.view-icon,
.employee-action-view {
  color: #2563eb;
}

.record-action-icon.edit-icon,
.employee-action-edit {
  color: #16a34a;
}

.record-action-icon.verify-icon {
  color: #0f9d8a;
}

.record-action-icon.print-icon,
.employee-action-exit {
  color: #d97706;
}

.record-action-icon.delete-icon,
.employee-action-delete {
  color: #dc2626;
}

.record-action-icon.view-icon:hover,
.record-action-icon.view-icon:focus,
.record-action-icon.view-icon:focus-visible,
.employee-action-view:hover,
.employee-action-view:focus,
.employee-action-view:focus-visible {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.28) !important;
}

.record-action-icon.edit-icon:hover,
.record-action-icon.edit-icon:focus,
.record-action-icon.edit-icon:focus-visible,
.employee-action-edit:hover,
.employee-action-edit:focus,
.employee-action-edit:focus-visible {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.28) !important;
}

.record-action-icon.verify-icon:hover,
.record-action-icon.verify-icon:focus,
.record-action-icon.verify-icon:focus-visible {
  color: #0f766e;
  border-color: rgba(15, 157, 138, 0.28) !important;
}

.record-action-icon.print-icon:hover,
.record-action-icon.print-icon:focus,
.record-action-icon.print-icon:focus-visible,
.employee-action-exit:hover,
.employee-action-exit:focus,
.employee-action-exit:focus-visible {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.28) !important;
}

.record-action-icon.delete-icon:hover,
.record-action-icon.delete-icon:focus,
.record-action-icon.delete-icon:focus-visible,
.employee-action-delete:hover,
.employee-action-delete:focus,
.employee-action-delete:focus-visible {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.28) !important;
}

.record-action-icon[disabled],
.record-action-icon.is-disabled,
.employee-action-view[aria-disabled="true"],
.employee-action-edit[aria-disabled="true"],
.employee-action-delete[aria-disabled="true"],
.employee-action-exit[aria-disabled="true"] {
  opacity: 0.46;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.record-action-icon[title]::after,
.record-action-icon[title]::before,
.employee-action-view[title]::after,
.employee-action-view[title]::before,
.employee-action-edit[title]::after,
.employee-action-edit[title]::before,
.employee-action-delete[title]::after,
.employee-action-delete[title]::before,
.employee-action-exit[title]::after,
.employee-action-exit[title]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.record-action-icon[title]::after,
.employee-action-view[title]::after,
.employee-action-edit[title]::after,
.employee-action-delete[title]::after,
.employee-action-exit[title]::after {
  content: attr(title);
  bottom: calc(100% + 10px);
  transform: translate(-50%, 6px);
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.record-action-icon[title]::before,
.employee-action-view[title]::before,
.employee-action-edit[title]::before,
.employee-action-delete[title]::before,
.employee-action-exit[title]::before {
  content: "";
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.94) transparent transparent transparent;
}

.record-action-icon[title]:hover::after,
.record-action-icon[title]:hover::before,
.record-action-icon[title]:focus-visible::after,
.record-action-icon[title]:focus-visible::before,
.employee-action-view[title]:hover::after,
.employee-action-view[title]:hover::before,
.employee-action-view[title]:focus-visible::after,
.employee-action-view[title]:focus-visible::before,
.employee-action-edit[title]:hover::after,
.employee-action-edit[title]:hover::before,
.employee-action-edit[title]:focus-visible::after,
.employee-action-edit[title]:focus-visible::before,
.employee-action-delete[title]:hover::after,
.employee-action-delete[title]:hover::before,
.employee-action-delete[title]:focus-visible::after,
.employee-action-delete[title]:focus-visible::before,
.employee-action-exit[title]:hover::after,
.employee-action-exit[title]:hover::before,
.employee-action-exit[title]:focus-visible::after,
.employee-action-exit[title]:focus-visible::before,
.employee-action-password[title]:hover::after,
.employee-action-password[title]:hover::before,
.employee-action-password[title]:focus-visible::after,
.employee-action-password[title]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.record-action-icon[title]:hover::after,
.record-action-icon[title]:focus-visible::after,
.employee-action-view[title]:hover::after,
.employee-action-view[title]:focus-visible::after,
.employee-action-edit[title]:hover::after,
.employee-action-edit[title]:focus-visible::after,
.employee-action-delete[title]:hover::after,
.employee-action-delete[title]:focus-visible::after,
.employee-action-exit[title]:hover::after,
.employee-action-exit[title]:focus-visible::after,
.employee-action-password[title]:hover::after,
.employee-action-password[title]:focus-visible::after {
  transform: translate(-50%, 0);
}

@media (max-width: 767px) {
  .record-action-icon,
  .employee-action-view,
  .employee-action-edit,
  .employee-action-delete,
  .employee-action-exit,
  .employee-action-password {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 11px !important;
  }

  .record-action-icon i,
  .employee-action-view i,
  .employee-action-edit i,
  .employee-action-delete i,
  .employee-action-exit i,
  .employee-action-password i {
    font-size: 15px;
  }
}


/* === Salary module action button template === */
.salary-action-group--template{gap:10px;flex-wrap:wrap;align-items:center}.salary-action-group--template .record-action-icon.salary-action-btn{width:auto;min-width:0;height:40px;min-height:40px;padding:0 14px!important;border-radius:14px!important;gap:8px;font-size:13px;font-weight:700;letter-spacing:.01em;box-shadow:0 12px 24px rgba(15,23,42,.08)!important}.salary-action-group--template .record-action-icon.salary-action-btn i{font-size:15px}.salary-action-group--template .record-action-icon.salary-action-btn .action-label{display:inline-block;line-height:1;white-space:nowrap}.salary-action-group--template .record-action-icon.view-icon.salary-action-btn{background:linear-gradient(180deg,rgba(239,246,255,.98),rgba(219,234,254,.92))!important;border-color:rgba(37,99,235,.22)!important;color:#1d4ed8}.salary-action-group--template .record-action-icon.edit-icon.salary-action-btn{background:linear-gradient(180deg,rgba(240,253,244,.98),rgba(220,252,231,.92))!important;border-color:rgba(22,163,74,.22)!important;color:#15803d}.salary-action-group--template .record-action-icon.verify-icon.salary-action-btn{background:linear-gradient(180deg,rgba(240,253,250,.98),rgba(204,251,241,.92))!important;border-color:rgba(13,148,136,.22)!important;color:#0f766e}.salary-action-group--template .record-action-icon.print-icon.salary-action-btn{background:linear-gradient(180deg,rgba(255,251,235,.98),rgba(254,243,199,.92))!important;border-color:rgba(217,119,6,.24)!important;color:#b45309}.salary-action-group--template .record-action-icon.salary-action-btn:hover,.salary-action-group--template .record-action-icon.salary-action-btn:focus,.salary-action-group--template .record-action-icon.salary-action-btn:focus-visible{transform:translateY(-1px);box-shadow:0 16px 28px rgba(15,23,42,.12)!important}.salary-action-group--template .record-action-icon.view-icon.salary-action-btn:hover,.salary-action-group--template .record-action-icon.view-icon.salary-action-btn:focus,.salary-action-group--template .record-action-icon.view-icon.salary-action-btn:focus-visible{background:linear-gradient(180deg,#ffffff,rgba(219,234,254,.96))!important;border-color:rgba(37,99,235,.34)!important;color:#1e40af}.salary-action-group--template .record-action-icon.edit-icon.salary-action-btn:hover,.salary-action-group--template .record-action-icon.edit-icon.salary-action-btn:focus,.salary-action-group--template .record-action-icon.edit-icon.salary-action-btn:focus-visible{background:linear-gradient(180deg,#ffffff,rgba(220,252,231,.96))!important;border-color:rgba(22,163,74,.34)!important;color:#166534}.salary-action-group--template .record-action-icon.verify-icon.salary-action-btn:hover,.salary-action-group--template .record-action-icon.verify-icon.salary-action-btn:focus,.salary-action-group--template .record-action-icon.verify-icon.salary-action-btn:focus-visible{background:linear-gradient(180deg,#ffffff,rgba(204,251,241,.96))!important;border-color:rgba(13,148,136,.34)!important;color:#115e59}.salary-action-group--template .record-action-icon.print-icon.salary-action-btn:hover,.salary-action-group--template .record-action-icon.print-icon.salary-action-btn:focus,.salary-action-group--template .record-action-icon.print-icon.salary-action-btn:focus-visible{background:linear-gradient(180deg,#ffffff,rgba(254,243,199,.96))!important;border-color:rgba(217,119,6,.34)!important;color:#92400e}@media (max-width:767px){.salary-action-group--template{gap:8px}.salary-action-group--template .record-action-icon.salary-action-btn{height:36px;min-height:36px;padding:0 12px!important;border-radius:12px!important}.salary-action-group--template .record-action-icon.salary-action-btn .action-label{font-size:12px}}

/* === Compact UI + collapsible sidebar overrides === */
.sidebar-brand{justify-content:space-between;gap:10px;padding:16px 14px;font-size:16px}
.sidebar-brand-main{min-width:0;display:flex;align-items:center;gap:10px;flex:1}
.sidebar-brand .brand-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-role{display:block;margin-top:2px;font-size:11px;color:var(--ink-500);font-weight:600}
.sidebar-toggle{width:32px;height:32px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--ink-700);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s,border-color .15s,transform .15s ease;flex-shrink:0}
.sidebar-toggle:hover{background:var(--brand-50);color:var(--ink-950);border-color:var(--brand-100)}
.sidebar-toggle:focus-visible{outline:none;box-shadow:var(--ring)}
.app-wrapper.sidebar-collapsed .sidebar{width:var(--sidebar-w-collapsed)}
.app-wrapper.sidebar-collapsed .main-content{margin-left:var(--sidebar-w-collapsed)}
.app-wrapper.sidebar-collapsed .sidebar-brand{padding-inline:10px}
.app-wrapper.sidebar-collapsed .sidebar-brand-main{justify-content:center}
.app-wrapper.sidebar-collapsed .brand-meta,.app-wrapper.sidebar-collapsed .nav-item-label,.app-wrapper.sidebar-collapsed .nav-collapse-btn .ncb-label,.app-wrapper.sidebar-collapsed .nav-collapse-btn .ncb-chevron,.app-wrapper.sidebar-collapsed .nav-group-label{display:none!important}
.app-wrapper.sidebar-collapsed .sidebar-nav a,.app-wrapper.sidebar-collapsed .nav-collapse-btn{justify-content:center;padding-left:8px;padding-right:8px}
.app-wrapper.sidebar-collapsed .nav-item-icon{margin-right:0}
.app-wrapper.sidebar-collapsed .nav-collapse-body{padding-left:0}
.app-wrapper.sidebar-collapsed .nav-collapse-body a::before,.app-wrapper.sidebar-collapsed .sidebar-nav a::before{display:none}
body,input,select,textarea,button,.table,.card,.alert,.badge,.pf-value,.pf-record-text,.topbar-user-name,.topbar-logout,.sidebar-nav a,.nav-collapse-body a,.nav-collapse-btn{font-size:13px}
.topbar h1{font-size:20px}
.topbar-search input{padding:9px 14px 9px 38px;font-size:13px}
.btn{padding:8px 14px;font-size:13px}
.btn-sm{padding:6px 10px;font-size:12px}
.btn-icon{font-size:13px;padding:5px 7px}
.employee-filter-card{border-radius:16px;padding:12px 14px}
.employee-filter-controls{gap:10px}
.employee-filter-controls .filter-search,.employee-filter-controls .filter-select,.employee-filter-controls .filter-action-btn,.employee-filter-controls .btn-view-toggle{min-height:var(--ui-control-height)}
.employee-filter-controls .filter-search{flex:1 1 240px;min-width:220px;height:var(--ui-control-height);font-size:13px}
.employee-filter-controls .filter-select{flex:0 0 156px;width:156px;min-width:132px;height:var(--ui-control-height);font-size:13px}
.employee-filter-controls .filter-select-status{width:136px;flex-basis:136px}
.employee-filter-controls .filter-action-btn{font-size:13px}
.view-toggle-group{gap:4px;padding:3px;min-height:var(--ui-control-height)}
.btn-view-toggle{min-width:96px;padding:0 12px;gap:6px}
.btn-view-toggle i{font-size:15px}
.search-form input,.search-form input[type="date"],.filter-bar input[type="text"],.filter-bar select,.form-group input,.form-group select,.form-group textarea{font-size:13px}
.filter-bar input[type="text"],.filter-bar select,.form-group input,.form-group select,.form-group textarea{padding-top:9px;padding-bottom:9px}
@media (max-width:992px){.app-wrapper.sidebar-collapsed .sidebar{width:72px}.app-wrapper.sidebar-collapsed .main-content{margin-left:72px}}

/* =============================================================
   HRMS - Header Notification Bell + Profile Dropdown (2026)
   ============================================================= */
.topbar-notification{position:relative;display:inline-flex;align-items:center}
.topbar-notification-btn{position:relative;background:transparent;border:1px solid transparent;color:#475569;width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;transition:background .15s ease,color .15s ease,border-color .15s ease}
.topbar-notification-btn:hover{background:#f1f5f9;color:#0f172a;border-color:#e2e8f0}
.topbar-notification-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,70,229,.25)}
.topbar-notification-btn.is-open{background:#eef2ff;color:#4338ca}
.topbar-notification-badge{position:absolute;top:2px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9999px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff}
.topbar-notification-panel{position:absolute;top:calc(100% + 10px);right:-10px;width:380px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 24px 50px -12px rgba(15,23,42,.18);z-index:90;overflow:hidden}
.topbar-notification-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #f1f5f9;background:#f8fafc}
.topbar-notification-title{font-weight:700;color:#0f172a;font-size:14px}
.topbar-notification-subtitle{color:#64748b;font-size:12px;margin-top:2px}
.topbar-notification-markall{background:transparent;border:none;color:#4338ca;font-size:12px;font-weight:600;cursor:pointer;padding:6px 10px;border-radius:8px;display:inline-flex;align-items:center;gap:6px}
.topbar-notification-markall:hover{background:#eef2ff}
.topbar-notification-markall:disabled{opacity:.5;cursor:default}
.topbar-notification-list{max-height:380px;overflow-y:auto;padding:6px;background:#fff}
.topbar-notification-empty{padding:36px 18px;text-align:center;color:#64748b}
.topbar-notification-empty i{font-size:34px;color:#cbd5e1;display:block;margin-bottom:8px}
.topbar-notification-empty small{display:block;margin-top:4px;color:#94a3b8;font-size:12px}
.topbar-notification-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;color:#0f172a;text-decoration:none;transition:background .15s ease;border:1px solid transparent;margin-bottom:4px}
.topbar-notification-item:hover{background:#f8fafc;border-color:#f1f5f9}
.topbar-notification-item.is-unread{background:#eef2ff}
.topbar-notification-item.is-unread:hover{background:#e0e7ff}
.topbar-notification-item.is-read .topbar-notification-dot{background:#cbd5e1}
.topbar-notification-dot{width:8px;height:8px;border-radius:9999px;background:#ef4444;margin-top:7px;flex-shrink:0}
.topbar-notification-body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.topbar-notification-item-title{font-weight:600;font-size:13px;color:#0f172a;line-height:1.3}
.topbar-notification-item-message{font-size:12px;color:#475569;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.topbar-notification-item-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px;font-size:11px;color:#64748b}
.topbar-notification-item-meta i{margin-right:4px}
.topbar-notification-foot{padding:10px 16px;border-top:1px solid #f1f5f9;background:#f8fafc;font-size:11px;color:#64748b}

/* Profile dropdown (replaces standalone logout) */
.topbar-profile{position:relative;display:inline-flex;align-items:center;margin-left:6px}
.topbar-profile-btn{display:inline-flex;align-items:center;gap:10px;background:transparent;border:1px solid transparent;padding:4px 10px 4px 4px;border-radius:9999px;color:#0f172a;cursor:pointer;font-size:13px;transition:background .15s ease,border-color .15s ease}
.topbar-profile-btn:hover{background:#f1f5f9;border-color:#e2e8f0}
.topbar-profile-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,70,229,.25)}
.topbar-profile-btn.is-open{background:#eef2ff;border-color:#c7d2fe}
.topbar-profile-chevron{font-size:11px;color:#64748b;transition:transform .15s ease}
.topbar-profile-btn.is-open .topbar-profile-chevron{transform:rotate(180deg)}
.topbar-profile-menu{position:absolute;top:calc(100% + 10px);right:0;width:260px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 20px 40px -12px rgba(15,23,42,.18);z-index:90;overflow:hidden;padding:6px 0}
.topbar-profile-menu-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #f1f5f9;background:#f8fafc}
.topbar-profile-menu-avatar{width:38px;height:38px;border-radius:9999px;overflow:hidden;background:#e0e7ff;color:#3730a3;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.topbar-profile-menu-avatar img{width:100%;height:100%;object-fit:cover}
.topbar-profile-menu-meta{display:flex;flex-direction:column;min-width:0}
.topbar-profile-menu-name{font-weight:700;color:#0f172a;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-profile-menu-role{color:#64748b;font-size:11px;text-transform:capitalize}
.topbar-profile-menu-list{list-style:none;margin:0;padding:6px}
.topbar-profile-menu-list li{margin:0}
.topbar-profile-menu-list a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:#1f2937;text-decoration:none;font-size:13px;transition:background .15s ease,color .15s ease}
.topbar-profile-menu-list a:hover{background:#f1f5f9;color:#0f172a}
.topbar-profile-menu-list a i{color:#64748b;font-size:15px;width:18px;text-align:center}
.topbar-profile-menu-sep{height:1px;background:#f1f5f9;margin:6px 8px;list-style:none}
.topbar-profile-menu-sep::marker{content:''}
.topbar-profile-menu-logout{color:#b91c1c!important}
.topbar-profile-menu-logout:hover{background:#fee2e2!important;color:#991b1b!important}
.topbar-profile-menu-logout i{color:#b91c1c!important}
@media (max-width:640px){
  .topbar-notification-panel{width:300px;right:0}
  .topbar-profile-btn .topbar-user-meta{display:none}
  .topbar-notification-item-meta{flex-direction:column;gap:2px}
}

/* =============================================================
   Appearance Mode Toggle + Dark Theme
   ============================================================= */
.topbar-appearance{display:inline-flex;align-items:center}
.topbar-appearance-btn{position:relative;background:transparent;border:1px solid transparent;color:#475569;width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;transition:background .15s ease,color .15s ease,border-color .15s ease}
.topbar-appearance-btn:hover{background:#f1f5f9;color:#0f172a;border-color:#e2e8f0}
.topbar-appearance-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,70,229,.25)}
.topbar-appearance-btn.is-dark{background:#0f172a;color:#f8fafc;border-color:rgba(148,163,184,.28)}
.topbar-appearance-btn.is-dark:hover{background:#111827;color:#fff}

body[data-theme="dark"]{
  --brand-50: rgba(76,159,111,.18);
  --brand-100: rgba(76,159,111,.24);
  --brand-200: rgba(76,159,111,.34);
  --brand-500: #65c18c;
  --brand-600: #86efac;
  --brand-700: #bbf7d0;
  --ink-950: #f8fafc;
  --ink-900: #e5e7eb;
  --ink-800: rgba(226,232,240,.92);
  --ink-700: #cbd5e1;
  --ink-600: rgba(203,213,225,.9);
  --ink-500: #94a3b8;
  --ink-400: rgba(148,163,184,.8);
  --ink-300: #334155;
  --ink-200: #1e293b;
  --ink-100: #111827;
  --ink-50: #0f172a;
  --border: rgba(148,163,184,.18);
  --bg: #020617;
  --white: #0f172a;
  --shadow-xs: 0 1px 2px rgba(2,6,23,.35);
  --shadow-sm: 0 10px 24px rgba(2,6,23,.45);
  --shadow-md: 0 18px 38px rgba(2,6,23,.55);
  --shadow-lg: 0 28px 56px rgba(2,6,23,.62);
}
body[data-theme="dark"]{background:#020617;color:var(--ink-900)}
body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .card,
body[data-theme="dark"] .profile-header,
body[data-theme="dark"] .pf-tabs,
body[data-theme="dark"] .employee-activity-card,
body[data-theme="dark"] .pf-doc-card,
body[data-theme="dark"] .pf-record-card,
body[data-theme="dark"] .salary-metric,
body[data-theme="dark"] .asset-stat-item,
body[data-theme="dark"] .module-modern-stat-item,
body[data-theme="dark"] .module-modern-summary .summary-chip,
body[data-theme="dark"] .topbar-notification-panel,
body[data-theme="dark"] .topbar-profile-menu,
body[data-theme="dark"] .app-modal-dialog,
body[data-theme="dark"] .department-grid-card,
body[data-theme="dark"] .schedule-grid-card,
body[data-theme="dark"] .salary-grid-card,
body[data-theme="dark"] .toolbar .employee-filter-card,
body[data-theme="dark"] .toolbar .department-filter-card,
body[data-theme="dark"] .toolbar .schedule-filter-card{background:#0f172a!important;border-color:rgba(148,163,184,.18)!important;color:var(--ink-900)}
body[data-theme="dark"] .content-area,
body[data-theme="dark"] .main-content{background:transparent}
body[data-theme="dark"] .table,
body[data-theme="dark"] .table th,
body[data-theme="dark"] .table td{background:transparent;color:var(--ink-900);border-color:rgba(148,163,184,.14)}
body[data-theme="dark"] .card-header,
body[data-theme="dark"] .topbar-notification-head,
body[data-theme="dark"] .topbar-notification-foot,
body[data-theme="dark"] .topbar-profile-menu-head{background:#111827!important;border-color:rgba(148,163,184,.14)!important;color:var(--ink-900)}
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .salary-filter-control,
body[data-theme="dark"] .filter-search,
body[data-theme="dark"] .department-search-input{background:#111827!important;color:var(--ink-900)!important;border-color:rgba(148,163,184,.2)!important}
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder{color:var(--ink-500)}
body[data-theme="dark"] .btn.btn-secondary,
body[data-theme="dark"] .btn-view-toggle,
body[data-theme="dark"] .topbar-notification-btn,
body[data-theme="dark"] .topbar-profile-btn,
body[data-theme="dark"] .topbar-appearance-btn{color:var(--ink-900)}
body[data-theme="dark"] .topbar-notification-btn:hover,
body[data-theme="dark"] .topbar-profile-btn:hover,
body[data-theme="dark"] .topbar-appearance-btn:hover,
body[data-theme="dark"] .btn.btn-secondary:hover,
body[data-theme="dark"] .topbar-profile-menu-list a:hover,
body[data-theme="dark"] .topbar-notification-item:hover{background:#1e293b!important;border-color:rgba(148,163,184,.14)!important}
body[data-theme="dark"] .topbar-notification-item.is-unread{background:rgba(76,159,111,.18)!important}
body[data-theme="dark"] .topbar-notification-item.is-unread:hover{background:rgba(76,159,111,.24)!important}
body[data-theme="dark"] .empty-hint,
body[data-theme="dark"] .muted-text,
body[data-theme="dark"] .topbar-date,
body[data-theme="dark"] .topbar-profile-menu-role,
body[data-theme="dark"] .topbar-notification-subtitle,
body[data-theme="dark"] .topbar-notification-item-message,
body[data-theme="dark"] .pf-record-meta,
body[data-theme="dark"] .pf-doc-meta,
body[data-theme="dark"] .pf-label{color:var(--ink-500)!important}
body[data-theme="dark"] .badge-success{background:rgba(22,163,74,.18);color:#86efac}
body[data-theme="dark"] .badge-danger{background:rgba(220,38,38,.18);color:#fca5a5}
body[data-theme="dark"] .badge-warning{background:rgba(245,158,11,.18);color:#fcd34d}
body[data-theme="dark"] .badge-info{background:rgba(59,130,246,.18);color:#93c5fd}
body[data-theme="dark"] .badge-secondary{background:rgba(148,163,184,.18);color:#e2e8f0}
body[data-theme="dark"] a{color:#86efac}
body[data-theme="dark"] .profile-sub,
body[data-theme="dark"] .profile-meta-row,
body[data-theme="dark"] .topbar-subtitle{color:var(--ink-500)}
body[data-theme="dark"] .topbar-search-dropdown,
body[data-theme="dark"] .topbar-search-dropdown-inner{background:#0f172a!important;border-color:rgba(148,163,184,.18)!important}
body[data-theme="dark"] .topbar-search-item,
body[data-theme="dark"] .topbar-search-group-title,
body[data-theme="dark"] .topbar-search-empty{color:var(--ink-900)!important}
body[data-theme="dark"] .topbar-search-item:hover{background:#111827!important}
body[data-theme="dark"] .nav-collapse-btn:hover,
body[data-theme="dark"] .nav-collapse-body a:hover,
body[data-theme="dark"] .sidebar-nav a:hover{background:#111827!important}
body[data-theme="dark"] .nav-collapse-body a.active,
body[data-theme="dark"] .sidebar-nav a.active{background:rgba(76,159,111,.2)!important}

/* HRMS Notification Designer */
.hrms-pending-badge {
  display: inline;
  margin-left: 6px;
  min-width: 0;
  height: auto;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 0;
  background: transparent !important;
  color: #dc2626 !important;
  box-shadow: none;
  line-height: 1.35;
  white-space: nowrap;
}
.hrms-pending-badge.hrms-pending-badge-title {
  margin-left: 10px;
  font-size: 13px;
  height: auto;
  padding: 0;
  background: transparent !important;
  color: #dc2626 !important;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: none;
}
.hrms-pending-badge-group {
  margin-left: auto;
}
.app-wrapper.sidebar-collapsed .nav-collapse-btn {
  position: relative;
}
.app-wrapper.sidebar-collapsed .hrms-pending-badge-group {
  position: absolute;
  top: 6px;
  right: 8px;
  margin-left: 0;
  font-size: 11px;
  line-height: 1;
}
.topbar-notification-panel[hidden] {
  display: none !important;
}
.topbar-notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 420px);
  padding: 10px;
}
.topbar-notification-list .topbar-notification-history-item {
  margin: 0;
}
.nav-item-label+.hrms-pending-badge { margin-right: 0; }
body[data-theme="dark"] .hrms-pending-badge {
  background: transparent !important;
  color: #f87171 !important;
}
body[data-theme="dark"] .hrms-pending-badge.hrms-pending-badge-title {
  background: transparent !important;
  color: #f87171 !important;
}
.topbar-notification-modal-dialog{width:min(100%,720px);max-height:min(82vh,760px);display:flex;flex-direction:column}
.topbar-notification-modal-dialog .app-modal-body{display:flex;flex-direction:column;gap:14px;overflow:hidden}
.topbar-notification-modal-subtitle{font-size:13px;color:#64748b}
.topbar-notification-modal-list{display:flex;flex-direction:column;gap:10px;overflow-y:auto;max-height:min(60vh,520px);padding-right:4px}
.topbar-notification-history-item{display:grid;gap:8px;padding:14px 16px;border-radius:14px;border:1px solid #e2e8f0;background:#ffffff}
.topbar-notification-history-date{font-size:12px;color:#64748b}
.topbar-notification-history-message{font-size:13px;line-height:1.55;color:#0f172a;white-space:pre-wrap;word-break:break-word}
.topbar-notification-history-status{font-size:12px;font-weight:700}
.topbar-notification-history-item[data-status="pending"] .topbar-notification-history-status{color:#dc2626}
.topbar-notification-history-item[data-status="approved"] .topbar-notification-history-status{color:#16a34a}
.topbar-notification-history-item[data-status="rejected"] .topbar-notification-history-status{color:#dc2626}
.topbar-notification-history-item[data-status="read"] .topbar-notification-history-status{color:#475569}
.topbar-notification-history-item[data-status="cancelled"] .topbar-notification-history-status,
.topbar-notification-history-item[data-status="closed"] .topbar-notification-history-status,
.topbar-notification-history-item[data-status="paid"] .topbar-notification-history-status,
.topbar-notification-history-item[data-status="active"] .topbar-notification-history-status,
.topbar-notification-history-item[data-status="fully deducted"] .topbar-notification-history-status{color:#475569}
body[data-theme="dark"] .topbar-notification-modal-subtitle,
body[data-theme="dark"] .topbar-notification-history-date{color:var(--ink-500)}
body[data-theme="dark"] .topbar-notification-history-item{background:#111827;border-color:rgba(148,163,184,.18)}
body[data-theme="dark"] .topbar-notification-history-message{color:var(--ink-900)}
body[data-theme="dark"] .topbar-notification-history-item[data-status="pending"] .topbar-notification-history-status,
body[data-theme="dark"] .topbar-notification-history-item[data-status="rejected"] .topbar-notification-history-status{color:#f87171}
body[data-theme="dark"] .topbar-notification-history-item[data-status="approved"] .topbar-notification-history-status{color:#86efac}
body[data-theme="dark"] .topbar-notification-history-item[data-status="read"] .topbar-notification-history-status,
body[data-theme="dark"] .topbar-notification-history-item[data-status="cancelled"] .topbar-notification-history-status,
body[data-theme="dark"] .topbar-notification-history-item[data-status="closed"] .topbar-notification-history-status,
body[data-theme="dark"] .topbar-notification-history-item[data-status="paid"] .topbar-notification-history-status,
body[data-theme="dark"] .topbar-notification-history-item[data-status="active"] .topbar-notification-history-status,
body[data-theme="dark"] .topbar-notification-history-item[data-status="fully deducted"] .topbar-notification-history-status{color:var(--ink-500)}
@media (max-width:640px){.topbar-notification-modal-dialog{width:min(100%,100%)}.topbar-notification-modal-list{max-height:55vh}.topbar-notification-list{max-height:55vh}}


/* =============================================================
   Header refresh: compact breadcrumbs + menus + global progress
   ============================================================= */
.topbar{padding:12px 24px;gap:18px;align-items:center;z-index:40}
.topbar-title{display:flex;align-items:center;min-width:0;flex:1 1 auto}
.topbar-breadcrumbs{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.topbar-breadcrumb-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap;list-style:none;margin:0;padding:0;min-width:0}
.topbar-breadcrumb-item,.topbar-breadcrumb-separator{display:inline-flex;align-items:center}
.topbar-breadcrumb-link,.topbar-breadcrumb-current{font-size:14px;line-height:1.25;text-decoration:none}
.topbar-breadcrumb-link{color:var(--ink-500);font-weight:600}
.topbar-breadcrumb-link:hover{color:var(--brand-600)}
.topbar-breadcrumb-current{color:var(--ink-950);font-weight:800;max-width:min(48vw,440px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-breadcrumb-separator{color:var(--ink-400);font-size:11px}
.topbar h1,.topbar-subtitle,.topbar-date,.topbar-search-shell{display:none!important}
.topbar-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;flex:0 0 auto}
.topbar-toolbar-item{position:relative;display:inline-flex;align-items:center}
.topbar-toolbar-btn{height:38px;min-height:38px;padding:0 12px;border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--ink-900);display:inline-flex;align-items:center;gap:8px;box-shadow:var(--shadow-xs);cursor:pointer;font:inherit;font-weight:600;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
.topbar-toolbar-btn:hover{background:#f8fafc;border-color:#dbe3ec;color:var(--ink-950)}
.topbar-toolbar-btn:focus-visible{outline:none;box-shadow:var(--ring)}
.topbar-toolbar-btn.is-open{background:#eef2ff;border-color:#c7d2fe}
.topbar-toolbar-icon{display:inline-flex;align-items:center;justify-content:center;font-size:16px}
.topbar-toolbar-label{font-size:13px;line-height:1;white-space:nowrap}
.topbar-toolbar-chevron{font-size:11px;color:var(--ink-500);transition:transform .15s ease}
.topbar-toolbar-btn.is-open .topbar-toolbar-chevron{transform:rotate(180deg)}
.topbar-toolbar-menu{position:absolute;top:calc(100% + 10px);right:0;min-width:190px;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 20px 40px -12px rgba(15,23,42,.18);z-index:90}
.topbar-toolbar-option{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#1f2937;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-align:left;transition:background .15s ease,color .15s ease}
.topbar-toolbar-option:hover,.topbar-toolbar-option:focus-visible{background:#f1f5f9;color:#0f172a;outline:none}
.topbar-toolbar-option.is-active{background:#eef2ff;color:#3730a3}
.topbar-language-flag{display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
.topbar-language-btn .topbar-language-flag{font-size:16px}
.topbar-appearance-btn,.topbar-language-btn{width:auto;height:38px}
.topbar-notification-btn,.topbar-profile-btn{height:38px;min-height:38px}
.topbar-notification-btn{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow-xs)}
.topbar-profile{margin-left:0}
.topbar-profile-btn{padding:4px 10px 4px 4px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow-xs)}
.topbar-profile-btn:hover{background:#f8fafc;border-color:#dbe3ec}
.topbar-user-img{width:30px;height:30px}
.topbar-user-name{max-width:120px;font-size:13px}
.hrms-pending-badge.hrms-pending-badge-title{margin-left:0;font-size:12px;line-height:1.35}
.hrms-top-progress{position:fixed;top:0;left:0;right:0;height:3px;pointer-events:none;z-index:120;opacity:0;transition:opacity .18s ease}
.hrms-top-progress.is-active{opacity:1}
.hrms-top-progress-bar{width:100%;height:100%;background:linear-gradient(90deg,var(--brand-500),#60a5fa);transform-origin:left center;transform:scaleX(0);transition:transform .18s ease-out;box-shadow:0 0 14px rgba(76,159,111,.35)}
.hrms-top-progress.is-complete{opacity:0}
@media (max-width:1024px){.topbar{padding:10px 18px}.content-area{padding:24px 20px 32px}.topbar-breadcrumb-current{max-width:min(60vw,360px)}}
@media (max-width:820px){.topbar{flex-wrap:wrap;align-items:flex-start}.topbar-title,.topbar-right{width:100%}.topbar-right{justify-content:flex-start}.topbar-breadcrumb-current{max-width:100%}}
@media (max-width:560px){.topbar-toolbar-btn{padding:0 10px}.topbar-toolbar-menu{min-width:170px}.topbar-user-name{max-width:88px}.topbar-breadcrumb-link,.topbar-breadcrumb-current{font-size:13px}}
body[data-theme="dark"] .topbar-toolbar-btn,body[data-theme="dark"] .topbar-notification-btn,body[data-theme="dark"] .topbar-profile-btn{background:#0f172a!important;border-color:rgba(148,163,184,.18)!important;color:var(--ink-900)!important}
body[data-theme="dark"] .topbar-toolbar-btn:hover,body[data-theme="dark"] .topbar-notification-btn:hover,body[data-theme="dark"] .topbar-profile-btn:hover,body[data-theme="dark"] .topbar-toolbar-option:hover,body[data-theme="dark"] .topbar-toolbar-option:focus-visible{background:#111827!important}
body[data-theme="dark"] .topbar-toolbar-btn.is-open,body[data-theme="dark"] .topbar-toolbar-option.is-active{background:rgba(76,159,111,.18)!important;border-color:rgba(76,159,111,.30)!important;color:#bbf7d0!important}
body[data-theme="dark"] .topbar-toolbar-menu{background:#0f172a!important;border-color:rgba(148,163,184,.18)!important}
body[data-theme="dark"] .topbar-breadcrumb-link{color:var(--ink-500)}
body[data-theme="dark"] .topbar-breadcrumb-current{color:var(--ink-950)}
body[data-theme="dark"] .topbar-breadcrumb-separator{color:rgba(148,163,184,.8)}
body[data-theme="dark"] .hrms-top-progress-bar{background:linear-gradient(90deg,#65c18c,#60a5fa);box-shadow:0 0 16px rgba(101,193,140,.45)}


/* === HRMS Sidebar 2026 patch === */
:root{--sidebar-bg:#FAFAFA;--sidebar-section-bg:#F0F0F1;--content-bg:#FFFFFF;--sidebar-active-bg:transparent;--sidebar-active-border:transparent;--sidebar-text:#000000;--sidebar-muted:rgba(0,0,0,.64)}
body{background:var(--content-bg);color:var(--sidebar-text)}
.main-content,.content-area,.topbar{background:var(--content-bg)}
.sidebar{background:var(--sidebar-bg);color:var(--sidebar-text)}
.sidebar-nav a,.nav-collapse-body a,.sidebar-link-list a,.nav-collapse-btn,.brand-text,.u-name{color:var(--sidebar-text)}
.sidebar-nav a.active,.nav-collapse-body a.active,.sidebar-link-list a.active{background:var(--sidebar-active-bg)!important;color:var(--sidebar-text)!important;box-shadow:inset 3px 0 0 var(--sidebar-active-border)}
.sidebar-nav a:hover,.nav-collapse-body a:hover,.sidebar-link-list a:hover,.nav-collapse-btn:hover{background:rgba(22,163,74,.08)!important;color:var(--sidebar-text)!important}
.sidebar-nav a.active::before,.nav-collapse-body a.active::before,.sidebar-link-list a.active::before{background:var(--sidebar-active-border)!important}
.topbar-breadcrumb-link,.topbar-breadcrumb-current{color:var(--sidebar-text)}


/* === HRMS sidebar refinement: typography + scrollbar + active state === */
:root{
  --hrms-sidebar-module-color:#000000;
  --hrms-sidebar-heading-color:#000000;
  --hrms-sidebar-scrollbar-thumb:rgba(100,116,139,.45);
  --hrms-sidebar-scrollbar-thumb-hover:rgba(100,116,139,.65);
  --hrms-sidebar-scrollbar-track:transparent;
}
.sidebar{
  overflow-y:auto;
  overflow-x:hidden;
  box-sizing:border-box;
  scrollbar-width:thin;
  scrollbar-color:var(--hrms-sidebar-scrollbar-thumb) var(--hrms-sidebar-scrollbar-track);
  scrollbar-gutter:stable;
}
.sidebar::-webkit-scrollbar{width:6px;height:6px}
.sidebar::-webkit-scrollbar-track{background:var(--hrms-sidebar-scrollbar-track)}
.sidebar::-webkit-scrollbar-thumb{background:var(--hrms-sidebar-scrollbar-thumb);border-radius:999px}
.sidebar::-webkit-scrollbar-thumb:hover{background:var(--hrms-sidebar-scrollbar-thumb-hover)}
.sidebar-nav{padding-right:8px;box-sizing:border-box;min-width:0}
.nav-collapse-body,.sidebar-link-list{min-width:0}
.sidebar-section-heading,
.sidebar-panel-title{
  background:none!important;
  border-radius:0!important;
  font-family:var(--hrms-font-family)!important;
  font-style:normal;
  font-weight:700!important;
  font-size:13px!important;
  line-height:13px!important;
  color:#6a7282!important;
}
.sidebar-section-heading,
.sidebar-panel-title,
.sidebar-panel-title-label,
.nav-collapse-btn,
.ncb-label{
  font-family:var(--hrms-font-family)!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.nav-collapse-btn,
.ncb-label{
  font-style:normal;
  font-weight:700!important;
  font-size:13px!important;
  line-height:13px!important;
  color:#6a7282!important;
}
.sidebar-nav a,
.nav-collapse-body a,
.sidebar-link-list a,
.nav-item-label{
  font-family:system-ui!important;
  font-style:normal;
  font-weight:400!important;
  font-size:14px!important;
  line-height:20px!important;
  color:var(--hrms-sidebar-module-color)!important;
}
.nav-collapse-btn i,
.ncb-chevron,
.ncb-chevron i{
  color:#6a7282!important;
}
.sidebar-nav a i,
.nav-collapse-body a i,
.sidebar-link-list a i{
  color:var(--hrms-sidebar-module-color)!important;
}
.sidebar-nav a,
.nav-collapse-btn,
.nav-collapse-body a,
.sidebar-link-list a{
  background:transparent!important;
  border-color:transparent!important;
}
.sidebar-nav a:hover,
.nav-collapse-btn:hover,
.nav-collapse-body a:hover,
.sidebar-link-list a:hover,
.nav-collapse-btn.open:hover,
.sidebar-nav a.active:hover,
.nav-collapse-body a.active:hover,
.sidebar-link-list a.active:hover{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.sidebar-nav a.active,
.nav-collapse-body a.active,
.sidebar-link-list a.active{
  background:transparent!important;
  color:#10B77F!important;
  box-shadow:none!important;
  font-weight:400!important;
}
.sidebar-nav a.active i,
.nav-collapse-body a.active i,
.sidebar-link-list a.active i,
.sidebar-nav a.active .nav-item-label,
.nav-collapse-body a.active .nav-item-label,
.sidebar-link-list a.active .nav-item-label{
  color:#10B77F!important;
}
.sidebar-nav a::before,
.nav-collapse-body a::before,
.sidebar-link-list a::before,
.sidebar-nav a.active::before,
.nav-collapse-body a.active::before,
.sidebar-link-list a.active::before{
  background:transparent!important;
  display:none!important;
}
body[data-theme="dark"] .sidebar{
  scrollbar-color:rgba(148,163,184,.42) transparent;
}
body[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb{background:rgba(148,163,184,.42)}
body[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb:hover{background:rgba(148,163,184,.62)}
body[data-theme="dark"] .sidebar-section-heading,
body[data-theme="dark"] .sidebar-panel-title,
body[data-theme="dark"] .sidebar-panel-title-label{
  color:#6a7282!important;
}
body[data-theme="dark"] .sidebar-nav a,
body[data-theme="dark"] .nav-collapse-body a,
body[data-theme="dark"] .sidebar-link-list a,
body[data-theme="dark"] .nav-item-label,
body[data-theme="dark"] .sidebar-nav a i,
body[data-theme="dark"] .nav-collapse-body a i,
body[data-theme="dark"] .sidebar-link-list a i{
  color:var(--hrms-sidebar-module-color)!important;
}
body[data-theme="dark"] .nav-collapse-btn,
body[data-theme="dark"] .ncb-label,
body[data-theme="dark"] .nav-collapse-btn i,
body[data-theme="dark"] .ncb-chevron,
body[data-theme="dark"] .ncb-chevron i{
  color:#6a7282!important;
}
body[data-theme="dark"] .sidebar-nav a.active,
body[data-theme="dark"] .nav-collapse-body a.active,
body[data-theme="dark"] .sidebar-link-list a.active{
  background:transparent!important;
  color:#10B77F!important;
}
body[data-theme="dark"] .sidebar-nav a.active i,
body[data-theme="dark"] .nav-collapse-body a.active i,
body[data-theme="dark"] .sidebar-link-list a.active i,
body[data-theme="dark"] .sidebar-nav a.active .nav-item-label,
body[data-theme="dark"] .nav-collapse-body a.active .nav-item-label,
body[data-theme="dark"] .sidebar-link-list a.active .nav-item-label{
  color:#10B77F!important;
}


/* =============================================================
   Global typography harmonization
   ============================================================= */
html,
body,
button,
input,
select,
textarea,
option,
.table,
.card,
.alert,
.badge,
.modal,
.dropdown-menu,
.dropdown-item,
.breadcrumb,
.topbar-breadcrumb-link,
.topbar-breadcrumb-current,
.sidebar,
.topbar,
.content-area {
  font-family: var(--hrms-font-family);
}

.employee-page-title,
.master-page-header .employee-page-title,
.employee-page-header .employee-page-title,
.attendance-mark-page-title {
  font-family: var(--hrms-font-family) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  line-height: 28px !important;
  color: #0a0a0a !important;
  letter-spacing: 0 !important;
}

/* =============================================================
   Task 1: Simplified Calendar Styles
   ============================================================= */
.hrms-calendar-shell--simplified { padding: 0; margin: 0; }
.hrms-calendar-card--simplified {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 180px);
}
.hrms-calendar-main--full { flex: 1; min-width: 0; }
.hrms-calendar-main--full .hrms-calendar-month-view,
.hrms-calendar-main--full .hrms-calendar-agenda-view { flex: 1; min-height: 560px; }
.hrms-calendar-legend-dot.is-company,.hrms-calendar-event-pill.is-company,.hrms-calendar-modal-badge.is-company,.hrms-calendar-highlight.is-company{background:rgba(14,165,233,.14);color:#0369a1;border-color:rgba(14,165,233,.22)}
.hrms-calendar-legend-dot.is-training,.hrms-calendar-event-pill.is-training,.hrms-calendar-modal-badge.is-training,.hrms-calendar-highlight.is-training{background:rgba(168,85,247,.14);color:#7e22ce;border-color:rgba(168,85,247,.22)}
.hrms-calendar-legend-dot.is-event,.hrms-calendar-event-pill.is-event,.hrms-calendar-modal-badge.is-event,.hrms-calendar-highlight.is-event{background:rgba(244,63,94,.14);color:#be123c;border-color:rgba(244,63,94,.22)}

/* =============================================================
   Task 2: Redesigned Organization Chart – screenshot parity
   ============================================================= */
.org-chart-page-redesign { display: flex; flex-direction: column; gap: 18px; }
.org-chart-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}
.org-chart-meta-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-700);
}
.org-chart-meta-count i { font-size: 16px; color: var(--brand-500); }
.org-chart-meta-legend { display: inline-flex; align-items: center; gap: 18px; font-size: 12px; color: var(--ink-600); }
.org-chart-meta-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.org-chart-meta-legend-item .org-chart-meta-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.org-chart-meta-dot.is-active { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.org-chart-meta-dot.is-inactive { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }

.org-chart-canvas {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
  min-height: 600px;
  padding: 28px 22px 34px;
}
.org-chart-tree { display: flex; flex-direction: column; align-items: center; min-width: max-content; width: fit-content; margin: 0 auto; }
.org-chart-company-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 150px; padding: 14px 14px 12px;
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px -10px rgba(34,197,94,.25);
}
.org-chart-company-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #ffffff 100%);
  color: #16a34a;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(34,197,94,.18);
  margin-bottom: 2px;
}
.org-chart-company-name { font-size: 14px; font-weight: 800; color: var(--ink-950); }
.org-chart-company-role { font-size: 12px; color: #16a34a; font-weight: 700; }
.org-chart-company-status {
  position: absolute; bottom: -14px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: #22c55e; color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(34,197,94,.3);
}
.org-chart-company-status i { font-size: 11px; }
.org-chart-company-line { width: 2px; height: 36px; background: #cbd5e1; margin: 18px auto 0; }

.org-chart-tree .org-chart-level,
.org-chart-tree .org-chart-level ul {
  list-style: none; margin: 0; padding-left: 0;
  display: flex; justify-content: center; position: relative;
}
.org-chart-tree .org-chart-level > li {
  position: relative;
  padding: 24px 8px 0;
  text-align: center;
}
.org-chart-tree .org-chart-level > li::before,
.org-chart-tree .org-chart-level > li::after {
  content: ''; position: absolute; top: 0; width: 50%; height: 24px;
  border-top: 1.5px solid #cbd5e1;
}
.org-chart-tree .org-chart-level > li::before { right: 50%; }
.org-chart-tree .org-chart-level > li::after  { left: 50%; border-left: 1.5px solid #cbd5e1; }
.org-chart-tree .org-chart-level > li:only-child { padding-top: 0; }
.org-chart-tree .org-chart-level > li:only-child::before,
.org-chart-tree .org-chart-level > li:only-child::after { display: none; }
.org-chart-tree .org-chart-level > li:first-child::before { border: 0; }
.org-chart-tree .org-chart-level > li:first-child::after  { border-radius: 14px 0 0 0; }
.org-chart-tree .org-chart-level > li:last-child::after { border: 0; }
.org-chart-tree .org-chart-level > li:last-child::before { border-right: 1.5px solid #cbd5e1; border-radius: 0 14px 0 0; }
.org-chart-tree .org-chart-level > li > ul { position: relative; padding-top: 24px; }
.org-chart-tree .org-chart-level > li > ul::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 0; height: 24px; border-left: 1.5px solid #cbd5e1;
}

.org-chart-tree .org-chart-node {
  width: 160px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 12px 10px;
  box-shadow: 0 6px 18px -14px rgba(15,23,42,.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.org-chart-tree .org-chart-node:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(15,23,42,.25); border-color: rgba(22,163,74,.25); }
.org-chart-tree .org-chart-node .org-chart-avatar {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
  color: #0f172a;
  font-size: 14px; font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08);
  margin: 0 auto 4px;
}
.org-chart-tree .org-chart-node .org-chart-avatar::after {
  content: '';
  position: absolute; bottom: 2px; right: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #22c55e; border: 2px solid #ffffff;
}
.org-chart-tree .org-chart-node.is-inactive .org-chart-avatar::after { background: #ef4444; }
.org-chart-tree .org-chart-node-name { display: block; color: var(--ink-950); font-size: 13px; font-weight: 800; line-height: 1.25; text-decoration: none; word-break: break-word; }
.org-chart-tree .org-chart-node-name:hover { color: var(--brand-600); }
.org-chart-tree .org-chart-node-role { font-size: 12px; color: #16a34a; font-weight: 700; }
.org-chart-tree .org-chart-node .badge,
.org-chart-tree .org-chart-node .org-chart-node-details,
.org-chart-tree .org-chart-node .org-chart-node-foot { display: none !important; }
.org-chart-tree .org-chart-node-head {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.org-chart-tree .org-chart-node-head .org-chart-node-meta { min-width: 0; text-align: center; }
.org-chart-scroll { overflow: auto; padding: 0; background: transparent; }

@media (max-width: 1080px) {
  .org-chart-tree .org-chart-node { width: 140px; padding: 10px; }
  .org-chart-company-card { width: 130px; }
  .org-chart-meta-bar { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   Task 3: Remove gap between sidebar and content
   ============================================================= */
.app-wrapper { gap: 0 !important; }
.app-wrapper > .main-content {
  padding-left: 0;
  border-left: 0;
  margin-left: var(--sidebar-w);
}
.app-wrapper.sidebar-collapsed > .main-content { margin-left: var(--sidebar-w-collapsed); }
@media (max-width: 820px) {
  .app-wrapper > .main-content,
  .app-wrapper.sidebar-collapsed > .main-content { margin-left: 0; }
}

/* =============================================================
   Task 5: Compact sidebar menu spacing
   ============================================================= */
.app-wrapper .sidebar-nav { gap: 1px !important; }
.app-wrapper .sidebar-nav a,
.app-wrapper .nav-collapse-body a,
.app-wrapper .sidebar-link-list a {
  padding: 6px 12px !important;
  min-height: 32px !important;
  gap: 10px !important;
  font-size: 13px !important;
}
.app-wrapper .nav-collapse-body,
.app-wrapper .sidebar-link-list { gap: 1px !important; }
.app-wrapper .sidebar-section { gap: 4px !important; }
.app-wrapper .sidebar-section-heading,
.app-wrapper .sidebar-panel-title { padding: 4px 12px !important; margin: 0 !important; }
.app-wrapper .sidebar-brand { padding: 16px 18px 12px !important; }

/* =============================================================
   Task 6: Branches – remove summary cards
   ============================================================= */
body .branches-module-no-summary .module-modern-summary,
body .branches-module-no-summary + * .module-modern-summary,
[data-module="branches"] .module-modern-summary { display: none !important; }

/* =============================================================
   Employee module redesign refinements
   ============================================================= */
.employee-filter-card-redesign{padding:18px 20px;border-radius:20px}
.employee-filter-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.employee-filter-search-row{display:flex;align-items:center;gap:10px;flex:1 1 620px;flex-wrap:wrap}
.employee-search-input-wrap{position:relative;flex:1 1 300px;min-width:260px}
.employee-search-input-wrap>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:14px;pointer-events:none}
.employee-search-input-wrap .employee-filter-search-input{width:100%;padding-left:40px!important}
.employee-filter-top-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.employee-inline-action{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.employee-filter-panel{margin-top:16px;padding:16px;border:1px solid rgba(148,163,184,.18);border-radius:16px;background:#f8fafc}
.employee-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;align-items:end}
.employee-filter-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.employee-filter-field label{font-size:12px;font-weight:700;color:#475569}
.employee-filter-actions-row{display:flex;align-items:center;gap:10px;grid-column:1/-1;flex-wrap:wrap}
.searchable-select{position:relative}
.searchable-select-native{position:absolute!important;inset:0!important;opacity:0!important;pointer-events:none!important}
.searchable-select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 14px;text-align:left}
.searchable-select-trigger i{color:#94a3b8;font-size:12px;transition:transform .18s ease}
.searchable-select.is-open .searchable-select-trigger i{transform:rotate(180deg)}
.searchable-select-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:40;background:#fff;border:1px solid rgba(148,163,184,.22);border-radius:16px;box-shadow:0 18px 36px rgba(15,23,42,.12);padding:12px}
.searchable-select-search{width:100%;height:42px;border:1px solid rgba(148,163,184,.24);border-radius:12px;padding:0 12px;font:inherit;color:#0f172a;background:#fff;margin-bottom:10px}
.searchable-select-search:focus{outline:none;border-color:var(--brand-500);box-shadow:0 0 0 3px rgba(76,159,111,.12)}
.searchable-select-options{display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto}
.searchable-select-option{width:100%;border:none;background:#fff;border-radius:10px;padding:10px 12px;text-align:left;font:inherit;color:#0f172a;cursor:pointer}
.searchable-select-option:hover,.searchable-select-option.is-active{background:rgba(22,163,74,.08)}
.searchable-select-option.is-selected{color:#0f766e;font-weight:700}
.searchable-select-empty{padding:10px 12px;color:#64748b;font-size:12px}
.employee-table-redesign thead th{font-size:12px;text-transform:none;color:#334155;white-space:nowrap;background:#F0F0F1;padding:10px 12px;border-bottom:1px solid #e5e7eb;box-sizing:border-box}
.employee-table-redesign{table-layout:auto;border-collapse:collapse}
.employee-table-redesign thead th,
.employee-table-redesign tbody td{box-sizing:border-box}
.master-table thead th, .department-table thead th, .schedule-table thead th {
  text-align: left;
  font-weight: 700;
  vertical-align: middle;
  box-sizing: border-box;
  background: #F0F0F1;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.master-table, .department-table, .schedule-table { table-layout: auto; border-collapse: collapse; }
.master-table tbody td, .department-table tbody td, .schedule-table tbody td {
  vertical-align: middle;
  text-align: left;
  box-sizing: border-box;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-100);
}
.master-table tbody td.actions, .department-table tbody td.actions, .schedule-table tbody td.actions {
  text-align: right;
}
.master-table tbody td.actions .master-action-group, .department-table tbody td.actions .master-action-group, .schedule-table tbody td.actions .module-modern-action-group {
  justify-content: flex-end;
}
.master-table tbody td .status-text, .department-table tbody td .status-text, .schedule-table tbody td .status-text {
  font-weight: 700;
}
.employee-row-index{color:#64748b;font-weight:600;width:52px}
.employee-cell{display:flex;align-items:center;gap:10px;min-width:220px}
.employee-cell-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,rgba(22,163,74,.14),rgba(15,23,42,.08));display:flex;align-items:center;justify-content:center;color:#166534;font-size:13px;font-weight:800;flex-shrink:0}
.employee-cell-avatar img{width:100%;height:100%;object-fit:cover}
.employee-cell-meta{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.3}
.employee-id-text{font-size:12px;color:#64748b;font-weight:600;line-height:1.25}
.employee-table-redesign td{vertical-align:middle;padding:10px 12px;line-height:1.3}
.employee-view-shell{display:grid;gap:18px}
.employee-view-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.employee-view-page-title{margin:0;font-size:30px;font-weight:800;color:#0f172a}
.employee-view-page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.employee-view-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}
.employee-view-summary{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;border-radius:22px}
.employee-view-summary-photo{width:120px;height:120px;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,rgba(22,163,74,.16),rgba(15,23,42,.10));display:flex;align-items:center;justify-content:center;color:#166534;font-size:42px;font-weight:800}
.employee-view-summary-photo img{width:100%;height:100%;object-fit:cover}
.employee-view-summary-name{font-size:30px;line-height:1.1;font-weight:800;color:#0f172a}
.employee-view-summary-role{font-size:15px;color:#64748b}
.employee-view-summary-list{display:grid;gap:10px;width:100%;padding-top:8px}
.employee-view-summary-item{display:flex;align-items:flex-start;gap:10px;color:#475569;font-size:13px;line-height:1.45}
.employee-view-summary-item i{width:16px;color:#94a3b8;flex-shrink:0;margin-top:2px}
.employee-view-detail .pf-tabs{border-radius:22px;overflow:hidden}
.employee-view-detail .pf-tab-nav{padding:14px 16px;background:#f8fafc}
.employee-view-detail .pf-tab-btn{border-radius:12px;padding:10px 16px;font-weight:600}
.employee-view-detail .pf-tab-btn.active{background:#fff;color:#0f172a;border-color:#e2e8f0;box-shadow:0 6px 18px rgba(15,23,42,.08)}
.employee-view-detail .pf-tab-body{padding:22px}
.employee-view-detail .pf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}
.employee-view-detail .pf-field{padding-bottom:14px;border-bottom:1px solid #e2e8f0}
.employee-view-detail .pf-value{font-size:15px;font-weight:600;color:#0f172a}
@media (max-width:1100px){.employee-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-view-layout{grid-template-columns:1fr}.employee-view-summary{flex-direction:column}}
@media (max-width:720px){.employee-filter-card-redesign{padding:16px}.employee-filter-grid{grid-template-columns:1fr}.employee-filter-search-row,.employee-filter-top-tools,.employee-filter-actions-row,.employee-view-page-actions{width:100%}.employee-inline-action,.employee-add-btn,.view-toggle-group{width:100%;justify-content:center}.employee-view-page-title,.employee-view-summary-name{font-size:24px}.employee-view-detail .pf-grid{grid-template-columns:1fr}}
body[data-theme="dark"] .employee-filter-panel,body[data-theme="dark"] .searchable-select-panel,body[data-theme="dark"] .employee-view-summary{background:#0f172a;border-color:rgba(148,163,184,.18)}
body[data-theme="dark"] .searchable-select-trigger,body[data-theme="dark"] .searchable-select-option,body[data-theme="dark"] .searchable-select-search{background:#111827!important;color:var(--ink-900)!important;border-color:rgba(148,163,184,.18)!important}
body[data-theme="dark"] .employee-view-page-title,body[data-theme="dark"] .employee-view-summary-name,body[data-theme="dark"] .employee-view-detail .pf-value{color:var(--ink-900)}


/* =============================================================
   Employee list toolbar + filters refresh (requested update)
   ============================================================= */
.toolbar-employee-list,
.employee-filter-card,
.employee-filter-panel,
.employee-filter-grid,
.employee-filter-field,
.searchable-select {
  overflow: visible !important;
}
.toolbar-employee-list {
  align-items: stretch;
}
.employee-filter-card-redesign {
  width: 100%;
  padding: 16px 18px !important;
  border-radius: 18px !important;
}
.employee-toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.employee-toolbar-left,
.employee-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.employee-toolbar-right {
  margin-left: auto;
  justify-content: flex-end;
}
.employee-search-input-wrap-compact {
  flex: 0 1 240px;
  min-width: 200px;
}
.employee-search-input-wrap .employee-filter-search-input,
.employee-filter-controls .filter-search,
.employee-filter-field .filter-select,
.searchable-select-trigger,
.searchable-select-search {
  min-height: 42px !important;
  height: 42px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}
.employee-inline-action {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
}
.employee-inline-action-full {
  width: 100%;
  justify-content: center;
}
.employee-inline-action.btn-primary,
.employee-add-btn.btn-primary {
  background: var(--brand-500) !important;
  border-color: var(--brand-500) !important;
  color: #ffffff !important;
}
.employee-inline-action.btn-primary:hover,
.employee-inline-action.btn-primary:focus,
.employee-inline-action.btn-primary:focus-visible,
.employee-add-btn.btn-primary:hover,
.employee-add-btn.btn-primary:focus,
.employee-add-btn.btn-primary:focus-visible {
  background: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
  color: #ffffff !important;
}
.employee-filter-panel {
  margin-top: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.employee-filter-grid-single-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) repeat(2, minmax(110px, max-content));
  gap: 12px;
  align-items: end;
}
.employee-filter-field {
  min-width: 0;
}
.employee-filter-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.employee-filter-action-field {
  align-self: end;
}
.employee-filter-field .filter-select,
.searchable-select-trigger {
  width: 100%;
}
.searchable-select {
  position: relative;
  z-index: 25;
}
.searchable-select.is-open {
  z-index: 1400;
}
.searchable-select-native {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.searchable-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px !important;
  text-align: left;
  border: 1px solid var(--border) !important;
  background: #ffffff !important;
  color: var(--ink-900) !important;
  box-shadow: none !important;
}
.searchable-select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.searchable-select-trigger i {
  color: #94a3b8;
  font-size: 11px !important;
  transition: transform .18s ease;
}
.searchable-select.is-open .searchable-select-trigger i {
  transform: rotate(180deg);
}
.searchable-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1500 !important;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(15,23,42,.12);
  padding: 10px;
}
.searchable-select-search {
  width: 100%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-900);
  padding: 0 12px !important;
  margin-bottom: 8px;
  box-shadow: none !important;
}
.searchable-select-trigger:focus,
.searchable-select-trigger:focus-visible,
.searchable-select-search:focus,
.searchable-select-search:focus-visible,
.employee-search-input-wrap .employee-filter-search-input:focus,
.employee-search-input-wrap .employee-filter-search-input:focus-visible {
  outline: none;
  border-color: var(--brand-500) !important;
  box-shadow: var(--ring) !important;
}
.searchable-select-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}
.searchable-select-option {
  width: 100%;
  border: none;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: var(--ink-900);
  cursor: pointer;
}
.searchable-select-option:hover,
.searchable-select-option.is-active {
  background: rgba(22,163,74,.08);
}
.searchable-select-option.is-selected {
  color: var(--brand-600);
  font-weight: 700;
}
.employee-view-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-height: 38px;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.employee-view-toggle-group .btn-view-toggle {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 12px;
  background: #ffffff !important;
  border: 1px solid #D1D5DB !important;
  color: #111827 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.employee-view-toggle-group .btn-view-toggle i {
  font-size: 16px !important;
  color: inherit !important;
  opacity: 1 !important;
}
.employee-view-toggle-group .btn-view-toggle:hover,
.employee-view-toggle-group .btn-view-toggle:focus,
.employee-view-toggle-group .btn-view-toggle:focus-visible {
  background: #ffffff !important;
  border-color: #D1D5DB !important;
  color: #111827 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
.employee-view-toggle-group .btn-view-toggle.active {
  background: #10B77F !important;
  border-color: #10B77F !important;
  color: #ffffff !important;
  opacity: 1 !important;
}
.employee-view-toggle-group .btn-view-toggle.active:hover,
.employee-view-toggle-group .btn-view-toggle.active:focus,
.employee-view-toggle-group .btn-view-toggle.active:focus-visible {
  background: #10B77F !important;
  border-color: #10B77F !important;
  color: #ffffff !important;
}
.employee-card-actions,
.action-icons-only {
  gap: 12px !important;
}
.employee-card-actions .btn-icon.icon-only,
.action-icons-only .btn-icon.icon-only {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 2px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.employee-card-actions .btn-icon.icon-only i,
.action-icons-only .btn-icon.icon-only i {
  font-size: 18px !important;
}
.employee-action-view {
  color: #59B87F !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.employee-action-password {
  color: var(--brand-500) !important;
}
.employee-action-edit {
  color: #fb923c !important;
}
.employee-action-exit {
  color: #f97316 !important;
}
.employee-action-delete {
  color: #dc2626 !important;
}
.employee-action-view:hover,
.employee-action-view:focus,
.employee-action-view:focus-visible {
  color: #59B87F !important;
  background: transparent !important;
  border-color: transparent !important;
  opacity: 1;
  box-shadow: none !important;
}
.employee-action-password:hover,
.employee-action-password:focus,
.employee-action-password:focus-visible,
.employee-action-edit:hover,
.employee-action-edit:focus,
.employee-action-edit:focus-visible,
.employee-action-exit:hover,
.employee-action-exit:focus,
.employee-action-exit:focus-visible,
.employee-action-delete:hover,
.employee-action-delete:focus,
.employee-action-delete:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  opacity: .8;
  box-shadow: none !important;
}
@media (max-width: 1280px) {
  .employee-filter-grid-single-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}
@media (max-width: 980px) {
  .employee-toolbar-main {
    align-items: stretch;
  }
  .employee-toolbar-left,
  .employee-toolbar-right {
    width: 100%;
  }
  .employee-toolbar-right {
    margin-left: 0;
    justify-content: space-between;
  }
  .employee-filter-grid-single-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .employee-toolbar-left,
  .employee-toolbar-right {
    flex-direction: column;
    align-items: stretch;
  }
  .employee-search-input-wrap-compact,
  .employee-inline-action,
  .employee-add-btn,
  .employee-view-toggle-group,
  .employee-view-toggle-group .btn-view-toggle {
    width: 100%;
  }
  .employee-view-toggle-group {
    justify-content: center;
  }
  .employee-filter-grid-single-row {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   Employee module UI polish (requested update)
   ============================================================= */
.employee-toolbar-shell .btn.btn-primary,
.employee-view-shell .btn.btn-primary,
.employee-form-shell .btn.btn-primary,
.employee-import-shell .btn.btn-primary,
#employeeExitModal .btn.btn-primary,
#employeePasswordModal .btn.btn-primary {
  background: #59B87F !important;
  border-color: #59B87F !important;
  color: #ffffff !important;
}
.employee-toolbar-shell .btn.btn-primary:hover,
.employee-toolbar-shell .btn.btn-primary:focus,
.employee-toolbar-shell .btn.btn-primary:focus-visible,
.employee-view-shell .btn.btn-primary:hover,
.employee-view-shell .btn.btn-primary:focus,
.employee-view-shell .btn.btn-primary:focus-visible,
.employee-form-shell .btn.btn-primary:hover,
.employee-form-shell .btn.btn-primary:focus,
.employee-form-shell .btn.btn-primary:focus-visible,
.employee-import-shell .btn.btn-primary:hover,
.employee-import-shell .btn.btn-primary:focus,
.employee-import-shell .btn.btn-primary:focus-visible,
#employeeExitModal .btn.btn-primary:hover,
#employeeExitModal .btn.btn-primary:focus,
#employeeExitModal .btn.btn-primary:focus-visible,
#employeePasswordModal .btn.btn-primary:hover,
#employeePasswordModal .btn.btn-primary:focus,
#employeePasswordModal .btn.btn-primary:focus-visible {
  background: #4ca76f !important;
  border-color: #4ca76f !important;
  color: #ffffff !important;
}

.employee-toolbar-shell .btn-employee-outline,
.employee-toolbar-shell .btn-employee-outline:hover,
.employee-toolbar-shell .btn-employee-outline:focus,
.employee-toolbar-shell .btn-employee-outline:focus-visible {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #59B87F !important;
  box-shadow: none !important;
}
.employee-toolbar-shell .btn-employee-outline i,
.employee-toolbar-shell .btn-employee-outline:hover i,
.employee-toolbar-shell .btn-employee-outline:focus i,
.employee-toolbar-shell .btn-employee-outline:focus-visible i {
  color: #59B87F !important;
}

.employee-toolbar-shell .employee-search-input-wrap {
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
}
.employee-toolbar-shell .employee-search-input-wrap:focus-within {
  border-color: #59B87F !important;
  box-shadow: 0 0 0 3px rgba(89,184,127,.12) !important;
}
.employee-toolbar-shell .employee-search-input-wrap .employee-filter-search-input,
.employee-toolbar-shell .employee-search-input-wrap .employee-filter-search-input:focus,
.employee-toolbar-shell .employee-search-input-wrap .employee-filter-search-input:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.employee-toolbar-shell .employee-toolbar-card {
  padding: 12px 14px !important;
  gap: 10px !important;
}
.employee-toolbar-shell .employee-toolbar-main {
  gap: 10px !important;
}
.employee-toolbar-shell .employee-toolbar-left,
.employee-toolbar-shell .employee-toolbar-right {
  gap: 8px !important;
}
.employee-toolbar-shell .employee-inline-action,
.employee-toolbar-shell .employee-search-input-wrap,
.employee-toolbar-shell .employee-per-page-select,
.employee-toolbar-shell .employee-view-toggle-group .btn-view-toggle,
.employee-toolbar-shell .searchable-select-trigger,
.employee-toolbar-shell .searchable-select-search,
.employee-toolbar-shell .employee-filter-field .filter-select {
  min-height: 40px !important;
  height: 40px !important;
}
.employee-toolbar-shell .employee-inline-action {
  padding: 0 14px !important;
}
.employee-toolbar-shell .employee-view-toggle-group {
  gap: 6px !important;
}
.employee-toolbar-shell .employee-view-toggle-group .btn-view-toggle {
  width: auto !important;
  min-width: 40px !important;
  padding: 0 10px !important;
}
.employee-toolbar-shell .employee-per-page-select {
  min-width: 68px !important;
  width: auto !important;
  padding: 0 24px 0 10px !important;
}
.employee-toolbar-shell .employee-filter-panel {
  margin-top: 10px !important;
}
.employee-toolbar-shell .employee-filter-grid-single-row {
  gap: 10px !important;
}
.employee-toolbar-shell .employee-filter-field label {
  margin-bottom: 5px !important;
}

.employee-status-badge {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 0 !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 16px !important;
  letter-spacing: normal !important;
}
.employee-status-badge::before {
  display: none !important;
  content: none !important;
}
.employee-status-active { color: #59B87F !important; }
.employee-status-inactive { color: #f59e0b !important; }
.employee-status-resigned { color: #f59e0b !important; }
.employee-status-terminated { color: #dc2626 !important; }
.employee-status-probation { color: #f59e0b !important; }
.employee-status-contract-end { color: #60a5fa !important; }
.employee-status-retired,
.employee-status-default { color: #64748b !important; }
/* Strip the badge / leading dot so Employee status matches
   the plain coloured text used by Department / Designation / Branches. */
.employee-status-badge {
  display: inline-block;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  letter-spacing: normal;
  font-weight: 700;
  line-height: 1.3;
}
.employee-status-badge::before { display: none !important; content: none !important; }

/* Plain-text status (no dot, no badge/background) used across modules */
.status-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  letter-spacing: normal;
}
.status-text::before { display: none !important; content: none !important; }
.status-text--active { color: #59B87F !important; }
.status-text--inactive { color: #f59e0b !important; }
body[data-theme="dark"] .status-text--active { color: #59B87F !important; }
body[data-theme="dark"] .status-text--inactive { color: #f59e0b !important; }

/* ============================================================
   Module UI Standardization (Employee, Branches, Department,
   Designation, Attendance, Time In, Time Out, Time Sheet,
   Shifts & Schedule, Overtime, Shift Swap Request)
   - Filter -> Data Table spacing = 10px (filter bottom margin 10px, table top margin 0)
   - Module heading: same height, padding, alignment, action spacing
   - Heading background: #F0F0F1
   ============================================================ */
.module-shell { display: block; }

.module-shell .toolbar.toolbar-employee-list,
.module-page-redesign .toolbar.toolbar-employee-list,
.attendance-page-redesign .toolbar.toolbar-employee-list,
.timesheet-page-redesign .toolbar.toolbar-employee-list,
.schedule-page-compact .toolbar.toolbar-employee-list,
.overtime-page-redesign .toolbar.toolbar-employee-list,
.shift-swap-page-redesign .toolbar.toolbar-employee-list,
.branches-page-redesign .toolbar.toolbar-employee-list,
.department-page-redesign .toolbar.toolbar-employee-list,
.designation-page-redesign .toolbar.toolbar-employee-list,
.employees-page-redesign .toolbar.toolbar-employee-list {
  margin: 0 0 10px 0 !important;
}

.module-page-redesign .master-table-wrap,
.module-page-redesign .table-responsive,
.module-page-redesign .schedule-grid,
.module-page-redesign .schedule-result-shell,
.module-page-redesign .card.department-module-card,
.module-page-redesign .card.schedule-module-card,
.module-page-redesign .card.attendance-content-card,
.module-page-redesign .master-grid,
.attendance-page-redesign .master-table-wrap,
.attendance-page-redesign .table-responsive,
.attendance-page-redesign .schedule-grid,
.attendance-page-redesign .card.department-module-card,
.attendance-page-redesign .card.schedule-module-card,
.timesheet-page-redesign .master-table-wrap,
.timesheet-page-redesign .table-responsive,
.timesheet-page-redesign .schedule-grid,
.timesheet-page-redesign .card.department-module-card,
.timesheet-page-redesign .card.schedule-module-card,
.schedule-page-compact .master-table-wrap,
.schedule-page-compact .table-responsive,
.schedule-page-compact .schedule-result-shell,
.overtime-page-redesign .master-table-wrap,
.overtime-page-redesign .table-responsive,
.shift-swap-page-redesign .master-table-wrap,
.shift-swap-page-redesign .table-responsive,
.branches-page-redesign .master-table-wrap,
.branches-page-redesign .table-responsive,
.department-page-redesign .master-table-wrap,
.department-page-redesign .table-responsive,
.designation-page-redesign .master-table-wrap,
.designation-page-redesign .table-responsive,
.employees-page-redesign .master-table-wrap,
.employees-page-redesign .table-responsive {
  margin-top: 0 !important;
}

.module-section-heading,
.employee-page-header,
.master-page-header,
.department-page-header,
.designation-page-header,
.branches-page-header,
.attendance-page-header,
.timesheet-page-header,
.schedule-page-header,
.overtime-page-header,
.shift-swap-page-header,
.employees-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 16px;
  margin: 0 0 10px 0;
  background: #F0F0F1;
  border-radius: 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.module-section-heading > h1, .module-section-heading > h2,
.employee-page-header > h1, .employee-page-header > h2,
.master-page-header .employee-page-title,
.department-page-header > h1,
.designation-page-header > h1,
.branches-page-header > h1,
.attendance-page-header > h1,
.timesheet-page-header > h1,
.schedule-page-header > h1,
.overtime-page-header > h1,
.shift-swap-page-header > h1 {
  margin: 0;
  font-family: var(--hrms-font-family);
  font-style: normal;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #0a0a0a;
  text-align: left;
  letter-spacing: 0;
}

.module-section-heading .module-heading-actions,
.employee-page-header .employee-header-actions,
.master-page-header .employee-header-actions,
.department-page-header .module-heading-actions,
.designation-page-header .module-heading-actions,
.branches-page-header .module-heading-actions,
.attendance-page-header .module-heading-actions,
.timesheet-page-header .module-heading-actions,
.schedule-page-header .module-heading-actions,
.overtime-page-header .module-heading-actions,
.shift-swap-page-header .module-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.module-table thead th,
.master-table thead th,
.schedule-table thead th,
.department-table thead th,
.shift-schedule-table thead th {
  background: #F0F0F1 !important;
  border-bottom: 1px solid #e5e7eb !important;
  vertical-align: middle !important;
  padding: 12px 14px !important;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink-700);
  text-align: left;
  letter-spacing: .01em;
}

.module-table tbody td,
.master-table tbody td,
.schedule-table tbody td,
.department-table tbody td,
.shift-schedule-table tbody td {
  vertical-align: middle !important;
  padding: 10px 14px !important;
}

@media (max-width: 768px) {
  .module-section-heading,
  .employee-page-header,
  .master-page-header,
  .department-page-header,
  .designation-page-header,
  .branches-page-header,
  .attendance-page-header,
  .timesheet-page-header,
  .schedule-page-header,
  .overtime-page-header,
  .shift-swap-page-header,
  .employees-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .module-section-heading .module-heading-actions,
  .employee-page-header .employee-header-actions,
  .master-page-header .employee-header-actions,
  .department-page-header .module-heading-actions,
  .designation-page-header .module-heading-actions,
  .branches-page-header .module-heading-actions,
  .attendance-page-header .module-heading-actions,
  .timesheet-page-header .module-heading-actions,
  .schedule-page-header .module-heading-actions,
  .overtime-page-header .module-heading-actions,
  .shift-swap-page-header .module-heading-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* =============================================================
   Settings hub (two-column layout)
   ============================================================= */
.settings-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.settings-hub-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.settings-hub-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900, #0f172a);
  letter-spacing: -0.01em;
}
.settings-hub-subtitle {
  margin: 0;
  color: var(--ink-500, #64748b);
  font-size: 13.5px;
}

.settings-hub-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: flex-start;
}

.settings-nav {
  position: sticky;
  top: 16px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.settings-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-nav-item { margin: 0; padding: 0; }
.settings-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink-700, #334155);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  border: 1px solid transparent;
}
.settings-nav-link:hover {
  background: var(--surface-2, #f8fafc);
  color: var(--ink-900, #0f172a);
}
.settings-nav-link.is-active {
  background: rgba(22, 163, 74, 0.10);
  color: var(--brand-700, #15803d);
  border-color: rgba(22, 163, 74, 0.20);
  font-weight: 600;
}
.settings-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--surface-2, #f1f5f9);
  color: var(--ink-500, #64748b);
  font-size: 14px;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease;
}
.settings-nav-link.is-active .settings-nav-icon {
  background: rgba(22, 163, 74, 0.15);
  color: var(--brand-700, #15803d);
}
.settings-nav-label { flex: 1; min-width: 0; }

.settings-panel {
  min-width: 0;
  width: 100%;
}
.settings-panel-card { margin-bottom: 0; }

.settings-hub-layout .settings-panel .card-header {
  font-size: 16px;
  font-weight: 600;
}

.form-actions.form-actions-full {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.form-grid .form-group-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface-2, #f8fafc);
}
.form-grid .form-group-toggle label {
  margin: 0;
  font-weight: 600;
  color: var(--ink-900, #0f172a);
}

/* Toggle switch */
.settings-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--ink-700, #334155);
}
.settings-switch.is-disabled { cursor: not-allowed; opacity: .65; }
.settings-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.settings-switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background-color .2s ease;
  flex-shrink: 0;
}
.settings-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: transform .2s ease;
}
.settings-switch input[type="checkbox"]:checked + .settings-switch-track {
  background: #16a34a;
}
.settings-switch input[type="checkbox"]:checked + .settings-switch-track .settings-switch-thumb {
  transform: translateX(18px);
}
.settings-switch input[type="checkbox"]:focus-visible + .settings-switch-track {
  outline: 2px solid rgba(22, 163, 74, 0.45);
  outline-offset: 2px;
}
.settings-switch-text { font-weight: 500; }

/* Settings layout table */
.settings-layout-table { font-size: 13.5px; }
.settings-layout-table th,
.settings-layout-table td { vertical-align: middle; }
.settings-layout-view-col { width: 180px; }
.settings-layout-table .layout-module-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-layout-table .layout-module-meta strong {
  color: var(--ink-900, #0f172a);
  font-weight: 600;
}
.settings-layout-table .layout-module-meta span {
  color: var(--ink-500, #64748b);
  font-size: 12px;
}
.settings-layout-table .layout-select {
  width: 140px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: #ffffff;
  color: var(--ink-700, #334155);
  font-size: 13px;
}

/* Inline status banner */
.settings-status-banner {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.settings-status-banner.is-success {
  background: rgba(22, 163, 74, 0.10);
  color: #166534;
  border-color: rgba(22, 163, 74, 0.30);
}
.settings-status-banner.is-error {
  background: rgba(220, 38, 38, 0.10);
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.30);
}
.settings-panel.is-loading { opacity: .6; pointer-events: none; transition: opacity .15s ease; }

@media (max-width: 960px) {
  .settings-hub-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
    max-height: none;
  }
  .settings-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .settings-nav-link {
    padding: 7px 10px;
    font-size: 12.5px;
  }
}

/* ------------------------------------------------------------------
 * HRMS Settings Redesign – new widgets (additive, no removed styles)
 * ------------------------------------------------------------------ */
.settings-subheading {
  margin-top: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-700);
  letter-spacing: .01em;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.settings-template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.settings-placeholder-chip {
  background: var(--ink-50);
  color: var(--brand-700);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.settings-placeholder-chip:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.settings-upload-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--ink-50);
  margin-bottom: 8px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-upload-preview.is-empty { color: var(--ink-500); font-style: italic; font-size: 12.5px; }
.settings-upload-preview img { max-height: 80px; max-width: 220px; border-radius: 8px; display: block; }
.settings-upload-preview a { display: inline-block; }

.ip-list-manager { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--ink-50); padding: 10px; }
.ip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.ip-list-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-800);
}
.ip-list-item .btn-icon {
  border: none; background: transparent; color: var(--danger-700);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.ip-list-empty { color: var(--ink-500); font-style: italic; font-size: 12.5px; }
.ip-list-add { display: flex; gap: 8px; margin-top: 10px; }
.ip-list-add input { flex: 1; }

.settings-status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 12.5px;
  background: var(--ink-50); color: var(--ink-700); border: 1px solid var(--border);
}
.settings-status-chip .settings-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-400);
}
.settings-status-chip.is-connected { background: var(--success-50); color: var(--success-700); border-color: var(--success-500); }
.settings-status-chip.is-connected .settings-status-dot { background: var(--success-500); }
.settings-status-chip.is-failed, .settings-status-chip.is-disconnected {
  background: var(--danger-50); color: var(--danger-700); border-color: var(--danger-500);
}
.settings-status-chip.is-failed .settings-status-dot,
.settings-status-chip.is-disconnected .settings-status-dot { background: var(--danger-500); }
.settings-status-chip small.muted-text { font-weight: 400; }

.settings-working-days { width: 100%; }
.settings-working-days thead th { background: var(--ink-100); }
.settings-working-days tbody td { vertical-align: middle; }
.settings-working-days td input[type="time"] { min-width: 110px; }

.working-days-table-wrap { overflow-x: auto; }

.settings-template-preview {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--ink-50);
}
.settings-template-preview summary { cursor: pointer; font-weight: 600; color: var(--brand-700); }
.settings-template-preview-body {
  white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-800);
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}

.settings-status-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 14px;
}
.settings-status-banner.is-success { background: var(--success-50); color: var(--success-700); border: 1px solid var(--success-500); }
.settings-status-banner.is-error { background: var(--danger-50); color: var(--danger-700); border: 1px solid var(--danger-500); }
.settings-status-banner.is-loading { background: var(--info-50); color: var(--brand-700); border: 1px solid var(--brand-200); }

@media (max-width: 640px) {
  .ip-list-add { flex-direction: column; }
  .settings-upload-preview img { max-width: 100%; height: auto; }
}

/* ============================================================
   GLOBAL BUTTON STANDARD — Import / Export / Add (all HRMS modules)
   Applies across Employee, Branches, Department, Designation,
   Attendance, Time In/Out, Time Sheet, Shifts & Schedule,
   Overtime, Shift Swap Request, Leave Application, Leave Balance,
   Leave Type, Advance, Loan, Manage Salary, Employee Salary,
   Payslips, Assets, Users, Settings, Reports and every other
   module that renders these header buttons.
   Only sizes / gap / radius / icon size are changed. Colors,
   text, icons, hover, disabled, permission and AJAX behavior
   are left untouched.
   ============================================================ */

/* --- 8px spacing between header action buttons --- */
.employee-header-actions,
.master-page-header .employee-header-actions,
.employees-page-header .employee-header-actions,
.branches-page-header .employee-header-actions,
.department-page-header .employee-header-actions,
.designation-page-header .employee-header-actions,
.attendance-page-header .employee-header-actions,
.timesheet-page-header .employee-header-actions,
.schedule-page-header .employee-header-actions,
.overtime-page-header .employee-header-actions,
.shift-swap-page-header .employee-header-actions,
.module-section-heading .module-heading-actions,
.report-toolbar-actions {
  gap: 8px !important;
}

/* --- Import / Export buttons: 94 x 36, radius 8, icon 16 --- */
.btn-employee-outline,
.employee-toolbar-shell .btn-employee-outline,
.master-toolbar-shell .btn-employee-outline,
.report-toolbar-actions .btn {
  min-width: 94px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  gap: 6px !important;
  border-radius: 8px !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* --- Add buttons: 137 x 36, radius 8, icon 16 --- */
.employee-add-btn,
.employee-toolbar-shell .employee-add-btn,
.master-toolbar-shell .employee-add-btn,
.btn-primary.filter-action-btn.department-toolbar-btn,
.role-link-btn {
  min-width: 137px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  gap: 6px !important;
  border-radius: 8px !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* --- 16 x 16 icons inside these header buttons --- */
.employee-header-actions .btn i,
.btn-employee-outline i,
.employee-add-btn i,
.btn-primary.department-toolbar-btn i,
.report-toolbar-actions .btn i {
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
}

/* --- Responsive: keep existing mobile full-width behavior --- */
@media (max-width: 720px) {
  .btn-employee-outline,
  .report-toolbar-actions .btn {
    flex: 0 1 auto !important;
  }
}
/* HRMS email settings test-state fixes */
.email-outbound-note {
  display: none;
}
.email-outbound-note.is-visible,
.email-settings-root.is-mail-disabled .email-outbound-note {
  display: block;
}
.settings-inline-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--warning-200, #facc15);
  background: var(--warning-50, #fefce8);
  color: var(--warning-900, #713f12);
  font-size: 13px;
  line-height: 1.5;
}
.settings-hub-layout.is-email-testing .settings-nav {
  display: block;
}
.email-settings-root.is-testing .email-test-hideable {
  display: block !important;
}
.email-settings-root.is-testing [data-email-settings-extra] {
  display: block !important;
}
.email-settings-root .email-test-controls {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.email-settings-root .email-test-controls .btn {
  flex: 0 0 auto;
}
.email-settings-root.is-testing .email-test-controls {
  padding-top: 0;
}
