/* ================================================================
   Elite-HR v1.1 — Premium HR Management Plugin Styles
   Brand: #000cfa · #0207a6 · #000000 · #ffffff
   Design: Corporate Executive — sharp, premium, modern
================================================================ */

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

/* ─── VARIABLES ──────────────────────────────────────────────── */
:root {
  --ehr-brand:         #000cfa;
  --ehr-brand-dark:    #0207a6;
  --ehr-brand-deeper:  #010580;
  --ehr-brand-glow:    rgba(0,12,250,.18);
  --ehr-black:         #0a0b12;
  --ehr-white:         #ffffff;

  --ehr-bg:            #f1f2f8;
  --ehr-surface:       #ffffff;
  --ehr-surface-alt:   #f7f8fd;
  --ehr-surface-dim:   #eef0fb;
  --ehr-surface-hover: #f0f2ff;

  --ehr-border:        #dde0f2;
  --ehr-border-soft:   #e8eaf7;

  --ehr-text:          #0b0d1c;
  --ehr-text-2:        #3a3e62;
  --ehr-text-3:        #7e84a8;
  --ehr-text-4:        #b0b5d0;

  --ehr-green:         #059669;
  --ehr-green-bg:      #ecfdf5;
  --ehr-green-border:  #a7f3d0;
  --ehr-amber:         #d97706;
  --ehr-amber-bg:      #fffbeb;
  --ehr-amber-border:  #fde68a;
  --ehr-red:           #dc2626;
  --ehr-red-bg:        #fef2f2;
  --ehr-red-border:    #fca5a5;
  --ehr-purple:        #7c3aed;
  --ehr-purple-bg:     #f5f0ff;
  --ehr-purple-border: #c4b5fd;
  --ehr-sky:           #0284c7;
  --ehr-sky-bg:        #f0f9ff;
  --ehr-sky-border:    #bae6fd;

  --ehr-r-xs:  4px;
  --ehr-r-sm:  6px;
  --ehr-r:     8px;
  --ehr-r-lg:  12px;
  --ehr-r-xl:  16px;
  --ehr-r-2xl: 20px;

  --ehr-sh-xs: 0 1px 2px rgba(0,0,0,.05);
  --ehr-sh-sm: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,12,250,.05);
  --ehr-sh:    0 4px 16px rgba(0,12,250,.08), 0 2px 6px rgba(0,0,0,.04);
  --ehr-sh-lg: 0 12px 40px rgba(0,12,250,.14), 0 4px 16px rgba(0,0,0,.06);
  --ehr-sh-xl: 0 24px 60px rgba(0,12,250,.18), 0 8px 24px rgba(0,0,0,.10);
  --ehr-focus: 0 0 0 3px rgba(0,12,250,.20);

  --ehr-font:  'Inter', system-ui, -apple-system, sans-serif;
  --ehr-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --ehr-ease:  cubic-bezier(.4,0,.2,1);
  --ehr-ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ehr-dur:   .16s;
  --ehr-dur-md: .24s;
}

/* ─── BASE RESET ─────────────────────────────────────────────── */
.elite-hr-wrap *, .elite-hr-wrap *::before, .elite-hr-wrap *::after,
.ehr-modal *, .ehr-modal *::before, .ehr-modal *::after { box-sizing: border-box; }

.elite-hr-wrap {
  font-family: var(--ehr-font);
  color: var(--ehr-text);
  background: var(--ehr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 1480px;
  margin: 0 auto;
  padding-bottom: 56px;
  font-size: 14px;
  line-height: 1.5;
}

#wpcontent .elite-hr-wrap { margin-left: 0; }
#wpbody-content .elite-hr-wrap { padding-top: 0; }
.elite-hr-wrap, .elite-hr-wrap *, .ehr-modal, .ehr-modal * { font-family: var(--ehr-font); }

/* ─── HERO ───────────────────────────────────────────────────── */
.ehr-hero {
  background: var(--ehr-black);
  background-image:
    radial-gradient(ellipse 80% 120% at 100% 50%, rgba(0,12,250,.50) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 0% 30%, rgba(2,7,166,.30) 0%, transparent 50%);
  padding: 30px 36px 26px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.ehr-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.ehr-hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ehr-brand), rgba(0,12,250,.6), transparent);
  opacity: .8;
}

