/* ── Employee Portal — Design system (SkilledX) — Apple HIG type scale ── */
:root {
  --ep-bg: #0D0F14;
  --ep-surface: #161921;
  --ep-surface2: #1E2230;
  --ep-border: rgba(255, 255, 255, 0.07);
  --ep-accent: #F5A623;
  --ep-blue: #3B82F6;
  --ep-green: #10B981;
  --ep-purple: #8B5CF6;
  --ep-red: #EF4444;
  --ep-pink: #EC4899;
  --ep-teal: #14B8A6;
  --ep-text: #F0F2F8;
  --ep-muted: #6B7280;
  --ep-muted2: #9CA3AF;
  --ep-radius-card: 20px;
  --ep-radius-btn: 14px;
  --ep-radius-input: 14px;
  --ep-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
  --ep-font-largetitle: 34px;
  --ep-font-largetitle-w: 700;
  --ep-font-largetitle-lh: 1.1;
  --ep-font-title1: 28px;
  --ep-font-title1-w: 700;
  --ep-font-title1-lh: 1.15;
  --ep-font-title2: 22px;
  --ep-font-title2-w: 600;
  --ep-font-title2-lh: 1.2;
  --ep-font-title3: 20px;
  --ep-font-title3-w: 600;
  --ep-font-title3-lh: 1.25;
  --ep-font-headline: 17px;
  --ep-font-headline-w: 600;
  --ep-font-headline-lh: 1.3;
  --ep-font-body: 17px;
  --ep-font-body-w: 400;
  --ep-font-body-lh: 1.5;
  --ep-font-callout: 16px;
  --ep-font-callout-w: 400;
  --ep-font-callout-lh: 1.4;
  --ep-font-subhead: 15px;
  --ep-font-subhead-w: 400;
  --ep-font-subhead-lh: 1.4;
  --ep-font-footnote: 13px;
  --ep-font-footnote-w: 400;
  --ep-font-footnote-lh: 1.4;
  --ep-font-caption1: 12px;
  --ep-font-caption1-w: 400;
  --ep-font-caption1-lh: 1.3;
  --ep-font-caption2: 11px;
  --ep-font-caption2-w: 400;
  --ep-font-caption2-lh: 1.2;
  --ep-icon-silver: #D1D5DB;
}

/* ── Reset ── */
.ep-page * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.ep-page {
  background: var(--ep-bg);
  min-height: 100vh;
  color: var(--ep-text);
  font-family: var(--ep-font-family);
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 88px;
}

/* ── Login page ── */
.ep-login-page {
  min-height: 100vh;
  position: relative;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ep-login-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 80% 10%, rgba(245, 166, 35, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 20% 90%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.ep-login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
}
.ep-logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.ep-logo-mark .ep-logo-icon {
  fill: #000;
}
.ep-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--ep-accent);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.ep-login-title {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-title1);
  font-weight: var(--ep-font-title1-w);
  line-height: var(--ep-font-title1-lh);
  color: var(--ep-text);
  margin: 0 0 8px;
}
.ep-login-subtitle {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-footnote);
  font-weight: var(--ep-font-footnote-w);
  color: var(--ep-muted);
  margin: 0;
}
.ep-alert-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--ep-red);
  padding: 14px 18px;
  border-radius: var(--ep-radius-input);
  font-size: var(--ep-font-footnote);
  margin-bottom: 20px;
}
.ep-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ep-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-field-label {
  font-size: var(--ep-font-caption1);
  letter-spacing: 1px;
  color: var(--ep-muted2);
  text-transform: uppercase;
  font-weight: 600;
}
.ep-input,
.ep-select,
.ep-textarea {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-input);
  padding: 16px 18px;
  font-size: var(--ep-font-body);
  font-weight: var(--ep-font-body-w);
  color: var(--ep-text);
  font-family: var(--ep-font-family);
  line-height: var(--ep-font-body-lh);
  width: 100%;
  transition: border-color 0.2s;
  min-height: 54px;
}

/* Select dropdown arrow */
select.ep-input,
select.ep-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Search / clear icons inside inputs */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  filter: invert(1);
}

