/* ============================================================
   e-leads Dashboard v2.0
   Syne (display) + DM Sans (body) · Light/Dark · Kanban
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --el-font-d: 'Gabarito', system-ui, sans-serif;
  --el-font-b: 'Gabarito', system-ui, sans-serif;
  --el-bg:           #ffffff;
  --el-surface:      #ffffff;
  --el-surface-2:    #f5f5f5;
  --el-border:       rgba(0,0,0,0.08);
  --el-border-s:     rgba(0,0,0,0.15);
  --el-text:         #0a0a0a;
  --el-text-2:       #6b6b6b;
  --el-text-m:       #a8a8a8;
  --el-sidebar-bg:   #fafafa;
  --el-sidebar-hov:  #f0f0f0;
  --el-sidebar-act:  #0a0a0a;
  --el-sidebar-act-t:#ffffff;
  --el-topbar-bg:    rgba(255,255,255,0.9);
  --el-shadow-sm:    0 1px 2px rgba(0,0,0,0.04),0 2px 8px rgba(0,0,0,0.04);
  --el-shadow:       0 1px 3px rgba(0,0,0,0.06),0 4px 16px rgba(0,0,0,0.05);
  --el-shadow-lg:    0 8px 40px rgba(0,0,0,0.10);
  --el-accent:       #0a0a0a;
  --el-accent-t:     #ffffff;
  --el-new:          #3452FF; --el-new-bg: #eff6ff; --el-new-b: #bfdbfe;
  --el-taken:        #d97706; --el-taken-bg:#fffbeb; --el-taken-b:#fde68a;
  --el-solved:       #16a34a; --el-solved-bg:#f0fdf4;--el-solved-b:#bbf7d0;
  --el-sla:          #dc2626; --el-sla-bg:  #fef2f2;
  --el-pend:         #7c3aed; --el-pend-bg: #f5f3ff; --el-pend-b:#ddd6fe;
  --el-r-sm:6px; --el-r-md:10px; --el-r-lg:16px; --el-r-xl:22px;
  --el-sw: 256px; --el-th: 58px;
  --el-t: 0.22s cubic-bezier(.4,0,.2,1);
}
[data-el-theme="dark"] {
  --el-bg:#0a0a0a; --el-surface:#141414; --el-surface-2:#1c1c1c;
  --el-border:rgba(255,255,255,0.07); --el-border-s:rgba(255,255,255,0.14);
  --el-text:#f0f0f0; --el-text-2:#888; --el-text-m:#555;
  --el-sidebar-bg:#111; --el-sidebar-hov:#1c1c1c;
  --el-sidebar-act:#f0f0f0; --el-sidebar-act-t:#0a0a0a;
  --el-topbar-bg:rgba(10,10,10,0.88);
  --el-shadow-sm:0 1px 2px rgba(0,0,0,0.35),0 2px 8px rgba(0,0,0,0.25);
  --el-shadow:0 1px 3px rgba(0,0,0,0.4),0 4px 16px rgba(0,0,0,0.3);
  --el-shadow-lg:0 8px 40px rgba(0,0,0,0.6);
  --el-accent:#f0f0f0; --el-accent-t:#0a0a0a;
  --el-new-bg:#1e3a5f; --el-new-b:rgba(37,99,235,0.3);
  --el-taken-bg:#3d2e00; --el-taken-b:rgba(217,119,6,0.3);
  --el-solved-bg:#0f2d1a; --el-solved-b:rgba(22,163,74,0.3);
  --el-sla-bg:#3d0f0f; --el-pend-bg:#2d1f47; --el-pend-b:rgba(124,58,237,0.3);
}

/* ── Reset (scoped) ─────────────────────────────────────── */
.el-db *,
.el-db *::before,
.el-db *::after { box-sizing:border-box; margin:0; padding:0; }
.el-db { font-family:var(--el-font-b); color:var(--el-text); }
/* Reset plain buttons; styled buttons use their own rules below */
.el-db button:not([class*="el-btn"]):not([class*="e-btn"]) { cursor:pointer; border:none; background:none; font-family:inherit; }
.el-db input,.el-db select,.el-db textarea { font-family:inherit; }
.el-db a { text-decoration:none; color:inherit; }
.el-db ::-webkit-scrollbar { width:4px; height:4px; }
.el-db ::-webkit-scrollbar-thumb { background:var(--el-border-s); border-radius:99px; }
body.el-open { overflow:hidden; }

/* ── Full-page shell ────────────────────────────────────── */
.el-db {
  position:fixed; inset:0; z-index:9999; overflow:hidden;
  display:grid;
  grid-template-columns:var(--el-sw) 1fr;
  grid-template-rows:var(--el-th) 1fr;
  background:var(--el-bg);
  transition:background var(--el-t);
}
/* Custom page views sit in row 2, col 2 — same slot as .el-main */
.el-view-custom-page { grid-row: 2; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.el-topbar {
  grid-column:1/-1; display:flex; align-items:center;
  height:var(--el-th);
  background:var(--el-topbar-bg);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--el-border);
  padding-right:20px;
  transition:background var(--el-t),border-color var(--el-t);
}
.el-topbar-logo {
  width:var(--el-sw); flex-shrink:0;
  display:flex; align-items:center; padding:0 22px;
}
.el-logo {
  display:flex; align-items:center; gap:9px;
  font-family:var(--el-font-d); font-weight:800; font-size:1.05rem;
  letter-spacing:-0.02em; color:var(--el-text);
}
.el-logo-box {
  width:28px; height:28px; background:var(--el-text); border-radius:7px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition:background var(--el-t);
}
.el-logo-box svg { color:var(--el-bg); transition:color var(--el-t); }
.el-topbar-mid { flex:1; }
.el-topbar-right { display:flex; align-items:center; gap:4px; }
.el-topbar-user {
  display:flex; align-items:center; gap:10px;
  padding:6px 10px; border-radius:var(--el-r-md);
  transition:background var(--el-t);
}
.el-topbar-user:hover { background:var(--el-surface-2); }
.el-avatar {
  width:32px; height:32px; border-radius:50%;
  background:var(--el-text); color:var(--el-bg);
  font-family:var(--el-font-d); font-weight:700; font-size:0.78rem;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:background var(--el-t),color var(--el-t);
}
.el-user-name { font-size:0.85rem; font-weight:500; color:var(--el-text); line-height:1.2; }
.el-user-role { font-size:0.7rem; color:var(--el-text-m); }
.el-icon-btn {
  cursor: pointer;
  position:relative; width:36px; height:36px; border-radius:var(--el-r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--el-text-2); transition:background var(--el-t),color var(--el-t);
}
.el-icon-btn:hover { background:var(--el-surface-2); color:var(--el-text); }
.el-bell-badge {
  position:absolute; top:5px; right:5px;
  width:15px; height:15px; background:var(--el-new);
  border-radius:99px; font-size:0.58rem; font-weight:700;
  color:#fff; display:flex; align-items:center; justify-content:center;
  border:2px solid var(--el-topbar-bg); transition:border-color var(--el-t);
}
.el-divv { width:1px; height:22px; background:var(--el-border); margin:0 6px; }
.el-theme-btn {
  width:36px; height:36px; border-radius:var(--el-r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--el-text-2); transition:background var(--el-t),color var(--el-t);
}
.el-theme-btn:hover { background:var(--el-surface-2); color:var(--el-text); }
.el-theme-btn .el-i-sun  { display:none; }
.el-theme-btn .el-i-moon { display:block; }
[data-el-theme="dark"] .el-theme-btn .el-i-sun  { display:block; }
[data-el-theme="dark"] .el-theme-btn .el-i-moon { display:none; }
.el-logout {
  display:flex; align-items:center; gap:6px; padding:6px 12px;
  border-radius:var(--el-r-sm); font-size:0.82rem; font-weight:500;
  color:var(--el-text-2); transition:background var(--el-t),color var(--el-t);
}
.el-logout:hover { background:var(--el-surface-2); color:var(--el-text); }

/* ── SIDEBAR ────────────────────────────────────────────── */
.el-sidebar {
  background:var(--el-sidebar-bg);
  border-right:1px solid var(--el-border);
  display:flex; flex-direction:column;
  padding:16px 12px 24px; gap:2px; overflow-y:auto;
  transition:background var(--el-t),border-color var(--el-t);
}
.el-sidebar-lbl {
  font-size:0.67rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--el-text-m); padding:10px 10px 4px; font-family:var(--el-font-d);
}
.el-nav {
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:var(--el-r-md);
  font-size:0.88rem; font-weight:500; color:var(--el-text-2);
  cursor:pointer; transition:background var(--el-t),color var(--el-t);
  text-decoration:none;
}
.el-nav:visited { color:var(--el-text-2); }
.el-nav:hover { background:var(--el-sidebar-hov); color:var(--el-text); }
.el-nav.active { background:var(--el-sidebar-act); color:var(--el-sidebar-act-t); }
.el-nav svg { width:16px; height:16px; flex-shrink:0; opacity:0.7; }
.el-nav.active svg { opacity:1; }
.el-nav-count {
  margin-left:auto; font-size:0.72rem; font-weight:700;
  background:var(--el-surface-2); color:var(--el-text-2);
  padding:1px 7px; border-radius:99px; transition:background var(--el-t);
}
.el-nav.active .el-nav-count { background:rgba(255,255,255,0.18); color:inherit; }

.el-sb-stats {
  background:var(--el-surface-2); border-radius:var(--el-r-lg);
  padding:14px; margin:6px 0 2px;
  display:grid; grid-template-columns:1fr 1fr; gap:12px 8px;
}
.el-sb-num {
  font-family:var(--el-font-d); font-size:1.4rem; font-weight:800;
  color:var(--el-text); line-height:1; letter-spacing:-0.04em;
}
.el-sb-lbl { font-size:0.7rem; color:var(--el-text-m); margin-top:2px; }

.el-vac-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px; border-radius:var(--el-r-md); border:1px solid var(--el-border);
  cursor:pointer; transition:background var(--el-t); margin:4px 0;
}
.el-vac-row:hover { background:var(--el-surface-2); }
.el-vac-name { font-size:0.84rem; font-weight:500; color:var(--el-text); }
.el-vac-sub  { font-size:0.7rem; color:var(--el-text-m); margin-top:1px; }
.el-pill {
  width:36px; height:20px; border-radius:99px;
  background:var(--el-border-s); position:relative;
  transition:background var(--el-t); flex-shrink:0;
}
.el-pill::after {
  content:''; position:absolute; top:2px; left:2px;
  width:16px; height:16px; border-radius:50%;
  background:#fff; transition:transform var(--el-t);
  box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
.el-pill.on { background:var(--el-solved); }
.el-pill.on::after { transform:translateX(16px); }
.el-sb-spacer { flex:1; }

/* ── MAIN ───────────────────────────────────────────────── */
.el-main {
  display:flex; flex-direction:column;
  padding:24px 24px 32px; gap:20px;
  overflow-y:auto; background:var(--el-bg);
  transition:background var(--el-t);
}
.el-main-hdr {
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
}
.el-page-title {
  font-family:var(--el-font-d); font-size:1.55rem; font-weight:800;
  letter-spacing:-0.04em; color:var(--el-text); line-height:1.1;
}
.el-page-sub { font-size:0.8rem; color:var(--el-text-m); margin-top:2px; }
.el-search {
  display:flex; align-items:center; gap:8px;
  background:var(--el-surface); border:1px solid var(--el-border);
  border-radius:var(--el-r-md); padding:0 12px; height:36px;
  transition:border-color var(--el-t),box-shadow var(--el-t);
  max-width:220px; overflow:hidden; flex-shrink:0;
}
.el-search:focus-within { border-color:var(--el-border-s); box-shadow:0 0 0 3px rgba(10,10,10,0.05); }
[data-el-theme="dark"] .el-search:focus-within { box-shadow:0 0 0 3px rgba(255,255,255,0.05); }
.el-search svg { color:var(--el-text-m); flex-shrink:0; }
.el-search input {
  border:none; outline:none; background:transparent;
  font-size:0.84rem; color:var(--el-text); width:120px; min-width:0;
}
.el-search input::placeholder { color:var(--el-text-m); }

/* ── KANBAN ─────────────────────────────────────────────── */
.el-kanban {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:16px; align-items:start;
}
.el-kanban-mine { grid-template-columns:repeat(2,minmax(0,1fr)); }
.el-kcol {
  background:var(--el-surface); border:1px solid var(--el-border);
  border-radius:var(--el-r-xl); overflow:hidden;
  box-shadow:var(--el-shadow-sm);
  display:flex; flex-direction:column;
  transition:background var(--el-t),border-color var(--el-t);
}
.el-kcol-hdr {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px 12px; border-bottom:1px solid var(--el-border);
}
.el-kcol-title {
  display:flex; align-items:center; gap:8px;
  font-family:var(--el-font-d); font-size:0.78rem; font-weight:700;
  letter-spacing:0.05em; text-transform:uppercase; color:var(--el-text-2);
}
.el-kdot {
  width:8px; height:8px; border-radius:50%; flex-shrink:0;
}
.el-kcol-new    .el-kdot { background:var(--el-new); }
.el-kcol-taken  .el-kdot { background:var(--el-taken); }
.el-kcol-solved .el-kdot { background:var(--el-solved); }
.el-kcol-count {
  font-size:0.76rem; font-weight:600; color:var(--el-text-m);
  background:var(--el-surface-2); padding:2px 8px; border-radius:99px;
}
.el-kcards {
  padding:12px; display:flex; flex-direction:column;
  gap:8px; min-height:80px;
}

/* ── CARD ───────────────────────────────────────────────── */
.el-card {
  background:var(--el-surface); border:1px solid var(--el-border);
  border-radius:var(--el-r-lg); padding:14px; cursor:pointer;
  position:relative; overflow:hidden;
  transition:border-color var(--el-t),box-shadow var(--el-t),transform var(--el-t);
  animation:elIn 0.26s cubic-bezier(.4,0,.2,1) both;
}
@keyframes elIn {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.el-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  border-radius:var(--el-r-lg) var(--el-r-lg) 0 0;
  opacity:0; transition:opacity var(--el-t);
}
.el-kcol-new    .el-card::before { background:var(--el-new); }
.el-kcol-taken  .el-card::before { background:var(--el-taken); }
.el-kcol-solved .el-card::before { background:var(--el-solved); }
.el-card:hover { border-color:var(--el-border-s); box-shadow:var(--el-shadow); transform:translateY(-1px); }
.el-card:hover::before { opacity:1; }
.el-card:nth-child(1){animation-delay:.04s} .el-card:nth-child(2){animation-delay:.08s}
.el-card:nth-child(3){animation-delay:.12s} .el-card:nth-child(4){animation-delay:.16s}
.el-card:nth-child(5){animation-delay:.20s} .el-card:nth-child(6){animation-delay:.24s}

.el-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:8px; }
.el-card-id {
  font-family:var(--el-font-d); font-size:0.68rem; font-weight:700;
  letter-spacing:0.07em; color:var(--el-text-m);
}
.el-card-form { font-weight:600; font-size:0.87rem; color:var(--el-text); margin-top:1px; line-height:1.3; }
.el-card-badges { display:flex; gap:4px; flex-wrap:wrap; }
.el-badge-sla {
  background:var(--el-sla-bg); color:var(--el-sla);
  border:1px solid rgba(220,38,38,.28);
}
.el-badge-pend {
  display:inline-flex; align-items:center; gap:3px;
  background:var(--el-pend-bg); color:var(--el-pend);
  border:1px solid var(--el-pend-b);
  font-size:0.63rem; font-weight:700; padding:2px 6px;
  border-radius:var(--el-r-sm); flex-shrink:0;
}
.el-card-naam { font-size:0.88rem; font-weight:700; color:var(--el-text); margin:8px 0 2px; }
.el-card-fields { display:flex; flex-direction:column; gap:3px; margin-bottom:10px; }
.el-card-field { font-size:0.8rem; color:var(--el-text-2); display:flex; align-items:center; gap:5px; }
.el-card-field svg { color:var(--el-text-m); flex-shrink:0; }
.el-card-meta { font-size:0.7rem; color:var(--el-text-m); margin-bottom:10px; }
/* Assignee badge on card */
.el-card-assignee {
  position:relative;
  width:22px; height:22px; border-radius:50%;
  background:var(--el-taken); color:#fff;
  font-size:0.65rem; font-weight:800; letter-spacing:0;
  display:flex; align-items:center; justify-content:center;
  cursor:default; flex-shrink:0;
}
/* Tooltip rendered in body via JS to escape overflow:hidden */
.el-assignee-tip {
  position:fixed; z-index:99999;
  background:var(--el-text); color:var(--el-bg);
  font-size:0.72rem; font-weight:600; white-space:nowrap;
  padding:3px 8px; border-radius:4px;
  pointer-events:none;
  transition:opacity 0.12s;
  opacity:0;
}
.el-card-actions { display:flex; gap:6px; flex-wrap:wrap; }