.ehr-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

.ehr-hero-lhs { display: flex; align-items: center; gap: 16px; }

.ehr-hero-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,12,250,.5), rgba(0,12,250,.25));
  border: 1px solid rgba(0,12,250,.5);
  box-shadow: 0 0 24px rgba(0,12,250,.3), inset 0 1px 0 rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.ehr-hero h1, .ehr-hero h2 {
  margin: 0 0 4px; font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: -.4px; line-height: 1.2;
}

.ehr-hero p { margin: 0; font-size: 13px; color: rgba(255,255,255,.48); }
.ehr-hero-rhs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ─── BODY AREA ──────────────────────────────────────────────── */
.ehr-body { padding: 0 28px; }

/* ─── STAT CARDS ─────────────────────────────────────────────── */
.ehr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px; margin-bottom: 24px;
}

.ehr-stat {
  background: var(--ehr-surface);
  border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-lg);
  padding: 20px 18px 16px;
  box-shadow: var(--ehr-sh-sm);
  position: relative; overflow: hidden;
  transition: transform var(--ehr-dur) var(--ehr-ease), box-shadow var(--ehr-dur) var(--ehr-ease);
}

.ehr-stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--sc, var(--ehr-brand));
}

.ehr-stat::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, var(--sc, var(--ehr-brand)), transparent 70%);
  opacity: .04; transform: translate(20px,-20px); pointer-events: none;
}

.ehr-stat:hover { transform: translateY(-3px); box-shadow: var(--ehr-sh); }

.ehr-stat-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--sib, #eef0ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
  border: 1px solid rgba(0,0,0,.05);
}

.ehr-stat-n {
  display: block; font-size: 32px; font-weight: 900;
  color: var(--sc, var(--ehr-brand));
  letter-spacing: -1.5px; line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ehr-stat-l {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--ehr-text-3); text-transform: uppercase;
  letter-spacing: .7px; margin-top: 6px;
}

.ehr-stat.c-blue   { --sc: var(--ehr-brand);  --sib: #e8ecff; }
.ehr-stat.c-amber  { --sc: var(--ehr-amber);  --sib: #fff5e0; }
.ehr-stat.c-green  { --sc: var(--ehr-green);  --sib: #e6faf3; }
.ehr-stat.c-red    { --sc: var(--ehr-red);    --sib: #fde8e8; }
.ehr-stat.c-purple { --sc: var(--ehr-purple); --sib: #f3eeff; }
.ehr-stat.c-sky    { --sc: var(--ehr-sky);    --sib: var(--ehr-sky-bg); }

/* ─── PANEL ──────────────────────────────────────────────────── */
.ehr-panel {
  background: var(--ehr-surface);
  border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-lg);
  box-shadow: var(--ehr-sh-sm);
  margin-bottom: 20px; overflow: hidden;
}

.ehr-panel-head {
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--ehr-surface-alt) 0%, #f3f5fc 100%);
  border-bottom: 1px solid var(--ehr-border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.ehr-panel-head h3 {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--ehr-text);
  display: flex; align-items: center; gap: 8px;
}

.ehr-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ehr-brand); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,12,250,.4);
}

.ehr-panel-body { padding: 20px; }

/* ─── QUICK ACTIONS ──────────────────────────────────────────── */
.ehr-quick {
  background: var(--ehr-surface);
  border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: var(--ehr-sh-sm);
}

.ehr-quick h3 {
  margin: 0 0 14px; font-size: 11px; font-weight: 800;
  color: var(--ehr-text-3); text-transform: uppercase; letter-spacing: .7px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ehr-border-soft);
  display: flex; align-items: center; gap: 8px;
}

.ehr-quick h3::before {
  content: ''; width: 3px; height: 14px;
  background: linear-gradient(180deg, var(--ehr-brand), var(--ehr-brand-dark));
  border-radius: 2px; flex-shrink: 0;
}

.ehr-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.ehr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  border: 1.5px solid transparent; border-radius: var(--ehr-r-sm);
  cursor: pointer; text-decoration: none; line-height: 1.4;
  white-space: nowrap; font-family: var(--ehr-font);
  letter-spacing: -.1px;
  transition:
    background var(--ehr-dur) var(--ehr-ease),
    color var(--ehr-dur) var(--ehr-ease),
    box-shadow var(--ehr-dur) var(--ehr-ease),
    transform var(--ehr-dur) var(--ehr-ease),
    border-color var(--ehr-dur) var(--ehr-ease);
  position: relative; overflow: hidden; vertical-align: middle;
}