/* Number input spinner arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  filter: invert(1);
  opacity: 1;
}

/* Date/time inputs: align and show light icons */
.ep-input[type="date"],
.ep-input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}
.ep-input[type="date"]::-webkit-calendar-picker-indicator,
.ep-input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 1;
  cursor: pointer;
}
.ep-input:focus,
.ep-select:focus,
.ep-textarea:focus {
  border-color: var(--ep-accent);
  outline: none;
}
.ep-textarea {
  min-height: 80px;
  resize: vertical;
}
.ep-input-badge {
  text-align: center;
  font-size: var(--ep-font-title3);
  letter-spacing: 4px;
  font-family: var(--ep-font-family);
}
.ep-input-hint {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted);
  margin: 4px 0 0;
}
.ep-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.ep-divider::before,
.ep-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ep-border);
}
.ep-divider span {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted);
}
.ep-btn-qr {
  width: 100%;
  padding: 14px;
  background: var(--ep-surface2);
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  color: var(--ep-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ep-btn-qr:hover {
  border-color: var(--ep-accent);
}
.ep-btn-primary {
  background: var(--ep-accent);
  color: #000;
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  border: none;
  border-radius: var(--ep-radius-btn);
  padding: 18px 24px;
  min-height: 56px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ep-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.35);
}

/* ── Dashboard ── */
.ep-toast {
  margin: 16px 24px;
  padding: 14px 18px;
  border-radius: var(--ep-radius-input);
  font-size: var(--ep-font-subhead);
  font-weight: 500;
}
.ep-toast-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ep-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ep-toast-warning {
  background: rgba(245, 166, 35, 0.15);
  color: var(--ep-accent);
  border: 1px solid rgba(245, 166, 35, 0.35);
}
.ep-toast-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ep-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.ep-dash-header {
  padding: 12px 24px 0;
}
/* Top status row: clock + actions pinned to upper-right (mobile status-bar style) */
.ep-dash-statusbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
  min-height: 36px;
}
.ep-header-actions--statusbar {
  flex-shrink: 0;
  gap: 8px;
}
.ep-notif-btn--statusbar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
}
.ep-notif-btn--statusbar .ep-notif-dot {
  top: 7px;
  right: 7px;
}
.ep-avatar--statusbar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  font-size: 11px;
}
.ep-dash-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.ep-dash-text-block {
  flex: 1;
  min-width: 0;
}
.ep-dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.ep-greeting {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted2);
  margin: 0 0 4px;
}
.ep-dash-name {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-title1);
  font-weight: var(--ep-font-title1-w);
  line-height: var(--ep-font-title1-lh);
  color: var(--ep-text);
  margin: 0 0 4px;
}
.ep-dash-company {
  font-size: var(--ep-font-footnote);
  font-weight: var(--ep-font-footnote-w);
  color: var(--ep-accent);
  margin: 0;
}
.ep-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ep-portal-clock {
  font-size: 11px;
  font-weight: 600;
  color: var(--ep-muted2);
  text-align: right;
  line-height: 1.2;
  max-width: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding-right: 2px;
}
.ep-dash-statusbar .ep-portal-clock {
  font-size: 10px;
  opacity: 0.95;
}
@media (max-width: 380px) {
  .ep-dash-statusbar .ep-portal-clock {
    font-size: 9px;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.ep-notif-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  color: var(--ep-icon-silver);
  position: relative;
  text-decoration: none;
}
.ep-notif-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--ep-accent);
  border-radius: 50%;
}
.ep-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ep-accent) 0%, #e0941a 100%);
  color: #000;
  font-family: var(--ep-font-family);
  font-weight: 700;
  font-size: var(--ep-font-footnote);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-avatar-lg {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  font-size: var(--ep-font-title1);
  margin: 0 auto 16px;
}

/* Dashboard: prominent clock hero (first and full width) */
.ep-dash-clock-hero {
  margin: 16px 24px 20px;
  padding: 20px;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
}
.ep-btn-clock-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  border-radius: var(--ep-radius-btn);
  text-decoration: none;
  margin-bottom: 10px;
}
.ep-btn-clock-hero-in {
  background: var(--ep-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.ep-btn-log-hero {
  background: var(--ep-accent);
  color: #000;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}
.ep-btn-clock-hero-out {
  background: var(--ep-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.ep-dash-clock-status {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted2);
  margin: 0 0 8px;
}
.ep-dash-clock-status-muted {
  color: var(--ep-muted);
}
.ep-dash-clock-hero .ep-clock-view-week {
  margin: 0;
  font-size: var(--ep-font-footnote);
}
.ep-dash-clock-hero .ep-clock-view-week a {
  color: var(--ep-accent);
  text-decoration: none;
  font-weight: 600;
}
.ep-dash-clock-hero-bordered {
  border: 1px solid var(--ep-green);
  border-radius: var(--ep-radius-card);
}

/* Manager card (dashboard) */
.ep-manager-card {
  margin: 0 24px 20px;
  padding: 20px;
  background: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
}
.ep-manager-card.ep-dash-clock-hero-bordered {
  border: 1px solid var(--ep-green);
}
.ep-manager-card-title {
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  margin: 0 0 10px;
  color: var(--ep-text);
}
.ep-manager-card-pending {
  margin: 0 0 12px;
  font-size: var(--ep-font-subhead);
  color: var(--ep-text);
}
.ep-manager-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.2);
  color: var(--ep-red);
  border-radius: 8px;
  font-size: var(--ep-font-caption1);
  font-weight: 600;
}
.ep-manager-card-uptodate {
  margin: 0 0 12px;
  font-size: var(--ep-font-subhead);
  color: var(--ep-green);
}
.ep-manager-review-btn,
.ep-btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  background: var(--ep-surface2);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-btn);
  color: var(--ep-text);
  font-size: var(--ep-font-headline);
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  text-align: center;
}