/* ── BUTTONS ────────────────────────────────────────────── */
.el-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 11px; border-radius:var(--el-r-sm);
  font-size:0.78rem; font-weight:600; letter-spacing:0.01em;
  cursor:pointer; border:1px solid transparent;
  font-family:var(--el-font-b); transition:all var(--el-t);
  text-decoration:none !important;
}
.el-btn-p { background:var(--el-accent) !important; color:var(--el-accent-t) !important; border-color:var(--el-accent) !important; }
.el-btn-p:hover { opacity:0.85; }
/* Dark mode: keep primary button always clearly readable */
[data-el-theme="dark"] .el-btn-p { background:#e4e4e4 !important; color:#111 !important; border-color:#e4e4e4 !important; }
[data-el-theme="dark"] .el-btn-p:hover { background:#fff !important; border-color:#fff !important; }
.el-btn-g { background:var(--el-surface) !important; color:var(--el-text) !important; border:1.5px solid var(--el-border-s) !important; box-shadow:0 1px 3px rgba(0,0,0,.10); }
.el-btn-g:hover { background:var(--el-surface-2) !important; border-color:rgba(0,0,0,.28) !important; }
[data-el-theme="dark"] .el-btn-g { background:#2a2a2e !important; color:#e8e8e8 !important; border-color:#4a4a50 !important; box-shadow:0 1px 3px rgba(0,0,0,.25); }
[data-el-theme="dark"] .el-btn-g:hover { background:#36363c !important; border-color:#666 !important; }
.el-btn-ok { background:var(--el-solved-bg); color:var(--el-solved); border-color:var(--el-solved-b); }
.el-btn-ok:hover { background:var(--el-solved); color:#fff; border-color:var(--el-solved); }
.el-btn-w { background:var(--el-taken-bg); color:var(--el-taken); border-color:var(--el-taken-b); }
.el-btn-w:hover { background:var(--el-taken); color:#fff; border-color:var(--el-taken); }
.el-btn-d { background:var(--el-sla-bg); color:var(--el-sla); border-color:rgba(220,38,38,0.2); }
.el-btn-d:hover { background:var(--el-sla); color:#fff; }
.el-status-pill {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 10px; border-radius:99px; font-size:0.73rem; font-weight:600; border:1px solid;
}
.el-status-pill.new    { background:var(--el-new-bg);    color:var(--el-new);    border-color:var(--el-new-b); }
.el-status-pill.taken  { background:var(--el-taken-bg);  color:var(--el-taken);  border-color:var(--el-taken-b); }
.el-status-pill.solved { background:var(--el-solved-bg); color:var(--el-solved); border-color:var(--el-solved-b); }

/* ── MODAL ──────────────────────────────────────────────── */
.el-overlay,
.el-modal-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.52); backdrop-filter:blur(4px);
  z-index:100001; display:flex; align-items:center; justify-content:center;
  padding:20px; opacity:0; pointer-events:none; transition:opacity 0.2s;
}
.el-overlay.open,
.el-modal-overlay.open { opacity:1; pointer-events:all; }
#el-detail-overlay.open { display:flex !important; visibility:visible !important; opacity:1 !important; pointer-events:auto !important; }
/* Modals outside el-db inherit light theme vars by default */
.el-modal-overlay .el-modal,
.el-overlay .el-modal {
  --el-surface: #ffffff;
  --el-border: rgba(0,0,0,0.08);
  --el-border-s: rgba(0,0,0,0.15);
  --el-text: #111111;
  --el-text-2: #555555;
  --el-text-m: #999999;
  --el-surface-2: #f5f5f5;
  --el-r-xl: 14px;
  --el-r-md: 8px;
  --el-r-sm: 6px;
  --el-font-b: 'Gabarito', system-ui, sans-serif;
  --el-font-d: 'Gabarito', system-ui, sans-serif;
  --el-t: 0.18s ease;
  --el-shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
}
.el-modal {
  background:var(--el-surface); border:1px solid var(--el-border);
  border-radius:var(--el-r-xl); width:100%; max-width:780px;
  box-shadow:var(--el-shadow-lg); max-height:90vh;
  display:flex; flex-direction:column;
  transform:translateY(12px) scale(0.98);
  transition:transform 0.22s cubic-bezier(.4,0,.2,1);
  overflow:hidden;
}
.el-overlay.open .el-modal { transform:translateY(0) scale(1); }
.el-modal-hdr {
  padding:20px 22px 16px; border-bottom:1px solid var(--el-border);
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-shrink:0;
}
.el-modal-title {
  font-family:var(--el-font-d); font-size:1.05rem; font-weight:800;
  letter-spacing:-0.02em; color:var(--el-text);
}
.el-modal-meta { margin-top: 5px; min-height: 18px; }
.el-modal-close {
  cursor: pointer;
  width:28px; height:28px; border-radius:var(--el-r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--el-text-m); transition:all var(--el-t); flex-shrink:0;
}
.el-modal-close:hover { background:var(--el-surface-2); color:var(--el-text); }
.el-modal-body { padding:24px 28px; overflow-y:auto; flex:1; }
.el-modal-section {
  font-size:0.68rem; font-weight:700; letter-spacing:0.09em; text-transform:uppercase;
  color:var(--el-text-m); margin-bottom:10px; font-family:var(--el-font-d);
}
.el-fgrid { display:grid; grid-template-columns:1fr 1.6fr; gap:9px 16px; margin-bottom:16px; }
.el-fkey { font-size:0.79rem; font-weight:600; color:var(--el-text-2); padding-top:2px; }
.el-fval { font-size:0.82rem; color:var(--el-text); word-break:break-word; }
.el-fval a { color:var(--el-new); text-decoration:underline; text-underline-offset:2px; }
.el-history-item {
  padding:10px; border-radius:var(--el-r-md);
  background:var(--el-surface-2); font-size:0.8rem; color:var(--el-text-2);
  margin-bottom:6px; border-left:3px solid var(--el-border-s);
}
.el-modal-ftr {
  padding:14px 22px 18px; border-top:1px solid var(--el-border);
  display:flex; gap:8px; flex-wrap:wrap; flex-shrink:0;
}
.el-sel,.el-ta {
  width:100%; padding:8px 12px; border-radius:var(--el-r-md);
  border:1px solid var(--el-border); background:var(--el-surface-2);
  color:var(--el-text); font-family:var(--el-font-b); font-size:0.84rem;
  outline:none; transition:border-color var(--el-t); margin-top:6px;
}
.el-sel:focus,.el-ta:focus { border-color:var(--el-border-s); }
.el-form-lbl { font-size:0.8rem; font-weight:600; color:var(--el-text-2); margin-top:12px; display:block; }

/* ── NOTIFICATION DRAWER ────────────────────────────────── */
.el-notif {
  position:fixed; top:var(--el-th); right:0; bottom:0;
  width:320px; background:var(--el-surface); border-left:1px solid var(--el-border);
  z-index:10002; display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform var(--el-t),background var(--el-t);
  box-shadow:var(--el-shadow-lg);
}
.el-notif.open { transform:translateX(0); }
.el-notif-hdr {
  padding:18px 16px 14px; border-bottom:1px solid var(--el-border);
  display:flex; align-items:center; justify-content:space-between; flex-shrink:0;
}
.el-notif-title { font-family:var(--el-font-d); font-size:0.92rem; font-weight:800; color:var(--el-text); }
.el-notif-hdr-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-width:0; }
.el-notif-mark-all {
  min-height:30px; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:5px 8px; border:1px solid var(--el-border); border-radius:var(--el-r-sm);
  background:var(--el-surface-2); color:var(--el-text-2); cursor:pointer;
  font-family:var(--el-font-b); font-size:.68rem; line-height:1; font-weight:700;
  transition:border-color var(--el-t),background var(--el-t),color var(--el-t),opacity var(--el-t);
}
.el-notif-mark-all:hover { border-color:var(--el-border-s); background:var(--el-surface); color:var(--el-accent); }
.el-notif-mark-all[hidden] { display:none !important; }
.el-notif-mark-all:disabled,.el-notif-mark-all.is-busy { cursor:default; opacity:.5; }
.el-notif-list { flex:1; overflow-y:auto; padding:12px; display:flex; flex-direction:column; gap:8px; }
.el-ni { padding:12px; border-radius:var(--el-r-md); border:1px solid var(--el-border); background:var(--el-surface-2); position:relative; }
.el-ni.unread {
  border:2px solid #f59e0b;
  background:linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow:0 0 0 1px rgba(245,158,11,0.2), 0 2px 8px rgba(245,158,11,0.12);
}
/* Unread dot before title */
.el-ni.unread .el-ni-title::before {
  content:'';
  display:inline-block;
  width:8px; height:8px;
  background:#f59e0b;
  border-radius:50%;
  margin-right:6px;
  vertical-align:middle;
  flex-shrink:0;
  box-shadow:0 0 0 2px rgba(245,158,11,0.3);
}
.el-ni-title { font-size:0.82rem; font-weight:700; color:var(--el-text); margin-bottom:3px; display:flex; align-items:center; }
.el-ni.unread .el-ni-title { color:#92400e; }
.el-ni.unread .el-ni-sub { color:#b45309; }
.el-ni.unread .el-ni-time { color:#d97706; }
.el-ni-sub   { font-size:0.76rem; color:var(--el-text-2); }
.el-ni-time  { font-size:0.68rem; color:var(--el-text-m); margin-top:5px; }
.el-notif-empty { padding:32px 16px; text-align:center; color:var(--el-text-m); font-size:0.82rem; }

/* ── STATS VIEW ─────────────────────────────────────────── */
.el-stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.el-stats-card {
  background:var(--el-surface); border:1px solid var(--el-border);
  border-radius:var(--el-r-lg); padding:20px; box-shadow:var(--el-shadow-sm);
  transition:background var(--el-t),border-color var(--el-t);
}
.el-stats-num {
  font-family:var(--el-font-d); font-size:2.2rem; font-weight:800;
  letter-spacing:-0.05em; color:var(--el-text); line-height:1;
}
.el-stats-lbl { font-size:0.78rem; color:var(--el-text-m); margin-top:6px; }

/* ── VIEWS ──────────────────────────────────────────────── */
.el-view { display:none; }
.el-view.active { display:contents; }

/* ── AUTH FALLBACK ───────────────────────────────────────── */
/* Authentication is rendered by WordPress on its native login endpoint. */
.el-auth-fallback {
  max-width:420px;
  margin:10vh auto;
  padding:24px;
  border:1px solid var(--el-border);
  border-radius:var(--el-r-xl);
  background:var(--el-surface);
  box-shadow:var(--el-shadow-sm);
  text-align:center;
}
.el-auth-fallback p:last-child { margin-bottom:0; }

/* ── MOBILE ─────────────────────────────────────────────── */
.el-mob-bar { display:none; }
.el-bottom-nav { display:none; }

@media (max-width:900px) {
  .el-db { grid-template-columns:1fr; }
  .el-sidebar { display:none; }
  .el-topbar-logo { width:auto; padding:0 16px; }
  .el-kanban { grid-template-columns:1fr; }
  .el-main { padding-bottom:80px; }

  .el-mob-bar {
    display:flex; flex-direction:column; gap:10px;
    background:var(--el-surface); border:1px solid var(--el-border);
    border-radius:var(--el-r-xl); padding:16px; box-shadow:var(--el-shadow-sm);
  }
  .el-mob-stats {
    display:grid; grid-template-columns:repeat(4,1fr);
    border:1px solid var(--el-border); border-radius:var(--el-r-md); overflow:hidden;
  }
  .el-mob-stat {
    padding:10px 6px; text-align:center;
    border-right:1px solid var(--el-border); background:var(--el-surface-2);
  }
  .el-mob-stat:last-child { border-right:none; }
  .el-mob-num { font-family:var(--el-font-d); font-size:1.2rem; font-weight:800; letter-spacing:-0.04em; color:var(--el-text); line-height:1; }
  .el-mob-lbl { font-size:0.63rem; color:var(--el-text-m); margin-top:2px; }
  .el-mob-vac { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .el-mob-vac-name { font-size:0.84rem; font-weight:600; color:var(--el-text); }
  .el-mob-vac-sub  { font-size:0.7rem; color:var(--el-text-m); }
  .el-mob-pill {
    width:42px; height:24px; border-radius:99px; background:var(--el-border-s);
    position:relative; transition:background var(--el-t); flex-shrink:0; cursor:pointer;
  }
  .el-mob-pill::after {
    content:''; position:absolute; top:3px; left:3px;
    width:18px; height:18px; border-radius:50%; background:#fff;
    transition:transform var(--el-t); box-shadow:0 1px 3px rgba(0,0,0,0.25);
  }
  .el-mob-pill.on { background:var(--el-solved); }
  .el-mob-pill.on::after { transform:translateX(18px); }

  .el-bottom-nav {
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:10000;
    background:var(--el-topbar-bg); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    border-top:1px solid var(--el-border);
    padding:8px 0 max(8px, env(safe-area-inset-bottom));
    transition:background var(--el-t),border-color var(--el-t);
  }
  .el-bnav-item {
    flex:1; display:flex; flex-direction:column; align-items:center;
    justify-content:center; gap:3px; padding:5px 4px; cursor:pointer;
    color:var(--el-text-m); font-size:0.63rem; font-weight:600;
    font-family:var(--el-font-d); border:none; background:none;
    transition:color var(--el-t); letter-spacing:0.02em;
  }
  .el-bnav-item.active { color:var(--el-text); }
  .el-bnav-dot { width:4px; height:4px; border-radius:50%; background:var(--el-text); opacity:0; transition:opacity var(--el-t); margin-top:1px; }
  .el-bnav-item.active .el-bnav-dot { opacity:1; }
}
@media (max-width:640px) {
  .el-main { padding:16px 16px 80px; }
  .el-page-title { font-size:1.3rem; }
  .el-notif { width:100%; top:0; }
}


/* ── FIXES BATCH 2 ──────────────────────────────────────── */

/* Input base style (used in profile + vacation) */
.el-input, .el-input-sm {
  border: 1px solid var(--el-border);
  background: var(--el-surface-2);
  color: var(--el-text);
  border-radius: var(--el-r-md);
  font-family: var(--el-font-b);
  font-size: 0.84rem;
  outline: none;
  transition: border-color var(--el-t);
}
.el-input { width: 100%; padding: 8px 12px; display: block; margin-top: 4px; }
.el-input:focus { border-color: var(--el-border-s); }
.el-input-sm { padding: 5px 8px; width: auto; }

/* Button size variant */
.el-btn-xs { padding: 3px 8px; font-size: 0.73rem; }

/* Fix: search input appearance + dark mode autofill override */
.el-search { background: var(--el-surface-2) !important; }
.el-search input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  color: var(--el-text) !important;
}
.el-search input[type="search"]::-webkit-search-cancel-button { display: none; }
/* Override browser autofill white background in dark mode */
[data-el-theme="dark"] .el-search { background: #1e1e22 !important; border-color: rgba(255,255,255,0.10) !important; }
[data-el-theme="dark"] .el-search input[type="search"] {
  -webkit-box-shadow: 0 0 0 1000px #1e1e22 inset !important;
  box-shadow: 0 0 0 1000px #1e1e22 inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  caret-color: #e0e0e0;
}

/* Fix: unresolved button classes used in detail modal */
.e-btn { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; border-radius:var(--el-r-sm); font-size:0.8rem; font-weight:600; cursor:pointer; border:1px solid transparent; font-family:var(--el-font-b); transition:all var(--el-t); }
.e-btn.primary { background:var(--el-accent) !important; color:var(--el-accent-t) !important; border-color:var(--el-accent) !important; }
.e-btn.primary:hover { opacity:0.85; }
[data-el-theme="dark"] .e-btn.primary { background:#e4e4e4 !important; color:#111 !important; border-color:#e4e4e4 !important; }
.e-btn.positive { background:var(--el-solved-bg); color:var(--el-solved); border-color:var(--el-solved-b); }
.e-btn.positive:hover { background:var(--el-solved); color:#fff; }
.e-btn.outline { background:transparent; color:var(--el-accent); border-color:var(--el-accent); }
.e-btn.outline:hover { background:var(--el-accent); color:var(--el-accent-t); }
.e-btn.ghost { background:var(--el-surface-2); color:var(--el-text-2); border-color:var(--el-border-s); }
.e-btn.ghost:hover { background:var(--el-border-s); color:var(--el-text); }
/* Default e-btn (no modifier) - looks like el-btn-g */
.e-btn:not(.primary):not(.positive):not(.outline):not(.ghost) { background:var(--el-surface-2); color:var(--el-text); border-color:var(--el-border-s); }

/* Notification expand */
.el-ni { cursor: pointer; transition: background var(--el-t); }
.el-ni-full { display: none; font-size: 0.8rem; color: var(--el-text); margin-top: 4px; line-height: 1.5; }
.el-ni.el-ni-expanded .el-ni-full { display: block; }
.el-ni.el-ni-expanded .el-ni-preview { display: none; }
.el-ni-lead-link { display:inline-block; margin-top:6px; font-size:0.75rem; color:var(--el-accent); text-decoration:none; font-weight:600; }
.el-ni-lead-link:hover { text-decoration:underline; }

/* Lead detail 2-column layout */
.e-leads-detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .e-leads-detail-cols { grid-template-columns: 1fr; } }
.e-leads-col-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--el-text-m); margin-bottom: 10px; }

/* Comments */
.el-comment-list { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; max-height:280px; overflow-y:auto; }
.el-comment-item { background:var(--el-surface-2); border:1px solid var(--el-border); border-radius:var(--el-r-md); padding:8px 10px; }
.el-comment-meta { display:flex; justify-content:space-between; font-size:0.72rem; color:var(--el-text-2); margin-bottom:4px; }
.el-comment-meta strong { color:var(--el-text); }
.el-comment-body { font-size:0.82rem; color:var(--el-text); white-space:pre-wrap; }
.el-comment-empty { font-size:0.8rem; color:var(--el-text-m); padding:8px 0; }
.el-comment-ta { margin-bottom:8px; }

/* Profile view */
.el-profile-wrap { max-width: 520px; display: flex; flex-direction: column; gap: 24px; }
.el-profile-section { background: var(--el-surface); border: 1px solid var(--el-border); border-radius: var(--el-r-lg); padding: 20px; }
.el-profile-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--el-text-m); margin-bottom: 14px; }
.el-profile-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--el-border); }
.el-profile-row:last-child { border-bottom: none; }
.el-profile-key { font-size: 0.8rem; color: var(--el-text-2); }
.el-profile-val { font-size: 0.84rem; color: var(--el-text); font-weight: 500; }
.el-profile-fields { display: flex; flex-direction: column; gap: 2px; }
.el-pw-msg { font-size: 0.8rem; margin: 6px 0 8px; min-height: 1em; }
.el-pw-msg.el-pw-ok  { color: var(--el-solved); }
.el-pw-msg.el-pw-err { color: var(--el-sla); }

/* Vacation period UI */
.el-vac-period { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--el-border); }
.el-vac-period-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--el-text-m); margin-bottom: 8px; }
.el-vac-period-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.el-vac-sep { color: var(--el-text-m); font-size: 0.8rem; }
.el-vac-period-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.el-vac-period-active { font-size: 0.73rem; color: var(--el-new); font-weight: 600; }

/* Stats reset section */
.el-stats-reset-section { margin-top: 24px; background: var(--el-surface); border: 1px solid var(--el-border); border-radius: var(--el-r-lg); padding: 18px; }
.el-stats-reset-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--el-text-m); margin-bottom: 6px; }
.el-stats-reset-desc { font-size: 0.8rem; color: var(--el-text-2); margin-bottom: 12px; }
.el-stats-reset-row { margin-bottom: 12px; }
.el-stats-reset-user { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--el-border); font-size: 0.82rem; color: var(--el-text); }
.el-stats-reset-user:last-child { border-bottom: none; }

/* Field email/url links */
.e-leads-fields a { color: var(--el-accent); text-decoration: none; }
.e-leads-fields a:hover { text-decoration: underline; }

/* ── BATCH-3 ADDITIONS ──────────────────────────────────── */

/* Logo light/dark switching */
.el-logo-img        { max-height:28px; width:auto; object-fit:contain; display:block; }
.el-logo-img.el-logo-light { display:block !important; }
.el-logo-img.el-logo-dark  { display:none  !important; }
[data-el-theme="dark"] .el-logo-img.el-logo-light { display:none  !important; }
[data-el-theme="dark"] .el-logo-img.el-logo-dark  { display:block !important; }

/* Form label badge — popup meta */
.el-form-badge {
  display:inline-flex; align-items:center;
  background:color-mix(in srgb, var(--el-accent) 12%, transparent);
  color:var(--el-accent);
  font-size:0.66rem; font-weight:700; letter-spacing:0.05em;
  text-transform:uppercase; padding:2px 9px; border-radius:99px;
  border:1px solid color-mix(in srgb, var(--el-accent) 22%, transparent);
}