.ehr-btn:focus-visible { outline: none; box-shadow: var(--ehr-focus); }

.ehr-btn:disabled, .ehr-btn[disabled] {
  opacity: .45; cursor: not-allowed;
  transform: none !important; box-shadow: none !important; pointer-events: none;
}

/* Primary */
.ehr-btn-primary {
  background: linear-gradient(135deg, var(--ehr-brand), var(--ehr-brand-dark));
  color: #fff; border-color: var(--ehr-brand-dark);
  box-shadow: 0 2px 8px rgba(0,12,250,.30), inset 0 1px 0 rgba(255,255,255,.15);
}
.ehr-btn-primary:hover {
  background: linear-gradient(135deg, #1a26fb, var(--ehr-brand));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,12,250,.42), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateY(-1px);
}
.ehr-btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,12,250,.25); }

/* Dark */
.ehr-btn-dark {
  background: var(--ehr-black); color: #fff;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.ehr-btn-dark:hover {
  background: #1c1e2e; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); transform: translateY(-1px);
}

/* Success */
.ehr-btn-success {
  background: linear-gradient(135deg, var(--ehr-green), #047857);
  color: #fff; border-color: #047857;
  box-shadow: 0 2px 8px rgba(5,150,105,.28);
}
.ehr-btn-success:hover {
  background: linear-gradient(135deg, #06b070, var(--ehr-green));
  color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,.38); transform: translateY(-1px);
}

/* Danger */
.ehr-btn-danger {
  background: linear-gradient(135deg, var(--ehr-red), #b91c1c);
  color: #fff; border-color: #b91c1c;
  box-shadow: 0 2px 8px rgba(220,38,38,.28);
}
.ehr-btn-danger:hover {
  background: linear-gradient(135deg, #ef4444, var(--ehr-red));
  color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,.38); transform: translateY(-1px);
}

/* Warning */
.ehr-btn-warning {
  background: linear-gradient(135deg, var(--ehr-amber), #b45309);
  color: #fff; border-color: #b45309;
  box-shadow: 0 2px 8px rgba(217,119,6,.28);
}
.ehr-btn-warning:hover {
  background: linear-gradient(135deg, #f59e0b, var(--ehr-amber));
  color: #fff; box-shadow: 0 4px 14px rgba(217,119,6,.38); transform: translateY(-1px);
}

/* Ghost */
.ehr-btn-ghost {
  background: var(--ehr-surface); color: var(--ehr-text-2);
  border-color: var(--ehr-border); box-shadow: var(--ehr-sh-xs);
}
.ehr-btn-ghost:hover {
  background: var(--ehr-surface-hover); color: var(--ehr-brand);
  border-color: rgba(0,12,250,.3); box-shadow: 0 2px 8px rgba(0,12,250,.08);
}

/* Outline */
.ehr-btn-outline {
  background: transparent; border-color: var(--ehr-border); color: var(--ehr-text-2);
}
.ehr-btn-outline:hover { border-color: var(--ehr-brand); color: var(--ehr-brand); background: #f0f2ff; }

/* White (hero) */
.ehr-btn-white {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px);
}
.ehr-btn-white:hover {
  background: rgba(255,255,255,.22); color: #fff;
  border-color: rgba(255,255,255,.38); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}

/* Sizes */
.ehr-btn-xl  { padding: 12px 24px; font-size: 15px; border-radius: var(--ehr-r); }
.ehr-btn-lg  { padding: 10px 20px; font-size: 14px; border-radius: var(--ehr-r); }
.ehr-btn-sm  { padding: 6px 12px; font-size: 12px; gap: 4px; }
.ehr-btn-xs  { padding: 3px 9px; font-size: 11px; gap: 3px; }
.ehr-btn-icon { width: 32px; height: 32px; padding: 0; border-radius: var(--ehr-r-sm); }

.ehr-btns     { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ehr-btns-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ─── FILTER BAR ─────────────────────────────────────────────── */
.ehr-filterbar {
  background: var(--ehr-surface);
  border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r);
  padding: 12px 18px; margin-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  box-shadow: var(--ehr-sh-xs);
}

.ehr-filterbar-label {
  font-size: 11px; font-weight: 700; color: var(--ehr-text-3);
  text-transform: uppercase; letter-spacing: .6px;
}

.ehr-filterbar select,
.ehr-filterbar input[type="month"],
.ehr-filterbar input[type="date"] {
  height: 34px; padding: 0 10px; font-size: 12.5px; font-family: var(--ehr-font);
  border: 1.5px solid var(--ehr-border); border-radius: var(--ehr-r-sm);
  color: var(--ehr-text); background: var(--ehr-surface); outline: none;
  transition: border-color var(--ehr-dur), box-shadow var(--ehr-dur);
}
.ehr-filterbar select:focus, .ehr-filterbar input:focus {
  border-color: var(--ehr-brand); box-shadow: var(--ehr-focus);
}

.ehr-filterbar-end {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ehr-text-3);
  background: var(--ehr-surface-dim); padding: 3px 10px;
  border-radius: 20px; border: 1px solid var(--ehr-border-soft);
}

/* ─── TABLE ──────────────────────────────────────────────────── */
.ehr-tbl-wrap {
  background: var(--ehr-surface);
  border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-lg); overflow: hidden;
  box-shadow: var(--ehr-sh-sm); margin-bottom: 22px;
}

.ehr-tbl-scroll { overflow-x: auto; }
.ehr-tbl-scroll::-webkit-scrollbar { height: 5px; }
.ehr-tbl-scroll::-webkit-scrollbar-thumb { background: var(--ehr-border); border-radius: 3px; }

.ehr-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }

.ehr-tbl thead tr {
  background: linear-gradient(180deg, #f5f6fd 0%, #eef0fb 100%);
  border-bottom: 2px solid var(--ehr-border);
}

.ehr-tbl th {
  padding: 11px 14px; text-align: left;
  font-size: 10.5px; font-weight: 800; color: var(--ehr-text-3);
  text-transform: uppercase; letter-spacing: .7px; white-space: nowrap;
}

.ehr-tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ehr-border-soft);
  vertical-align: middle; color: var(--ehr-text); max-width: 240px;
}