/* Manager timesheets page */
.ep-manager-subtitle {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted2);
  margin: -8px 24px 20px;
}
.ep-approval-section {
  margin: 0 24px 24px;
}
.ep-approval-section-title {
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  margin: 0 0 12px;
  color: var(--ep-text);
}
.ep-approval-empty {
  font-size: var(--ep-font-subhead);
  color: var(--ep-muted);
  margin: 0;
}
.ep-approval-card {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
  padding: 18px;
  margin-bottom: 12px;
}
.ep-approval-card-muted {
  opacity: 0.85;
  border-color: var(--ep-border);
}
.ep-approval-employee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ep-approval-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ep-accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ep-font-caption1);
  font-weight: 700;
  flex-shrink: 0;
}
.ep-approval-name {
  font-size: var(--ep-font-headline);
  font-weight: 600;
  color: var(--ep-text);
}
.ep-approval-detail {
  font-size: var(--ep-font-subhead);
  color: var(--ep-muted2);
  margin-bottom: 14px;
}
.ep-approval-detail p {
  margin: 4px 0;
}
.ep-approval-submitted,
.ep-approval-state-changed,
.ep-approval-reject-reason {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted);
  margin-top: 8px;
}
.ep-approval-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ep-approval-actions form {
  flex: 1;
  min-width: 0;
}
.ep-btn-approve {
  width: 100%;
  padding: 12px 18px;
  background: var(--ep-green);
  color: #fff;
  border: none;
  border-radius: var(--ep-radius-btn);
  font-size: var(--ep-font-headline);
  font-weight: 600;
  cursor: pointer;
}
.ep-btn-reject {
  flex: 1;
  min-width: 120px;
  padding: 12px 18px;
  background: transparent;
  color: var(--ep-red);
  border: 1.5px solid var(--ep-red);
  border-radius: var(--ep-radius-btn);
  font-size: var(--ep-font-headline);
  font-weight: 600;
  cursor: pointer;
}
.ep-reject-reason-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ep-border);
}
.ep-reject-reason {
  width: 100%;
  padding: 12px 14px;
  background: var(--ep-surface2);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-input);
  color: var(--ep-text);
  font-size: var(--ep-font-body);
  margin-bottom: 10px;
}
.ep-btn-reject-confirm {
  padding: 10px 16px;
  background: var(--ep-red);
  color: #fff;
  border: none;
  border-radius: var(--ep-radius-btn);
  font-size: var(--ep-font-subhead);
  font-weight: 600;
  cursor: pointer;
}
.ep-approval-section-collapsible .ep-approval-toggle {
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  color: var(--ep-muted2);
  font-size: var(--ep-font-subhead);
  text-align: left;
  cursor: pointer;
}
.ep-approval-collapse {
  margin-top: 8px;
}

/* Header chat button (message manager) */
.ep-header-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-btn);
  color: var(--ep-icon-silver);
  margin-right: 8px;
  flex-shrink: 0;
}

/* Attendance: + Log Work (replaces clock in/out) */
.ep-attendance-log-hero {
  margin: 16px 24px 20px;
  padding: 20px;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
}
.ep-btn-log-work {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  background: var(--ep-accent);
  color: #000;
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  border-radius: var(--ep-radius-btn);
  text-decoration: none;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}
.ep-today-status {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted2);
  margin: 0 0 8px;
}
.ep-attendance-log-hero .ep-clock-view-week {
  margin: 0;
  font-size: var(--ep-font-footnote);
}
.ep-attendance-log-hero .ep-clock-view-week a {
  color: var(--ep-accent);
  text-decoration: none;
  font-weight: 600;
}

