/* ═══════════════════════════════════════════════════════════════
   KAYAAN v5 — employee-portal.css
   Premium Employee Portal · Company + Personal Dual-Mode Design
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  /* Company mode (default) */
  --primary:       #f97316;
  --primary-dim:   rgba(249,115,22,0.14);
  --primary-glow:  rgba(249,115,22,0.3);

  /* Base palette */
  --bg:            #080b12;
  --surface:       #0f1420;
  --surface2:      #161c2e;
  --surface3:      #1d2440;
  --border:        rgba(255,255,255,0.07);
  --border-active: rgba(255,255,255,0.14);

  /* Text */
  --text:          #e8edf5;
  --text-muted:    #8892b0;
  --text-dim:      #4a5278;

  /* Semantic */
  --green:         #22c55e;
  --green-dim:     rgba(34,197,94,0.14);
  --blue:          #3b82f6;
  --blue-light:    #60a5fa;
  --blue-dim:      rgba(59,130,246,0.13);
  --orange:        #f97316;
  --red:           #ef4444;
  --red-dim:       rgba(239,68,68,0.12);

  /* Private mode (indigo) */
  --priv-primary:  #6366f1;
  --priv-dim:      rgba(99,102,241,0.16);
  --priv-glow:     rgba(99,102,241,0.32);
  --priv-bg:       #07091a;
  --priv-surface:  #0d1028;
  --priv-surface2: #131630;
  --priv-border:   rgba(99,102,241,0.18);

  /* Layout */
  --nav-h:    64px;
  --header-h: 58px;
  --radius:   14px;
  --radius-lg:20px;

  /* Transitions */
  --transition:       all .22s ease;
  --transition-theme: background .3s ease, border-color .3s ease, color .3s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease;
}

/* ── Ambient Background ────────────────────────────────────────── */
.ep-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.ep-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.ep-orb-1 {
  width: 600px; height: 500px; top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(249,115,22,.10) 0%, transparent 70%);
  filter: blur(80px);
  transition: background .5s ease;
}
.ep-orb-2 {
  width: 500px; height: 400px; bottom: 60px; left: -120px;
  background: radial-gradient(circle, rgba(59,130,246,.07) 0%, transparent 70%);
  filter: blur(80px);
}

/* ── Toast ─────────────────────────────────────────────────────── */
.ep-toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  max-width: 340px; width: calc(100% - 2rem);
  padding: .75rem 1.2rem;
  border-radius: 14px; font-size: .875rem; font-weight: 600;
  line-height: 1.45; opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999; pointer-events: none; text-align: center;
  backdrop-filter: blur(16px);
}
.ep-toast.ep-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ep-toast-error   { background: rgba(239,68,68,.92); color: #fff; box-shadow: 0 8px 24px rgba(239,68,68,.35); }
.ep-toast-success { background: rgba(34,197,94,.92);  color: #fff; box-shadow: 0 8px 24px rgba(34,197,94,.3); }
.ep-toast-info    { background: rgba(59,130,246,.92); color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.3); }

/* ── Loading Screen ────────────────────────────────────────────── */
.ep-loading-full {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg); gap: 1rem;
}
.ep-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: var(--primary);
  animation: ep-spin .75s linear infinite;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }
.ep-loading-text { font-size: .8rem; color: var(--text-muted); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   AUTH SCREEN
═══════════════════════════════════════════════════════════════ */
.ep-auth-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: var(--bg);
}

/* Floating preview cards (decorative) */
.ep-auth-visual {
  display: none; /* shown only on wide screens */
  position: absolute; left: 6%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 820px) { .ep-auth-visual { display: flex; } }
.ep-auth-vis-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 1.1rem 1.3rem;
  backdrop-filter: blur(16px); min-width: 170px;
  animation: ep-float-a 4s ease-in-out infinite;
}
.ep-auth-vis-card-2 { animation-name: ep-float-b; animation-duration: 5s; }
.ep-avc-dot { width:8px;height:8px;border-radius:50%;background:var(--green);margin-bottom:.6rem;box-shadow:0 0 8px rgba(34,197,94,.6); }
@keyframes ep-float-a { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-10px)} }
@keyframes ep-float-b { 0%,100%{transform:translateY(-6px)} 50%{transform:translateY(6px)} }

.ep-auth-card {
  background: var(--surface);
  border: 1px solid var(--border-active);
  border-radius: 22px;
  padding: 2rem 1.75rem;
  width: 100%; max-width: 390px;
  position: relative; z-index: 2;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}

.ep-auth-logo {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1.75rem;
}
.ep-auth-k {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #fff;
  flex-shrink: 0; box-shadow: 0 6px 20px rgba(249,115,22,.35);
}
.ep-auth-brand { font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; }
.ep-auth-sub   { font-size: .72rem; color: var(--text-muted); font-weight: 600; margin-top: 1px; }

.ep-auth-tabs {
  display: flex; gap: 0; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px; padding: 3px;
  margin-bottom: 1.5rem;
}
.ep-auth-tab {
  flex: 1; padding: .55rem; border: none; background: transparent;
  color: var(--text-muted); font-size: .82rem; font-weight: 700;
  border-radius: 9px; cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.ep-auth-tab.active {
  background: var(--surface3); color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.ep-auth-form { display: flex; flex-direction: column; gap: .85rem; }
.ep-auth-form.hidden { display: none; }

.ep-field { display: flex; flex-direction: column; gap: .35rem; }
.ep-field label {
  font-size: .76rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: .02em; display: flex; align-items: center; gap: .4rem;
}
.ep-field input, .ep-field select {
  width: 100%; padding: .72rem .9rem;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .9rem;
  font-family: inherit; outline: none;
  transition: border-color .2s;
}
.ep-field input:focus, .ep-field select:focus { border-color: var(--primary); }
.ep-field-opt {
  font-size: .68rem; color: var(--text-dim); font-weight: 500;
  background: var(--surface2); border: 1px solid var(--border);
  padding: .1rem .4rem; border-radius: 6px;
}
.ep-field-req { color: var(--red); }
.ep-field-hint { font-size: .7rem; color: var(--text-muted); margin-top: .15rem; line-height: 1.5; }

.ep-pass-wrap { display: flex; gap: .5rem; align-items: center; }
.ep-pass-wrap input { flex: 1; }
.ep-eye {
  padding: .7rem; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text-muted); cursor: pointer; font-size: .85rem;
  flex-shrink: 0; transition: var(--transition);
}
.ep-eye:hover { border-color: var(--border-active); }

.ep-auth-error {
  padding: .6rem .85rem; background: var(--red-dim);
  border: 1px solid rgba(239,68,68,.25); border-radius: 10px;
  font-size: .8rem; color: #fca5a5; line-height: 1.4;
}
.ep-auth-error.hidden { display: none; }

.ep-auth-btn {
  width: 100%; padding: .85rem;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff; border: none; border-radius: 12px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
  font-family: inherit; letter-spacing: .01em;
  transition: var(--transition);
  box-shadow: 0 6px 20px var(--primary-glow);
  margin-top: .35rem;
}
.ep-auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); }
.ep-auth-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; }

.ep-auth-divider {
  height: 1px; background: var(--border); margin: 1.25rem 0 1rem;
}
.ep-auth-footer { text-align: center; font-size: .78rem; color: var(--text-muted); }
.ep-auth-footer-link { color: var(--blue-light); font-weight: 600; text-decoration: none; }
.ep-auth-footer-link:hover { text-decoration: underline; }