.ehr-tbl tbody tr:last-child td { border-bottom: none; }
.ehr-tbl tbody tr { transition: background var(--ehr-dur); }
.ehr-tbl tbody tr:hover td { background: linear-gradient(90deg, #f5f7ff 0%, #f9faff 100%); }
.ehr-tbl tbody tr:nth-child(even) td { background: #fafbff; }
.ehr-tbl tbody tr:nth-child(even):hover td { background: linear-gradient(90deg, #f5f7ff 0%, #f9faff 100%); }

.ehr-tbl-empty { text-align: center; padding: 56px 24px; color: var(--ehr-text-3); }
.ehr-tbl-empty .ei { font-size: 42px; opacity: .5; margin-bottom: 12px; display: block; }
.ehr-tbl-empty p { font-size: 13.5px; margin: 0; font-weight: 500; }

/* ─── BADGES ─────────────────────────────────────────────────── */
.ehr-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap; letter-spacing: .15px;
  border: 1px solid transparent;
}
.ehr-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.ehr-badge-pending   { background: var(--ehr-amber-bg); color: #92400e; border-color: var(--ehr-amber-border); }
.ehr-badge-approved  { background: var(--ehr-green-bg); color: #065f46; border-color: var(--ehr-green-border); }
.ehr-badge-declined  { background: var(--ehr-red-bg);   color: #991b1b; border-color: var(--ehr-red-border); }
.ehr-badge-completed { background: var(--ehr-sky-bg);   color: #075985; border-color: var(--ehr-sky-border); }
.ehr-badge-lifted    { background: var(--ehr-purple-bg); color: #5b21b6; border-color: var(--ehr-purple-border); }

.ehr-type {
  display: inline-block; padding: 3px 9px; border-radius: var(--ehr-r-xs);
  font-size: 11.5px; font-weight: 700; text-transform: capitalize;
  border: 1px solid transparent;
}
.ehr-type-leave       { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.ehr-type-resignation { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.ehr-type-suspension  { background: #fdf4ff; color: #7e22ce; border-color: #e9d5ff; }
.ehr-type-others      { background: var(--ehr-surface-dim); color: var(--ehr-text-2); border-color: var(--ehr-border); }

/* ─── CODE CHIP ──────────────────────────────────────────────── */
.ehr-code {
  font-family: var(--ehr-mono); font-size: 11.5px;
  color: var(--ehr-brand); background: #e8ecff;
  padding: 3px 8px; border-radius: var(--ehr-r-xs);
  font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(0,12,250,.15); letter-spacing: .2px;
}

/* ─── COUNTDOWN ──────────────────────────────────────────────── */
.ehr-countdown {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--ehr-brand);
  background: #e8ecff; padding: 3px 8px; border-radius: var(--ehr-r-xs);
  white-space: nowrap; border: 1px solid rgba(0,12,250,.15);
  font-family: var(--ehr-mono);
}
.ehr-countdown.overdue    { color: var(--ehr-red);   background: var(--ehr-red-bg);   border-color: var(--ehr-red-border); }
.ehr-countdown.ends-today { color: var(--ehr-amber); background: var(--ehr-amber-bg); border-color: var(--ehr-amber-border); }

/* ─── REASON CELL ────────────────────────────────────────────── */
.ehr-reason-cell {
  max-height: 52px; overflow: hidden;
  font-size: 12.5px; line-height: 1.55; color: var(--ehr-text-2);
  transition: max-height .3s var(--ehr-ease);
}
.ehr-reason-cell.expanded { max-height: 500px; }

.ehr-reason-toggle {
  display: inline-block; cursor: pointer; font-size: 11px;
  font-weight: 700; color: var(--ehr-brand); margin-top: 4px;
  transition: opacity var(--ehr-dur);
}
.ehr-reason-toggle:hover { opacity: .7; }

/* ─── LIFT ITEM ──────────────────────────────────────────────── */
.ehr-lift-item {
  background: var(--ehr-amber-bg); border: 1px solid var(--ehr-amber-border);
  border-radius: var(--ehr-r-sm); padding: 6px 10px; margin-top: 6px;
  font-size: 11.5px; color: #78350f; line-height: 1.5;
}
.ehr-lift-item strong { color: #b45309; }

/* ─── DEPT PILL ──────────────────────────────────────────────── */
.ehr-dept-pill {
  display: inline-flex; align-items: center;
  background: var(--ehr-surface-dim); color: var(--ehr-brand-dark);
  border: 1px solid var(--ehr-border); border-radius: 20px;
  padding: 2px 10px; font-size: 11.5px; font-weight: 600;
}

/* ─── USER SECTION ───────────────────────────────────────────── */
.ehr-user-block { margin-bottom: 28px; }
.ehr-user-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 18px; margin-bottom: 8px;
  background: linear-gradient(90deg, #eef0ff 0%, rgba(238,240,255,0) 100%);
  border-radius: var(--ehr-r-sm); border-left: 3px solid var(--ehr-brand);
  font-weight: 700; font-size: 13.5px; color: var(--ehr-text);
}
.ehr-user-meta { font-size: 11px; font-weight: 500; color: var(--ehr-text-3); margin-left: auto; }

/* ─── LOCK SCREEN ────────────────────────────────────────────── */
.ehr-lockscreen {
  background: var(--ehr-black);
  background-image: radial-gradient(ellipse 80% 80% at 85% 50%, rgba(0,12,250,.35), transparent);
  border-radius: var(--ehr-r-xl); padding: 56px 32px;
  margin-bottom: 24px; text-align: center; color: #fff;
  border: 1px solid rgba(0,12,250,.2);
}
.ehr-lockscreen .ei { font-size: 56px; display: block; margin-bottom: 20px; }
.ehr-lockscreen h2 { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.4px; }
.ehr-lockscreen p { font-size: 14px; color: rgba(255,255,255,.55); margin: 0 0 28px; max-width: 380px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.ehr-lockscreen-info {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: 12px 22px; border-radius: 9px; font-size: 13px; color: rgba(255,255,255,.65);
}

/* ─── MODALS ─────────────────────────────────────────────────── */
.ehr-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(7,8,15,.72); backdrop-filter: blur(5px);
  z-index: 999999; align-items: center; justify-content: center; padding: 20px;
}
.ehr-modal-overlay.active { display: flex; }

.ehr-modal {
  background: var(--ehr-surface);
  border-radius: var(--ehr-r-xl);
  width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--ehr-sh-xl);
  border: 1px solid var(--ehr-border-soft);
  animation: ehr-pop var(--ehr-dur-md) var(--ehr-ease-spring);
}
.ehr-modal-lg { max-width: 700px; }

@keyframes ehr-pop {
  from { transform: translateY(-20px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.ehr-modal-head {
  padding: 18px 22px;
  background: linear-gradient(180deg, var(--ehr-surface-alt) 0%, #f1f3fc 100%);
  border-bottom: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-xl) var(--ehr-r-xl) 0 0;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 2;
}

.ehr-modal-head h3 {
  margin: 0; font-size: 15px; font-weight: 700; color: var(--ehr-text);
  display: flex; align-items: center; gap: 10px;
}

.ehr-modal-head h3 .mi {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ehr-surface-dim); border: 1px solid var(--ehr-border);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

.ehr-modal-close {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--ehr-surface-dim); border: 1.5px solid var(--ehr-border);
  color: var(--ehr-text-3); font-size: 16px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ehr-dur); padding: 0; flex-shrink: 0; font-family: var(--ehr-font);
}
.ehr-modal-close:hover {
  background: var(--ehr-red-bg); border-color: var(--ehr-red-border); color: var(--ehr-red);
  transform: rotate(90deg);
}

.ehr-modal-body { padding: 22px; }

.ehr-modal-foot {
  padding: 14px 22px;
  background: linear-gradient(180deg, #f3f5fc 0%, var(--ehr-surface-alt) 100%);
  border-top: 1px solid var(--ehr-border-soft);
  border-radius: 0 0 var(--ehr-r-xl) var(--ehr-r-xl);
  display: flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0;
}

.ehr-modal-section {
  background: var(--ehr-surface-dim); border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-sm); padding: 14px; margin-bottom: 14px;
}
.ehr-modal-section-title {
  font-size: 11px; font-weight: 800; color: var(--ehr-text-3);
  text-transform: uppercase; letter-spacing: .6px; margin: 0 0 10px;
}

.ehr-modal::-webkit-scrollbar { width: 5px; }
.ehr-modal::-webkit-scrollbar-thumb { background: var(--ehr-border); border-radius: 3px; }

/* ─── FORMS ──────────────────────────────────────────────────── */
.ehr-fg { margin-bottom: 16px; }

.ehr-fg label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ehr-text-2); margin-bottom: 6px; letter-spacing: .1px;
}
.ehr-fg label .req { color: var(--ehr-red); margin-left: 2px; }

.ehr-fg input[type="text"],
.ehr-fg input[type="email"],
.ehr-fg input[type="date"],
.ehr-fg input[type="month"],
.ehr-fg select,
.ehr-fg textarea {
  width: 100%;
  border: 1.5px solid var(--ehr-border); border-radius: var(--ehr-r-sm);
  padding: 9px 12px; font-size: 13px; font-family: var(--ehr-font);
  color: var(--ehr-text); background: var(--ehr-surface); outline: none;
  transition: border-color var(--ehr-dur), box-shadow var(--ehr-dur), background var(--ehr-dur);
}
.ehr-fg input:focus, .ehr-fg select:focus, .ehr-fg textarea:focus {
  border-color: var(--ehr-brand); box-shadow: var(--ehr-focus); background: #fafbff;
}
.ehr-fg textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.ehr-fg .ehr-hint { font-size: 11.5px; color: var(--ehr-text-3); margin-top: 5px; }
.ehr-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ehr-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Quill */
.ehr-rte .ql-toolbar.ql-snow {
  border-color: var(--ehr-border);
  border-radius: var(--ehr-r-sm) var(--ehr-r-sm) 0 0;
  background: var(--ehr-surface-alt); padding: 8px;
}
.ehr-rte .ql-container.ql-snow {
  border-color: var(--ehr-border);
  border-radius: 0 0 var(--ehr-r-sm) var(--ehr-r-sm);
  font-size: 13px; font-family: var(--ehr-font); min-height: 110px;
}
.ehr-rte .ql-editor { min-height: 100px; line-height: 1.6; }
.ehr-rte .ql-toolbar button { border: none !important; background: transparent !important; }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.ehr-alerts { min-height: 0; }

.ehr-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--ehr-r-sm);
  font-size: 13px; font-weight: 500; margin-bottom: 14px;
  animation: ehr-fadein .2s var(--ehr-ease);
  border: 1px solid transparent;
}
@keyframes ehr-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ehr-alert::before { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.ehr-alert-success { background: var(--ehr-green-bg); color: #065f46; border-color: var(--ehr-green-border); }
.ehr-alert-success::before { content: '✓'; }
.ehr-alert-error   { background: var(--ehr-red-bg);   color: #991b1b; border-color: var(--ehr-red-border); }
.ehr-alert-error::before { content: '✕'; }
.ehr-alert-info    { background: var(--ehr-sky-bg);   color: #075985; border-color: var(--ehr-sky-border); }
.ehr-alert-info::before { content: 'ℹ'; font-weight: 800; }

/* ─── NOTICES ────────────────────────────────────────────────── */
.ehr-notice {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: var(--ehr-r-sm);
  font-size: 13px; font-weight: 500; margin-bottom: 16px;
  border: 1px solid transparent;
}
.ehr-notice-warn { background: var(--ehr-amber-bg); color: #92400e; border-color: var(--ehr-amber-border); border-left: 3px solid var(--ehr-amber); }
.ehr-notice-info { background: var(--ehr-sky-bg);   color: #075985; border-color: var(--ehr-sky-border);   border-left: 3px solid var(--ehr-sky); }

/* ─── TABS ───────────────────────────────────────────────────── */
.ehr-tabs {
  display: flex;
  background: var(--ehr-surface);
  border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-lg) var(--ehr-r-lg) 0 0;
  padding: 6px 8px 0;
  margin-bottom: 0; overflow-x: auto; gap: 2px;
  box-shadow: var(--ehr-sh-xs);
}

.ehr-tab {
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; background: transparent;
  color: var(--ehr-text-3); border-bottom: 2.5px solid transparent;
  margin-bottom: -1px; transition: all var(--ehr-dur);
  white-space: nowrap; font-family: var(--ehr-font);
  display: flex; align-items: center; gap: 6px;
  border-radius: var(--ehr-r-sm) var(--ehr-r-sm) 0 0;
}
.ehr-tab:hover { color: var(--ehr-brand); background: var(--ehr-surface-dim); }
.ehr-tab.active { color: var(--ehr-brand); border-bottom-color: var(--ehr-brand); background: #eef0ff; }

.ehr-tab-panel { display: none; }
.ehr-tab-panel.active { display: block; }

.ehr-tabs + .ehr-tab-panel.active,
.ehr-tabs ~ .ehr-tab-panel.active {
  border: 1px solid var(--ehr-border-soft);
  border-top: none;
  border-radius: 0 0 var(--ehr-r-lg) var(--ehr-r-lg);
  background: var(--ehr-surface);
  padding: 22px;
  box-shadow: var(--ehr-sh-xs);
  margin-bottom: 20px;
}

/* ─── SETTINGS ───────────────────────────────────────────────── */
.ehr-settings-card {
  background: var(--ehr-surface);
  border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-lg);
  box-shadow: var(--ehr-sh-sm); margin-bottom: 16px; overflow: hidden;
}
.ehr-settings-card-head {
  padding: 13px 20px;
  background: linear-gradient(180deg, var(--ehr-surface-alt) 0%, #f0f2fc 100%);
  border-bottom: 1px solid var(--ehr-border-soft);
  font-size: 13px; font-weight: 700; color: var(--ehr-text);
  display: flex; align-items: center; gap: 8px;
}
.ehr-settings-card-body { padding: 20px; }

.ehr-role-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--ehr-border-soft);
}
.ehr-role-row:last-child { border-bottom: none; }
.ehr-role-name { min-width: 160px; font-weight: 700; font-size: 13px; color: var(--ehr-text); }

.ehr-cbx-group { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }

.ehr-cbx-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--ehr-text-2);
  cursor: pointer; padding: 6px 12px;
  border: 1.5px solid var(--ehr-border); border-radius: var(--ehr-r-sm);
  transition: all var(--ehr-dur); background: var(--ehr-surface); user-select: none;
}
.ehr-cbx-item:hover { border-color: var(--ehr-brand); color: var(--ehr-brand); background: #f0f2ff; }
.ehr-cbx-item input[type="checkbox"] { accent-color: var(--ehr-brand); width: 13px; height: 13px; cursor: pointer; }

.ehr-page-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--ehr-border-soft);
}
.ehr-page-row:last-child { border-bottom: none; }
.ehr-page-row-name { min-width: 200px; font-weight: 600; font-size: 12.5px; }
.ehr-page-row-code {
  font-family: var(--ehr-mono); font-size: 11px; color: var(--ehr-text-3);
  background: var(--ehr-surface-dim); padding: 2px 7px;
  border-radius: var(--ehr-r-xs); border: 1px solid var(--ehr-border-soft);
}
.ehr-page-missing { font-size: 12px; color: var(--ehr-red); font-weight: 700; }

/* ─── ANNOUNCEMENTS ──────────────────────────────────────────── */
.ehr-ann-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-top: 14px;
}

.ehr-ann-card {
  background: var(--ehr-surface); border: 1px solid var(--ehr-border-soft);
  border-radius: var(--ehr-r-lg); padding: 20px;
  box-shadow: var(--ehr-sh-sm); position: relative; overflow: hidden;
  transition: transform var(--ehr-dur), box-shadow var(--ehr-dur);
}
.ehr-ann-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ehr-brand), rgba(0,12,250,.4));
}
.ehr-ann-card.old { opacity: .65; }
.ehr-ann-card.old::before { background: var(--ehr-border); }
.ehr-ann-card:hover { transform: translateY(-3px); box-shadow: var(--ehr-sh); }

.ehr-ann-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--ehr-brand), var(--ehr-brand-dark));
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px;
}
.ehr-ann-card h4 { margin: 0 0 7px; font-size: 15px; font-weight: 700; color: var(--ehr-text); }
.ehr-ann-meta { font-size: 11.5px; color: var(--ehr-text-3); margin-bottom: 10px; }
.ehr-ann-content { font-size: 13px; line-height: 1.6; color: var(--ehr-text-2); }
.ehr-ann-footer {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--ehr-border-soft); display: flex; gap: 7px;
}

/* ─── SPINNER ────────────────────────────────────────────────── */
.ehr-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: ehr-spin .6s linear infinite; flex-shrink: 0;
}
.ehr-spinner-dark { border-color: rgba(0,12,250,.2); border-top-color: var(--ehr-brand); }
@keyframes ehr-spin { to { transform: rotate(360deg); } }