/* Clock card (attendance page) */
.ep-clock-card {
  margin: 20px 24px 24px;
  padding: 20px;
  background: linear-gradient(135deg, #1a2540 0%, #0f1624 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--ep-radius-card);
}
.ep-clock-label {
  font-size: var(--ep-font-caption2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(59, 130, 246, 0.9);
  margin: 0 0 8px;
}
.ep-clock-time {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-largetitle);
  font-weight: var(--ep-font-largetitle-w);
  line-height: var(--ep-font-largetitle-lh);
  color: var(--ep-text);
  margin: 0 0 4px;
}
.ep-clock-date {
  font-size: var(--ep-font-subhead);
  font-weight: var(--ep-font-subhead-w);
  color: var(--ep-muted2);
  margin: 0 0 4px;
}
.ep-clock-status {
  font-size: var(--ep-font-footnote);
  color: var(--ep-green);
  margin: 0 0 16px;
}
.ep-clock-status-muted {
  color: var(--ep-muted);
}
.ep-clock-view-week {
  margin: 0 0 12px;
  font-size: var(--ep-font-footnote);
}
.ep-clock-view-week a {
  color: var(--ep-accent);
  text-decoration: none;
  font-weight: 600;
}
.ep-clock-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ep-btn-clock-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ep-blue);
  color: #fff;
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  padding: 14px 18px;
  border-radius: var(--ep-radius-btn);
  min-height: 48px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.ep-btn-clock-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ep-surface2);
  color: var(--ep-muted);
  border: 1.5px solid var(--ep-border);
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--ep-radius-btn);
  min-height: 48px;
  text-decoration: none;
}

/* Quick actions grid */
.ep-section-header {
  padding: 0 24px 12px;
}
.ep-section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ep-section-title {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  color: var(--ep-text);
}
.ep-see-all {
  font-size: var(--ep-font-subhead);
  font-weight: 600;
  color: var(--ep-accent);
  text-decoration: none;
}
.ep-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 24px 24px;
}
.ep-action-card {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
  padding: 20px;
  text-decoration: none;
  color: var(--ep-text);
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-action-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.ep-action-leave::after { background: var(--ep-purple); }
.ep-action-expense::after { background: var(--ep-green); }
.ep-action-petty::after { background: var(--ep-accent); }
.ep-action-inventory::after { background: var(--ep-red); }
.ep-action-payslip::after { background: var(--ep-blue); }
.ep-action-approvals::after { background: var(--ep-pink); }
.ep-action-helpdesk::after { background: var(--ep-teal); }
.ep-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-icon-fill-purple { fill: var(--ep-purple); }
.ep-icon-fill-green { fill: var(--ep-green); }
.ep-icon-fill-accent { fill: var(--ep-accent); }
.ep-icon-fill-red { fill: var(--ep-red); }
.ep-icon-fill-blue { fill: var(--ep-blue); }
.ep-icon-fill-pink { fill: var(--ep-pink); }
.ep-icon-fill-teal { fill: var(--ep-teal); }
.ep-icon-leave { background: rgba(139, 92, 246, 0.2); }
.ep-icon-expense { background: rgba(16, 185, 129, 0.2); }
.ep-icon-petty { background: rgba(245, 166, 35, 0.2); }
.ep-icon-inventory { background: rgba(239, 68, 68, 0.2); }
.ep-icon-payslip { background: rgba(59, 130, 246, 0.2); }
.ep-icon-approvals { background: rgba(236, 72, 153, 0.2); }
.ep-action-label {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-subhead);
  font-weight: 600;
}
.ep-action-sub {
  font-size: var(--ep-font-caption1);
  font-weight: var(--ep-font-caption1-w);
  color: var(--ep-muted);
}

/* Recent requests */
.ep-recent-list {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  min-height: 56px;
}
.ep-req-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
}
.ep-req-icon-leave { background: rgba(139, 92, 246, 0.2); }
.ep-req-icon-expense { background: rgba(16, 185, 129, 0.2); }
.ep-req-icon-petty_cash { background: rgba(245, 166, 35, 0.2); }
.ep-req-icon-inventory { background: rgba(239, 68, 68, 0.2); }
.ep-req-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ep-req-title {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-subhead);
  font-weight: 600;
  color: var(--ep-text);
}
.ep-req-date {
  font-size: var(--ep-font-caption1);
  font-weight: var(--ep-font-caption1-w);
  color: var(--ep-muted);
}

/* Dashboard latest updates */
.ep-updates-section .ep-update-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.ep-update-unread {
  border-left-color: var(--ep-accent);
}
.ep-update-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ep-update-title {
  font-size: var(--ep-font-subhead);
  font-weight: 500;
  color: var(--ep-text);
}
.ep-update-msg {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted2);
}
.ep-update-time {
  font-size: var(--ep-font-caption2);
  color: var(--ep-muted2);
  margin-left: 8px;
  white-space: nowrap;
}
.ep-notif-unread {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.25);
}