/* Invite banner (pre-filled code) */
.ep-invite-banner {
  background: var(--green-dim); border: 1px solid rgba(34,197,94,.25);
  border-radius: 10px; padding: .65rem .9rem;
  font-size: .8rem; color: #86efac; margin-bottom: 1rem; text-align: center;
}

/* Code field (big letter input) */
.ep-code-field {
  font-size: 1.4rem !important; font-weight: 900 !important;
  letter-spacing: .25em !important; text-transform: uppercase !important;
  text-align: center !important;
}
.ep-code-field-sm {
  font-size: 1.1rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   PORTAL HEADER
═══════════════════════════════════════════════════════════════ */
.ep-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,11,18,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background .4s ease, border-color .4s ease;
}
.ep-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  max-width: 600px; margin: 0 auto;
}
.ep-brand { display: flex; align-items: center; gap: .7rem; }
.ep-k-badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); /* overridden by JS theme */
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff; flex-shrink: 0;
  transition: background .35s ease, box-shadow .35s ease;
}
.ep-brand-name { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; transition: var(--transition-theme); }
.ep-brand-sub  { font-size: .65rem; color: var(--text-muted); font-weight: 600; margin-top: 1px; transition: color .3s ease; }

.ep-header-right { display: flex; align-items: center; gap: .5rem; }
.ep-user-chip {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 99px; padding: .25rem .65rem .25rem .3rem;
}
.ep-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: .7rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ep-user-name-pill { font-size: .75rem; font-weight: 700; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Company Switcher Pills ────────────────────────────────────── */
.ep-company-switcher {
  display: flex; gap: .45rem; padding: .6rem 1rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: rgba(8,11,18,0.6); border-bottom: 1px solid var(--border);
  max-width: 600px; margin: 0 auto; width: 100%;
}
.ep-company-switcher::-webkit-scrollbar { display: none; }
.ep-comp-pill {
  flex-shrink: 0; display: flex; align-items: center; gap: .4rem;
  padding: .38rem .75rem .38rem .38rem;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 99px; color: var(--text-muted); font-size: .78rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: var(--transition);
  white-space: nowrap;
}
.ep-comp-pill.active { color: var(--text); }
.ep-comp-pill:hover:not(.active) { border-color: var(--border-active); color: var(--text); }
.ep-comp-dot {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.ep-priv-pill { border-style: dashed; }
.ep-priv-pill.active { border-color: #6366f1; color: #a5b4fc; border-style: solid; }

/* No company panel */
.ep-no-company {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 1.5rem;
}
.ep-no-company-card {
  background: var(--surface); border: 1px solid var(--border-active);
  border-radius: 22px; padding: 2rem 1.75rem; max-width: 360px; width: 100%;
  text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.ep-nc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.ep-no-company-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; }
.ep-no-company-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.ep-nc-input-row { display: flex; gap: .6rem; }

/* ═══════════════════════════════════════════════════════════════
   MAIN PORTAL LAYOUT
═══════════════════════════════════════════════════════════════ */
.ep-main {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto;
  padding: 1rem 1rem calc(var(--nav-h) + 1.5rem);
  min-height: 100dvh;
}

.ep-section { display: none; }
.ep-section.active { display: block; }

/* ── Mode Switcher ─────────────────────────────────────────────── */
.ep-mode-switcher {
  display: flex; gap: 5px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 18px; padding: 4px;
  margin-bottom: 1rem;
  transition: border-color .3s ease;
}
.ep-mode-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1rem; border: none; background: transparent;
  color: var(--text-muted); font-size: .83rem; font-weight: 700;
  border-radius: 14px; cursor: pointer; font-family: inherit;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.ep-mode-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.ep-mode-icon { width: 15px; height: 15px; flex-shrink: 0; }

/* Private mode: private button active = indigo */
body.ep-private-mode .ep-mode-btn#ep-sess-private.active {
  background: var(--priv-primary);
  box-shadow: 0 4px 18px var(--priv-glow);
}
body.ep-private-mode .ep-mode-btn#ep-sess-company {
  color: rgba(255,255,255,.35);
}
body.ep-private-mode .ep-mode-switcher {
  border-color: var(--priv-border);
}

/* Private mode banner */
.ep-private-banner {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  border-radius: 12px; padding: .6rem .85rem;
  font-size: .78rem; color: #a5b4fc; font-weight: 600;
  margin-bottom: .85rem; line-height: 1.4;
}
.ep-private-banner.hidden { display: none; }
.ep-pb-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #6366f1; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(99,102,241,.7);
  animation: ep-pulse-priv 2s ease-in-out infinite;
}
@keyframes ep-pulse-priv { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

/* ═══════════════════════════════════════════════════════════════
   CLOCK CARD
═══════════════════════════════════════════════════════════════ */
.ep-clock-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem 1.15rem;
  position: relative; overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color .35s ease, background .35s ease;
}

/* Top gradient accent bar */
.ep-clock-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, transparent);
  opacity: 0; transition: opacity .4s ease, background .4s ease;
}
.ep-clock-card.state-in::before    { background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e); opacity: 1; background-size: 200%; animation: ep-gradient-shift 3s ease infinite; }
.ep-clock-card.state-break::before { background: linear-gradient(90deg, #f97316, #ea580c); opacity: 1; }
@keyframes ep-gradient-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

/* Background glow when clocked in */
.ep-clock-card::after {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.ep-clock-card.state-in::after    { background: radial-gradient(ellipse 100% 50% at 50% -20%, rgba(34,197,94,.06) 0%, transparent 70%); opacity: 1; }
.ep-clock-card.state-break::after { background: radial-gradient(ellipse 100% 50% at 50% -20%, rgba(249,115,22,.06) 0%, transparent 70%); opacity: 1; }

/* Mode context strip inside card */
.ep-card-mode-strip {
  text-align: center;
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted);
  padding-bottom: .85rem; margin-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  min-height: 1.1rem;
  position: relative; z-index: 1;
}
.ep-cms-inner {
  display: inline-flex; align-items: center; gap: .4rem;
}
.ep-cms-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; animation: ep-cms-pulse 2.2s ease-in-out infinite;
}
@keyframes ep-cms-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.6)} }
.ep-cms-dot-green  { background: var(--green); }
.ep-cms-dot-orange { background: var(--orange); }
.ep-cms-dot-muted  { background: var(--text-dim); animation: none; }
.ep-cms-dot-indigo { background: #6366f1; }
.ep-cms-text-green  { color: #86efac; }
.ep-cms-text-muted  { color: var(--text-muted); }
.ep-cms-text-indigo { color: #a5b4fc; }
.ep-cms-company-name { color: var(--text); font-weight: 700; }

/* Status row */
.ep-v2-status-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.ep-v2-status { display: flex; align-items: center; gap: .5rem; }
.ep-v2-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-dim); flex-shrink: 0; position: relative;
}
.ep-v2-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: inherit; opacity: .3; animation: none;
}
.state-in    .ep-v2-dot { background: var(--green); }
.state-in    .ep-v2-dot::after { animation: ep-pulse-green 1.8s ease-in-out infinite; }
.state-break .ep-v2-dot { background: var(--orange); }
.state-break .ep-v2-dot::after { animation: ep-pulse-orange 1.8s ease-in-out infinite; }
@keyframes ep-pulse-green  { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:0;transform:scale(2.2)} }
@keyframes ep-pulse-orange { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:0;transform:scale(2.2)} }