/* Form label badge — kanban card (override existing) */
.el-card-form {
  font-size:0.66rem !important; font-weight:700 !important; letter-spacing:0.05em;
  color:var(--el-accent) !important; text-transform:uppercase !important;
  background:color-mix(in srgb, var(--el-accent) 12%, transparent) !important;
  display:inline-block !important; padding:1px 8px !important;
  border-radius:99px !important; margin-bottom:5px !important;
  border:1px solid color-mix(in srgb, var(--el-accent) 22%, transparent) !important;
}

/* Profile — availability section */
.el-avail-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0 14px; border-bottom:1px solid var(--el-border); margin-bottom:14px;
}
.el-vac-date-row {
  display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap;
}
.el-input { width:100%; }
.el-input-date {
  padding:6px 10px; font-size:0.84rem;
  border:1px solid var(--el-border); border-radius:var(--el-r-md);
  background:var(--el-surface-2); color:var(--el-text);
  font-family:var(--el-font-b); outline:none; width:auto;
  transition:border-color var(--el-t);
}
.el-input-date:focus { border-color:var(--el-border-s); }
.el-vac-active-badge {
  font-size:0.72rem; color:var(--el-new); font-weight:600;
  background:var(--el-new-bg); border:1px solid var(--el-new-b);
  padding:2px 9px; border-radius:99px;
}


/* DriveHub v9.43 - full-width calendar blocking with restored card styling */
.el-calendar-page{width:100%;max-width:none;margin:0;padding:0 0 28px}
.el-calendar-controls{display:grid;grid-template-columns:minmax(230px,.55fr) minmax(480px,1.45fr) auto;gap:22px;align-items:end;width:100%;margin:0 0 18px;padding:18px;border:1px solid var(--el-border);border-radius:18px;background:var(--el-surface);box-shadow:var(--el-shadow-sm)}
.el-calendar-field{display:flex;flex-direction:column;gap:7px;min-width:0}.el-calendar-field>span{color:var(--el-text-2);font-size:.72rem;font-weight:750}
.el-calendar-field select.el-input{width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--el-border-s);border-radius:12px;background:var(--el-surface-2);color:var(--el-text);font:inherit;box-shadow:none}
.el-calendar-scope{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0;min-width:0}
.el-calendar-scope label{position:relative;display:block;min-width:0;cursor:pointer}.el-calendar-scope input{position:absolute;opacity:0;pointer-events:none}
.el-calendar-scope label>span{display:flex;align-items:flex-start;gap:10px;min-height:58px;padding:10px 12px;border:1px solid var(--el-border);border-radius:12px;background:var(--el-surface-2);box-shadow:none;transition:border-color var(--el-t),background var(--el-t),box-shadow var(--el-t),color var(--el-t)}
.el-calendar-scope label>span>svg{width:20px;height:20px;flex:0 0 20px;margin-top:1px;color:var(--el-text-m)}
.el-calendar-scope-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.el-calendar-scope-copy strong{display:block;color:var(--el-text);font-size:.8rem;line-height:1.25}.el-calendar-scope-copy small{display:block;color:var(--el-text-m);font-size:.68rem;line-height:1.35;white-space:normal}
.el-calendar-scope label:has(input:checked)>span,.el-calendar-scope label.is-active>span{border-color:color-mix(in srgb,var(--el-accent) 50%,var(--el-border));background:color-mix(in srgb,var(--el-accent) 7%,var(--el-surface));box-shadow:0 0 0 2px color-mix(in srgb,var(--el-accent) 9%,transparent)}
.el-calendar-scope label:has(input:checked)>span>svg,.el-calendar-scope label.is-active>span>svg,.el-calendar-scope label:has(input:checked) .el-calendar-scope-copy strong,.el-calendar-scope label.is-active .el-calendar-scope-copy strong{color:var(--el-accent)}
.el-calendar-summary{display:flex;align-items:stretch;justify-content:flex-end;gap:8px;min-width:max-content;padding:0}
.el-calendar-summary>div{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:112px;padding:11px 13px;border:1px solid var(--el-border);border-radius:14px;background:var(--el-surface-2);box-shadow:var(--el-shadow-sm)}.el-calendar-summary strong{color:var(--el-text);font-size:1.05rem;line-height:1}.el-calendar-summary span{color:var(--el-text-m);font-size:.68rem;white-space:nowrap}
.el-calendar-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:18px;align-items:start;width:100%}
.el-calendar-picker-card,.el-calendar-list-card,.el-calendar-empty-card{min-width:0;padding:18px;border:1px solid var(--el-border);border-radius:18px;background:var(--el-surface);box-shadow:var(--el-shadow-sm)}
.el-calendar-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.el-calendar-card-head h3{margin:0;color:var(--el-text);font-size:1rem}.el-calendar-card-head .el-btn{flex-shrink:0}
.el-calendar-card-kicker{display:block;margin:0 0 4px;color:var(--el-text-m);font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.el-calendar-picker{width:100%;padding:0;min-height:330px}
/* Mirrors the public form datepicker while preserving the wider management layout. */
.el-calendar-picker .ui-datepicker{width:100%;max-width:none;margin:0;font-family:var(--el-font-b);background:var(--el-surface);color:var(--el-text);border:1px solid var(--el-border);border-radius:16px;padding:14px;box-shadow:0 14px 34px rgba(15,23,42,.08)}
.el-calendar-picker .ui-datepicker-header{position:relative;padding:7px 36px;border:0;border-radius:var(--el-r-md);background:var(--el-surface-2);margin-bottom:10px;box-shadow:none}
.el-calendar-picker .ui-datepicker-title{text-align:center;color:var(--el-text);font-size:14px;font-weight:700}
.el-calendar-picker .ui-datepicker-prev,.el-calendar-picker .ui-datepicker-next{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:8px;cursor:pointer;color:var(--el-text-2)}
.el-calendar-picker .ui-datepicker-prev{left:4px}.el-calendar-picker .ui-datepicker-next{right:4px}.el-calendar-picker .ui-datepicker-prev span,.el-calendar-picker .ui-datepicker-next span{display:none}
.el-calendar-picker .ui-datepicker-prev::before{content:'‹'}.el-calendar-picker .ui-datepicker-next::before{content:'›'}.el-calendar-picker .ui-datepicker-prev::before,.el-calendar-picker .ui-datepicker-next::before{font-size:20px;line-height:1}
.el-calendar-picker .ui-datepicker table{width:100%;border-collapse:collapse}.el-calendar-picker .ui-datepicker th{padding:6px 0;text-align:center;color:var(--el-text-m);font-size:11px;font-weight:600}.el-calendar-picker .ui-datepicker td{padding:2px}
.el-calendar-picker .ui-datepicker td a,.el-calendar-picker .ui-datepicker td span{display:flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0 auto;border:1px solid transparent;border-radius:9px;text-decoration:none;color:var(--el-text);font-size:13.5px;font-weight:600;transition:background var(--el-t),color var(--el-t),border-color var(--el-t),box-shadow var(--el-t)}
.el-calendar-picker .ui-datepicker td a:hover{background:color-mix(in srgb,var(--el-accent) 10%,transparent);color:var(--el-accent)}
.el-calendar-picker .ui-datepicker td.ui-datepicker-today a:not(.ui-state-active){background:color-mix(in srgb,var(--el-accent) 5%,transparent);color:var(--el-accent);box-shadow:inset 0 0 0 1.5px var(--el-accent)}
.el-calendar-picker .ui-datepicker td.ui-datepicker-other-month span{opacity:.25}.el-calendar-picker .ui-datepicker td.ui-state-disabled span{opacity:.32}
.el-calendar-picker .ui-datepicker td.el-cal-day-personal a{background:var(--el-new-bg);color:var(--el-new)}
.el-calendar-picker .ui-datepicker td.el-cal-day-form a{background:var(--el-pend-bg);color:var(--el-pend)}
.el-calendar-picker .ui-datepicker td.el-cal-day-personal.el-cal-day-form a{background:linear-gradient(135deg,var(--el-new-bg) 0 50%,var(--el-pend-bg) 50% 100%);color:var(--el-text)}
.el-calendar-picker .ui-datepicker td.el-cal-day-effective a{outline:2px solid color-mix(in srgb,var(--el-sla) 55%,transparent);outline-offset:-2px}
.el-calendar-picker .ui-datepicker td.el-cal-day-selected a{background:var(--el-accent)!important;color:#fff!important;border-color:var(--el-accent)!important;box-shadow:0 4px 12px color-mix(in srgb,var(--el-accent) 22%,transparent)!important;transform:none!important}
.el-calendar-legend{display:flex;justify-content:flex-start;gap:16px;flex-wrap:wrap;margin:12px 0 16px;color:var(--el-text-m);font-size:.67rem}.el-calendar-legend span{display:flex;align-items:center;gap:6px}.el-calendar-legend i{width:11px;height:11px;border:1px solid var(--el-border-s);border-radius:4px}.el-calendar-legend i.is-selected{background:var(--el-accent);border-color:var(--el-accent)}.el-calendar-legend i.is-personal{background:var(--el-new-bg);border-color:var(--el-new-b)}.el-calendar-legend i.is-form{background:var(--el-pend-bg);border-color:var(--el-pend-b)}.el-calendar-legend i.is-effective{background:transparent;border:2px solid color-mix(in srgb,var(--el-sla) 55%,transparent)}
.el-calendar-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 0;border-top:1px solid var(--el-border)}.el-calendar-selection-bar>div{color:var(--el-text-2);font-size:.77rem}.el-calendar-selection-bar strong{color:var(--el-text);font-size:1.05rem}
#el-calendar-msg{min-height:18px;margin-top:8px}
.el-calendar-list-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0 12px;border-bottom:1px solid var(--el-border)}.el-calendar-check-all{display:flex;align-items:center;gap:7px;color:var(--el-text-2);font-size:.72rem;cursor:pointer}.el-calendar-check-all input,.el-calendar-row-select>input{accent-color:var(--el-accent)}
.el-calendar-block-list{margin:0;padding:0;max-height:520px;overflow:auto}.el-calendar-empty{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:90px;padding:18px 0;color:var(--el-text-m);font-size:.76rem;text-align:left}.el-calendar-empty svg{width:18px;height:18px}
.el-calendar-block-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px;margin:0;border-bottom:1px solid var(--el-border);background:transparent}.el-calendar-block-row:last-child{border-bottom:0}.el-calendar-block-row:hover{background:var(--el-surface-2)}.el-calendar-row-select{display:flex;align-items:center;gap:10px;min-width:0;cursor:pointer}.el-calendar-row-select>input{flex-shrink:0}.el-calendar-block-main{display:flex;flex-direction:column;gap:2px;min-width:0}.el-calendar-block-main strong{color:var(--el-text);font-size:.79rem}.el-calendar-block-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--el-text-m);font-size:.68rem}.el-calendar-block-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.el-calendar-scope-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;font-size:.63rem;font-weight:750}.el-calendar-scope-badge.is-personal{background:var(--el-new-bg);color:var(--el-new);border:1px solid var(--el-new-b)}.el-calendar-scope-badge.is-form{background:var(--el-pend-bg);color:var(--el-pend);border:1px solid var(--el-pend-b)}
.el-calendar-remove{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--el-border)!important;border-radius:8px;background:var(--el-surface-2)!important;color:var(--el-text-2);cursor:pointer;box-shadow:var(--el-shadow-sm)!important}.el-calendar-remove svg{width:14px;height:14px}.el-calendar-remove:hover{border-color:rgba(220,38,38,.28)!important;background:var(--el-sla-bg)!important;color:var(--el-sla)}
.el-calendar-empty-card{display:flex;align-items:center;gap:12px;padding:22px;color:var(--el-text-2)}.el-calendar-empty-card>svg{width:28px;height:28px;color:var(--el-text-m)}.el-calendar-empty-card strong,.el-calendar-empty-card span{display:block}.el-calendar-empty-card strong{color:var(--el-text);font-size:.86rem}.el-calendar-empty-card span{margin-top:3px;color:var(--el-text-m);font-size:.73rem}
.el-assign-help{margin:0 0 8px;color:var(--el-text-2);font-size:.78rem;line-height:1.45}.el-field-optional{color:var(--el-text-m);font-weight:400}
@media(max-width:1180px){.el-calendar-controls{grid-template-columns:minmax(220px,.55fr) minmax(420px,1.45fr)}.el-calendar-summary{grid-column:1/-1;justify-content:flex-start;padding:0}.el-calendar-workspace{grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr)}}
@media(max-width:900px){.el-calendar-controls{grid-template-columns:1fr;gap:18px}.el-calendar-summary{grid-column:auto}.el-calendar-workspace{grid-template-columns:1fr;gap:30px}.el-calendar-picker .ui-datepicker{max-width:none}}
@media(max-width:560px){.el-calendar-page{padding-bottom:18px}.el-calendar-controls,.el-calendar-picker-card,.el-calendar-list-card{padding:13px}.el-calendar-scope{grid-template-columns:1fr;gap:8px}.el-calendar-summary{width:100%;justify-content:flex-start;gap:8px;flex-wrap:wrap}.el-calendar-summary>div{min-width:0;flex:1 1 130px}.el-calendar-card-head{align-items:flex-start}.el-calendar-picker{min-height:0}.el-calendar-picker .ui-datepicker{padding:10px}.el-calendar-picker .ui-datepicker td{padding:1px}.el-calendar-picker .ui-datepicker td a,.el-calendar-picker .ui-datepicker td span{width:32px;height:32px}.el-calendar-selection-bar{align-items:stretch;flex-direction:column}.el-calendar-selection-bar .el-btn{width:100%;justify-content:center}.el-calendar-block-actions{flex-direction:column;align-items:flex-end}.el-calendar-scope-badge{display:none}}

/* Notification header row with dismiss button */
.el-ni-hdr {
  display:flex; justify-content:space-between; align-items:flex-start; gap:6px;
}
.el-ni-hdr .el-ni-title { flex:1; }
.el-ni-dismiss-btn {
  cursor:pointer; flex-shrink:0;
  width:26px; height:26px; border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  color:var(--el-text-m); background:transparent; border:1px solid var(--el-border); padding:0;
  opacity:1; transition:opacity var(--el-t), background var(--el-t), color var(--el-t), border-color var(--el-t);
}
.el-ni-dismiss-btn:hover { background:#fef2f2; border-color:#fecaca; color:#dc2626; }
.el-ni-dismiss-btn:disabled,.el-ni-dismiss-btn.is-busy { cursor:default; opacity:.45; }
.el-ni.unread .el-ni-dismiss-btn { background:rgba(255,255,255,.45); border-color:rgba(146,64,14,.24); color:#92400e; }
.el-ni.unread .el-ni-dismiss-btn:hover { background:#fef2f2; border-color:#fecaca; color:#dc2626; }
.el-ni-read-more { font-size:0.68rem; color:var(--el-accent); cursor:pointer; white-space:nowrap; }

/* Comment delete button */
.el-comment-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.el-comment-meta strong { margin-right:2px; }
.el-comment-meta span  { color:var(--el-text-m); font-size:0.72rem; flex:1; }
.el-comment-del {
  cursor:pointer; margin-left:auto; flex-shrink:0;
  width:20px; height:20px; border-radius:4px;
  display:flex; align-items:center; justify-content:center;
  color:var(--el-text-m); background:transparent; border:none; padding:0;
  opacity:0; transition:opacity var(--el-t), color var(--el-t);
}
.el-comment-item:hover .el-comment-del { opacity:0.6; }
.el-comment-del:hover { opacity:1 !important; color:#e53e3e; }

/* Form badge — support custom color via CSS variable */
.el-form-badge {
  --badge-c: var(--el-accent);
  background:color-mix(in srgb, var(--badge-c) 12%, transparent);
  color:var(--badge-c);
  border-color:color-mix(in srgb, var(--badge-c) 22%, transparent);
}
.el-card-form {
  --badge-c: var(--el-accent);
  background:color-mix(in srgb, var(--badge-c) 12%, transparent) !important;
  color:var(--badge-c) !important;
  border-color:color-mix(in srgb, var(--badge-c) 22%, transparent) !important;
}

/* SVG logo — ensure img tag renders SVG correctly */
.el-logo-img { max-height:32px; width:auto; object-fit:contain; }

/* ── BATCH-5 ADDITIONS ──────────────────────────────────── */

/* Lucide icon inside form badge */
.el-badge-icon {
  width:11px; height:11px; display:inline-block;
  vertical-align:middle; margin-right:4px; margin-top:-1px;
  stroke:currentColor; stroke-width:2.5; flex-shrink:0;
}
.el-badge-icon-img {
  width:11px; height:11px; display:block;
  object-fit:contain; margin-right:4px; flex:0 0 11px;
}
.el-form-badge { display:inline-flex; align-items:center; }
.el-card-form  { display:inline-flex !important; align-items:center !important; }

/* Profile input fields */
.el-profile-fields { display:flex; flex-direction:column; gap:8px; }
.el-profile-fields .el-input { max-width:340px; }
.el-pw-msg { font-size:0.78rem; min-height:18px; }

/* ═══════════════════════════════════════════════════════════
   BATCH-7: Popup redesign, border-radius
   (Button rules now consolidated at top of file)
   ═══════════════════════════════════════════════════════════ */

/* ── Modal: more air, wider ─────────────────────────────── */
.el-modal { max-width: 860px; }
.el-modal-body { padding: 28px 32px 32px; }
.el-modal-hdr  { padding: 22px 28px 18px; }

/* ── Detail popup wrapper ───────────────────────────────── */
.e-leads-detail { display: flex; flex-direction: column; gap: 0; }

/* ── Meta bar (date · responsible · status badge) ───────── */
.e-leads-detail-metabar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--el-border);
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--el-text-2);
}
.e-ldm-sep    { color: var(--el-border-s); user-select: none; }
.e-ldm-date   { color: var(--el-text-2); font-variant-numeric: tabular-nums; }
.e-ldm-assigned strong { color: var(--el-text); font-weight: 600; }
.e-ldm-spacer { flex: 1; min-width: 12px; }

/* ── Status badge ───────────────────────────────────────── */
.e-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: 99px;
  font-size: 0.71rem; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap;
}
.e-badge.new    { background: var(--el-new-bg);    color: var(--el-new);    border: 1px solid var(--el-new-b); }
.e-badge.taken  { background: var(--el-taken-bg);  color: var(--el-taken);  border: 1px solid var(--el-taken-b); }
.e-badge.solved { background: var(--el-solved-bg); color: var(--el-solved); border: 1px solid var(--el-solved-b); }

/* ── Actions row ─────────────────────────────────────────── */
.e-leads-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ── 2-column body layout ────────────────────────────────── */
.e-leads-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 640px) {
  .e-leads-detail-cols { grid-template-columns: 1fr; gap: 20px; }
}
.e-leads-col-lbl {
  font-size: 0.71rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--el-text-m); margin-bottom: 10px;
}