/* Status badges */
.ep-badge {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-caption2);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.ep-badge-draft {
  background: rgba(245, 166, 35, 0.15);
  color: var(--ep-accent);
}
.ep-badge-approved {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ep-green);
}
.ep-badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ep-red);
}

/* Bottom nav */
.ep-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--ep-surface);
  border-top: 1px solid var(--ep-border);
  padding: 12px 24px 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.ep-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ep-muted);
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-caption2);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}
.ep-nav-item svg {
  fill: var(--ep-icon-silver);
}
.ep-nav-item:hover {
  color: var(--ep-muted2);
}
.ep-nav-item.ep-nav-active {
  background: rgba(245, 166, 35, 0.1);
  color: var(--ep-accent);
}
.ep-nav-item.ep-nav-active svg {
  fill: var(--ep-accent);
}
.ep-nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translate(50%, -50%);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  background: var(--ep-red);
  color: #fff;
}
.ep-nav-item-tasks {
  position: relative;
}
.ep-nav-badge-alerts {
  background: var(--ep-accent);
  color: #000;
}

/* ── Form page (request form, stubs) ── */
.ep-form-page {
  padding: 16px 24px 100px;
  min-height: 100vh;
}
.ep-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.ep-back-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  color: var(--ep-icon-silver);
  text-decoration: none;
}
.ep-form-title {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-title3);
  font-weight: var(--ep-font-title3-w);
  color: var(--ep-text);
  margin: 0;
  flex: 1;
}
.ep-type-pill {
  font-size: var(--ep-font-caption2);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
}
.ep-type-leave { background: rgba(139, 92, 246, 0.2); color: var(--ep-purple); }
.ep-type-expense { background: rgba(16, 185, 129, 0.2); color: var(--ep-green); }
.ep-type-petty_cash { background: rgba(245, 166, 35, 0.2); color: var(--ep-accent); }
.ep-type-inventory { background: rgba(239, 68, 68, 0.2); color: var(--ep-red); }
.ep-type-general { background: rgba(20, 184, 166, 0.2); color: var(--ep-teal); }

.ep-request-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ep-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ep-duration-card {
  padding: 14px 18px;
  border-radius: var(--ep-radius-input);
}
.ep-duration-leave {
  background: rgba(139, 92, 246, 0.12);
  border: 1.5px solid rgba(139, 92, 246, 0.25);
}
.ep-duration-label {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted2);
  display: block;
  margin-bottom: 4px;
}
.ep-duration-value {
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: 700;
  color: var(--ep-purple);
}
.ep-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.ep-upload-zone:hover {
  border-color: var(--ep-accent);
}
.ep-upload-zone.ep-uploaded {
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-style: solid;
}
.ep-upload-zone.ep-uploaded .ep-upload-initial {
  display: none;
}
.ep-upload-zone.ep-uploaded .ep-upload-success {
  display: flex;
}
.ep-upload-zone .ep-upload-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ep-green);
}
.ep-upload-zone .ep-upload-success .ep-upload-filename {
  font-size: var(--ep-font-subhead);
  font-weight: 600;
  color: var(--ep-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-upload-zone .ep-upload-success .ep-upload-size {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted);
}
.ep-upload-remove {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--ep-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.ep-upload-remove:hover {
  color: var(--ep-red);
  background: rgba(239, 68, 68, 0.1);
}
.ep-upload-error {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: var(--ep-radius-input);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--ep-red);
  font-size: var(--ep-font-footnote);
}
.ep-upload-zone.ep-upload-error-zone {
  border-color: rgba(239, 68, 68, 0.5);
}
.ep-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.ep-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ep-text);
  font-size: var(--ep-font-subhead);
  font-weight: var(--ep-font-subhead-w);
}
.ep-upload-label svg {
  color: var(--ep-muted);
}
.ep-upload-hint {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted);
}
.ep-btn-submit {
  margin-top: 8px;
}