/* ─── SCROLL LOCK ────────────────────────────────────────────── */
body.ehr-no-scroll { overflow: hidden; }

/* ─── WP ADMIN OVERRIDES ─────────────────────────────────────── */
#wpbody-content .elite-hr-wrap .ehr-hero,
.wrap .elite-hr-wrap .ehr-hero { margin-left: -20px; margin-right: -20px; }

.elite-hr-wrap input[type="date"],
.elite-hr-wrap input[type="month"],
.elite-hr-wrap select { appearance: auto; -webkit-appearance: auto; }

.elite-hr-wrap .ehr-btn, .ehr-modal .ehr-btn {
  box-sizing: border-box; text-align: center; text-shadow: none; line-height: 1.4;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) { .ehr-body { padding: 0 18px; } }
@media (max-width: 900px) { .ehr-hero { padding: 22px 20px; } .ehr-body { padding: 0 14px; } }
@media (max-width: 768px) {
  .ehr-hero h1, .ehr-hero h2 { font-size: 18px; }
  .ehr-body { padding: 0 10px; }
  .ehr-2col, .ehr-3col { grid-template-columns: 1fr; }
  .ehr-stats { grid-template-columns: 1fr 1fr; }
  .ehr-filterbar { flex-direction: column; align-items: stretch; }
  .ehr-row { flex-direction: column; }
  .ehr-modal { border-radius: var(--ehr-r-lg); }
  .ehr-role-row { flex-direction: column; align-items: flex-start; }
  .ehr-tbl th, .ehr-tbl td { padding: 9px 10px; }
}
@media (max-width: 480px) {
  .ehr-stats { grid-template-columns: 1fr 1fr; }
  .ehr-hero-icon { width: 44px; height: 44px; font-size: 19px; }
  .ehr-hero h1, .ehr-hero h2 { font-size: 16px; }
}