/* ── Kundedata table grid ────────────────────────────────── */
.e-leads-fields-grid {
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr;
  border: 1px solid var(--el-border);
  border-radius: var(--el-r-lg);
  overflow: hidden;
}
.e-leads-fields-grid .label,
.e-leads-fields-grid .value {
  padding: 9px 14px;
  border-bottom: 1px solid var(--el-border);
  font-size: 0.82rem;
  line-height: 1.4;
}
.e-leads-fields-grid .label {
  font-weight: 600;
  color: var(--el-text-2);
  background: var(--el-surface-2);
  white-space: nowrap;
  padding-left: 16px;
}
.e-leads-fields-grid .value {
  color: var(--el-text);
  word-break: break-word;
  padding-right: 16px;
  background: var(--el-surface);
}
/* Remove bottom border from last row pair */
.e-leads-fields-grid .label:last-of-type,
.e-leads-fields-grid .value:last-child {
  border-bottom: none;
}

/* ── Transfer history ────────────────────────────────────── */
.e-transfer-history { margin-top: 18px; }
.e-transfer-history > strong {
  display: block;
  font-size: 0.71rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--el-text-m); margin-bottom: 8px;
}

/* ── Kanban card border-radius ───────────────────────────── */
.el-card { border-radius: var(--el-r-xl) !important; }
.el-card::before { border-radius: var(--el-r-xl) var(--el-r-xl) 0 0 !important; }


/* ═══════════════════════════════════════════════════════════
   BATCH-8: Popup redesign (eld-*), profile button sizing
   ═══════════════════════════════════════════════════════════ */

/* ── Detail popup top bar ───────────────────────────────── */
.eld-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--el-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.eld-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--el-text-2);
}
.eld-date { font-variant-numeric: tabular-nums; }
.eld-assigned strong { color: var(--el-text); }
.eld-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Detail popup body: 2-col ───────────────────────────── */
.eld-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 600px) { .eld-body { grid-template-columns: 1fr; } }
.eld-col { display: flex; flex-direction: column; gap: 0; }

/* ── Section labels ─────────────────────────────────────── */
.eld-section-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--el-text-m);
  margin-bottom: 8px;
}

/* ── Data table ─────────────────────────────────────────── */
.eld-table {
  border: 1px solid var(--el-border);
  border-radius: var(--el-r-lg);
  overflow: hidden;
}
.eld-row {
  display: grid;
  grid-template-columns: minmax(90px, 35%) 1fr;
  border-bottom: 1px solid var(--el-border);
}
.eld-row:last-child { border-bottom: none; }
.eld-key {
  padding: 9px 12px 9px 14px;
  background: var(--el-surface-2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--el-text-2);
  word-break: break-word;
}
.eld-val {
  padding: 9px 14px 9px 12px;
  background: var(--el-surface);
  font-size: 0.82rem;
  color: var(--el-text);
  word-break: break-word;
  line-height: 1.45;
}
.eld-val a { color: var(--el-new); text-underline-offset: 2px; text-decoration: underline; }

/* ── Info box (active transfer) ─────────────────────────── */
.eld-info-box {
  background: var(--el-pend-bg);
  border: 1px solid var(--el-pend-b);
  border-radius: var(--el-r-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--el-text);
}

/* ── History items ──────────────────────────────────────── */
.eld-history { display: flex; flex-direction: column; gap: 6px; }
.eld-history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--el-surface-2);
  border-radius: var(--el-r-md);
  font-size: 0.78rem;
}
.eld-history-status {
  font-weight: 700;
  color: var(--el-text);
}
.eld-history-names { color: var(--el-text-2); flex: 1; }
.eld-history-date { color: var(--el-text-m); white-space: nowrap; }

/* ── Profile buttons: uniform size ─────────────────────── */
.el-profile-section .el-btn,
.el-profile-section button.el-btn {
  min-width: 140px !important;
  text-align: center !important;
  justify-content: center !important;
}


/* ── Propose date modal: above lead popup ─────────────────── */
#el-propose-date-overlay { z-index:200000; }
#el-action-result-overlay { z-index:200000; }

/* ── Confirm apt button states ────────────────────────────── */
.el-confirm-apt-btn {
  background:#16a34a !important;
  border-color:#15803d !important;
  color:#ffffff !important;
}
.el-confirm-apt-btn:disabled,
.el-confirm-apt-btn.is-confirmed {
  background:#9ca3af !important;
  border-color:#9ca3af !important;
  color:#ffffff !important;
  cursor:not-allowed;
  opacity:0.75;
}
.el-confirm-apt-btn.is-cancelled {
  background:#fee2e2 !important;
  border-color:#fecaca !important;
  color:#b91c1c !important;
}

/* ── Dark theme: modals outside .el-db ───────────────────── */
[data-el-theme="dark"] .el-modal-overlay .el-modal,
[data-el-theme="dark"] .el-overlay .el-modal {
  --el-surface: #1a1a1e;
  --el-border: rgba(255,255,255,0.08);
  --el-border-s: rgba(255,255,255,0.16);
  --el-text: #f0f0f0;
  --el-text-2: #aaaaaa;
  --el-text-m: #666666;
  --el-surface-2: #242428;
  --el-shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
}

/* ── Dark theme: notification panel (outside .el-db) ─────── */
#el-notif[data-el-theme="dark"] {
  background: #141414;
  border-color: rgba(255,255,255,0.07);
  color: #f0f0f0;
}
#el-notif[data-el-theme="dark"] .el-notif-title { color:#f0f0f0; }
#el-notif[data-el-theme="dark"] .el-notif-hdr   { border-color:rgba(255,255,255,0.07); }
#el-notif[data-el-theme="dark"] .el-ni           { background:#1c1c1c; border-color:rgba(255,255,255,0.07); }
#el-notif[data-el-theme="dark"] .el-ni-title     { color:#f0f0f0; }
#el-notif[data-el-theme="dark"] .el-ni-sub       { color:#888888; }
#el-notif[data-el-theme="dark"] .el-ni-time      { color:#555555; }
#el-notif[data-el-theme="dark"] .el-ni.unread    {
  background: linear-gradient(135deg, #2d2200 0%, #3d2e00 100%);
  border-color: #d97706;
  box-shadow: 0 0 0 1px rgba(217,119,6,0.3), 0 2px 8px rgba(217,119,6,0.15);
}
#el-notif[data-el-theme="dark"] .el-ni.unread .el-ni-title { color:#fcd34d; }
#el-notif[data-el-theme="dark"] .el-ni.unread .el-ni-sub   { color:#fbbf24; }
#el-notif[data-el-theme="dark"] .el-ni.unread .el-ni-time  { color:#d97706; }
#el-notif[data-el-theme="dark"] .el-notif-mark-all { background:#1c1c1c; border-color:rgba(255,255,255,.1); color:#b6b6bd; }
#el-notif[data-el-theme="dark"] .el-notif-mark-all:hover { background:#242428; border-color:rgba(255,255,255,.18); color:#8ea0ff; }
#el-notif[data-el-theme="dark"] .el-ni-dismiss-btn { color:#888; border-color:rgba(255,255,255,.1); }
#el-notif[data-el-theme="dark"] .el-ni-dismiss-btn:hover { background:rgba(220,38,38,.16); border-color:rgba(248,113,113,.35); color:#f87171; }
#el-notif[data-el-theme="dark"] .el-ni.unread .el-ni-dismiss-btn { color:#fbbf24; background:rgba(255,255,255,.04); border-color:rgba(217,119,6,.35); }
#el-notif[data-el-theme="dark"] .el-icon-btn    { color:#888; }
#el-notif[data-el-theme="dark"] .el-icon-btn:hover { background:rgba(255,255,255,0.08); color:#f0f0f0; }
#el-notif[data-el-theme="dark"] .el-notif-empty { color:#555; }
#el-notif[data-el-theme="dark"] .el-btn          { color:#f0f0f0; }

/* ── Unread notification fade-out transition ─────────────── */
.el-ni-read-transition {
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease !important;
}

/* ── Custom dashboard pages ──────────────────────────────── */
.el-view-custom-page {
  /* Sits in the same grid column as .el-main — fill the space identically */
  grid-column: 2; /* sidebar takes col 1, main takes col 2 */
  padding: 28px 32px;
  overflow-y: auto;
  height: 100%;
  background: var(--el-bg);
  min-height: 0;
  box-sizing: border-box;
}
/* When Drive's own page header is disabled, remove the space reserved above the content. */
.el-view-custom-page.el-page-header-hidden {
  padding-top: 0;
}
.el-view-custom-page.el-page-header-hidden .el-custom-page-body > :first-child,
.el-view-custom-page.el-page-header-hidden .el-custom-page-body > .vc_row:first-child {
  margin-top: 0 !important;
}
/* On mobile, no sidebar so span full width */
@media (max-width: 900px) {
  .el-view-custom-page {
    grid-column: 1;
    padding: 16px 16px 80px;
    height: auto;
    min-height: 100vh;
  }
  .el-view-custom-page.el-page-header-hidden {
    padding-top: 0;
  }
}
.el-page-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--el-border);
}
.el-page-icon {
  width: 42px; height: 42px;
  border-radius: var(--el-r-md);
  background: var(--el-surface-2);
  border: 1px solid var(--el-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--el-text-2);
  flex-shrink: 0;
}
.el-page-icon i, .el-page-icon svg { width: 20px; height: 20px; }
.el-page-hdr .el-page-title {
  font-family: var(--el-font-d);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--el-text);
  line-height: 1.1;
}
.el-page-hdr .el-page-sub {
  font-size: 0.78rem; color: var(--el-text-m); margin-top: 3px;
}
.el-custom-page-body {
  color: var(--el-text);
  font-size: 0.9rem;
  line-height: 1.7;
}
.el-custom-page-body h1,
.el-custom-page-body h2,
.el-custom-page-body h3 { color: var(--el-text); font-family: var(--el-font-d); }
.el-custom-page-body a { color: var(--el-new); }
.el-custom-page-body p { margin-bottom: 1em; }
.el-custom-page-body img { max-width: 100%; border-radius: var(--el-r-md); }
/* WPBakery vc_row inside dashboard */
.el-custom-page-body .vc_row { margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 640px) {
  .el-view-custom-page { padding: 16px; }
  .el-view-custom-page.el-page-header-hidden { padding-top: 0; }
}

/* ── HUB MOBILE DRAWER ────────────────────────────────────── */
/* Hub drawer: desktop hidden, mobile slide-up sheet */
.el-hub-drawer { display:none; }

@media (max-width:900px) {
  .el-hub-drawer {
    display:block;
    position:fixed; bottom:0; left:0; right:0;
    z-index:200001; /* above everything — drawer is now outside el-db stacking context */
    transform:translateY(100%);
    transition:transform .3s cubic-bezier(.32,.72,0,1);
    pointer-events:none;
  }
  .el-hub-drawer.open {
    transform:translateY(0);
    pointer-events:all;
  }
  .el-hub-drawer-inner {
    background: var(--el-surface);
    border-top: 1px solid var(--el-border);
    border-radius: 20px 20px 0 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
    /* Force fully opaque — no inherited opacity or transparency */
    opacity: 1;
  }
  /* Pull handle */
  .el-hub-drawer-inner::before {
    content:''; display:block; width:36px; height:4px;
    background:var(--el-border-s); border-radius:2px;
    margin:12px auto 8px;
  }
  .el-hub-drawer-lbl {
    font-size:11px; font-weight:700; text-transform:uppercase;
    letter-spacing:.08em; color:var(--el-text-m);
    padding:4px 20px 10px;
  }
  .el-hub-drawer-item {
    display:flex; align-items:center; gap:14px;
    width:100%; padding:14px 20px;
    background:none; border:none; cursor:pointer;
    font-size:15px; font-weight:500; color:var(--el-text);
    text-align:left; transition:background .12s;
    border-radius:0;
  }
  .el-hub-drawer-item:active { background:var(--el-hover); }
  .el-hub-drawer-item.active { color:var(--el-accent); }
  .el-hub-drawer-item.active i { color:var(--el-accent); }
  #el-bnav-hub.active { color:var(--el-text); }
}

/* ══════════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS (polish7)
   ══════════════════════════════════════════════════════════ */

/* ── Lead detail popup: mobile bottom sheet ─────────────── */
@media (max-width: 640px) {
  /* Full-screen bottom sheet behaviour */
  #el-detail-overlay,
  #el-transfer-overlay,
  #el-assign-overlay {
    align-items: flex-end;
    padding: 0;
  }
  #el-detail-overlay .el-modal,
  #el-transfer-overlay .el-modal,
  #el-assign-overlay .el-modal {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  #el-detail-overlay.open .el-modal,
  #el-transfer-overlay.open .el-modal,
  #el-assign-overlay.open .el-modal {
    transform: translateY(0);
  }
  /* Pull handle on modal */
  #el-detail-overlay .el-modal::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: var(--el-border-s); border-radius: 2px;
    margin: 10px auto 0; flex-shrink: 0;
  }
  .el-modal-hdr { padding: 12px 18px 14px; }
  .el-modal-body { padding: 16px 18px 20px; }

  /* Lead popup action buttons: horizontal scroll on small screens */
  .eld-topbar { gap: 8px; }
  .eld-topbar-right {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
  }
  .eld-topbar-right::-webkit-scrollbar { display: none; }
  .eld-topbar-right .el-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 7px 11px;
  }

  /* Two-col body → single col */
  .eld-body { grid-template-columns: 1fr; gap: 16px; }

  /* Confirmed date banner on mobile */
  #el-detail-overlay [style*="border-radius:8px"] {
    margin: 8px 0 0 !important;
  }
}

/* ── Topbar on mobile: prevent overflow ─────────────────── */
@media (max-width: 640px) {
  .el-topbar { padding: 0 12px; gap: 8px; height: 54px; }
  .el-topbar-logo { max-width: 120px; }
  .el-topbar-logo img { max-height: 28px; }
  /* Hide "Log ud" text on small screens */
  /* Hide "Log ud" text, keep icon */
  .el-logout { font-size: 0; gap: 0; padding: 7px 9px; }
  .el-logout svg { width: 16px; height: 16px; }
  /* Smaller topbar icon buttons */
  .el-topbar-actions { gap: 4px; }
  .el-icon-btn { width: 32px; height: 32px; }
}

/* ── Custom page desktop improvements ───────────────────── */
/* WPBakery: reset box model within dashboard */
.el-custom-page-body .vc_row,
.el-custom-page-body .vc_column_container,
.el-custom-page-body .wpb_column {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.el-custom-page-body .vc_column-inner {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
/* Prevent WPBakery from injecting extra page-title headings */
.el-custom-page-body .page-title,
.el-custom-page-body .entry-title,
.el-custom-page-body .wp-post-title {
  display: none !important;
}
/* Elementor: reset wrapper */
.el-custom-page-body .elementor {
  width: 100%;
}
.el-custom-page-body .elementor-section {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Notification drawer full-width on mobile ───────────── */
@media (max-width: 640px) {
  #el-notif {
    width: 100vw;
    left: 0;
    right: 0;
    top: 54px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ── Bottom nav: tighter on very small screens ──────────── */
@media (max-width: 380px) {
  .el-bnav-item { font-size: 0.57rem; padding: 5px 2px; }
  .el-bnav-item svg { width: 18px; height: 18px; }
}

/* ── Safari-safe button polish ───────────────────────────────────────── */
.el-icon-btn,
.el-theme-btn,
.el-modal-close {
  -webkit-appearance:none;
  appearance:none;
  border:1px solid transparent;
  background:rgba(255,255,255,0.78);
  box-shadow:0 1px 2px rgba(15,23,42,0.06);
  padding:0;
  line-height:1;
  outline:none;
  backdrop-filter:saturate(140%) blur(10px);
}
.el-icon-btn:hover,
.el-theme-btn:hover,
.el-modal-close:hover {
  border-color:var(--el-border);
  box-shadow:0 6px 18px rgba(15,23,42,0.08);
  transform:translateY(-1px);
}
.el-icon-btn:focus-visible,
.el-theme-btn:focus-visible,
.el-modal-close:focus-visible {
  border-color:var(--el-primary);
  box-shadow:0 0 0 3px rgba(79,70,229,0.18);
}
[data-el-theme="dark"] .el-icon-btn,
[data-el-theme="dark"] .el-theme-btn,
[data-el-theme="dark"] .el-modal-close {
  background:rgba(30,41,59,0.88);
  border-color:rgba(148,163,184,0.18);
  box-shadow:0 1px 2px rgba(2,6,23,0.5);
}

/* ── Help center ─────────────────────────────────────────── */
.el-help-wrap { display:flex; flex-direction:column; gap:22px; }
.el-help-hero {
  display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);
  gap:22px; align-items:center;
  padding:28px; border-radius:24px;
  background:linear-gradient(135deg, rgba(124,58,237,.08), rgba(37,99,235,.08));
  border:1px solid rgba(124,58,237,.14);
  box-shadow:0 14px 34px rgba(15,23,42,.05);
}
.el-help-kicker {
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.72); color:#5b21b6;
  font-size:.73rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
}
.el-help-hero h2 {
  margin:14px 0 10px; font-family:var(--el-font-d); font-size:1.9rem; line-height:1.05;
  letter-spacing:-.04em; color:var(--el-text);
}
.el-help-hero p { margin:0; max-width:62ch; color:var(--el-text-2); font-size:.96rem; line-height:1.7; }
.el-help-quicklinks { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.el-help-hero-art {
  display:flex; justify-content:center; align-items:center;
  padding:12px; border-radius:22px; background:rgba(255,255,255,.76); border:1px solid rgba(255,255,255,.6);
}
.el-help-hero-art svg { width:100%; max-width:320px; height:auto; display:block; }
.el-help-tabs { display:flex; gap:10px; flex-wrap:wrap; }
.el-help-tab {
  -webkit-appearance:none; appearance:none; border:1px solid var(--el-border); background:var(--el-surface);
  color:var(--el-text-2); border-radius:999px; padding:10px 16px; font-size:.85rem; font-weight:700;
  box-shadow:0 1px 2px rgba(15,23,42,.04); transition:all var(--el-t);
}
.el-help-tab:hover { border-color:var(--el-border-s); color:var(--el-text); transform:translateY(-1px); }
.el-help-tab.active { background:var(--el-accent); border-color:var(--el-accent); color:var(--el-accent-t); }
.el-help-panel { display:none; }
.el-help-panel.active { display:block; }
.el-help-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.el-help-card {
  background:var(--el-surface); border:1px solid var(--el-border); border-radius:22px; padding:22px;
  box-shadow:var(--el-shadow-sm); color:var(--el-text);
}
.el-help-card-wide { grid-column:1 / -1; }
.el-help-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:16px; }
.el-help-eyebrow {
  display:inline-flex; font-size:.72rem; font-weight:700; color:var(--el-text-m);
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px;
}
.el-help-card h3 { margin:0; font-size:1.1rem; line-height:1.2; letter-spacing:-.02em; }
.el-help-graphic { width:min(180px,100%); flex-shrink:0; }
.el-help-graphic svg { width:100%; height:auto; display:block; }
.el-help-icon {
  width:42px; height:42px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:var(--el-surface-2); font-size:1.2rem; flex-shrink:0;
}
.el-help-steps, .el-help-list { margin:0; padding-left:20px; color:var(--el-text-2); }
.el-help-steps li, .el-help-list li { margin-bottom:10px; line-height:1.65; }
.el-help-copy { margin:0; color:var(--el-text-2); line-height:1.7; }
.el-help-tip {
  margin-top:16px; padding:12px 14px; border-radius:16px; background:var(--el-surface-2);
  border:1px solid var(--el-border); color:var(--el-text-2); font-size:.86rem;
}
.el-help-faq { display:flex; flex-direction:column; gap:12px; }
.el-help-faq-item {
  background:var(--el-surface); border:1px solid var(--el-border); border-radius:18px; padding:0 18px;
  box-shadow:var(--el-shadow-sm);
}
.el-help-faq-item summary {
  cursor:pointer; list-style:none; padding:18px 0; font-weight:700; color:var(--el-text);
}
.el-help-faq-item summary::-webkit-details-marker { display:none; }
.el-help-faq-item p { margin:0 0 18px; color:var(--el-text-2); line-height:1.7; }
.el-help-btn { color:var(--el-accent); }

[data-el-theme="dark"] .el-help-hero {
  background:linear-gradient(135deg, rgba(124,58,237,.18), rgba(37,99,235,.16));
  border-color:rgba(148,163,184,.18);
}
[data-el-theme="dark"] .el-help-kicker,
[data-el-theme="dark"] .el-help-hero-art {
  background:rgba(15,23,42,.56);
  border-color:rgba(148,163,184,.14);
  color:#c4b5fd;
}
[data-el-theme="dark"] .el-help-tab.active { color:#111827; }

@media (max-width: 1024px) {
  .el-help-hero { grid-template-columns:1fr; }
}
@media (max-width: 820px) {
  .el-help-grid { grid-template-columns:1fr; }
  .el-help-card-wide { grid-column:auto; }
}
@media (max-width: 640px) {
  .el-help-hero,
  .el-help-card { padding:18px; border-radius:20px; }
  .el-help-hero h2 { font-size:1.55rem; }
  .el-help-card-head { flex-direction:column; }
  .el-help-graphic { width:100%; max-width:180px; }
  .el-help-tab { width:100%; justify-content:center; }
}

/* Tasks */
.el-task-wrap{background:var(--el-surface);border:1px solid var(--el-border);border-radius:18px;padding:18px;box-shadow:var(--el-shadow-sm)}
.el-task-head h3{margin:0 0 6px;font-size:1.1rem}.el-task-head p{margin:0 0 16px;color:var(--el-text-m);font-size:.9rem}
.el-task-table-wrap{overflow:auto}.el-task-table{width:100%;border-collapse:separate;border-spacing:0}
.el-task-table th,.el-task-table td{padding:12px 10px;border-bottom:1px solid var(--el-border);text-align:left;vertical-align:middle;white-space:nowrap}
.el-task-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--el-text-m)}
.el-task-table td{font-size:.92rem}.el-task-empty{text-align:center;color:var(--el-text-m);padding:28px 12px!important}

.el-hub-drawer-item:visited { color:inherit; }

/* ── DriveHub v9.5.9: Lead popup tabs + action log ───────── */
.eld-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--el-border);
  margin: -6px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.eld-tabs::-webkit-scrollbar { display: none; }