/* My requests page */
.ep-requests-page {
  padding: 16px 24px 100px;
}
.ep-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 20px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ep-filter-tabs::-webkit-scrollbar {
  display: none;
}
.ep-filter-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  color: var(--ep-muted);
  font-size: var(--ep-font-footnote);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.ep-filter-pill:hover {
  border-color: var(--ep-muted2);
  color: var(--ep-text);
}
.ep-filter-pill.ep-filter-active {
  background: var(--ep-accent);
  color: #000;
  border-color: var(--ep-accent);
}
.ep-request-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-request-card {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 18px;
  padding: 18px;
}
.ep-request-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ep-request-card-link:hover {
  border-color: var(--ep-muted2);
}
.ep-card-link { text-decoration: none; color: inherit; }
.ep-card-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ep-border);
  text-align: right;
}
.ep-view-btn {
  color: var(--ep-accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.ep-detail-card {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
  padding: 20px;
  margin-bottom: 20px;
}
.ep-detail-meta {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted);
  margin: 8px 0 12px;
}
.ep-detail-section {
  margin-bottom: 20px;
}
.ep-detail-label {
  font-size: var(--ep-font-caption1);
  font-weight: 700;
  color: var(--ep-muted2);
  margin: 0 0 6px;
}
.ep-detail-value {
  font-size: var(--ep-font-subhead);
  color: var(--ep-text);
  margin: 0;
}
.ep-attendance-week {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
  overflow: hidden;
}
.ep-attendance-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ep-border);
  font-size: var(--ep-font-footnote);
}
.ep-attendance-row:last-child {
  border-bottom: none;
}
.ep-attendance-date { font-weight: 600; color: var(--ep-text); }
.ep-attendance-in, .ep-attendance-out, .ep-attendance-hours { color: var(--ep-muted); }

/* Week timesheet */
.ep-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 16px;
  gap: 12px;
}
.ep-week-nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-btn);
  color: var(--ep-text);
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.ep-week-nav-btn:hover {
  border-color: var(--ep-accent);
  color: var(--ep-accent);
}
.ep-week-nav-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.ep-week-nav-label {
  font-size: var(--ep-font-footnote);
  font-weight: 600;
  color: var(--ep-muted2);
  text-align: center;
  flex: 1;
}
.ep-day-rows {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-day-row {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  overflow: hidden;
}
.ep-day-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: var(--ep-font-subhead);
}
.ep-day-date {
  font-weight: 600;
  color: var(--ep-text);
  min-width: 56px;
}
.ep-day-status {
  font-size: var(--ep-font-caption2);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ep-day-status-present {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ep-green);
}
.ep-day-status-leave {
  background: rgba(59, 130, 246, 0.15);
  color: var(--ep-blue);
}
.ep-day-status-absent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ep-red);
}
.ep-day-status-pending {
  background: rgba(245, 166, 35, 0.2);
  color: var(--ep-accent);
}

.ep-day-status-rejected {
  background: rgba(245, 166, 35, 0.35);
  color: #000;
}
.ep-day-status-weekend {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ep-muted);
}
.ep-day-status-today {
  background: rgba(245, 166, 35, 0.15);
  color: var(--ep-accent);
}
.ep-day-hours {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted);
  margin-left: auto;
}
.ep-day-edit-btn {
  margin-left: auto;
  background: var(--ep-surface2);
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  color: var(--ep-accent);
  font-size: 16px;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
}
.ep-day-edit-form-wrap {
  border-top: 1px solid var(--ep-border);
  padding: 12px 18px;
  background: var(--ep-surface2);
}
.ep-day-edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-day-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ep-ot-indicator {
  font-size: var(--ep-font-footnote);
  color: var(--ep-accent);
  margin: 4px 0 8px;
}
.ep-btn-sm {
  padding: 10px 16px;
  font-size: var(--ep-font-footnote);
  align-self: flex-start;
}
.ep-message-manager-note {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted);
  margin: 0 0 16px;
}

/* Notifications / dashboard pagination */
.ep-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 24px 28px;
  padding-top: 12px;
  border-top: 1px solid var(--ep-border);
}
.ep-page-btn {
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ep-border);
  background: var(--ep-surface2);
  font-size: var(--ep-font-caption2);
  color: var(--ep-muted2);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ep-page-btn-active {
  border-color: var(--ep-accent);
  background: rgba(245, 166, 35, 0.15);
  color: var(--ep-accent);
  font-weight: 600;
}
.ep-page-btn:hover {
  border-color: var(--ep-accent);
  color: var(--ep-accent);
}
.ep-page-btn-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.ep-page-info {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted2);
}
.ep-day-expand {
  border-top: 1px solid var(--ep-border);
  padding: 12px 18px;
  background: var(--ep-surface2);
}
.ep-production-list-wrap {
  font-size: var(--ep-font-footnote);
}
.ep-production-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-production-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}
.ep-production-project {
  font-weight: 600;
  color: var(--ep-accent);
}
.ep-production-desc { color: var(--ep-text); }
.ep-production-qty { color: var(--ep-muted2); }
.ep-production-time { color: var(--ep-muted); font-size: var(--ep-font-caption1); }
.ep-production-empty {
  color: var(--ep-muted);
  margin: 0;
  font-size: var(--ep-font-footnote);
}
.ep-week-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 24px 20px;
}
.ep-week-summary-item {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.ep-week-summary-value {
  display: block;
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-title3);
  font-weight: 700;
  color: var(--ep-text);
}
.ep-week-summary-label {
  font-size: var(--ep-font-caption2);
  color: var(--ep-muted);
  margin-top: 4px;
  display: block;
}
.ep-month-summary {
  margin: 0 24px 24px;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  overflow: hidden;
}
.ep-month-summary-toggle {
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  color: var(--ep-text);
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-subhead);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.ep-month-summary-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}
.ep-month-summary-body {
  border-top: 1px solid var(--ep-border);
  padding: 16px 18px;
}
.ep-month-summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  font-size: var(--ep-font-footnote);
}
.ep-month-summary-label { color: var(--ep-muted); }
.ep-month-summary-value { color: var(--ep-text); font-weight: 600; }