.ep-v2-status-lbl {
  font-size: .79rem; font-weight: 700; color: var(--text-muted);
  white-space: nowrap; transition: color .2s;
}
.state-in    .ep-v2-status-lbl { color: var(--green); }
.state-break .ep-v2-status-lbl { color: var(--orange); }

.ep-v2-timer {
  font-size: 1.3rem; font-weight: 900; color: var(--text);
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .3s;
}
.state-in .ep-v2-timer { opacity: 1; }

/* Big clock */
.ep-v2-bigclock {
  text-align: center; padding: .4rem 0 .85rem;
  position: relative; z-index: 1;
}
.ep-v2-bc-time {
  font-size: 3.4rem; font-weight: 900; letter-spacing: -.04em;
  color: var(--text); line-height: 1; font-variant-numeric: tabular-nums;
}
.ep-v2-bc-date {
  font-size: .72rem; color: var(--text-muted); margin-top: .3rem;
  font-weight: 500; letter-spacing: .03em;
}

/* Location row */
.ep-location-row {
  display: flex; justify-content: center; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.ep-location-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 99px; padding: .28rem .8rem;
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: default; transition: border-color .2s, color .2s;
}
.ep-location-badge svg { width: 11px; height: 11px; flex-shrink: 0; }
.ep-location-badge.has-loc { border-color: rgba(59,130,246,.35); color: var(--blue-light); }