.eld-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--el-text-2);
  font-family: var(--el-font-b);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 4px 11px;
  margin: 0 8px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.eld-tab:hover { color: var(--el-text); }
.eld-tab.is-active { color: var(--el-text); border-bottom-color: var(--el-accent); }
.eld-tab span {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--el-surface-2);
  border: 1px solid var(--el-border);
  color: var(--el-text-2);
  font-size: 0.68rem;
  line-height: 16px;
  text-align: center;
}
.eld-tab-panel[hidden] { display: none !important; }
.eld-confirmed-box {
  margin: 0 0 18px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eld-confirmed-box span { font-size: 13px; font-weight: 600; color: #15803d; }
[data-el-theme="dark"] .eld-confirmed-box { background: rgba(22,163,74,0.12); border-color: rgba(22,163,74,0.32); }
[data-el-theme="dark"] .eld-confirmed-box span { color: #86efac; }
.eld-action-log { display: flex; flex-direction: column; gap: 0; }
.eld-action-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  position: relative;
  padding: 0 0 14px;
}
.eld-action-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--el-border);
}
.eld-action-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--el-accent);
  margin: 5px auto 0;
  box-shadow: 0 0 0 3px var(--el-surface-2);
}
.eld-action-main {
  border: 1px solid var(--el-border);
  background: var(--el-surface-2);
  border-radius: var(--el-r-md);
  padding: 10px 12px;
}
.eld-action-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.eld-action-head strong { color: var(--el-text); font-size: 0.84rem; }
.eld-action-head span { color: var(--el-text-m); font-size: 0.72rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eld-action-desc { color: var(--el-text-2); font-size: 0.8rem; line-height: 1.45; }
.eld-action-user { color: var(--el-text-m); font-size: 0.72rem; margin-top: 6px; }
@media (max-width: 640px) {
  .eld-tab { font-size: 0.78rem; padding-top: 9px; padding-bottom: 10px; }
  .eld-action-head { flex-direction: column; gap: 2px; }
}

/* ── DriveHub v9.6.0: Inline proposed-date panel inside lead popup ── */
.eld-propose-inline {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--el-border);
  border-radius: 16px;
  background: var(--el-surface-2);
  box-shadow: var(--el-shadow-sm);
}
.eld-propose-inline[hidden] { display: none !important; }
.eld-propose-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.eld-propose-head strong { display: block; font-size: 0.98rem; color: var(--el-text); }
.eld-propose-head p { margin: 4px 0 0; color: var(--el-text-m); font-size: 0.82rem; line-height: 1.45; }
.eld-propose-grid { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr); gap: 12px; }
.eld-propose-grid label { display: block; color: var(--el-text-2); font-size: 0.78rem; font-weight: 800; }
.eld-propose-grid .el-ta { margin-top: 6px; width: 100%; }
.eld-propose-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 760px) { .eld-propose-grid { grid-template-columns: 1fr; } }