/* Clock-out form */
.ep-clockin-banner {
  margin: 0 24px 16px;
  padding: 14px 18px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
}
.ep-clockin-banner-text {
  margin: 0;
  font-size: var(--ep-font-subhead);
  font-weight: 500;
  color: var(--ep-text);
}
.ep-clockout-form-page .ep-clockout-form {
  padding: 0 24px 24px;
}
.ep-clockout-form .ep-field-group {
  margin-bottom: 16px;
}

.ep-req-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ep-req-type-label {
  font-size: var(--ep-font-caption2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ep-req-type-leave { color: var(--ep-purple); }
.ep-req-type-expense { color: var(--ep-green); }
.ep-req-type-petty_cash { color: var(--ep-accent); }
.ep-req-type-inventory { color: var(--ep-red); }
.ep-req-type-general { color: var(--ep-teal); }
.ep-req-card-title {
  font-size: var(--ep-font-subhead);
  font-weight: 600;
  color: var(--ep-text);
  margin: 0 0 8px;
}
.ep-req-card-meta {
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted);
  padding-top: 10px;
  border-top: 1px solid var(--ep-border);
}

.ep-source-portal {
  background: rgba(59, 130, 246, 0.12);
  color: var(--ep-blue);
  font-size: var(--ep-font-caption2);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.ep-source-bitrix {
  background: rgba(16, 185, 129, 0.12);
  color: var(--ep-green);
  font-size: var(--ep-font-caption2);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Empty state & profile */
.ep-empty-state {
  text-align: center;
  padding: 32px 24px;
  color: var(--ep-muted);
  font-size: var(--ep-font-subhead);
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
}
.ep-payslip-footer {
  text-align: center;
  font-size: var(--ep-font-footnote);
  font-weight: var(--ep-font-footnote-w);
  color: var(--ep-muted);
  margin: 24px 0 0;
}
.ep-profile-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
  margin-bottom: 24px;
}
.ep-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 24px;
  min-height: 48px;
  background: transparent;
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-btn);
  color: var(--ep-text);
  font-family: var(--ep-font-family);
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  text-decoration: none;
  transition: border-color 0.2s;
}
.ep-btn-secondary:hover {
  border-color: var(--ep-accent);
  color: var(--ep-accent);
}

/* Tasks */
.ep-task-subtitle {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted);
  margin: 0 24px 16px;
}
.ep-task-overdue-count { color: var(--ep-red); font-weight: 600; }
.ep-task-section-title {
  font-size: var(--ep-font-headline);
  font-weight: var(--ep-font-headline-w);
  color: var(--ep-text);
  margin: 0 24px 12px;
}
.ep-task-card {
  display: block;
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 24px 12px;
  text-decoration: none;
  color: var(--ep-text);
  cursor: pointer;
  transition: border-color 0.2s;
}
.ep-task-card:hover {
  border-color: var(--ep-accent);
}
.ep-task-card-muted {
  opacity: 0.85;
}
.ep-task-card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ep-task-name {
  font-weight: 600;
  font-size: var(--ep-font-subhead);
  flex: 1;
  min-width: 0;
}
.ep-task-deadline {
  font-size: var(--ep-font-caption2);
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.ep-task-deadline-overdue {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ep-red);
}
.ep-task-deadline-today {
  background: rgba(245, 166, 35, 0.15);
  color: var(--ep-accent);
}
.ep-task-card-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: var(--ep-font-footnote);
}
.ep-task-muted { color: var(--ep-muted); }
.ep-task-stage-pill {
  font-size: var(--ep-font-caption2);
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ep-muted2);
}
.ep-task-boq {
  font-family: monospace;
  font-size: var(--ep-font-caption1);
  color: var(--ep-muted);
  margin: 6px 0 0;
}
.ep-task-completed-toggle { margin-top: 20px; }
.ep-log-work-form {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  padding: 18px;
  margin: 24px 24px 0;
}
.ep-log-work-form .ep-detail-label { margin-bottom: 12px; }
.ep-log-history {
  margin: 24px 24px 0;
  padding: 18px 0;
}
.ep-log-history-list { display: flex; flex-direction: column; gap: 10px; }
.ep-log-history-row {
  display: grid;
  grid-template-columns: 90px 50px 1fr;
  gap: 12px;
  font-size: var(--ep-font-footnote);
  color: var(--ep-text);
}