/* Stats strip */
.ep-v2-stats {
  display: flex; align-items: center;
  background: var(--surface2); border-radius: 12px; border: 1px solid var(--border);
  padding: .7rem 1rem; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.ep-v2-stat { flex: 1; text-align: center; }
.ep-v2-stat-v { font-size: .9rem; font-weight: 800; color: var(--text); }
.ep-v2-stat-l { font-size: .6rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.ep-v2-stat-sep { width: 1px; height: 26px; background: var(--border); flex-shrink: 0; }

/* Action buttons */
.ep-v2-actions {
  display: flex; gap: .6rem; margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.ep-v2-btn {
  flex: 1; padding: .9rem 1rem;
  border-radius: 14px; border: none;
  font-size: .92rem; font-weight: 800;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  letter-spacing: .01em;
}
.ep-v2-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.ep-v2-btn-in    { background: linear-gradient(135deg,#22c55e,#16a34a); color: #fff; box-shadow: 0 6px 22px rgba(34,197,94,.32); }
.ep-v2-btn-in:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(34,197,94,.42); }
.ep-v2-btn-break { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,.28); }
.ep-v2-btn-break:hover:not(:disabled) { transform: translateY(-2px); }
.ep-v2-btn-out   { background: linear-gradient(135deg,#ef4444,#dc2626); color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,.28); }
.ep-v2-btn-out:hover:not(:disabled) { transform: translateY(-2px); }

/* Timeline bar */
.ep-timeline-wrap { position: relative; z-index: 1; }
.ep-timeline-label {
  font-size: .62rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .4rem; display: flex; justify-content: space-between;
}
.ep-timeline-bar {
  height: 10px; background: rgba(255,255,255,.05); border-radius: 99px;
  overflow: hidden; display: flex;
}
.ep-tl-segment { height: 100%; transition: width .4s ease; }
.ep-tl-work   { background: linear-gradient(90deg, #22c55e, #16a34a); }
.ep-tl-break  { background: linear-gradient(90deg, #f97316, #ea580c); }
.ep-tl-active { background: linear-gradient(90deg, #3b82f6, #2563eb); animation: ep-tl-pulse 2s ease-in-out infinite; }
@keyframes ep-tl-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.ep-tl-dots { display: flex; gap: .35rem; margin-top: .5rem; flex-wrap: wrap; }
.ep-tl-dot-item { display: flex; align-items: center; gap: .22rem; font-size: .65rem; color: var(--text-muted); font-weight: 600; }
.ep-tl-dot-swatch { width: 7px; height: 7px; border-radius: 50%; }

/* ═══════════════════════════════════════════════════════════════
   SUMMARY CARDS GRID
═══════════════════════════════════════════════════════════════ */
.ep-summary-grid { display: flex; flex-direction: column; gap: .75rem; }

.ep-summary-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem 1.25rem;
  transition: border-color .2s;
}
.ep-summary-card:hover { border-color: var(--border-active); }

.ep-sc-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .9rem;
}
.ep-sc-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.ep-sc-icon svg { width: 14px; height: 14px; }
.ep-sc-title { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.ep-balance-amount {
  font-size: 1.8rem; font-weight: 900; letter-spacing: -.03em; color: var(--text);
  margin-bottom: .2rem;
}
.ep-balance-sub { font-size: .72rem; color: var(--text-muted); margin-bottom: .9rem; min-height: 1em; }

.ep-sc-divider { height: 1px; background: var(--border); margin: .85rem 0; }
.ep-sc-row { display: flex; align-items: center; }
.ep-sc-item { flex: 1; text-align: center; }
.ep-sc-val  { font-size: .88rem; font-weight: 800; color: var(--text); }
.ep-sc-lbl  { font-size: .6rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.ep-sc-sep  { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }

/* Week grid */
.ep-week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .5rem; }
.ep-wg-item { background: var(--surface2); border-radius: 10px; padding: .65rem .75rem; border: 1px solid var(--border); }
.ep-wg-lbl  { font-size: .6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.ep-wg-val  { font-size: .88rem; font-weight: 800; color: var(--text); }
.ep-wg-val-sm { font-size: .74rem; }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════════════════ */
.ep-section-hdr-v2 {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}
.ep-sht-title { font-size: 1.05rem; font-weight: 800; }
.ep-sht-sub   { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.ep-sht-badge {
  font-size: .7rem; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 99px; padding: .2rem .65rem;
  white-space: nowrap; align-self: flex-start; margin-top: .15rem;
}

/* Filter tabs */
.ep-filter-tabs {
  display: flex; gap: .35rem; margin-bottom: 1rem;
  overflow-x: auto; scrollbar-width: none;
}
.ep-filter-tabs::-webkit-scrollbar { display: none; }
.ep-filter-tab {
  padding: .4rem .85rem; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted);
  border-radius: 99px; font-size: .78rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: var(--transition); white-space: nowrap;
}
.ep-filter-tab.active {
  background: var(--primary-dim); border-color: var(--primary);
  color: var(--primary);
}

/* Empty state */
.ep-empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted);
}
.ep-empty-state-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.ep-empty-state h3   { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.ep-empty-state p    { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   ATTENDANCE DAY CARDS
═══════════════════════════════════════════════════════════════ */
.ep-day-cards { display: flex; flex-direction: column; gap: .65rem; }

.ep-day-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 1rem 1.15rem;
  transition: border-color .2s; position: relative; overflow: hidden;
}
.ep-day-card:hover { border-color: var(--border-active); }

.ep-day-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: .65rem;
}
.ep-day-card-date { font-size: .9rem; font-weight: 800; }
.ep-day-card-dow  { font-size: .7rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.ep-day-card-badges { display: flex; gap: .35rem; align-items: center; }

.ep-day-card-times { display: flex; gap: 1.25rem; margin-bottom: .7rem; }
.ep-dct-item { display: flex; flex-direction: column; gap: 2px; }
.ep-dct-lbl  { font-size: .6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.ep-dct-val  { font-size: .85rem; font-weight: 700; }

.ep-day-card-mini-tl {
  height: 5px; background: rgba(255,255,255,.05); border-radius: 99px;
  overflow: hidden; display: flex; margin-bottom: .6rem;
}

.ep-day-card-stats {
  display: flex; gap: .7rem; align-items: center;
  padding-top: .6rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.ep-dcs-item { display: flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--text-muted); }
.ep-dcs-item strong { color: var(--text); font-weight: 700; }

.ep-loc-chip {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .65rem; color: var(--text-muted); font-weight: 600;
}
.ep-loc-chip svg { width: 9px; height: 9px; }

/* Badges */
.ep-badge {
  font-size: .65rem; font-weight: 700; padding: .18rem .52rem;
  border-radius: 99px; border: 1px solid;
}
.ep-badge-green { background: rgba(34,197,94,.1);  border-color: rgba(34,197,94,.3);  color: #86efac; }
.ep-badge-blue  { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #93c5fd; }
.ep-badge-muted { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.2); color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════
   PAYMENTS TABLE
═══════════════════════════════════════════════════════════════ */
.ep-private-payments-notice {
  display: flex; align-items: flex-start; gap: .85rem;
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2);
  border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem;
}
.ep-private-payments-notice.hidden { display: none; }
.ep-ppn-icon { font-size: 1.5rem; flex-shrink: 0; }
.ep-ppn-text { font-size: .82rem; color: #a5b4fc; line-height: 1.6; }
.ep-ppn-text strong { color: #c7d2fe; display: block; margin-bottom: .2rem; }

.ep-table-wrap { overflow-x: auto; border-radius: 14px; border: 1.5px solid var(--border); }
.ep-table {
  width: 100%; border-collapse: collapse; font-size: .82rem;
}
.ep-table th {
  background: var(--surface2); color: var(--text-muted);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .65rem .85rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.ep-table td {
  padding: .7rem .85rem; color: var(--text); border-bottom: 1px solid var(--border);
}
.ep-table tr:last-child td { border-bottom: none; }
.ep-table tr:hover td { background: rgba(255,255,255,.02); }
.ep-empty { text-align: center; color: var(--text-muted); padding: 2rem !important; font-size: .82rem; }

/* ═══════════════════════════════════════════════════════════════
   REPORTS
═══════════════════════════════════════════════════════════════ */
.ep-report-controls {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem;
}
.ep-report-controls h3 { font-size: .92rem; font-weight: 800; margin-bottom: 1rem; }
.ep-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.ep-report-field { display: flex; flex-direction: column; gap: .3rem; }
.ep-report-field label { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.ep-report-field.full { grid-column: 1/-1; }
.ep-report-field input, .ep-report-field select {
  padding: .6rem .75rem;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .85rem;
  font-family: inherit; outline: none; width: 100%;
}
.ep-report-field input:focus, .ep-report-field select:focus { border-color: var(--primary); }

.ep-report-actions { display: flex; gap: .6rem; }
.ep-btn-generate {
  padding: .75rem 1.25rem;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff; border: none; border-radius: 12px;
  font-size: .88rem; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: var(--transition); box-shadow: 0 4px 14px var(--primary-glow);
}
.ep-btn-generate:hover { transform: translateY(-1px); }

.ep-report-output {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ep-report-output.hidden { display: none; }
.ep-report-header {
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
  padding: 1.25rem; border-bottom: 1px solid var(--border);
  text-align: center;
}
.ep-rh-company { font-size: 1rem; font-weight: 800; margin-bottom: .2rem; }
.ep-rh-title   { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.ep-rh-period  { font-size: .75rem; color: var(--primary); font-weight: 700; margin-top: .3rem; }

.ep-report-kpis { display: flex; padding: 1rem; gap: .5rem; }
.ep-kpi-box { flex: 1; background: var(--surface2); border-radius: 12px; padding: .8rem .5rem; text-align: center; border: 1px solid var(--border); }
.ep-kpi-val { font-size: .95rem; font-weight: 900; color: var(--text); }
.ep-kpi-lbl { font-size: .6rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; }

.ep-report-log { padding: 1rem; border-top: 1px solid var(--border); }
.ep-report-log-title { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .65rem; }

.ep-report-share { display: flex; gap: .6rem; padding: 1rem; border-top: 1px solid var(--border); }
.ep-btn-share {
  flex: 1; padding: .7rem; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: .82rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: var(--transition); text-align: center;
}
.ep-btn-share:hover { border-color: var(--border-active); }
.ep-btn-share.primary { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }

/* ═══════════════════════════════════════════════════════════════
   PROFILE SECTION
═══════════════════════════════════════════════════════════════ */
.ep-profile-hero {
  text-align: center; padding: 1.5rem 0 1.25rem;
}
.ep-profile-avatar-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; position: relative; margin-bottom: .85rem;
}
.ep-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 900; color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: background .4s ease, box-shadow .4s ease;
}
.ep-profile-name  { font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; }
.ep-profile-email { font-size: .78rem; color: var(--text-muted); }

/* Stats strip */
.ep-profile-stats {
  display: flex; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem;
}
.ep-ps-item { flex: 1; padding: .9rem .5rem; text-align: center; border-right: 1px solid var(--border); }
.ep-ps-item:last-child { border-right: none; }
.ep-ps-val { font-size: .95rem; font-weight: 900; }
.ep-ps-lbl { font-size: .6rem; color: var(--text-muted); margin-top: 3px; font-weight: 600; }

/* Personal Tracker card */
.ep-private-profile-card {
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(79,70,229,.08));
  border: 1.5px solid rgba(99,102,241,.25);
  border-radius: var(--radius-lg); padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}
.ep-ppc-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.ep-ppc-lock {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.3);
  display: flex; align-items: center; justify-content: center;
  color: #818cf8; flex-shrink: 0;
}
.ep-ppc-lock svg { width: 16px; height: 16px; }
.ep-ppc-title { font-size: .88rem; font-weight: 800; color: #c7d2fe; }
.ep-ppc-sub   { font-size: .68rem; color: rgba(165,180,252,.6); margin-top: 1px; }

.ep-private-stats-grid {
  display: flex; gap: .5rem; margin-bottom: .85rem;
}
.ep-priv-stat {
  flex: 1; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.18);
  border-radius: 10px; padding: .65rem .5rem; text-align: center;
}
.ep-priv-stat-val { font-size: .92rem; font-weight: 900; color: #a5b4fc; }
.ep-priv-stat-lbl { font-size: .6rem; color: rgba(165,180,252,.55); margin-top: 2px; font-weight: 600; }

.ep-ppc-rate-btn {
  width: 100%; padding: .6rem;
  background: rgba(99,102,241,.15); border: 1.5px solid rgba(99,102,241,.3);
  border-radius: 10px; color: #a5b4fc; font-size: .8rem; font-weight: 700;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: var(--transition);
}
.ep-ppc-rate-btn:hover { background: rgba(99,102,241,.22); }

/* Company list in profile */
.ep-company-list { margin-bottom: 1rem; }
.ep-company-list-title {
  font-size: .7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .65rem;
  display: flex; align-items: center; gap: .35rem;
}

.ep-company-item {
  display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; margin-bottom: .5rem; cursor: pointer;
  transition: var(--transition);
}
.ep-company-item:hover { border-color: var(--border-active); }
.ep-company-item.active-item { border-color: var(--primary); background: var(--surface2); }
.ep-ci-dot {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .85rem; color: #fff; flex-shrink: 0;
}
.ep-ci-name  { font-size: .88rem; font-weight: 700; }
.ep-ci-rate  { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.ep-ci-name-edit { flex: 1; min-width: 0; }
.ep-ci-badge {
  margin-left: auto; font-size: .65rem; font-weight: 700; padding: .18rem .52rem;
  border-radius: 99px; background: var(--primary-dim); color: var(--primary);
  border: 1px solid rgba(249,115,22,.25); white-space: nowrap; flex-shrink: 0;
}

/* Link company card */
.ep-link-company-card {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
  background: var(--surface); border: 1.5px dashed var(--border);
  border-radius: 12px; cursor: pointer; transition: var(--transition);
}
.ep-link-company-card:hover { border-color: var(--primary); background: var(--primary-dim); }
.ep-lc-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.ep-lc-icon svg { width: 16px; height: 16px; }
.ep-lc-text { flex: 1; }
.ep-lc-label { font-size: .85rem; font-weight: 700; color: var(--text); }
.ep-lc-sub   { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.ep-lc-arrow { color: var(--text-muted); width: 16px; height: 16px; flex-shrink: 0; }

/* Profile info card */
.ep-profile-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem;
}
.ep-profile-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border-bottom: 1px solid var(--border);
}
.ep-profile-row:last-child { border-bottom: none; }
.ep-profile-lbl { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.ep-profile-val { font-size: .83rem; font-weight: 700; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Danger button */
.ep-danger-btn {
  width: 100%; padding: .8rem;
  background: rgba(239,68,68,.08); border: 1.5px solid rgba(239,68,68,.25);
  border-radius: 14px; color: #f87171; font-size: .88rem; font-weight: 700;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: var(--transition); margin-bottom: 2rem;
}
.ep-danger-btn:hover { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.4); }

/* Ghost button */
.ep-ghost-btn {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: .65rem 1rem;
  color: var(--text-muted); font-size: .82rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
.ep-ghost-btn:hover { border-color: var(--border-active); color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
═══════════════════════════════════════════════════════════════ */
.ep-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(8,11,18,.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  display: flex; align-items: flex-start;
  max-width: 600px; margin: 0 auto; /* center on desktop */
}
/* stretch full-width on mobile */
@media (max-width: 600px) { .ep-bottom-nav { max-width: 100%; } }

.ep-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .28rem; padding: .6rem .3rem 0;
  height: var(--nav-h); border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; font-family: inherit;
  font-size: .62rem; font-weight: 700; letter-spacing: .01em;
  transition: color .2s; position: relative;
}
.ep-nav-icon { width: 22px; height: 22px; transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.ep-nav-icon svg { width: 100%; height: 100%; }

.ep-nav-item.active { color: var(--primary); }
.ep-nav-item.active .ep-nav-icon { transform: scale(1.1); }
.ep-nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--primary); border-radius: 0 0 6px 6px;
}
.ep-nav-item:not(.active):hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   BOTTOM SHEET — Link Company
═══════════════════════════════════════════════════════════════ */
.ep-bottom-sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 500; opacity: 0; pointer-events: none;
  transition: opacity .25s; backdrop-filter: blur(5px);
}
.ep-bottom-sheet-overlay.open { opacity: 1; pointer-events: all; }

.ep-bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 501;
  background: var(--surface);
  border: 1px solid var(--border-active);
  border-radius: 24px 24px 0 0;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  max-width: 600px; margin: 0 auto;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,0,.67,0);
  box-shadow: 0 -16px 64px rgba(0,0,0,.5);
}
.ep-bottom-sheet.open { transform: translateY(0); transition-timing-function: cubic-bezier(.33,1,.68,1); }

.ep-bs-handle {
  width: 40px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.12); margin: 0 auto 1.5rem;
}

.ep-bs-header {
  display: flex; align-items: center; gap: .85rem; margin-bottom: 1.35rem;
}
.ep-bs-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary-dim); border: 1px solid rgba(249,115,22,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.ep-bs-icon svg { width: 18px; height: 18px; }
.ep-bs-title { font-size: 1rem; font-weight: 800; margin-bottom: .15rem; }
.ep-bs-sub   { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

.ep-bs-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.ep-bs-field label { font-size: .75rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: .35rem; }
.ep-bs-field input {
  width: 100%; padding: .75rem .9rem;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: .9rem;
  font-family: inherit; outline: none; transition: border-color .2s;
}
.ep-bs-field input:focus { border-color: var(--primary); }
/* Reset code field inside bs-field */
.ep-bottom-sheet .ep-code-field {
  text-align: center; letter-spacing: .3em; text-transform: uppercase;
  font-size: 1.5rem; font-weight: 900;
}

.ep-theme-row { margin-bottom: 1.1rem; }
.ep-theme-label { font-size: .72rem; font-weight: 700; color: var(--text-muted); margin-bottom: .55rem; }
.ep-theme-swatches { display: flex; gap: .55rem; flex-wrap: wrap; }
.ep-theme-swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: var(--transition);
  position: relative;
}
.ep-theme-swatch.sel {
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
  transform: scale(1.12);
}

.ep-bs-actions { display: flex; gap: .6rem; margin-top: .5rem; }
.ep-bs-btn {
  flex: 1; padding: .85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff; border: none; border-radius: 14px;
  font-size: .92rem; font-weight: 800; cursor: pointer;
  font-family: inherit; transition: var(--transition);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.ep-bs-btn:hover { transform: translateY(-2px); }
.ep-bs-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; }

.ep-bs-error {
  background: var(--red-dim); border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; padding: .55rem .85rem;
  font-size: .8rem; color: #fca5a5; margin-top: .5rem;
  display: none; line-height: 1.4;
}
.ep-bs-error.show { display: block; }

/* ═══════════════════════════════════════════════════════════════
   PHOTO OVERLAY
═══════════════════════════════════════════════════════════════ */
.ep-photo-overlay {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.ep-photo-overlay.hidden { display: none; }
.ep-photo-card {
  background: var(--surface); border: 1px solid var(--border-active);
  border-radius: 20px; padding: 1.4rem; width: 100%; max-width: 360px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.ep-photo-prompt {
  font-size: .85rem; color: var(--text-muted); margin-bottom: .85rem;
  text-align: center; font-weight: 600;
}
.ep-photo-actions { display: flex; gap: .6rem; margin-top: .85rem; }

/* ═══════════════════════════════════════════════════════════════
   PRIVATE MODE RATE MODAL
═══════════════════════════════════════════════════════════════ */
.ep-rate-modal {
  position: fixed; inset: 0; z-index: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.ep-rate-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
}
.ep-rate-modal-card {
  background: var(--surface); border: 1px solid var(--border-active);
  border-radius: 20px; padding: 1.6rem; width: 100%; max-width: 340px;
  position: relative; z-index: 1; box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 1rem;
}
.ep-rate-modal-title { font-size: .95rem; font-weight: 800; }
.ep-rate-modal-card input {
  width: 100%; padding: .8rem; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: 1rem; font-family: inherit; outline: none;
}
.ep-rate-modal-card input:focus { border-color: #6366f1; }

/* ═══════════════════════════════════════════════════════════════
   PRIVATE CLIENTS PANEL — Freelancer Manager
═══════════════════════════════════════════════════════════════ */
.ep-priv-clients {
  display: flex; gap: 7px; flex-wrap: nowrap; overflow-x: auto;
  padding: .2rem .1rem .8rem; margin-bottom: .3rem;
  scrollbar-width: none;
}
.ep-priv-clients::-webkit-scrollbar { display: none; }

.ep-pc-pill {
  flex-shrink: 0;
  display: flex; align-items: center; gap: .45rem;
  padding: .42rem .85rem;
  border-radius: 99px;
  border: 1.5px solid var(--priv-border);
  background: var(--priv-surface);
  color: var(--text-muted);
  font-size: .77rem; font-weight: 700;
  cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.ep-pc-pill:hover { border-color: #6366f1; color: var(--text); }
.ep-pc-pill.active {
  background: linear-gradient(135deg, rgba(79,70,229,.25), rgba(124,58,237,.2));
  border-color: #6366f1;
  color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.ep-pc-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6366f1; flex-shrink: 0;
}
.ep-pc-pill.active .ep-pc-pill-dot {
  background: #818cf8;
  box-shadow: 0 0 6px rgba(129,140,248,.8);
  animation: ep-priv-dot-pulse 2s ease-in-out infinite;
}
@keyframes ep-priv-dot-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.6)} }

.ep-pc-add-pill {
  flex-shrink: 0;
  display: flex; align-items: center; gap: .35rem;
  padding: .42rem .85rem;
  border-radius: 99px;
  border: 1.5px dashed rgba(99,102,241,.3);
  background: transparent;
  color: #6366f1; font-size: .77rem; font-weight: 700;
  cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.ep-pc-add-pill:hover {
  border-color: #6366f1;
  background: rgba(99,102,241,.08);
}

/* ── Overtime toggle ── */
.ep-ot-row {
  display: flex; align-items: center; justify-content: flex-end;
  margin-bottom: .7rem;
}
.ep-ot-toggle {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; user-select: none;
}
.ep-ot-toggle input { display: none; }
.ep-ot-knob {
  width: 36px; height: 20px; border-radius: 99px;
  background: var(--surface3); border: 1.5px solid var(--border);
  position: relative; transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.ep-ot-knob::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text-dim);
  transition: transform .2s ease, background .2s;
}
.ep-ot-toggle input:checked + .ep-ot-knob {
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  border-color: #6366f1;
}
.ep-ot-toggle input:checked + .ep-ot-knob::after {
  transform: translateX(16px); background: #fff;
}
.ep-ot-label-txt {
  font-size: .76rem; font-weight: 700; color: var(--text-muted);
  display: flex; align-items: center; gap: .35rem;
}
.ep-ot-badge {
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  color: #fff; font-size: .62rem; font-weight: 800;
  padding: .1rem .4rem; border-radius: 99px;
}

/* ── Void / correction entry ── */
.ep-att-void-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: .7rem; font-weight: 600;
  padding: .15rem .4rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.ep-att-void-btn:hover { color: #ef4444; background: rgba(239,68,68,.08); }
.ep-att-day-voided { opacity: .38; text-decoration: line-through; }
.ep-att-overtime-tag {
  font-size: .6rem; font-weight: 800; color: #c4b5fd;
  background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.3);
  padding: .08rem .38rem; border-radius: 99px; margin-left: .35rem;
  vertical-align: middle; letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════
   HIDDEN UTILITY
═══════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   PRIVATE MODE — PREMIUM VISUAL TRANSFORMATION
   Aurora gradients · Animated borders · Premium indigo/violet palette
═══════════════════════════════════════════════════════════════ */
body.ep-private-mode {
  --primary:       var(--priv-primary);
  --primary-dim:   var(--priv-dim);
  --primary-glow:  var(--priv-glow);
  background:      var(--priv-bg);
}

/* Aurora orbs — animated sweeping indigo/violet/blue */
body.ep-private-mode .ep-orb-1 {
  background: radial-gradient(circle, rgba(99,102,241,.22) 0%, rgba(124,58,237,.1) 50%, transparent 70%);
  animation: orbFloat 14s ease-in-out infinite, ep-orb-aurora 8s ease-in-out infinite alternate;
}
body.ep-private-mode .ep-orb-2 {
  background: radial-gradient(circle, rgba(79,70,229,.14) 0%, rgba(99,102,241,.06) 50%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite reverse, ep-orb-aurora2 10s ease-in-out infinite alternate;
}
@keyframes ep-orb-aurora  { 0%{opacity:.7} 50%{opacity:1} 100%{opacity:.5} }
@keyframes ep-orb-aurora2 { 0%{opacity:.5} 50%{opacity:.9} 100%{opacity:.4} }

/* Header in private mode */
body.ep-private-mode .ep-header {
  background: rgba(7,9,26,.92);
  border-bottom-color: var(--priv-border);
}
body.ep-private-mode .ep-k-badge {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  box-shadow: 0 4px 14px rgba(99,102,241,.4) !important;
}
body.ep-private-mode .ep-brand-sub { color: #818cf8; }
body.ep-private-mode .ep-user-avatar { background: #4f46e5; }

/* Hide company switcher bar in private mode */
body.ep-private-mode .ep-company-switcher { display: none !important; }

/* Clock card in private mode — premium glass + aurora */
body.ep-private-mode .ep-clock-card {
  background: var(--priv-surface);
  border-color: rgba(99,102,241,.25);
  box-shadow: 0 0 0 1px rgba(99,102,241,.08), 0 8px 40px rgba(7,9,26,.6);
  position: relative;
}
/* Subtle aurora shimmer always present */
body.ep-private-mode .ep-clock-card::after {
  background: radial-gradient(ellipse 120% 60% at 50% -10%,
    rgba(99,102,241,.1) 0%, rgba(124,58,237,.05) 50%, transparent 70%);
  opacity: 1;
  animation: ep-aurora-breathe 5s ease-in-out infinite;
}
@keyframes ep-aurora-breathe { 0%,100%{opacity:.6} 50%{opacity:1} }

/* Animated gradient top bar — ALWAYS in private mode (even state-out) */
body.ep-private-mode .ep-clock-card::before {
  background: linear-gradient(90deg, #4f46e5, #818cf8, #7c3aed, #6366f1, #4f46e5);
  background-size: 300%;
  opacity: .4;
  animation: ep-priv-bar 5s linear infinite;
}
body.ep-private-mode .ep-clock-card.state-in::before {
  opacity: 1;
  background: linear-gradient(90deg, #4f46e5, #818cf8, #a78bfa, #7c3aed, #6366f1, #4f46e5);
  background-size: 300%;
  animation: ep-priv-bar 2.5s linear infinite;
}
body.ep-private-mode .ep-clock-card.state-break::before {
  opacity: 1;
  background: linear-gradient(90deg, #7c3aed, #9333ea, #c026d3, #7c3aed);
  background-size: 300%;
  animation: ep-priv-bar 3s linear infinite;
}
@keyframes ep-priv-bar { 0%{background-position:0% 0%} 100%{background-position:300% 0%} }

/* Private mode: clocked-in dot = indigo */
body.ep-private-mode .state-in    .ep-v2-dot { background: #6366f1; }
body.ep-private-mode .state-in    .ep-v2-dot::after { animation: ep-pulse-priv-dot 1.8s ease-in-out infinite; }
body.ep-private-mode .state-break .ep-v2-dot { background: #7c3aed; }
body.ep-private-mode .state-in    .ep-v2-status-lbl    { color: #a5b4fc; }
body.ep-private-mode .state-break .ep-v2-status-lbl { color: #c4b5fd; }
@keyframes ep-pulse-priv-dot { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:0;transform:scale(2.2)} }

/* Stats strip in private mode */
body.ep-private-mode .ep-v2-stats {
  background: var(--priv-surface2);
  border-color: var(--priv-border);
}

/* Action buttons in private mode stay same (green/orange/red) — those are universal */

/* Location badge in private mode */
body.ep-private-mode .ep-location-badge {
  background: var(--priv-surface2);
  border-color: var(--priv-border);
}

/* Timeline in private mode */
body.ep-private-mode .ep-tl-active {
  background: linear-gradient(90deg, #4f46e5, #6366f1);
}

/* Summary cards in private mode */
body.ep-private-mode .ep-summary-card {
  background: var(--priv-surface);
  border-color: var(--priv-border);
}
body.ep-private-mode .ep-wg-item {
  background: var(--priv-surface2);
  border-color: var(--priv-border);
}
body.ep-private-mode .ep-sc-icon {
  background: rgba(99,102,241,.12); color: #818cf8;
}

/* Private mode: balance card shows personal stats differently */
body.ep-private-mode .ep-balance-amount { color: #a5b4fc; }
body.ep-private-mode .ep-balance-card .ep-sc-icon { color: #818cf8; }

/* Payments section in private mode — show notice, hide table */
body.ep-private-mode #ep-private-pay-notice { display: flex !important; }
body.ep-private-mode #ep-payments-content { display: none; }

/* Bottom nav active in private mode = indigo */
body.ep-private-mode .ep-nav-item.active { color: #818cf8; }
body.ep-private-mode .ep-nav-item.active::before { background: #6366f1; }

/* Filter tab active in private mode */
body.ep-private-mode .ep-filter-tab.active {
  background: var(--priv-dim);
  border-color: var(--priv-primary);
  color: #a5b4fc;
}

/* Section header badge in private mode */
body.ep-private-mode .ep-sht-badge { border-color: var(--priv-border); }

/* Auth button in private mode (rate modal) */
body.ep-private-mode .ep-auth-btn {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
}

/* Profile avatar in private mode */
body.ep-private-mode .ep-profile-avatar {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

/* ══════════════════════════════════════════════════════════════
   KAYAAN v3.1 "Aurora" — Premium Visual Enhancement Layer
   Activity Badge · Enhanced Nav · Mobile Polish · Card Depth
══════════════════════════════════════════════════════════════ */

/* ── Floating Activity Badge ──────────────────────────────── */
#ep-activity-badge {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 9000;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(8,10,22,.97);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  padding: .42rem 1rem .42rem .6rem;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 4px 28px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04),
              0 1px 0 rgba(255,255,255,.06) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .32s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  max-width: calc(100% - 2.5rem);
}
#ep-activity-badge.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ep-act-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ep-act-dot-green  { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.8); animation: ep-act-pulse 1.6s ease-in-out infinite; }
.ep-act-dot-orange { background: #f97316; box-shadow: 0 0 8px rgba(249,115,22,.8); animation: ep-act-pulse 1.6s ease-in-out infinite; }
.ep-act-dot-muted  { background: rgba(148,163,184,.45); }
.ep-act-dot-priv   { background: #818cf8; box-shadow: 0 0 8px rgba(129,140,248,.8); animation: ep-act-pulse 1.6s ease-in-out infinite; }
@keyframes ep-act-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(1.4)} }
.ep-act-txt { font-size: .8rem; font-weight: 700; color: #e8edf5; letter-spacing: -.01em; }
.ep-act-sub {
  font-size: .7rem; color: #8892b0;
  padding-left: .4rem; margin-left: .15rem;
  border-left: 1px solid rgba(255,255,255,.1);
}

/* ── Version Badge ────────────────────────────────────────── */
.ep-version-badge {
  font-size: .58rem; font-weight: 800; padding: .08rem .45rem;
  background: var(--primary-dim);
  border: 1px solid rgba(249,115,22,.22);
  color: var(--primary);
  border-radius: 99px; letter-spacing: .04em;
  white-space: nowrap; align-self: center;
  transition: var(--transition-theme);
}
body.ep-private-mode .ep-version-badge {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.25);
  color: #818cf8;
}

/* ── Enhanced Bottom Navigation ───────────────────────────── */
.ep-bottom-nav {
  background: linear-gradient(to top, rgba(4,6,12,1) 0%, rgba(8,11,18,.98) 100%) !important;
  box-shadow: 0 -1px 0 rgba(255,255,255,.065),
              0 -32px 64px rgba(0,0,0,.5) !important;
  border-top-color: rgba(255,255,255,.065) !important;
}
.ep-nav-item {
  min-height: 60px !important;
  padding: .45rem .2rem 0 !important;
}
/* Glowing top indicator — wider + luminous */
.ep-nav-item.active::before {
  width: 40px !important;
  height: 4px !important;
  box-shadow: 0 0 12px var(--primary), 0 0 24px var(--primary-dim) !important;
  border-radius: 0 0 6px 6px !important;
}
/* Soft glow underneath active icon */
.ep-nav-item::after {
  content: '';
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(10px);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: -1;
}
.ep-nav-item.active::after { opacity: .22; }
/* Icon scale + lift on active */
.ep-nav-item.active .ep-nav-icon {
  transform: scale(1.18) translateY(-2px) !important;
  filter: drop-shadow(0 3px 8px var(--primary-dim));
}
/* Private mode glow */
body.ep-private-mode .ep-nav-item.active::before {
  box-shadow: 0 0 12px #6366f1, 0 0 24px rgba(99,102,241,.25) !important;
}
body.ep-private-mode .ep-nav-item.active::after { background: #6366f1; }
body.ep-private-mode .ep-nav-item.active .ep-nav-icon {
  filter: drop-shadow(0 3px 8px rgba(99,102,241,.35));
}

/* ── Clock Card Depth ─────────────────────────────────────── */
.ep-clock-card {
  box-shadow: 0 2px 0 rgba(255,255,255,.045) inset,
              0 16px 56px rgba(0,0,0,.45),
              0 0 0 1px rgba(255,255,255,.04) !important;
}
.ep-clock-card.state-in {
  box-shadow: 0 2px 0 rgba(255,255,255,.045) inset,
              0 16px 56px rgba(0,0,0,.45),
              0 0 0 1px rgba(34,197,94,.12),
              0 0 40px rgba(34,197,94,.04) !important;
}
.ep-clock-card.state-break {
  box-shadow: 0 2px 0 rgba(255,255,255,.045) inset,
              0 16px 56px rgba(0,0,0,.45),
              0 0 0 1px rgba(249,115,22,.12),
              0 0 40px rgba(249,115,22,.04) !important;
}

/* ── Action Button Ripple Touch Feedback ──────────────────── */
.ep-v2-btn { position: relative; overflow: hidden; }
.ep-v2-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.22) 0%, transparent 65%);
  transform: scale(0); opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
  pointer-events: none;
}
.ep-v2-btn:active::after { transform: scale(2.8); opacity: 1; transition: none; }

/* ── Summary Card Hover Lift ──────────────────────────────── */
.ep-summary-card {
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease !important;
}
.ep-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,0,0,.38), 0 0 0 1px var(--border-active) !important;
}

/* ── Day Card Hover ───────────────────────────────────────── */
.ep-day-card {
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
.ep-day-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0,0,0,.32) !important;
}

/* ── Void Badge + Voided Card ─────────────────────────────── */
.ep-badge-red { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.ep-day-card-voided { opacity: .48; }
.ep-day-card-voided .ep-day-card-top::after {
  content: 'VOIDED';
  font-size: .6rem; font-weight: 900; letter-spacing: .14em;
  color: rgba(239,68,68,.5); margin-left: .5rem;
}
.ep-void-btn {
  background: transparent;
  border: 1px solid rgba(239,68,68,.22);
  color: rgba(239,68,68,.7);
  border-radius: 8px; padding: .22rem .65rem;
  font-size: .65rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: var(--transition); margin-left: auto;
}
.ep-void-btn:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #fca5a5; }

/* ── Overtime Tag ─────────────────────────────────────────── */
.ep-badge-ot {
  background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(99,102,241,.09));
  border-color: rgba(99,102,241,.3); color: #a5b4fc;
  font-size: .6rem !important;
}

/* ── Mobile-First Polish ──────────────────────────────────── */
@media (max-width: 480px) {
  .ep-v2-btn { padding: 1.05rem 1rem !important; font-size: .94rem !important; min-height: 58px; }
  .ep-v2-bigclock { font-size: 2.8rem !important; }
  .ep-balance-amount { font-size: 1.55rem !important; }
  .ep-clock-card { padding: 1.2rem !important; }
  .ep-main-content { padding: .9rem .8rem !important; }
  .ep-v2-stat-v { font-size: 1rem !important; }
  .ep-filter-tab { padding: .44rem .95rem !important; font-size: .8rem !important; }
  .ep-summary-grid { gap: .65rem; }
  .ep-day-card { padding: .95rem 1rem !important; }
}

/* ══════════════════════════════════════════════════════════════
   HR ADMIN PAGES (employees.js rendered content)
══════════════════════════════════════════════════════════════ */
.ep-hr-page { padding: 1.25rem; max-width: 900px; margin: 0 auto; }
.ep-hr-tabs {
  display: flex; gap: .4rem; margin-bottom: 1.5rem;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border); padding-bottom: .75rem;
}
.ep-hr-tabs::-webkit-scrollbar { display: none; }
.ep-hr-tab {
  padding: .5rem 1rem; border: none; background: transparent;
  color: var(--text-muted); font-size: .82rem; font-weight: 700;
  border-radius: 99px; cursor: pointer; font-family: inherit;
  transition: var(--transition); white-space: nowrap;
}
.ep-hr-tab.active {
  background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(249,115,22,.25);
}
.ep-hr-section { display: none; }
.ep-hr-section.active { display: block; }

/* KPI strip */
.ep-kpi-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: .65rem; margin-bottom: 1.5rem; }
@media (max-width: 600px) { .ep-kpi-strip { grid-template-columns: repeat(2,1fr); } }
.ep-kpi-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1rem; text-align: center;
}
.ep-kpi-card .ep-kpi-val { font-size: 1.1rem; font-weight: 900; color: var(--text); }
.ep-kpi-card .ep-kpi-lbl { font-size: .65rem; color: var(--text-muted); margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Employee list */
.ep-emp-list { display: flex; flex-direction: column; gap: .55rem; }
.ep-emp-row {
  display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; transition: border-color .2s;
}
.ep-emp-row:hover { border-color: var(--border-active); }
.ep-emp-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 900; color: #fff;
}
.ep-emp-info { flex: 1; min-width: 0; }
.ep-emp-name { font-size: .88rem; font-weight: 700; }
.ep-emp-meta { font-size: .7rem; color: var(--text-muted); margin-top: 1px; }
.ep-emp-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ep-emp-hours { font-size: .85rem; font-weight: 800; }
.ep-emp-earned { font-size: .72rem; color: var(--text-muted); }

/* Payroll controls */
.ep-payroll-period-bar {
  display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.ep-period-btn {
  padding: .38rem .8rem; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted); border-radius: 99px;
  font-size: .78rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: var(--transition); white-space: nowrap;
}
.ep-period-btn.active { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); }

.ep-custom-range {
  display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap;
}
.ep-custom-range input[type="date"] {
  padding: .5rem .7rem; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .82rem; font-family: inherit; outline: none;
}
.ep-custom-range input:focus { border-color: var(--primary); }

.ep-payroll-table-wrap { overflow-x: auto; border-radius: 14px; border: 1.5px solid var(--border); }
.ep-payroll-table {
  width: 100%; border-collapse: collapse; font-size: .82rem; white-space: nowrap;
}
.ep-payroll-table th {
  background: var(--surface2); color: var(--text-muted); font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .65rem .85rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.ep-payroll-table td {
  padding: .7rem .85rem; color: var(--text); border-bottom: 1px solid var(--border);
}
.ep-payroll-table tr:last-child td { border-bottom: none; }

/* Calendar */
.ep-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: .5rem; }
.ep-cal-day-hdr { text-align: center; font-size: .62rem; font-weight: 700; color: var(--text-muted); padding: .3rem 0; }
.ep-cal-cell {
  aspect-ratio: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 600; color: var(--text-muted); cursor: default;
  position: relative; transition: var(--transition);
}
.ep-cal-cell.has-data { color: var(--text); border-color: rgba(34,197,94,.3); }
.ep-cal-cell.today { border-color: var(--primary); color: var(--primary); }
.ep-cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-top: 2px; }

/* Payment scheduler */
.ep-schedule-list { display: flex; flex-direction: column; gap: .55rem; }
.ep-schedule-item {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
}
.ep-si-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ep-si-info { flex: 1; }
.ep-si-name   { font-size: .85rem; font-weight: 700; }
.ep-si-date   { font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.ep-si-amount { font-size: .88rem; font-weight: 800; color: var(--green); }

/* Location log */
.ep-loc-list { display: flex; flex-direction: column; gap: .5rem; }
.ep-loc-row {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
}
.ep-loc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.ep-loc-info { flex: 1; }
.ep-loc-emp  { font-size: .83rem; font-weight: 700; }
.ep-loc-addr { font-size: .7rem; color: var(--text-muted); margin-top: 1px; }
.ep-loc-time { font-size: .72rem; color: var(--text-muted); }

/* HR action buttons */
.ep-hr-action-btn {
  padding: .55rem 1rem; background: var(--primary-dim);
  border: 1.5px solid rgba(249,115,22,.25);
  color: var(--primary); border-radius: 10px;
  font-size: .8rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.ep-hr-action-btn:hover { background: rgba(249,115,22,.2); }

/* Payment modal */
.ep-pay-modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 800; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; backdrop-filter: blur(6px);
}
.ep-pay-modal {
  background: var(--surface); border: 1px solid var(--border-active);
  border-radius: 20px; padding: 1.6rem; width: 100%; max-width: 380px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.ep-pay-modal-title { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.ep-pay-modal-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.ep-pay-modal-field label { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.ep-pay-modal-field input, .ep-pay-modal-field select {
  padding: .65rem .8rem; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: .88rem; font-family: inherit; outline: none; width: 100%;
}
.ep-pay-modal-field input:focus, .ep-pay-modal-field select:focus { border-color: var(--primary); }
.ep-pay-modal-actions { display: flex; gap: .6rem; margin-top: 1.1rem; }

/* ═══════════════════════════════════════════════════════════════
   INLINE NO-COMPANY STATE (inside clock card)
═══════════════════════════════════════════════════════════════ */
.ep-no-company-inline {
  text-align: center; padding: 2rem 1rem;
}
.ep-nci-icon { font-size: 2rem; margin-bottom: .65rem; }
.ep-nci-title { font-size: .92rem; font-weight: 800; margin-bottom: .35rem; }
.ep-nci-sub { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.1rem; }