/* DriveHub v12 customer action alert */
.eld-customer-action-alert{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:14px 0 16px;padding:14px 16px;border:1px solid rgba(245,158,11,.35);background:linear-gradient(135deg,rgba(245,158,11,.12),rgba(255,255,255,.92));border-radius:18px;box-shadow:0 10px 30px rgba(245,158,11,.08)}
.eld-customer-action-alert strong{display:block;font-size:.94rem;color:#92400e;margin-bottom:3px}.eld-customer-action-alert p{margin:0;color:var(--el-text-2);font-size:.8rem;line-height:1.45}.eld-customer-action-comment{margin-top:5px!important;color:var(--el-text)!important}.eld-customer-action-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:220px}
@media(max-width:720px){.eld-customer-action-alert{flex-direction:column}.eld-customer-action-buttons{justify-content:flex-start;width:100%}.eld-customer-action-buttons .el-btn{width:100%;justify-content:center}}

.el-badge-customer-action{display:inline-flex;align-items:center;border-radius:999px;background:#fef3c7;color:#92400e;font-size:10px;font-weight:850;padding:4px 8px;letter-spacing:.02em}
.el-badge-awaiting-customer{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:10px;font-weight:850;padding:4px 8px;letter-spacing:.02em}
.el-badge-awaiting-customer svg{width:12px;height:12px;stroke-width:2.2;}
.el-badge-testlead{display:inline-flex;align-items:center;border-radius:999px;background:#ede9fe;color:#5b21b6;border:1px solid #ddd6fe;font-size:10px;font-weight:850;padding:4px 8px;letter-spacing:.02em}

/* DriveHub v14: confirmed/awaiting states and notification UX */
.el-badge-sla,.el-badge-confirmed{
  display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;
  font-size:11px;font-weight:700;line-height:1;text-transform:none;
  letter-spacing:0;flex-shrink:0;min-height:24px;
}
.el-badge-confirmed{
  background:rgba(22,163,74,.12);color:#15803d;border:1px solid rgba(22,163,74,.28);
}
.el-badge-sla svg,.el-badge-confirmed svg{width:12px;height:12px;stroke-width:2.2;}
.eld-awaiting-customer-alert{
  display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;padding:14px 16px;border-radius:14px;
  background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;
}
.eld-awaiting-customer-alert .eld-alert-icon{width:30px;height:30px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#ffedd5;color:#ea580c;flex:0 0 30px;}
.eld-awaiting-customer-alert .eld-alert-icon svg{width:17px;height:17px;}
.eld-awaiting-customer-alert strong{display:block;font-size:14px;color:#9a3412;margin-bottom:3px;}
.eld-awaiting-customer-alert p{margin:0;font-size:13px;line-height:1.45;color:#7c2d12;}
.eld-propose-success{display:none;margin:0 0 12px;padding:12px 14px;border-radius:12px;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;font-size:13px;font-weight:700;}
.el-ni{cursor:pointer;}
.el-ni-open-lead{margin-top:8px;border:0;border-radius:999px;padding:7px 11px;background:var(--el-primary,#3452FF);color:#fff;font-size:12px;font-weight:700;cursor:pointer;}
.el-ni-open-lead:hover{filter:brightness(.95);}
[data-el-theme="dark"] .eld-awaiting-customer-alert{background:rgba(251,146,60,.12);border-color:rgba(251,146,60,.35);color:#fed7aa;}
[data-el-theme="dark"] .eld-awaiting-customer-alert strong,[data-el-theme="dark"] .eld-awaiting-customer-alert p{color:#fed7aa;}
[data-el-theme="dark"] .eld-propose-success{background:rgba(22,163,74,.12);border-color:rgba(22,163,74,.34);color:#bbf7d0;}
[data-el-theme="dark"] .el-badge-confirmed{background:rgba(22,163,74,.16);border-color:rgba(22,163,74,.34);color:#86efac;}
[data-el-theme="dark"] .el-badge-awaiting-customer{background:rgba(251,146,60,.12);border-color:rgba(251,146,60,.35);color:#fed7aa;}
[data-el-theme="dark"] .el-badge-testlead{background:rgba(124,58,237,.16);border-color:rgba(167,139,250,.34);color:#ddd6fe;}


/* ── DriveHub onboarding guide v1 ───────────────────────── */
.el-guide-trigger {
  min-height:36px; border:1px solid var(--el-border); border-radius:var(--el-r-sm);
  padding:0 11px; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  background:var(--el-surface); color:var(--el-accent); font-size:.78rem; font-weight:700;
  cursor:pointer; transition:background var(--el-t),border-color var(--el-t),color var(--el-t);
}
.el-guide-trigger:hover { background:var(--el-surface-2); border-color:var(--el-border-s); color:var(--el-text); }
.el-guide-trigger svg { flex:0 0 auto; }
.el-bnav-item { position:relative; }
.el-bnav-badge {
  position:absolute; top:4px; right:calc(50% - 23px); min-width:16px; height:16px; padding:0 4px;
  border-radius:999px; background:var(--el-new); color:#fff; border:2px solid var(--el-surface);
  display:flex; align-items:center; justify-content:center; font-size:.56rem; font-weight:800; line-height:1;
}
.el-guide-overlay { position:fixed; inset:0; z-index:2147483646; display:none; pointer-events:none; }
.el-guide-overlay.open { display:block; }
.el-guide-backdrop { position:absolute; inset:0; background:rgba(3,7,18,.46); -webkit-backdrop-filter:none; backdrop-filter:none; pointer-events:auto; transition:background .15s ease; }
.el-guide-overlay.has-target .el-guide-backdrop { background:transparent; }
.el-guide-overlay.is-interactive .el-guide-backdrop { pointer-events:none; }
.el-guide-shields { position:fixed; inset:0; z-index:1; display:none; pointer-events:none; }
.el-guide-shields.is-visible { display:block; }
.el-guide-shield { position:fixed; background:transparent; pointer-events:auto; }
.el-guide-spotlight {
  position:fixed; border-radius:14px; border:2px solid rgba(255,255,255,.98); background:transparent;
  box-shadow:0 0 0 9999px rgba(3,7,18,.38),0 0 0 7px rgba(52,82,255,.30),0 0 28px rgba(52,82,255,.26),0 18px 50px rgba(0,0,0,.18);
  opacity:0; transition:top .2s ease,left .2s ease,width .2s ease,height .2s ease,opacity .15s ease;
  pointer-events:none; z-index:2;
}
.el-guide-spotlight.is-visible { opacity:1; }
.el-guide-card {
  position:fixed; z-index:3; width:min(420px,calc(100vw - 32px)); max-height:calc(100vh - 28px); overflow:auto;
  background:var(--el-surface); color:var(--el-text); border:1px solid var(--el-border); border-radius:22px;
  padding:24px; box-shadow:0 28px 80px rgba(0,0,0,.32); pointer-events:auto;
  transition:top .18s ease,left .18s ease,bottom .18s ease;
}
.el-guide-card.is-centered { left:50%; top:50%; transform:translate(-50%,-50%); }
.el-guide-progress { display:flex; align-items:center; gap:10px; margin:0 34px 22px 0; color:var(--el-text-m); font-size:.7rem; font-weight:700; }
.el-guide-progress-track { height:5px; flex:1; border-radius:99px; background:var(--el-surface-2); overflow:hidden; }
.el-guide-progress-track > span { display:block; width:0; height:100%; background:var(--el-accent); border-radius:inherit; transition:width .2s ease; }
.el-guide-close { position:absolute; right:15px; top:13px; width:32px; height:32px; border:0; border-radius:9px; background:transparent; color:var(--el-text-m); font-size:25px; line-height:1; cursor:pointer; }
.el-guide-close:hover { background:var(--el-surface-2); color:var(--el-text); }
.el-guide-eyebrow { color:var(--el-accent); font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:7px; }
.el-guide-card h2 { margin:0; color:var(--el-text); font-size:1.48rem; line-height:1.2; letter-spacing:-.03em; }
.el-guide-copy { margin-top:12px; color:var(--el-text-2); font-size:.93rem; line-height:1.65; white-space:pre-line; }
.el-guide-turn {
  margin-top:16px; padding:12px 13px; display:flex; align-items:center; gap:10px;
  border:1px solid rgba(52,82,255,.24); border-radius:12px; background:rgba(52,82,255,.08);
  color:var(--el-accent); font-size:.82rem; font-weight:800;
}
.el-guide-turn[hidden] { display:none !important; }
.el-guide-turn-icon { width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:var(--el-accent); color:#fff; flex:0 0 auto; }
.el-guide-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; }
.el-guide-actions-right { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.el-guide-actions .el-btn { min-height:38px; }
body.el-guide-open { overflow:hidden !important; }
#el-guide-overlay[data-el-theme="dark"] .el-guide-card { background:#17171a; border-color:rgba(255,255,255,.1); --el-surface-2:#242428; --el-text:#f5f5f5; --el-text-2:#b6b6bd; --el-text-m:#73737c; }

.el-guide-training-card { position:relative; border:2px solid var(--el-accent) !important; cursor:pointer; box-shadow:0 0 0 5px rgba(52,82,255,.1) !important; animation:elGuideTrainingPulse 1.8s ease-in-out infinite; }
.el-guide-training-card:hover { transform:translateY(-2px); }
.el-guide-training-hint { margin-top:11px; padding-top:10px; border-top:1px solid var(--el-border); color:var(--el-accent); font-size:.74rem; font-weight:800; }
@keyframes elGuideTrainingPulse { 0%,100%{ box-shadow:0 0 0 5px rgba(52,82,255,.08); } 50%{ box-shadow:0 0 0 9px rgba(52,82,255,.15); } }

#el-guide-lead-preview { z-index:2147483644; }
#el-guide-lead-preview .el-modal { max-width:min(1040px,calc(100vw - 48px)); }
#el-guide-lead-preview .el-modal-body { min-height:410px; }
#el-guide-lead-preview .el-guide-demo-label {
  display:inline-flex; align-items:center; margin-left:8px; padding:3px 8px; border-radius:999px;
  background:rgba(52,82,255,.1); color:var(--el-accent); border:1px solid rgba(52,82,255,.2);
  font-size:.62rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; vertical-align:2px;
}
#el-guide-lead-preview .el-guide-preview-tools { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
#el-guide-lead-preview .el-guide-preview-note { color:var(--el-text-m); font-size:.72rem; font-weight:700; }
#el-guide-lead-preview .el-guide-preview-close { position:static; flex:0 0 auto; }
#el-guide-lead-preview .eld-topbar-right { flex-wrap:wrap; justify-content:flex-end; }
#el-guide-lead-preview .el-guide-demo-secondary:disabled { opacity:.45; cursor:not-allowed; }
#el-guide-lead-preview .el-guide-demo-validation { min-height:20px; margin-top:6px; color:var(--el-accent); font-size:.75rem; font-weight:700; }
#el-guide-lead-preview .el-guide-added-comment { border-color:rgba(52,82,255,.25); background:rgba(52,82,255,.06); }
#el-guide-lead-preview[data-el-theme="dark"] .el-modal {
  --el-surface:#17171a; --el-surface-2:#242428; --el-border:rgba(255,255,255,.1);
  --el-border-s:rgba(255,255,255,.18); --el-text:#f5f5f5; --el-text-2:#b6b6bd; --el-text-m:#73737c;
}
@media (max-width:900px) {
  .el-guide-trigger span { display:none; }
  .el-guide-trigger { width:36px; padding:0; border:0; background:transparent; }
}
@media (max-width:700px) {
  .el-guide-backdrop { background:rgba(3,7,18,.50); }
  .el-guide-overlay.has-target .el-guide-backdrop { background:transparent; }
  .el-guide-card.is-centered { top:auto; left:12px; right:12px; bottom:12px; width:auto; transform:none; border-radius:20px; max-height:calc(100vh - 24px); }
  .el-guide-card.is-top-docked, .el-guide-card.is-bottom-docked { transform:none; border-radius:20px; max-height:calc(100vh - 24px); }
  .el-guide-card { padding:21px; }
  #el-guide-lead-preview .el-modal-hdr { align-items:flex-start; }
  #el-guide-lead-preview .el-guide-preview-tools { align-items:flex-end; flex-direction:column-reverse; }
  #el-guide-lead-preview { padding:10px; align-items:flex-start; }
  #el-guide-lead-preview .el-modal { max-width:100%; max-height:calc(100vh - 20px); }
  #el-guide-lead-preview .el-modal-body { min-height:0; padding:18px; }
  .el-guide-actions { align-items:flex-end; }
  .el-guide-actions-right { flex:1; }
}
@media (max-width:430px) {
  .el-guide-actions { flex-direction:column-reverse; align-items:stretch; }
  .el-guide-actions-right { width:100%; }
  .el-guide-actions-right .el-btn { flex:1; }
  #el-guide-skip { width:100%; }
}


/* ── DriveHub v9.11.0: persistent guide example ─────────── */
.el-guide-training-confirmed {
  display:inline-flex; align-items:center; gap:6px; margin-top:10px; padding:7px 9px;
  border:1px solid #bbf7d0; border-radius:9px; background:#f0fdf4; color:#15803d;
  font-size:.72rem; font-weight:800;
}
.el-guide-training-task { outline:2px solid rgba(52,82,255,.65); outline-offset:-2px; background:rgba(52,82,255,.045); }
.el-guide-training-task td { position:relative; }
.el-guide-training-notification { border:2px solid rgba(52,82,255,.55) !important; box-shadow:0 0 0 4px rgba(52,82,255,.08); }
.el-guide-demo-confirmed-box[hidden] { display:none !important; }
[data-el-theme="dark"] .el-guide-training-confirmed { background:rgba(22,163,74,.14); border-color:rgba(134,239,172,.28); color:#86efac; }

/* ── DriveHub v9.11.0: customer history ─────────────────── */
.eld-customer-history-intro {
  display:flex; flex-direction:column; gap:5px; margin:0 0 15px; padding:13px 15px;
  border:1px solid rgba(52,82,255,.18); border-radius:13px; background:rgba(52,82,255,.055);
}
.eld-customer-history-intro strong { color:var(--el-text); font-size:.86rem; }
.eld-customer-history-intro span { color:var(--el-text-2); font-size:.77rem; line-height:1.5; }
.eld-customer-history-list { display:flex; flex-direction:column; gap:10px; }
.eld-customer-history-item {
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 15px;
  border:1px solid var(--el-border); border-radius:14px; background:var(--el-surface-2);
}
.eld-customer-history-item.is-restricted { border-style:dashed; opacity:.82; }
.eld-customer-history-main { min-width:0; flex:1; }
.eld-customer-history-heading { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.eld-customer-history-heading strong { color:var(--el-text); font-size:.88rem; }
.eld-customer-history-meta { display:flex; align-items:center; flex-wrap:wrap; gap:7px 14px; margin-top:6px; color:var(--el-text-m); font-size:.73rem; }
.eld-customer-history-lock { color:#92400e; font-weight:700; }
.eld-customer-history-restricted { flex:0 0 auto; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--el-border); border-radius:10px; background:var(--el-surface); font-size:14px; }
.eld-history-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:150px; padding:24px; text-align:center; border:1px dashed var(--el-border); border-radius:14px; color:var(--el-text-m); }
.eld-history-empty strong { color:var(--el-text); font-size:.92rem; }
.eld-history-empty span { font-size:.78rem; }
[data-el-theme="dark"] .eld-customer-history-lock { color:#fbbf24; }
@media(max-width:640px){
  .eld-customer-history-item { align-items:flex-start; }
  .eld-history-open { flex:0 0 auto; }
}

/* ── DriveHub 9.12: safe appointment cancellation ───────── */
.el-btn-danger {
  background:#dc2626 !important;
  color:#fff !important;
  border-color:#dc2626 !important;
}
.el-btn-danger:hover { background:#b91c1c !important; border-color:#b91c1c !important; }
.eld-confirmed-box { justify-content:space-between; }
.eld-confirmed-box-main { display:flex; align-items:center; gap:8px; min-width:0; }
.eld-cancel-appointment-btn {
  margin-left:auto;
  flex:0 0 auto;
  background:#ffd500 !important;
  color:#111 !important;
  border:1px solid #e6bf00 !important;
  font-weight:800;
  box-shadow:none !important;
}
.eld-cancel-appointment-btn:hover { background:#f2c900 !important; border-color:#d4b000 !important; }
.eld-cancelled-box {
  margin:0 0 18px;
  padding:11px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid #fecaca;
  border-radius:8px;
  background:#fef2f2;
  color:#991b1b;
}
.eld-cancelled-box-main { display:flex; align-items:flex-start; gap:9px; min-width:0; }
.eld-cancelled-box-main > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.eld-cancelled-box strong { font-size:13px; }
.eld-cancelled-box span { font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.eld-cancelled-box small { color:#b91c1c; font-size:11px; white-space:nowrap; }
[data-el-theme="dark"] .eld-cancelled-box { background:rgba(220,38,38,.12); border-color:rgba(248,113,113,.34); color:#fca5a5; }
[data-el-theme="dark"] .eld-cancelled-box small { color:#fca5a5; }
.el-cancel-appointment-modal h3 { margin:0 0 8px; font-size:1.15rem; color:var(--el-text); }
.el-cancel-appointment-modal p { margin:0; color:var(--el-text-2); line-height:1.6; }
.el-cancel-warning-icon {
  width:48px;
  height:48px;
  margin:0 0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#fef2f2;
  color:#dc2626;
}
.el-cancel-warning-icon svg { width:24px; height:24px; }
.el-cancel-suggestion {
  margin-top:18px;
  padding:13px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
  border:1px solid var(--el-border);
  border-radius:10px;
  background:var(--el-surface-2);
  color:var(--el-text);
  font-size:.84rem;
}
.el-cancel-suggestion span { color:var(--el-text-2); line-height:1.45; }
.el-cancel-step label { display:block; margin:18px 0 6px; }
.el-cancel-validation { min-height:20px; margin-top:8px; color:#dc2626; font-size:.8rem; font-weight:600; }
.el-cancel-ftr { flex-wrap:wrap; }
.el-cancel-ftr .el-btn { justify-content:center; }
@media(max-width:720px){
  .eld-confirmed-box,.eld-cancelled-box { align-items:flex-start; flex-direction:column; }
  .eld-cancel-appointment-btn { width:100%; margin-left:0; justify-content:center; }
  .eld-cancelled-box small { white-space:normal; }
  .el-cancel-ftr .el-btn { width:100%; }
}

/* ── DriveHub 9.12.1: cancellation modal and card state fixes ── */
#el-cancel-appointment-overlay {
  z-index:2147483647 !important;
  isolation:isolate;
}
#el-cancel-appointment-overlay.open .el-modal {
  transform:translateY(0) scale(1);
}
.el-badge-cancelled {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(220,38,38,.1);
  color:#b91c1c;
  border:1px solid rgba(220,38,38,.26);
  font-size:11px;
  font-weight:750;
  line-height:1;
  text-transform:none;
}
.el-badge-cancelled svg { width:12px; height:12px; stroke-width:2.2; }
[data-el-theme="dark"] .el-badge-cancelled {
  background:rgba(220,38,38,.16);
  border-color:rgba(248,113,113,.34);
  color:#fca5a5;
}
.el-cancel-ftr-confirm {
  align-items:center;
  justify-content:space-between;
}
.el-cancel-ftr-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.el-cancel-ftr-reason {
  align-items:center;
  justify-content:space-between;
}
@media(max-width:720px){
  .el-cancel-ftr-confirm,
  .el-cancel-ftr-reason {
    align-items:stretch;
    flex-direction:column-reverse;
  }
  .el-cancel-ftr-actions {
    align-items:stretch;
    flex-direction:column;
    width:100%;
  }
  .el-cancel-ftr-actions .el-btn,
  .el-cancel-ftr-confirm > .el-btn,
  .el-cancel-ftr-reason .el-btn {
    width:100%;
  }
}

/* ── DriveHub problem reporting ─────────────────────────── */
.el-report-problem-trigger { color:var(--el-accent); }
#el-issue-overlay {
  z-index:2147483647 !important;
  background:rgba(3,7,18,.52);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
#el-detail-overlay.el-under-issue { z-index:2147483500 !important; }
.el-issue-modal {
  width:min(760px,calc(100vw - 32px));
  max-width:760px;
  max-height:min(900px,calc(100vh - 32px));
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.el-issue-modal .el-modal-hdr { flex:0 0 auto; }
.el-issue-modal .el-modal-meta { margin-top:3px; font-size:.76rem; color:var(--el-text-m); }
.el-issue-tabs {
  display:flex; gap:6px; padding:10px 18px 0; border-bottom:1px solid var(--el-border);
  background:var(--el-surface); flex:0 0 auto;
}
.el-issue-tab {
  position:relative; border:0; background:transparent; color:var(--el-text-m); cursor:pointer;
  padding:10px 13px 12px; font:700 .8rem/1 var(--el-font-d); border-radius:8px 8px 0 0;
}
.el-issue-tab:hover { color:var(--el-text); background:var(--el-surface-2); }
.el-issue-tab.is-active { color:var(--el-accent); }
.el-issue-tab.is-active::after { content:''; position:absolute; left:10px; right:10px; bottom:-1px; height:2px; border-radius:99px; background:var(--el-accent); }
.el-issue-modal-body { overflow:auto; padding:22px; flex:1 1 auto; }
.el-issue-panel[hidden] { display:none !important; }
.el-issue-panel.is-active { display:block; }
.el-issue-context-card {
  display:flex; align-items:center; gap:12px; padding:12px 14px; margin-bottom:18px;
  border:1px solid rgba(52,82,255,.2); border-radius:12px; background:rgba(52,82,255,.06);
}
.el-issue-context-icon {
  width:36px; height:36px; display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  border-radius:10px; background:var(--el-accent); color:#fff;
}
.el-issue-context-icon svg { width:18px; height:18px; }
.el-issue-context-card > span:last-child { display:flex; flex-direction:column; gap:3px; min-width:0; }
.el-issue-context-card strong { font-size:.82rem; color:var(--el-text); }
.el-issue-context-card small { font-size:.72rem; line-height:1.4; color:var(--el-text-2); }
.el-issue-form-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:14px; }
.el-issue-field { display:flex; flex-direction:column; gap:7px; margin-bottom:15px; }
.el-issue-field > span { font-size:.78rem; font-weight:700; color:var(--el-text); }
.el-issue-field em { font-style:normal; color:var(--el-sla); }
.el-issue-field input,
.el-issue-field select,
.el-issue-field textarea {
  width:100%; box-sizing:border-box; border:1px solid var(--el-border-s); border-radius:10px;
  background:var(--el-surface); color:var(--el-text); font:400 .86rem/1.45 var(--el-font-b);
  padding:10px 12px; outline:none; transition:border-color var(--el-t),box-shadow var(--el-t),background var(--el-t);
}
.el-issue-field select { min-height:42px; }
.el-issue-field textarea { resize:vertical; min-height:132px; }
.el-issue-field input:focus,
.el-issue-field select:focus,
.el-issue-field textarea:focus { border-color:var(--el-accent); box-shadow:0 0 0 3px rgba(52,82,255,.12); }
.el-issue-dropzone {
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:170px; padding:22px; border:1.5px dashed var(--el-border-s); border-radius:14px;
  background:var(--el-surface-2); text-align:center; cursor:pointer; transition:border-color var(--el-t),background var(--el-t),transform var(--el-t);
}
.el-issue-dropzone:hover,.el-issue-dropzone.is-dragging { border-color:var(--el-accent); background:rgba(52,82,255,.06); transform:translateY(-1px); }
.el-issue-dropzone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.el-issue-upload-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:12px; color:var(--el-accent); background:rgba(52,82,255,.1); margin-bottom:10px; }
.el-issue-upload-icon svg { width:21px; height:21px; }
.el-issue-dropzone strong { color:var(--el-text); font-size:.9rem; }
.el-issue-dropzone > span:not(.el-issue-upload-icon) { color:var(--el-text-2); font-size:.78rem; margin-top:3px; }
.el-issue-dropzone small { color:var(--el-text-m); font-size:.69rem; margin-top:8px; }
.el-issue-selected-files { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.el-issue-selected-file { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 10px; border:1px solid var(--el-border); border-radius:10px; background:var(--el-surface); }
.el-issue-selected-file > span { display:flex; align-items:center; gap:8px; min-width:0; }
.el-issue-selected-file svg { width:16px; height:16px; color:var(--el-accent); flex:0 0 auto; }
.el-issue-selected-file > span > span { display:flex; flex-direction:column; min-width:0; }
.el-issue-selected-file strong { font-size:.72rem; color:var(--el-text); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.el-issue-selected-file small { font-size:.64rem; color:var(--el-text-m); }
.el-issue-remove-file { border:0; background:transparent; color:var(--el-text-m); cursor:pointer; width:26px; height:26px; border-radius:7px; font-size:19px; line-height:1; flex:0 0 auto; }
.el-issue-remove-file:hover { background:var(--el-sla-bg); color:var(--el-sla); }
.el-issue-form-message { min-height:22px; margin-top:12px; font-size:.78rem; font-weight:700; }
.el-issue-form-message.is-error { color:var(--el-sla); }
.el-issue-form-message.is-success { color:var(--el-solved); padding:10px 12px; border:1px solid var(--el-solved-b); border-radius:10px; background:var(--el-solved-bg); }
.el-issue-submit-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:8px; padding-top:16px; border-top:1px solid var(--el-border); }
.el-issue-submit-row > span { max-width:390px; color:var(--el-text-m); font-size:.7rem; line-height:1.45; }
.el-issue-submit-row .el-btn { display:inline-flex; align-items:center; gap:7px; flex:0 0 auto; }
.el-issue-submit-row .el-btn svg { width:15px; height:15px; }
.el-issue-spinner { display:inline-block; width:15px; height:15px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:elIssueSpin .7s linear infinite; vertical-align:-3px; }
@keyframes elIssueSpin { to { transform:rotate(360deg); } }
.el-my-issues-loading { display:flex; align-items:center; justify-content:center; gap:9px; min-height:180px; color:var(--el-text-m); font-size:.8rem; }
.el-issue-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:230px; padding:30px; border:1px dashed var(--el-border-s); border-radius:14px; color:var(--el-text-m); }
.el-issue-empty svg { width:34px; height:34px; margin-bottom:10px; color:var(--el-accent); }
.el-issue-empty strong { color:var(--el-text); margin-bottom:5px; }
.el-issue-empty span { max-width:360px; font-size:.78rem; line-height:1.5; }
.el-my-issues-list { display:flex; flex-direction:column; gap:10px; }
.el-my-issue { border:1px solid var(--el-border); border-radius:13px; background:var(--el-surface); overflow:hidden; }
.el-my-issue.is-open { border-color:rgba(52,82,255,.3); box-shadow:0 0 0 3px rgba(52,82,255,.06); }
.el-my-issue-head { width:100%; border:0; background:transparent; color:inherit; cursor:pointer; display:grid; grid-template-columns:minmax(0,1fr) auto 20px; gap:12px; align-items:center; padding:14px 15px; text-align:left; }
.el-my-issue-head:hover { background:var(--el-surface-2); }
.el-my-issue-main { display:flex; flex-direction:column; gap:4px; min-width:0; }
.el-my-issue-title { font-size:.83rem; font-weight:800; color:var(--el-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.el-my-issue-meta { font-size:.68rem; color:var(--el-text-m); }
.el-my-issue-chevron { width:16px; height:16px; color:var(--el-text-m); transition:transform var(--el-t); }
.el-my-issue.is-open .el-my-issue-chevron { transform:rotate(180deg); }
.el-issue-status { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; border:1px solid; font-size:.64rem; font-weight:800; white-space:nowrap; }
.el-issue-status.is-new { color:#3452ff; background:#eef2ff; border-color:#c7d2fe; }
.el-issue-status.is-in_progress { color:#c2410c; background:#fff7ed; border-color:#fed7aa; }
.el-issue-status.is-resolved { color:#15803d; background:#ecfdf5; border-color:#bbf7d0; }
.el-issue-status.is-rejected { color:#b91c1c; background:#fef2f2; border-color:#fecaca; }
.el-my-issue-body { padding:0 15px 16px; border-top:1px solid var(--el-border); }
.el-my-issue-section { padding-top:14px; }
.el-my-issue-section > strong { display:block; margin-bottom:7px; color:var(--el-text); font-size:.74rem; text-transform:uppercase; letter-spacing:.05em; }
.el-my-issue-section p { margin:0; color:var(--el-text-2); font-size:.79rem; line-height:1.6; }
.el-my-issue-context { display:flex; align-items:center; gap:7px; margin-top:13px; padding:9px 10px; border-radius:9px; background:var(--el-surface-2); color:var(--el-text-2); font-size:.72rem; }
.el-my-issue-context svg { width:14px; height:14px; color:var(--el-accent); }
.el-issue-attachment-links { display:flex; flex-wrap:wrap; gap:7px; }
.el-issue-attachment-links a { display:inline-flex; align-items:center; gap:6px; padding:7px 9px; border:1px solid var(--el-border); border-radius:8px; color:var(--el-text-2); text-decoration:none; font-size:.7rem; }
.el-issue-attachment-links a:hover { border-color:var(--el-accent); color:var(--el-accent); }
.el-issue-attachment-links svg { width:13px; height:13px; }
.el-issue-muted { color:var(--el-text-m) !important; }
.el-issue-timeline { display:flex; flex-direction:column; gap:9px; }
.el-issue-update { padding:11px 12px; border:1px solid var(--el-border); border-radius:10px; background:var(--el-surface-2); }
.el-issue-update-head { display:flex; align-items:center; justify-content:space-between; gap:9px; margin-bottom:7px; color:var(--el-text-m); font-size:.66rem; }
.el-issue-update p { color:var(--el-text-2); }
[data-el-theme="dark"] #el-issue-overlay .el-issue-status.is-new { color:#a5b4fc; background:rgba(52,82,255,.14); border-color:rgba(129,140,248,.35); }
[data-el-theme="dark"] #el-issue-overlay .el-issue-status.is-in_progress { color:#fdba74; background:rgba(234,88,12,.13); border-color:rgba(251,146,60,.32); }
[data-el-theme="dark"] #el-issue-overlay .el-issue-status.is-resolved { color:#86efac; background:rgba(22,163,74,.13); border-color:rgba(74,222,128,.32); }
[data-el-theme="dark"] #el-issue-overlay .el-issue-status.is-rejected { color:#fca5a5; background:rgba(220,38,38,.13); border-color:rgba(248,113,113,.32); }
@media(max-width:700px) {
  #el-issue-overlay { padding:8px; align-items:flex-end; }
  .el-issue-modal { width:100%; max-width:none; max-height:calc(100vh - 16px); border-radius:18px 18px 10px 10px; }
  .el-issue-modal-body { padding:16px; }
  .el-issue-form-grid { grid-template-columns:1fr; gap:0; }
  .el-issue-selected-files { grid-template-columns:1fr; }
  .el-issue-submit-row { align-items:stretch; flex-direction:column; }
  .el-issue-submit-row .el-btn { width:100%; justify-content:center; }
  .el-my-issue-head { grid-template-columns:minmax(0,1fr) auto 18px; padding:13px 12px; gap:8px; }
  .el-my-issue-title { font-size:.78rem; }
}

/* ── DriveHub 9.14: guide through problem reporting ──────── */
body.el-guide-open #el-issue-overlay {
  z-index:2147483643 !important;
}
body.el-guide-open #el-issue-overlay .el-issue-modal {
  box-shadow:0 24px 70px rgba(0,0,0,.22);
}


/* DriveHub 9.15.0 — live team availability */
.el-team-status-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.el-team-status-head h3{margin:0 0 5px;font-size:1.05rem;color:var(--el-text)}
.el-team-status-head p{margin:0;color:var(--el-text-m);font-size:.84rem;max-width:680px}
.el-team-live{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--el-border);border-radius:999px;padding:7px 11px;font-size:.76rem;font-weight:750;color:var(--el-text);background:var(--el-surface)}
.el-team-live span{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12);animation:elTeamPulse 1.8s infinite}
@keyframes elTeamPulse{0%,100%{opacity:1}50%{opacity:.45}}
.el-team-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.el-team-status-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 15px;border:1px solid var(--el-border);border-radius:14px;background:var(--el-surface);min-width:0}
.el-team-avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:800;background:var(--el-surface-2);color:var(--el-text)}
.el-team-person{display:flex;flex-direction:column;min-width:0}.el-team-person strong{font-size:.88rem;color:var(--el-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-team-person span{font-size:.73rem;color:var(--el-text-m);margin-top:2px}
.el-team-state{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.el-team-state-badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:5px 9px;font-size:.73rem;font-weight:800}.el-team-state-badge i{width:7px;height:7px;border-radius:50%;background:currentColor}.el-team-state small{font-size:.68rem;color:var(--el-text-m);white-space:nowrap}
.el-team-status-card.is-available .el-team-state-badge{background:rgba(34,197,94,.12);color:#15803d}.el-team-status-card.is-unavailable .el-team-state-badge{background:rgba(239,68,68,.12);color:#b91c1c}
.el-team-status-card.is-unavailable{border-color:rgba(239,68,68,.26)}
.el-team-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px;padding:11px 13px;border:1px solid var(--el-border);border-radius:12px;background:var(--el-surface-2);font-size:.78rem;color:var(--el-text-m)}.el-team-summary strong{color:var(--el-text);font-size:.9rem}.el-team-summary small{margin-left:auto}.el-team-empty{padding:30px;text-align:center;border:1px dashed var(--el-border);border-radius:14px;color:var(--el-text-m)}
@media(max-width:760px){.el-team-status-grid{grid-template-columns:1fr}.el-team-status-head{align-items:center}.el-team-status-card{grid-template-columns:38px minmax(0,1fr)}.el-team-avatar{width:38px;height:38px}.el-team-state{grid-column:2;text-align:left;align-items:flex-start}.el-team-summary small{width:100%;margin-left:0}}

.el-team-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}

/* ── Teamstatus: frontend tilgængelighedslog ─────────────── */
.el-team-view-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;margin-bottom:18px;border:1px solid var(--el-border);border-radius:12px;background:var(--el-surface-2)}
.el-team-view-tab{appearance:none;border:0;background:transparent;color:var(--el-text-m);display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:8px;font:inherit;font-size:.78rem;font-weight:750;cursor:pointer;transition:background .16s ease,color .16s ease}
.el-team-view-tab svg{width:15px;height:15px;stroke-width:1.9}
.el-team-view-tab:hover{color:var(--el-text);background:var(--el-surface)}
.el-team-view-tab.is-active{color:var(--el-accent);background:var(--el-surface);box-shadow:0 0 0 1px var(--el-border)}
.el-team-view-panel[hidden]{display:none!important}
.el-team-view-panel.is-active{display:block}
.el-team-log-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.el-team-log-head h3{margin:0 0 5px;font-size:1.05rem;color:var(--el-text)}
.el-team-log-head p{margin:0;color:var(--el-text-m);font-size:.84rem;max-width:720px}
.el-team-log-count{display:inline-flex;white-space:nowrap;border:1px solid var(--el-border);border-radius:999px;background:var(--el-surface);padding:6px 10px;color:var(--el-text-m);font-size:.73rem;font-weight:750}
.el-team-log-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding:13px;border:1px solid var(--el-border);border-radius:12px;background:var(--el-surface-2)}
.el-team-log-filter label{display:flex;flex-direction:column;gap:5px;min-width:210px}
.el-team-log-filter label span{font-size:.72rem;font-weight:750;color:var(--el-text)}
.el-team-log-filter select{width:100%;min-height:38px;border:1px solid var(--el-border);border-radius:8px;background:var(--el-surface);color:var(--el-text);padding:7px 32px 7px 10px;font:inherit;font-size:.8rem}
.el-team-log-table-wrap{overflow:auto;border:1px solid var(--el-border);border-radius:13px;background:var(--el-surface)}
.el-team-log-table{width:100%;border-collapse:collapse;min-width:880px;font-size:.78rem;color:var(--el-text)}
.el-team-log-table th{padding:11px 12px;text-align:left;background:var(--el-surface-2);border-bottom:1px solid var(--el-border);color:var(--el-text-m);font-size:.68rem;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}
.el-team-log-table td{padding:12px;border-bottom:1px solid var(--el-border);vertical-align:middle;white-space:nowrap}
.el-team-log-table tr:last-child td{border-bottom:0}
.el-team-log-table td:first-child strong{display:block;color:var(--el-text);font-size:.8rem}
.el-team-log-table td:first-child small{display:block;margin-top:2px;color:var(--el-text-m);font-size:.68rem}
.el-team-log-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:.69rem;font-weight:800}
.el-team-log-status.is-active{background:rgba(239,68,68,.12);color:#b91c1c}
.el-team-log-status.is-closed{background:var(--el-surface-2);color:var(--el-text-m)}
.el-team-log-empty{text-align:center!important;color:var(--el-text-m);padding:30px!important}
.el-team-log-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;color:var(--el-text-m);font-size:.76rem}
#el-team-availability-log-wrap{position:relative;min-height:130px}
#el-team-availability-log-wrap.is-loading:after{content:"Opdaterer log…";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:13px;background:rgba(255,255,255,.76);backdrop-filter:blur(2px);color:var(--el-text);font-size:.8rem;font-weight:750;z-index:4}
.el-db.dark #el-team-availability-log-wrap.is-loading:after{background:rgba(10,14,22,.76)}
@media(max-width:760px){
  .el-team-view-tabs{display:flex;width:100%;max-width:100%;overflow-x:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch}.el-team-view-tab{flex:0 0 auto;justify-content:center;white-space:nowrap}
  .el-team-log-head{flex-direction:column}.el-team-log-filter{display:grid;grid-template-columns:1fr}.el-team-log-filter label{min-width:0}
  .el-team-log-table-wrap{overflow:visible;border:0;background:transparent}
  .el-team-log-table{display:block;min-width:0}.el-team-log-table thead{display:none}.el-team-log-table tbody{display:grid;gap:10px}.el-team-log-table tr{display:grid;gap:0;border:1px solid var(--el-border);border-radius:12px;background:var(--el-surface);overflow:hidden}.el-team-log-table tr.el-team-log-empty-row{display:block}
  .el-team-log-table td{display:grid;grid-template-columns:minmax(105px,.7fr) minmax(0,1.3fr);gap:10px;align-items:center;padding:9px 11px;border-bottom:1px solid var(--el-border);white-space:normal;text-align:right}.el-team-log-table td:before{content:attr(data-label);color:var(--el-text-m);font-size:.67rem;font-weight:750;text-align:left;text-transform:uppercase;letter-spacing:.03em}.el-team-log-table td:first-child strong,.el-team-log-table td:first-child small{text-align:right}.el-team-log-table td:last-child{border-bottom:0}.el-team-log-empty{display:block!important;text-align:center!important}.el-team-log-empty:before{display:none}
  .el-team-log-pagination{justify-content:space-between}
}
.el-team-log-initial{padding:34px;text-align:center;border:1px dashed var(--el-border);border-radius:13px;color:var(--el-text-m);background:var(--el-surface)}


/* ── LEAD SOURCE IN ACTION TIMELINE ─────────────────────── */
.eld-action-source {
  margin-top:8px; padding:9px 11px; border:1px solid var(--el-border);
  border-radius:10px; background:var(--el-surface-2); display:grid;
  grid-template-columns:auto minmax(0,1fr); column-gap:7px; row-gap:2px;
  align-items:baseline; font-size:0.78rem;
}
.eld-action-source>span { color:var(--el-text-m); font-weight:600; }
.eld-action-source>a { color:var(--el-text); font-weight:650; text-decoration:none; overflow-wrap:anywhere; }
.eld-action-source>a:hover { text-decoration:underline; }
.eld-action-source>small { grid-column:2; color:var(--el-text-m); font-size:0.7rem; overflow-wrap:anywhere; }

/* ── EMPLOYEE PRIVACY INFORMATION ──────────────────────── */
/* The policy is intentionally part of the page flow, not a centered card. */
.el-privacy-page { width:100%; max-width:980px; margin:0; }
.el-privacy-page-content { width:100%; }
.el-privacy-page-body { color:var(--el-text-2); font-size:0.9rem; line-height:1.7; }
.el-privacy-page-body h3 { color:var(--el-text); margin:24px 0 8px; font-size:1rem; }
.el-privacy-page-body p { margin:0 0 12px; }
.el-privacy-ack-status { margin-top:24px; padding:0; border:0; }
.el-privacy-ack-ok { display:flex; align-items:center; gap:8px; color:#15803d; font-size:0.84rem; font-weight:650; }
.el-privacy-ack-ok svg { width:17px; height:17px; flex:0 0 auto; }
.el-privacy-update-note { display:flex; align-items:center; gap:8px; margin:0 0 12px; color:#b45309; font-size:0.82rem; font-weight:700; }
.el-privacy-update-note svg { width:16px; height:16px; flex:0 0 auto; }

/* Banner follows the same horizontal content bounds as .el-main. */
.el-employee-privacy-banner {
  position:fixed; left:calc(var(--el-sw) + 24px); right:24px; bottom:24px; z-index:1200;
  display:grid; grid-template-columns:38px minmax(0,1fr) minmax(300px,42%); align-items:center; gap:14px;
  padding:14px 16px; border:1px solid var(--el-border-s); border-radius:14px;
  background:var(--el-surface); box-shadow:0 18px 45px rgba(0,0,0,.14);
}
.el-db[data-current-view="privacy"] .el-employee-privacy-banner { display:none; }
.el-employee-privacy-banner-icon { width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:var(--el-surface-2); color:var(--el-text); }
.el-employee-privacy-banner-icon svg { width:19px; height:19px; }
.el-employee-privacy-banner-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.el-employee-privacy-banner-copy strong { color:var(--el-text); font-size:0.86rem; }
.el-employee-privacy-banner-copy>span:not(.el-employee-privacy-banner-updated) { color:var(--el-text-m); font-size:0.76rem; line-height:1.45; }
.el-employee-privacy-banner-updated { display:flex; align-items:center; gap:5px; color:#b45309; font-size:0.72rem; line-height:1.35; font-weight:750; }
.el-employee-privacy-banner-updated svg { width:13px; height:13px; flex:0 0 auto; }
.el-employee-privacy-banner-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; align-items:stretch; }
.el-employee-privacy-banner-actions .el-btn { width:100%; min-width:0; min-height:40px; white-space:normal; text-align:center; justify-content:center; line-height:1.25; }
@media (max-width:900px) {
  .el-kanban-mine { grid-template-columns:1fr; }
  .el-employee-privacy-banner { left:24px; right:24px; bottom:88px; grid-template-columns:34px minmax(0,1fr); gap:10px; padding:12px; }
  .el-employee-privacy-banner-actions { grid-column:1/-1; }
}
@media (max-width:640px) {
  .el-employee-privacy-banner { left:16px; right:16px; bottom:82px; }
}
@media (max-width:520px) {
  .el-employee-privacy-banner-actions { grid-template-columns:1fr; }
}

/* ══════════════════════════════════════════════════════════
   DriveHub 9.37.0 — mobile UIX hardening
   Goal: no viewport overflow, touch-safe controls and predictable
   single-column behaviour across the entire employee dashboard.
   ══════════════════════════════════════════════════════════ */

/* Desktop-only custom page notice. It is switched on at the mobile
   breakpoint below. wp_is_mobile() also prevents heavy page-builder
   content from being rendered at all for real mobile requests. */
.el-mobile-desktop-only-notice { display:none; }
.el-view-custom-page.el-custom-page-content-omitted .el-mobile-desktop-only-notice { display:flex; align-items:flex-start; gap:14px; }
.el-mobile-desktop-only-icon {
  width:46px; height:46px; flex:0 0 46px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:var(--el-surface-2); border:1px solid var(--el-border); color:var(--el-text);
}
.el-mobile-desktop-only-icon svg { width:22px; height:22px; }
.el-hub-drawer-item-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.el-hub-desktop-badge {
  margin-left:auto; flex:0 0 auto; border:1px solid var(--el-border);
  border-radius:999px; padding:3px 7px; color:var(--el-text-m);
  background:var(--el-surface-2); font-size:.62rem; font-weight:800; letter-spacing:.02em;
}
.el-bnav-label { display:block; min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width:900px) {
  /* Shell and generic containment */
  .el-db {
    width:100%; max-width:100%;
    height:100vh; height:100dvh;
    min-height:0; overflow:hidden;
  }
  .el-main,
  .el-main-hdr,
  .el-view,
  .el-kanban,
  .el-kcol,
  .el-kcards,
  .el-card,
  .el-stats-grid,
  .el-profile-wrap,
  .el-task-wrap,
  .el-help-wrap,
  .el-team-view-panel,
  .el-privacy-page,
  .el-view-custom-page,
  .el-custom-page-body,
  .el-custom-page-desktop-content {
    min-width:0; max-width:100%;
  }
  .el-main {
    width:100%;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:none;
    padding-bottom:calc(84px + env(safe-area-inset-bottom));
  }

  /* Header: preserve actions, remove duplicate mobile controls and long user copy. */
  .el-topbar { width:100%; min-width:0; padding-left:12px; padding-right:12px; }
  .el-topbar-logo { min-width:0; max-width:132px; padding-left:0; padding-right:8px; overflow:hidden; }
  .el-logo { min-width:0; max-width:100%; overflow:hidden; }
  .el-logo > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .el-logo-img { max-width:118px !important; width:auto !important; height:auto; object-fit:contain; }
  .el-topbar-mid { min-width:0; overflow:hidden; }
  .el-seasonal-preview-badge { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .el-topbar-right { min-width:0; flex:0 0 auto; gap:3px; }
  .el-topbar-user { padding:4px; gap:0; }
  .el-topbar-user > div:last-child { display:none; }
  .el-divv { display:none; }
  #el-btn-help { display:none; } /* guide remains in bottom navigation */

  /* Main title/search become a compact mobile header. */
  .el-main-hdr { align-items:stretch; gap:10px; }
  .el-main-hdr > div:first-child { min-width:0; }
  .el-page-title,
  .el-page-sub { overflow-wrap:anywhere; }
  .el-search { width:100%; max-width:none; flex:1 1 100%; height:42px; }
  .el-search input { width:100%; min-width:0; font-size:16px; }

  /* Bottom navigation remains inside the viewport even when all modules exist. */
  .el-bottom-nav {
    width:100%; max-width:100%;
    padding-left:max(2px, env(safe-area-inset-left));
    padding-right:max(2px, env(safe-area-inset-right));
  }
  .el-bnav-item { min-width:0; overflow:hidden; padding-left:2px; padding-right:2px; touch-action:manipulation; }
  .el-bnav-item svg { flex:0 0 auto; }
  .el-bnav-badge { right:calc(50% - 20px); }

  /* Touch targets */
  .el-btn,
  .e-btn,
  .el-icon-btn,
  .el-theme-btn,
  .el-guide-trigger,
  .el-hub-drawer-item { min-height:44px; }
  .el-icon-btn,
  .el-theme-btn,
  .el-guide-trigger { min-width:44px; width:44px; }

  /* Forms inside the employee dashboard: prevent iOS zoom and clipped controls. */
  .el-db input,
  .el-db select,
  .el-db textarea,
  .el-overlay input,
  .el-overlay select,
  .el-overlay textarea,
  .el-modal-overlay input,
  .el-modal-overlay select,
  .el-modal-overlay textarea {
    max-width:100%; min-width:0; font-size:16px;
  }

  /* Custom pages — page builder safe containment. */
  .el-view-custom-page {
    width:100%; max-width:100%; overflow-x:hidden;
    min-height:0; height:100%;
    padding-bottom:calc(88px + env(safe-area-inset-bottom));
  }
  .el-custom-page-body,
  .el-custom-page-body .vc_row,
  .el-custom-page-body .vc_row-fluid,
  .el-custom-page-body .vc_column_container,
  .el-custom-page-body .vc_column-inner,
  .el-custom-page-body .wpb_wrapper,
  .el-custom-page-body .wpb_content_element,
  .el-custom-page-body .elementor,
  .el-custom-page-body .elementor-section,
  .el-custom-page-body .elementor-container,
  .el-custom-page-body .elementor-column,
  .el-custom-page-body .elementor-widget-wrap {
    width:100%; max-width:100%; min-width:0; box-sizing:border-box;
  }
  .el-custom-page-body img,
  .el-custom-page-body video,
  .el-custom-page-body canvas,
  .el-custom-page-body svg,
  .el-custom-page-body iframe,
  .el-custom-page-body object,
  .el-custom-page-body embed { max-width:100% !important; height:auto; }
  .el-custom-page-body iframe { width:100% !important; }
  .el-custom-page-body table { display:block; width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .el-custom-page-body pre,
  .el-custom-page-body code { max-width:100%; overflow-wrap:anywhere; white-space:pre-wrap; }
  .el-custom-page-body [style*="width"] { max-width:100% !important; }
  .el-custom-page-body a,
  .el-custom-page-body p,
  .el-custom-page-body li,
  .el-custom-page-body td,
  .el-custom-page-body th { overflow-wrap:anywhere; word-break:normal; }

  .el-view-custom-page.el-custom-page-desktop-only .el-mobile-desktop-only-notice {
    display:flex; align-items:flex-start; gap:14px;
    width:100%; max-width:620px; padding:18px;
    border:1px solid var(--el-border); border-radius:16px;
    background:var(--el-surface); color:var(--el-text);
  }
  .el-view-custom-page.el-custom-page-desktop-only .el-mobile-desktop-only-notice strong {
    display:block; margin:1px 0 6px; font-size:1rem; line-height:1.3;
  }
  .el-view-custom-page.el-custom-page-desktop-only .el-mobile-desktop-only-notice p {
    margin:0; color:var(--el-text-2); font-size:.84rem; line-height:1.55;
  }
  .el-view-custom-page.el-custom-page-desktop-only .el-custom-page-desktop-content { display:none !important; }

  /* Hub drawer must never be taller than the visible mobile viewport. */
  .el-hub-drawer-inner {
    max-height:min(78vh, calc(100dvh - 70px)); overflow-y:auto; overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:640px) {
  .el-main { padding:14px 14px calc(84px + env(safe-area-inset-bottom)); gap:16px; }
  .el-page-title { font-size:1.22rem; line-height:1.2; }
  .el-page-sub { font-size:.76rem; line-height:1.35; }

  /* Header compaction for 320–430px phones. */
  .el-topbar { height:54px; gap:4px; }
  .el-topbar-logo { max-width:105px; }
  .el-logo-img { max-width:96px !important; max-height:26px !important; }
  .el-topbar-user .el-avatar { width:30px; height:30px; }
  #el-btn-report-problem,
  .el-theme-btn,
  .el-logout { width:36px; min-width:36px; height:36px; min-height:36px; padding:0; justify-content:center; }
  .el-logout { font-size:0; }
  .el-logout svg { width:16px; height:16px; }

  /* Stats switch to 2×2 on phones instead of squeezing four labels. */
  .el-mob-bar { width:100%; padding:12px; border-radius:16px; }
  .el-mob-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .el-mob-stat:nth-child(2) { border-right:0; }
  .el-mob-stat:nth-child(-n+2) { border-bottom:1px solid var(--el-border); }
  .el-mob-num { font-size:1.08rem; }
  .el-mob-lbl { font-size:.64rem; overflow-wrap:anywhere; }

  /* Lead cards */
  .el-kcol { border-radius:16px; }
  .el-kcol-hdr { padding:12px 13px; }
  .el-kcards { padding:9px; }
  .el-card { padding:12px; }
  .el-card-top { min-width:0; }
  .el-card-form,
  .el-card-naam,
  .el-card-field { min-width:0; overflow-wrap:anywhere; }
  .el-card-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .el-card-actions .el-btn { width:100%; justify-content:center; min-width:0; white-space:normal; text-align:center; }

  /* Modals: true viewport-safe bottom sheets. */
  .el-overlay,
  .el-modal-overlay { width:100%; max-width:100%; padding:0; overflow:hidden; }
  .el-modal,
  #el-detail-overlay .el-modal,
  #el-transfer-overlay .el-modal,
  #el-assign-overlay .el-modal,
  .el-issue-modal {
    width:100%; max-width:100%;
    max-height:94vh; max-height:94dvh;
    margin:0; border-left:0; border-right:0;
  }
  .el-modal-hdr { min-width:0; padding:12px 14px; }
  .el-modal-hdr > div { min-width:0; }
  .el-modal-title,
  .el-modal-meta { overflow-wrap:anywhere; }
  .el-modal-body { min-width:0; max-width:100%; padding:15px 14px calc(18px + env(safe-area-inset-bottom)); overflow-x:hidden; }
  .el-modal-ftr { display:grid; grid-template-columns:1fr; padding:12px 14px calc(14px + env(safe-area-inset-bottom)); }
  .el-modal-ftr .el-btn,
  .el-modal-ftr .e-btn { width:100%; justify-content:center; }
  .el-fgrid { grid-template-columns:1fr; gap:4px; }
  .el-fkey { padding-top:8px; }

  /* Lead popup action bar wraps into mobile buttons instead of horizontal overflow. */
  .eld-topbar { min-width:0; }
  .eld-topbar-left { min-width:0; width:100%; }
  .eld-topbar-right {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%; overflow:visible; padding-bottom:0; gap:7px;
  }
  .eld-topbar-right .el-btn,
  .eld-topbar-right .e-btn { width:100%; min-width:0; white-space:normal; justify-content:center; text-align:center; }
  .eld-tabs { width:100%; max-width:100%; }
  .eld-table { min-width:0; }
  .eld-row { grid-template-columns:minmax(88px,38%) minmax(0,1fr); }
  .eld-key,
  .eld-val { min-width:0; overflow-wrap:anywhere; }
  .eld-history-item { min-width:0; }
  .eld-history-names { min-width:0; overflow-wrap:anywhere; }
  .eld-history-date { white-space:normal; }
  .eld-customer-action-alert { flex-direction:column; }
  .eld-customer-action-buttons { width:100%; min-width:0; display:grid; grid-template-columns:1fr; }
  .eld-customer-action-buttons .el-btn { width:100%; justify-content:center; }

  /* Tasks become stacked cards instead of a desktop table with sideways scrolling. */
  .el-task-wrap { padding:0; border:0; box-shadow:none; background:transparent; }
  .el-task-table-wrap { overflow:visible; }
  .el-task-table { display:block; width:100%; }
  .el-task-table thead { display:none; }
  .el-task-table tbody { display:grid; gap:10px; }
  .el-task-table tr { display:grid; width:100%; min-width:0; overflow:hidden; border:1px solid var(--el-border); border-radius:14px; background:var(--el-surface); }
  .el-task-table tr.el-task-empty-row { display:block; }
  .el-task-table td {
    display:grid; grid-template-columns:minmax(86px,.72fr) minmax(0,1.28fr);
    gap:10px; align-items:center; width:100%; min-width:0;
    padding:9px 11px; white-space:normal; border-bottom:1px solid var(--el-border); text-align:right;
  }
  .el-task-table td:last-child { border-bottom:0; }
  .el-task-table td::before {
    content:attr(data-label); min-width:0; text-align:left;
    color:var(--el-text-m); font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  }
  .el-task-table td .el-btn { justify-self:end; max-width:100%; white-space:normal; }
  .el-task-empty { display:block !important; text-align:center !important; border:0 !important; }
  .el-task-empty::before { display:none; }

  /* Profile/settings */
  .el-profile-wrap { width:100%; max-width:none; gap:14px; }
  .el-profile-section { padding:16px; border-radius:14px; }
  .el-profile-row { align-items:flex-start; gap:10px; flex-wrap:wrap; }
  .el-profile-fields .el-input { max-width:none; }
  .el-profile-section .el-btn,
  .el-profile-section button.el-btn { width:100%; min-width:0 !important; justify-content:center; }

  /* Help/Team/Privacy */
  .el-help-tabs { display:grid; grid-template-columns:1fr; width:100%; }
  .el-help-quicklinks { display:grid; grid-template-columns:1fr; }
  .el-help-quicklinks .el-btn { width:100%; justify-content:center; }
  .el-team-head-actions { width:100%; justify-content:stretch; }
  .el-team-head-actions .el-btn { flex:1 1 140px; justify-content:center; }
  .el-team-summary { gap:8px; }
  .el-privacy-page-body { font-size:.88rem; line-height:1.65; }

  /* Privacy banner must fit between page edge and bottom navigation. */
  .el-employee-privacy-banner {
    width:auto; max-width:none; left:12px; right:12px;
    bottom:calc(76px + env(safe-area-inset-bottom));
    grid-template-columns:32px minmax(0,1fr); padding:11px; gap:9px;
    max-height:calc(100dvh - 110px); overflow:auto;
  }
  .el-employee-privacy-banner-actions { grid-template-columns:1fr; }

  /* Custom pages */
  .el-view-custom-page { padding:14px 14px calc(84px + env(safe-area-inset-bottom)); }
  .el-view-custom-page.el-page-header-hidden { padding-top:0; }
  .el-page-hdr { gap:10px; margin-bottom:16px; padding-bottom:14px; }
  .el-page-icon { width:36px; height:36px; }
  .el-page-hdr .el-page-title { font-size:1.2rem; overflow-wrap:anywhere; }
  .el-custom-page-body .vc_row > .wpb_column,
  .el-custom-page-body .vc_row > .vc_column_container,
  .el-custom-page-body .elementor-column { width:100% !important; max-width:100% !important; float:none !important; }

  .el-view-custom-page.el-custom-page-desktop-only .el-mobile-desktop-only-notice {
    padding:16px; border-radius:14px;
  }

  /* Notification drawer: use container width, never 100vw (Safari scrollbar issue). */
  #el-notif { width:100%; max-width:100%; left:0; right:0; top:54px; }
  .el-notif-hdr { min-width:0; gap:8px; }
  .el-notif-hdr-actions { min-width:0; }
  .el-notif-mark-all { min-width:0; white-space:normal; text-align:center; }
  .el-ni-title,
  .el-ni-sub,
  .el-ni-full { overflow-wrap:anywhere; }

  /* Bottom navigation: equal-width touch targets and consistent foreground colour. */
  .el-bottom-nav { gap:0; }
  .el-bnav-item {
    flex:1 1 0;
    width:0;
    min-width:0;
    font-size:.58rem;
    gap:2px;
    color:#050607;
  }
  .el-bnav-item.active { color:#050607; }
  .el-bnav-item svg,
  .el-bnav-item .el-bnav-label { color:inherit; }
  .el-bnav-item svg { stroke:currentColor; }
  .el-bnav-item .el-bnav-dot { background:currentColor; }
  .el-bnav-label { line-height:1.1; }
  [data-el-theme="dark"] .el-bottom-nav .el-bnav-item,
  [data-el-theme="dark"] .el-bottom-nav .el-bnav-item.active { color:#fff; }
}

@media (max-width:380px) {
  .el-main { padding-left:10px; padding-right:10px; }
  .el-topbar { padding-left:8px; padding-right:8px; }
  .el-topbar-logo { max-width:88px; }
  .el-logo-img { max-width:82px !important; }
  .el-topbar-user { display:none; }
  .el-bnav-item { font-size:.54rem; }
  .el-bnav-item svg { width:17px; height:17px; }
  .el-card-actions,
  .eld-topbar-right { grid-template-columns:1fr; }
  .eld-row { grid-template-columns:1fr; }
  .eld-key { border-bottom:1px solid var(--el-border); }
  .el-task-table td { grid-template-columns:minmax(76px,.65fr) minmax(0,1.35fr); }
  .el-mobile-desktop-only-notice { flex-direction:column; }
}

@media (max-width:640px) {
  .el-avail-row,
  .el-stats-reset-user { flex-wrap:wrap; gap:8px; align-items:flex-start; }
  .el-vac-period-row { flex-wrap:wrap; align-items:stretch; }
  .el-vac-period-row .el-input-date { width:100%; min-width:0; }
  .el-vac-period-row .el-vac-sep { display:none; }
  .el-issue-modal { max-height:calc(100dvh - 8px); }
  .el-issue-update-head { flex-wrap:wrap; align-items:flex-start; }
  .el-my-issue-context { align-items:flex-start; overflow-wrap:anywhere; }
  .el-issue-attachment-links a { max-width:100%; overflow-wrap:anywhere; }
}


/* ── DriveHub 9.37.1 — Team & statistik mobile refinement ───────────── */
@media (max-width:900px) {
  /* Statistik og tilgængelighed har egne dedikerede mobilvisninger. */
  .el-mob-bar { display:none !important; }

  /* Team navigation must behave like touch buttons, not a compressed tab strip. */
  .el-team-view-tabs {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    max-width:100%;
    gap:8px;
    padding:0;
    margin-bottom:18px;
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .el-team-view-tab {
    min-width:0;
    min-height:58px;
    width:100%;
    padding:9px 7px;
    border:1px solid var(--el-border);
    border-radius:12px;
    background:var(--el-surface-2);
    color:var(--el-text-m);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    white-space:normal;
    text-align:center;
    line-height:1.15;
    font-size:.7rem;
    font-weight:780;
    box-shadow:none;
  }
  .el-team-view-tab svg { width:18px; height:18px; flex:0 0 auto; }
  .el-team-view-tab.is-active {
    color:var(--el-accent);
    background:var(--el-surface);
    border-color:var(--el-accent);
    box-shadow:0 4px 14px rgba(0,0,0,.06);
  }

  /* Team statistics are real mobile cards with explicit labels. */
  #el-view-statistik .el-task-wrap { margin-top:14px !important; }
  #el-view-statistik .el-task-wrap > .el-profile-lbl { margin-bottom:4px; }
  #el-view-statistik .el-task-wrap > p { margin-bottom:14px !important; line-height:1.5; }
  #el-view-statistik .el-team-stats-row {
    border-radius:16px;
    box-shadow:var(--el-shadow-sm);
  }
  #el-view-statistik .el-team-stats-row td:first-child {
    display:block;
    padding:13px 12px;
    text-align:left;
    background:var(--el-surface-2);
  }
  #el-view-statistik .el-team-stats-row td:first-child::before { display:none; }
  #el-view-statistik .el-team-stats-row td:first-child strong {
    display:block;
    font-size:.92rem;
    line-height:1.3;
    overflow-wrap:anywhere;
  }
  #el-view-statistik .el-team-stats-row td:not(:first-child) {
    grid-template-columns:minmax(112px,.9fr) minmax(0,1.1fr);
    min-height:42px;
  }
}

@media (max-width:420px) {
  .el-team-view-tab { min-height:62px; padding:8px 5px; font-size:.66rem; }
  .el-team-view-tab svg { width:17px; height:17px; }
}

/* ── DriveHub 9.37.3 — mobile bottom navigation optical rhythm ───────── */
@media (max-width:900px) {
  .el-bottom-nav {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(0,1fr);
    align-items:stretch;
    gap:0;
  }

  .el-bottom-nav .el-bnav-item {
    position:relative;
    width:100%;
    min-width:0;
    min-height:64px;
    margin:0;
    padding:7px 2px 10px;
    box-sizing:border-box;
    display:grid;
    grid-template-rows:24px 14px;
    align-content:center;
    justify-items:center;
    row-gap:4px;
    overflow:visible;
    text-align:center;
  }

  .el-bottom-nav .el-bnav-item > svg {
    display:block;
    width:22px !important;
    height:22px !important;
    margin:1px auto 0;
    align-self:center;
    justify-self:center;
  }

  .el-bottom-nav .el-bnav-label {
    display:block;
    width:100%;
    height:14px;
    min-width:0;
    margin:0;
    padding:0 1px;
    box-sizing:border-box;
    line-height:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:center;
  }

  .el-bottom-nav .el-bnav-dot {
    position:absolute;
    left:50%;
    bottom:4px;
    margin:0;
    transform:translateX(-50%);
  }

  .el-bottom-nav .el-bnav-badge {
    top:5px;
    right:calc(50% - 22px);
  }
}

@media (max-width:380px) {
  .el-bottom-nav .el-bnav-item {
    min-height:60px;
    padding-left:1px;
    padding-right:1px;
  }
  .el-bottom-nav .el-bnav-item > svg {
    width:20px !important;
    height:20px !important;
  }
}

/* ── Web Push profile controls ─────────────────────────── */
.el-push-profile-head {
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.el-push-profile-icon {
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--el-accent-soft, rgba(52,82,255,.10));
  color:var(--el-accent);
}
.el-push-profile-icon svg { width:20px; height:20px; }
.el-push-profile-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.el-push-profile-copy strong { color:var(--el-text); font-size:.9rem; }
.el-push-profile-copy span { color:var(--el-text-2); font-size:.77rem; line-height:1.45; }
.el-push-status {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 9px;
  border:1px solid var(--el-border);
  border-radius:999px;
  font-size:.69rem;
  font-weight:700;
  white-space:nowrap;
  color:var(--el-text-2);
  background:var(--el-surface-2);
}
.el-push-status.is-success { color:#15803d; border-color:rgba(22,163,74,.28); background:rgba(22,163,74,.08); }
.el-push-status.is-warning { color:#b45309; border-color:rgba(217,119,6,.28); background:rgba(217,119,6,.08); }
.el-push-status.is-danger { color:#b91c1c; border-color:rgba(220,38,38,.25); background:rgba(220,38,38,.07); }
.el-push-status.is-muted { color:var(--el-text-m); }
.el-push-device-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding:11px 0;
  border-top:1px solid var(--el-border);
  border-bottom:1px solid var(--el-border);
}
.el-push-device-row strong { color:var(--el-text); font-size:.8rem; text-align:right; }
.el-push-detail { margin:12px 0 0; color:var(--el-text-2); font-size:.78rem; line-height:1.5; }
.el-push-message { margin-top:12px; padding:9px 11px; border-radius:10px; font-size:.76rem; line-height:1.45; }
.el-push-message.is-success { color:#166534; background:rgba(22,163,74,.08); border:1px solid rgba(22,163,74,.2); }
.el-push-message.is-error { color:#991b1b; background:rgba(220,38,38,.07); border:1px solid rgba(220,38,38,.18); }
.el-push-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.el-push-footnote { margin:12px 0 0; color:var(--el-text-m); font-size:.7rem; line-height:1.5; }
.el-push-profile.is-busy { opacity:.78; }
@media (max-width:560px) {
  .el-push-profile-head { grid-template-columns:38px minmax(0,1fr); }
  .el-push-profile-icon { width:38px; height:38px; }
  .el-push-status { grid-column:1/-1; justify-self:start; }
  .el-push-device-row { align-items:flex-start; flex-direction:column; }
  .el-push-device-row strong { text-align:left; }
}

/* ── DriveHub 9.45 — mobile profile + confirmed slot reservation ───── */
@media (max-width:900px) {
  #el-btn-bell { display:inline-flex !important; position:relative; }
  #el-btn-help { display:none; }
}
.eld-confirmed-box-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.eld-slot-lock-btn { gap:6px; }
.eld-slot-lock-btn svg { width:14px; height:14px; }
.eld-slot-state {
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:-2px 0 14px;
  padding:9px 11px;
  border:1px solid var(--el-border);
  border-radius:var(--el-r-md);
  background:var(--el-surface-2);
  color:var(--el-text-2);
  font-size:.76rem;
  line-height:1.45;
}
.eld-slot-state svg { width:15px; height:15px; flex:0 0 auto; margin-top:1px; }
.eld-slot-state.is-locked { border-color:rgba(22,163,74,.28); color:#15803d; }
.eld-slot-state.is-released { border-color:rgba(245,158,11,.32); color:#b45309; }
[data-el-theme="dark"] .eld-slot-state.is-locked { color:#86efac; }
[data-el-theme="dark"] .eld-slot-state.is-released { color:#fcd34d; }
@media (max-width:640px) {
  .eld-confirmed-box { align-items:flex-start; }
  .eld-confirmed-box-actions { width:100%; }
  .eld-confirmed-box-actions .el-btn { flex:1 1 150px; justify-content:center; }
}

/* ── DriveHub 9.46 — mobile bottom navigation equal spacing ───────── */
@media (max-width:900px) {
  .el-bottom-nav {
    grid-template-columns:repeat(var(--el-bnav-count, 7), minmax(0, 1fr));
    grid-auto-flow:row;
    grid-auto-columns:unset;
    justify-content:stretch;
    padding-left:max(6px, env(safe-area-inset-left));
    padding-right:max(6px, env(safe-area-inset-right));
  }

  .el-bottom-nav .el-bnav-item {
    width:auto;
    max-width:none;
    min-width:0;
    justify-self:stretch;
    padding-left:2px;
    padding-right:2px;
  }

  .el-bottom-nav .el-bnav-item > svg,
  .el-bottom-nav .el-bnav-label,
  .el-bottom-nav .el-bnav-dot {
    justify-self:center;
  }
}