/* Tasks: manager tabs and team view */
.ep-tasks-tabs {
  display: flex;
  gap: 8px;
  padding: 0 24px 12px;
}
.ep-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--ep-border);
  background: var(--ep-surface2);
  color: var(--ep-muted2);
  font-size: var(--ep-font-caption1);
  font-weight: 500;
  text-decoration: none;
}
.ep-tab-btn-active {
  border-color: var(--ep-accent);
  background: rgba(245, 166, 35, 0.15);
  color: var(--ep-accent);
  font-weight: 600;
}
.ep-team-filter {
  padding: 0 24px 12px;
}
.ep-team-task-group {
  margin: 0 24px 16px;
}

/* Profile */
.ep-profile-avatar-wrap {
  text-align: center;
  margin: 0 0 16px;
}
.ep-profile-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.ep-profile-avatar-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ep-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin: 0 auto;
}
.ep-profile-info-card {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: 14px;
  padding: 18px;
  margin: 0 24px 20px;
}
.ep-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--ep-border);
  font-size: var(--ep-font-footnote);
}
.ep-profile-row:last-child { border-bottom: none; }
.ep-profile-label { color: var(--ep-muted); }
.ep-profile-value { font-weight: 500; color: var(--ep-text); }
.ep-profile-info-card .ep-detail-label { margin-bottom: 12px; }
.ep-profile-spouse-wrap { display: none; }

/* Loans & Advances */
.ep-section-label {
  font-size: var(--ep-font-caption1);
  font-weight: 700;
  color: var(--ep-muted2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 24px 24px 12px;
}
.ep-card {
  background: var(--ep-surface);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-card);
  padding: 20px;
  margin: 0 24px 16px;
}
.ep-mb-3 { margin-bottom: 12px; }
.ep-mb-4 { margin-bottom: 16px; }
.ep-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--ep-border);
  font-size: var(--ep-font-footnote);
}
.ep-card-row:last-child { border-bottom: none; }
.ep-status-badge {
  font-size: var(--ep-font-caption2);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ep-status-draft    { background: rgba(245,166,35,0.15); color: var(--ep-accent); }
.ep-status-approved { background: rgba(16,185,129,0.15); color: var(--ep-green); }
.ep-status-rejected { background: rgba(239,68,68,0.15);  color: var(--ep-red); }
.ep-status-paid     { background: rgba(59,130,246,0.15); color: var(--ep-blue); }
.ep-status-closed   { background: rgba(107,114,128,0.15); color: var(--ep-muted); }

/* Profile admin gear + attendance unlock modal */
.ep-profile-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ep-profile-header-row .ep-form-title {
  flex: 1;
  text-align: center;
  margin: 0;
}
.ep-profile-settings-btn {
  color: var(--ep-accent);
  padding: 8px;
  line-height: 0;
  border-radius: 10px;
  border: 1px solid var(--ep-border);
  background: var(--ep-surface2);
}
.ep-profile-settings-spacer {
  width: 38px;
  flex-shrink: 0;
}
.ep-day-lock-btn {
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--ep-border);
  background: var(--ep-surface2);
  color: var(--ep-muted2);
  cursor: pointer;
}
.ep-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.ep-modal[hidden] {
  display: none !important;
}
.ep-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.ep-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow: auto;
  background: var(--ep-surface);
  border-top-left-radius: var(--ep-radius-card);
  border-top-right-radius: var(--ep-radius-card);
  border: 1px solid var(--ep-border);
  padding: 20px 20px 28px;
  margin-top: auto;
}
.ep-modal-title {
  font-size: var(--ep-font-title3);
  margin: 0 0 8px;
}
.ep-modal-hint {
  font-size: var(--ep-font-footnote);
  color: var(--ep-muted);
  margin: 0 0 16px;
}
.ep-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}
