/* Breakpoint scale (4.21.0): 390 / 430 / 480 / 560 / 640 / 768 / 860 / 960 / 1024 / 1280 px, and min-width 769 as the
   complement of 768 (public.js uses the same 769). New rules should pick from this list instead of adding a value. */
/* ═══════════════════════════════════════════════════════
   BFE HR Plugin — Public Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --bfehr-primary:      #2AB573;
  --bfehr-primary-h:    #22976A;
  --bfehr-success:      #15803d;
  --bfehr-danger:       #b91c1c;
  --bfehr-warning:      #b45309;
  --bfehr-muted:        #64748b;
  --bfehr-border:       #e2e8f0;
  --bfehr-bg:           #f8fafc;
  --bfehr-white:        #ffffff;
  --bfehr-text:         #0f172a;
  --bfehr-radius:       10px;
  --bfehr-radius-sm:    6px;
  --bfehr-shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --bfehr-shadow-md:    0 4px 12px rgba(0,0,0,.10);
  --bfehr-font:         inherit;
  --bfehr-space-1:      4px;
  --bfehr-space-2:      8px;
  --bfehr-space-3:      12px;
  --bfehr-space-4:      16px;
  --bfehr-space-5:      20px;
  --bfehr-space-6:      24px;
  --bfehr-radius-1:     10px;
  --bfehr-radius-2:     14px;
  --bfehr-radius-3:     18px;
  --bfehr-radius-pill:  999px;
  --bfehr-control-sm:   32px;
  --bfehr-control-md:   38px;
  --bfehr-control-lg:   44px;
  --bfehr-color-carry:  #f59e0b;
  --bfehr-color-done:   #15803d;
  --bfehr-color-done-bg:#dcfce7;
  --bfehr-color-link:   #dc2626;
  --bfehr-color-link-bg:rgba(220,38,38,.10);
  --bfehr-color-unblocked:#2563eb;
  --bfehr-color-unblocked-bg:#dbeafe;
  --bfehr-color-progress:#4338ca;
  --bfehr-color-progress-bg:#eef2ff;
}

/* ── Reset / Base ── */
.bfehr-container { max-width: 980px; margin: 0 auto; padding: 0 18px; color: var(--bfehr-text); font-family: var(--bfehr-font); }
html.bfehr-workspace-page,
body.bfehr-workspace-page {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Buttons ── */
.bfehr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--bfehr-radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: all .18s ease; line-height: 1; }
.bfehr-btn:active { transform: scale(.97); }
.bfehr-btn-primary  { background: var(--bfehr-primary); color: #fff; border-color: var(--bfehr-primary); }
.bfehr-btn-primary:hover { background: var(--bfehr-primary-h); border-color: var(--bfehr-primary-h); color: #fff; }
.bfehr-btn-outline  { background: transparent; color: var(--bfehr-primary); border-color: var(--bfehr-primary); }
.bfehr-btn-outline:hover { background: var(--bfehr-primary); color: #fff; }
.bfehr-btn-sm { padding: 6px 12px; font-size: 12px; }
.bfehr-btn[disabled] { opacity: .55; pointer-events: none; }

/* ── Form elements ── */
.bfehr-input,
.bfehr-textarea { width: 100%; padding: 10px 13px; border: 1.5px solid var(--bfehr-border); border-radius: var(--bfehr-radius-sm); font-size: 14px; font-family: inherit; background: var(--bfehr-white); color: var(--bfehr-text); box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.bfehr-input:focus,
.bfehr-textarea:focus { outline: none; border-color: var(--bfehr-primary); box-shadow: 0 0 0 3px rgba(42,181,115,.15); }
.bfehr-textarea { resize: vertical; min-height: 110px; }
select.bfehr-input { cursor: pointer; appearance: auto; }
.bfehr-req { color: var(--bfehr-danger); margin-left: 2px; }

/* ── Form layout ── */
.bfehr-form { display: flex; flex-direction: column; gap: 18px; }
.bfehr-form-row { display: flex; gap: 16px; }
.bfehr-form-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bfehr-full-col { flex: 0 0 100%; }
.bfehr-form label { font-size: 14px; font-weight: 500; }@media (max-width: 560px) { .bfehr-form-row { flex-direction: column; } }

/* ── File upload ── */
.bfehr-file-zone { position: relative; }
.bfehr-file-input { position: absolute; width: 0; height: 0; opacity: 0; }
.bfehr-file-label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--bfehr-border); border-radius: var(--bfehr-radius-sm); cursor: pointer; background: var(--bfehr-bg); transition: border-color .2s, background .2s; text-align: center; }
.bfehr-file-label:hover { border-color: var(--bfehr-primary); background: #f0fdf4; }
.bfehr-file-icon { font-size: 24px; }
.bfehr-file-text { font-size: 14px; font-weight: 500; color: var(--bfehr-primary); }
.bfehr-file-hint { font-size: 13px; color: var(--bfehr-muted); }
.bfehr-file-chosen { font-size: 13px; color: var(--bfehr-primary); display: block; margin-top: 4px; }

/* ── Checkbox ── */
.bfehr-check-label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.5; }
.bfehr-check-label input { margin-top: 3px; flex-shrink: 0; }

/* ── Form message ── */
.bfehr-form-message { padding: 14px 16px; border-radius: var(--bfehr-radius-sm); font-size: 14px; margin-bottom: 8px; }
.bfehr-form-message.success { background: #dcfce7; color: var(--bfehr-success); border: 1px solid #86efac; }
.bfehr-form-message.error   { background: #fee2e2; color: var(--bfehr-danger);  border: 1px solid #fca5a5; }

/* ── Alerts / Notices ── */
.bfehr-alert { padding: 12px 16px; border-radius: var(--bfehr-radius-sm); font-size: 14px; margin-bottom: 16px; }
.bfehr-alert-warning { background: #fef9c3; color: #713f12; border: 1px solid #fde68a; }
.bfehr-notice { padding: 14px 18px; background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); font-size: 14px; }

/* ════════════════════════════════════════
   JOB LISTINGS
   ════════════════════════════════════════ */

/* Search/filter bar */
.bfehr-search-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding: 18px 22px; background: var(--bfehr-white); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); box-shadow: var(--bfehr-shadow); }
.bfehr-search-wrap  { flex: 1 1 240px; }
.bfehr-search-wrap .bfehr-input { height: 42px; }
.bfehr-filters-wrap { display: flex; flex-wrap: wrap; gap: 8px; flex: 2 1 360px; }
.bfehr-filters-wrap .bfehr-input { flex: 1 1 130px; height: 42px; }

.bfehr-results-count { font-size: 13px; color: var(--bfehr-muted); margin-bottom: 14px; }

/* Job card list */
.bfehr-layout-list, .bfehr-layout-grid { padding-top: 28px; padding-bottom: 60px; }
.bfehr-jobs-list { display: flex; flex-direction: column; gap: 16px; }
.bfehr-job-card  { background: var(--bfehr-white); border: 1px solid var(--bfehr-border); border-top: 3px solid var(--bfehr-primary); border-radius: var(--bfehr-radius); box-shadow: var(--bfehr-shadow); transition: box-shadow .2s, transform .15s; overflow: hidden; display: flex; flex-direction: column; }
.bfehr-job-card:hover { box-shadow: var(--bfehr-shadow-md); transform: translateY(-2px); }
.bfehr-job-card-body   { padding: 24px 26px; flex: 1; }
.bfehr-job-card-footer { padding: 16px 26px; border-top: 1px solid var(--bfehr-border); display: flex; align-items: center; justify-content: space-between; background: var(--bfehr-white); }

/* Job card grid */
.bfehr-layout-grid .bfehr-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Meta tags */
.bfehr-job-title { margin: 0 0 12px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.bfehr-job-title a { color: var(--bfehr-text); text-decoration: none; }
.bfehr-job-title a:hover { color: var(--bfehr-primary); }
.bfehr-job-meta  { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bfehr-meta-tag  { font-size: 13px; color: var(--bfehr-muted); background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); padding: 3px 10px; border-radius: 20px; }
.bfehr-badge     { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; }
.bfehr-badge-remote  { background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-badge-active  { background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-badge-pending { background: var(--bfehr-status-warning-bg, #fef9c3); color: var(--bfehr-status-warning-text, #a16207); }
.bfehr-badge-approved{ background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-badge-rejected{ background: var(--bfehr-status-danger-bg, #fee2e2); color: var(--bfehr-status-danger-text, #b91c1c); }
.bfehr-badge-open    { background: var(--bfehr-status-info-bg, #e0f2fe); color: var(--bfehr-status-info-text, #0369a1); }
.bfehr-badge-won     { background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-badge-lost,
.bfehr-badge-unqualified { background: var(--bfehr-status-danger-bg, #fee2e2); color: var(--bfehr-status-danger-text, #b91c1c); }
.bfehr-badge-probation{ background: var(--bfehr-status-accent-bg, #ede9fe); color: var(--bfehr-status-accent-text, #7c3aed); }
.bfehr-badge-inactive { background: var(--bfehr-status-neutral-bg, #f1f5f9); color: var(--bfehr-status-neutral-text, #64748b); }
.bfehr-badge-terminated{ background: var(--bfehr-status-danger-bg, #fee2e2); color: var(--bfehr-status-danger-strong-text, #991b1b); }
.bfehr-badge-on_leave { background: var(--bfehr-status-warning-soft-bg, #fef3c7); color: var(--bfehr-status-warning-soft-text, #92400e); }
.bfehr-badge-draft,
.bfehr-badge-not_started { background: var(--bfehr-status-neutral-bg, #f1f5f9); color: var(--bfehr-status-neutral-text-strong, #475569); }
.bfehr-badge-checked_in { background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-badge-checked_out { background: var(--bfehr-status-info-strong-bg, #dbeafe); color: var(--bfehr-status-info-strong-text, #1d4ed8); }
.bfehr-badge-auto    { background: var(--bfehr-status-warning-soft-bg, #fef3c7); color: var(--bfehr-status-warning-soft-text, #92400e); margin-left: 4px; }
.bfehr-badge-sent { background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-badge-suppressed { background: var(--bfehr-status-warning-soft-bg, #fef3c7); color: var(--bfehr-status-warning-soft-text, #92400e); }
.bfehr-badge-error { background: var(--bfehr-status-danger-bg, #fee2e2); color: var(--bfehr-status-danger-text, #b91c1c); }
.bfehr-focus-report-empty { color: var(--ws-muted); font-size: 13px; }

.bfehr-job-excerpt    { font-size: 15px; color: var(--bfehr-muted); line-height: 1.8; margin: 10px 0 0; }
.bfehr-expiry-label   { font-size: 12px; color: var(--bfehr-warning); }
.bfehr-expiry-tag     { color: var(--bfehr-warning) !important; }

/* Pagination */
.bfehr-pagination { text-align: center; margin-top: 28px; }
.bfehr-pagination .page-numbers { display: inline-block; padding: 7px 13px; margin: 2px; border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius-sm); color: var(--bfehr-text); text-decoration: none; font-size: 14px; }
.bfehr-pagination .page-numbers.current { background: var(--bfehr-primary); border-color: var(--bfehr-primary); color: #fff; }
.bfehr-pagination .page-numbers:hover:not(.current) { background: var(--bfehr-bg); }

/* Empty state */
.bfehr-empty-state { text-align: center; padding: 56px 24px; background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); }
.bfehr-empty-icon  { font-size: 42px; margin-bottom: 12px; }

/* Theme overrides for job pages */
body.bfehr-job-page section#mk-page-introduce { display: none !important; }

/* Single job */
.bfehr-single-job    { padding: 28px 0 60px; }@media (max-width: 1024px) { .bfehr-single-job { padding-left: 18px; padding-right: 18px; } }
.bfehr-breadcrumb    { font-size: 14px; color: var(--bfehr-muted); margin-bottom: 22px; }
.bfehr-breadcrumb a  { color: var(--bfehr-primary); text-decoration: none; }
.bfehr-single-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--bfehr-border); }
.bfehr-single-title  { font-size: 30px; font-weight: 800; margin: 0 0 16px; line-height: 1.2; }
.bfehr-single-meta   { margin-bottom: 18px; }
.bfehr-single-body   { display: grid; grid-template-columns: 1fr 280px; gap: 36px; margin-bottom: 44px; }@media (max-width: 768px) { .bfehr-single-body { grid-template-columns: 1fr; } }
.bfehr-job-content   { font-size: 15px; line-height: 1.8; }
.bfehr-job-content h2,.bfehr-job-content h3 { margin-top: 1.5em; }
.bfehr-sidebar-card  { background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); padding: 22px; position: sticky; top: 120px; }@media (max-width: 768px) { .bfehr-sidebar-card { position: static; } }
.bfehr-sidebar-card .bfehr-sidebar-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.bfehr-overview-list { list-style: none; padding: 0; margin: 0 0 18px; }
.bfehr-overview-list li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--bfehr-border); font-size: 14px; }
.bfehr-overview-list li:last-child { border: none; }
.bfehr-overview-list strong { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--bfehr-muted); margin-bottom: 2px; }
.bfehr-apply-section { background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); padding: 32px; scroll-margin-top: 110px; }
.bfehr-apply-section h2 { margin: 0 0 22px; font-size: 20px; }
/* White on #2AB573 is only 2.6:1; job pages use a darker green that passes WCAG AA (5.0:1). */
body.bfehr-job-page { --bfehr-primary: #187f4e; --bfehr-primary-h: #126b40; }
.bfehr-apply-top { display: none; }@media (max-width: 768px) {
  .bfehr-apply-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
  .bfehr-apply-top .bfehr-btn { flex: 1 1 160px; min-height: 46px; }
  .bfehr-apply-top-salary { font-size: 15px; font-weight: 600; }
}
.bfehr-back-link { margin: 28px 0 0; font-size: 14px; }
.bfehr-back-link a { color: var(--bfehr-primary); text-decoration: none; font-weight: 600; }
.bfehr-back-link a:hover { text-decoration: underline; }
.bfehr-scroll-to { scroll-margin-top: 60px; }

/* Application form */
.bfehr-application-wrap { max-width: none; }
.bfehr-submit-btn { min-width: 190px; height: 46px; font-size: 15px; }
.bfehr-expired { color: var(--bfehr-danger); font-size: 15px; }

/* ════════════════════════════════════════
   EMPLOYEE PORTAL
   ════════════════════════════════════════ */

/* Login prompt */

/* ════════════════════════════════════════
   WORKSPACE — Notion-style
   ════════════════════════════════════════ */

.bfehr-notion-ws {
  --ws-sidebar-w: 220px;
  --ws-surface:   #FFFFFF;
  --ws-sidebar:   #FBFBFA;
  --ws-border:    #E9E9E7;
  --ws-text:      #37352F;
  --ws-muted:     #9B9A97;
  --ws-hover:     rgba(55,53,47,.06);
  --ws-active:    rgba(55,53,47,.08);
  --ws-accent:    var(--bfehr-primary);
  --ws-accent-bg: #F0FDF4;
  --ws-space-1:   var(--bfehr-space-1);
  --ws-space-2:   var(--bfehr-space-2);
  --ws-space-3:   var(--bfehr-space-3);
  --ws-space-4:   var(--bfehr-space-4);
  --ws-space-5:   var(--bfehr-space-5);
  --ws-space-6:   var(--bfehr-space-6);
  --ws-radius-1:  var(--bfehr-radius-1);
  --ws-radius-2:  var(--bfehr-radius-2);
  --ws-radius-3:  var(--bfehr-radius-3);
  --ws-radius-pill: var(--bfehr-radius-pill);
  --ws-control-sm: var(--bfehr-control-sm);
  --ws-control-md: var(--bfehr-control-md);
  --ws-control-lg: var(--bfehr-control-lg);
  --ws-color-carry: var(--bfehr-color-carry);
  --ws-color-done: var(--bfehr-color-done);
  --ws-color-done-bg: var(--bfehr-color-done-bg);
  --ws-color-link: var(--bfehr-color-link);
  --ws-color-link-bg: var(--bfehr-color-link-bg);
  --ws-color-unblocked: var(--bfehr-color-unblocked);
  --ws-color-unblocked-bg: var(--bfehr-color-unblocked-bg);
  --ws-color-progress: var(--bfehr-color-progress);
  --ws-color-progress-bg: var(--bfehr-color-progress-bg);
  display: flex;
  gap: 5px;
  min-height: 74vh;
  max-width: 1140px;
  margin: 24px auto;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  color: var(--ws-text);
  font-family: var(--bfehr-font);
  box-shadow: none;
}

/* <button> elements don't inherit color from ancestors by default (UA
   stylesheet sets its own), so icon-only buttons using currentColor SVGs
   went black regardless of theme. Force inheritance for buttons here.
   :where() keeps the specificity at zero so any button that sets its own
   colour (e.g. white text on a green submit button) still wins. */
:where(.bfehr-notion-ws button) {
  color: inherit;
}

/* Theme toggle: a header control next to the bell. (It used to be a fixed floating circle that sat on top of the
   full-screen detail panels and covered their close button.) */
.bfehr-notion-theme-wrap { display: flex; align-items: center; justify-content: center; padding: 0 16px; border-left: 1px solid var(--ws-border); height: 100%; }
.bfehr-workspace-theme-toggle {
  box-sizing: border-box;
  width: var(--bfehr-control-sm, 32px);
  height: var(--bfehr-control-sm, 32px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--ws-border);
  border-radius: var(--bfehr-control-radius, 8px);
  background: transparent;
  color: var(--ws-muted);
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.bfehr-workspace-theme-toggle:hover { background: var(--ws-hover); color: var(--ws-text); }
.bfehr-workspace-theme-toggle-label { display: none; }@media (max-width: 768px) { .bfehr-notion-topbar-actions .bfehr-notion-theme-wrap { display: none; } }  /* public.js moves it into the menu drawer; no flash in the header meanwhile */
/* in the phone menu drawer it is a full-width row with a label */
.bfehr-notion-sidebar .bfehr-notion-theme-wrap { padding: 0; border: 0; height: auto; margin: 0 0 8px; }
.bfehr-notion-sidebar .bfehr-workspace-theme-toggle { width: 100%; justify-content: flex-start; gap: 10px; padding: 0 10px; border-color: transparent; font-size: 13px; font-weight: 500; color: var(--ws-text); }
.bfehr-notion-sidebar .bfehr-workspace-theme-toggle-label { display: inline; }
.bfehr-icon { width: 1em; height: 1em; display: block; flex-shrink: 0; }
.bfehr-workspace-theme-toggle-icon,
.bfehr-notion-side-toggle-icon,
.bfehr-notion-nav-icon,
.bfehr-notion-notify-icon,
.bfehr-avatar-overlay-icon,
.bfehr-portal-logout-icon { display: inline-flex; align-items: center; justify-content: center; }
.bfehr-workspace-theme-toggle-icon { width: 20px; height: 20px; color: currentColor; }
.bfehr-icon-theme { width: 20px; height: 20px; }

.bfehr-notion-ws.is-dark {
  --ws-surface: #14181d;
  --ws-sidebar: #101419;
  --ws-border: #2a313a;
  --ws-text: #eef2f7;
  --ws-muted: #98a2b3;
  --ws-hover: rgba(255,255,255,.05);
  --ws-active: rgba(255,255,255,.08);
  --ws-accent-bg: rgba(42,181,115,.14);
  /* Older --bfehr-* tokens predate the workspace theme system and were
     never given a dark-mode override, so anything inside the workspace
     still using them (e.g. the Request Leave form, the Team Updates
     calendar board) stayed light-on-dark and unreadable. Redefining
     them here only, scoped to .is-dark, fixes every such spot at once
     without touching pages outside the workspace shell (jobs/leave
     public templates, wp-admin) where these tokens keep their original
     light-mode values. */
  --bfehr-text: #eef2f7;
  --bfehr-muted: #98a2b3;
  --bfehr-border: #2a313a;
  --bfehr-white: #1b2028;
  --bfehr-bg: #14181d;
}
.bfehr-notion-ws.is-dark {
  position: relative;
}
.bfehr-notion-ws.is-dark::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #0b0f14;
  z-index: -1;
}
.bfehr-notion-ws.is-dark .bfehr-notion-main,
.bfehr-notion-ws.is-dark .bfehr-notion-sidebar {
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.bfehr-notion-ws.is-dark .bfehr-notion-side-toggle,
.bfehr-notion-ws.is-dark .bfehr-notion-notify-btn,
.bfehr-notion-ws.is-dark .bfehr-focus-topbar-chip,
.bfehr-notion-ws.is-dark .bfehr-notion-notify-item,
.bfehr-notion-ws.is-dark .bfehr-notion-notify-panel,
.bfehr-notion-ws.is-dark .bfehr-notion-panel,
.bfehr-notion-ws.is-dark .bfehr-prop-row,
.bfehr-notion-ws.is-dark .bfehr-prop-list,
.bfehr-notion-ws.is-dark .bfehr-notion-kpi,
.bfehr-notion-ws.is-dark .bfehr-notion-stat,
.bfehr-notion-ws.is-dark .bfehr-focus-stat,
.bfehr-notion-ws.is-dark .bfehr-focus-board,
.bfehr-notion-ws.is-dark .bfehr-notion-cal-shell,
.bfehr-notion-ws.is-dark .bfehr-notion-cal-detail-panel,
.bfehr-notion-ws.is-dark .bfehr-notion-cal-detail-item,
.bfehr-notion-ws.is-dark .bfehr-crm-opportunity-card,
.bfehr-notion-ws.is-dark .bfehr-crm-dashboard-card,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-card,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-item,
.bfehr-notion-ws.is-dark .bfehr-focus-checkout-dialog-panel {
  background: #171c22;
}
.bfehr-notion-ws.is-dark .bfehr-notion-topbar,
.bfehr-notion-ws.is-dark .bfehr-notion-panel-head,
.bfehr-notion-ws.is-dark .bfehr-crm-dashboard-card-head,
.bfehr-notion-ws.is-dark .bfehr-crm-sheet-head,
.bfehr-notion-ws.is-dark .bfehr-crm-drawer-head {
  background: #13181e;
}
.bfehr-notion-ws.is-dark .bfehr-crm-hero,
.bfehr-notion-ws.is-dark .bfehr-crm-pagehead,
.bfehr-notion-ws.is-dark .bfehr-crm-toolbar,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-empty,
.bfehr-notion-ws.is-dark .bfehr-crm-empty-card,
.bfehr-notion-ws.is-dark .bfehr-crm-collab-box,
.bfehr-notion-ws.is-dark .bfehr-crm-month-card,
.bfehr-notion-ws.is-dark .bfehr-crm-outcome-card,
.bfehr-notion-ws.is-dark .bfehr-crm-chart-loading,
.bfehr-notion-ws.is-dark .bfehr-crm-activity-item,
.bfehr-notion-ws.is-dark .bfehr-crm-editor-sheet,
.bfehr-notion-ws.is-dark .bfehr-notion-kpi-card,
.bfehr-notion-ws.is-dark .bfehr-crm-snapshot-card {
  background: #171c22;
}
.bfehr-notion-ws.is-dark .bfehr-crm-hero,
.bfehr-notion-ws.is-dark .bfehr-crm-snapshot-card,
.bfehr-notion-ws.is-dark .bfehr-crm-board-card {
  background-image: none;
}
.bfehr-notion-ws.is-dark .bfehr-crm-toolbar,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-empty,
.bfehr-notion-ws.is-dark .bfehr-crm-collab-box {
  background-color: #151a20;
}
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-dot-custom,
.bfehr-notion-ws.is-dark .bfehr-crm-type-chip-custom_order,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip-custom_order,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-count {
  background: rgba(42,181,115,.16);
  color: #6ee7a1;
}
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-dot-scc,
.bfehr-notion-ws.is-dark .bfehr-crm-type-chip-scc,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip-scc {
  background: rgba(245,158,11,.16);
  color: #fbbf24;
}
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-dot-consignee,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-dot-general_consignment,
.bfehr-notion-ws.is-dark .bfehr-crm-type-chip-consignee,
.bfehr-notion-ws.is-dark .bfehr-crm-type-chip-general_consignment,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip-consignee,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip-general_consignment {
  background: rgba(29,155,240,.16);
  color: #7cc8ff;
}
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-dot-wholesale,
.bfehr-notion-ws.is-dark .bfehr-crm-type-chip-wholesale,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip-wholesale {
  background: rgba(139,92,246,.18);
  color: #c4b5fd;
}
.bfehr-notion-ws.is-dark .bfehr-crm-card-status {
  background: rgba(255,255,255,.06);
  color: var(--ws-muted);
}
.bfehr-notion-ws.is-dark .bfehr-crm-followup-overdue {
  background: rgba(239,68,68,.14);
  color: #fca5a5;
}
.bfehr-notion-ws.is-dark .bfehr-crm-followup-today {
  background: rgba(249,115,22,.14);
  color: #fdba74;
}
.bfehr-notion-ws.is-dark .bfehr-crm-followup-upcoming {
  background: rgba(42,181,115,.14);
  color: #6ee7a1;
}
.bfehr-notion-ws.is-dark .bfehr-crm-followup-stage::before,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-owner::before {
  color: rgba(255,255,255,.18);
}
.bfehr-notion-ws.is-dark .bfehr-crm-hero-chip,
.bfehr-notion-ws.is-dark .bfehr-crm-empty-step {
  background: rgba(42,181,115,.16);
  color: #6ee7a1;
}
.bfehr-notion-ws.is-dark .bfehr-notion-kpi-card,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-row,
.bfehr-notion-ws.is-dark .bfehr-crm-month-card,
.bfehr-notion-ws.is-dark .bfehr-crm-outcome-card,
.bfehr-notion-ws.is-dark .bfehr-crm-activity-item,
.bfehr-notion-ws.is-dark .bfehr-crm-empty-card,
.bfehr-notion-ws.is-dark .bfehr-crm-collab-box,
.bfehr-notion-ws.is-dark .bfehr-crm-editor-sheet,
.bfehr-notion-ws.is-dark .bfehr-crm-board-card,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-empty,
.bfehr-notion-ws.is-dark .bfehr-crm-pagehead,
.bfehr-notion-ws.is-dark .bfehr-crm-toolbar,
.bfehr-notion-ws.is-dark .bfehr-crm-snapshot-card,
.bfehr-notion-ws.is-dark .bfehr-crm-hero {
  border-color: var(--ws-border);
}
.bfehr-notion-ws.is-dark .bfehr-crm-board-card:hover {
  border-color: rgba(110,231,161,.24);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}
.bfehr-notion-ws.is-dark .bfehr-notion-notify-btn,
.bfehr-notion-ws.is-dark .bfehr-notion-side-toggle {
  background: #171c22;
}
.bfehr-notion-ws.is-dark .bfehr-notion-notify-btn:hover,
.bfehr-notion-ws.is-dark .bfehr-notion-side-toggle:hover {
  background: #1b2128;
}
.bfehr-notion-ws.is-dark .bfehr-notion-notify-panel {
  border-color: var(--ws-border);
  background: rgba(20,24,29,.94);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
}
.bfehr-notion-ws.is-dark .bfehr-notion-notify-item:hover {
  background: #1b2128;
  border-color: rgba(110,231,161,.18);
}
.bfehr-notion-ws.is-dark .bfehr-birthday-toggle {
  background: #171c22;
}
.bfehr-notion-ws.is-dark .bfehr-notion-birthday-age,
.bfehr-notion-ws.is-dark .bfehr-hr-filter-form select,
.bfehr-notion-ws.is-dark .bfehr-focus-task,
.bfehr-notion-ws.is-dark .bfehr-focus-detail-item,
.bfehr-notion-ws.is-dark .bfehr-merch-detail-image-link,
.bfehr-notion-ws.is-dark .bfehr-calendar-detail-card,
.bfehr-notion-ws.is-dark .bfehr-team-empty,
.bfehr-notion-ws.is-dark .bfehr-crm-month-card,
.bfehr-notion-ws.is-dark .bfehr-crm-outcome-card,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-row,
.bfehr-notion-ws.is-dark .bfehr-crm-empty-card,
.bfehr-notion-ws.is-dark .bfehr-crm-activity-item,
.bfehr-notion-ws.is-dark .bfehr-crm-editor-sheet,
.bfehr-notion-ws.is-dark .bfehr-hr-review-card,
.bfehr-notion-ws.is-dark .bfehr-hr-review-note-box,
.bfehr-notion-ws.is-dark .bfehr-merch-form,
.bfehr-notion-ws.is-dark .bfehr-merch-field,
.bfehr-notion-ws.is-dark .bfehr-merch-check-group,
.bfehr-notion-ws.is-dark .bfehr-merch-radio-group {
  background: #171c22;
  border-color: var(--ws-border);
}
.bfehr-notion-ws.is-dark .bfehr-calendar-board,
.bfehr-notion-ws.is-dark .bfehr-team-panel,
.bfehr-notion-ws.is-dark .bfehr-calendar-details,
.bfehr-notion-ws.is-dark .bfehr-hr-review-panel,
.bfehr-notion-ws.is-dark .bfehr-merch-hero {
  background: #151a20;
  border-color: var(--ws-border);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.bfehr-notion-ws.is-dark .bfehr-calendar-cell {
  background: linear-gradient(180deg, #171c22 0%, #14181d 100%);
  border-color: var(--ws-border);
}
.bfehr-notion-ws.is-dark .bfehr-calendar-cell-empty,
.bfehr-notion-ws.is-dark .bfehr-calendar-details,
.bfehr-notion-ws.is-dark .bfehr-team-card,
.bfehr-notion-ws.is-dark .bfehr-team-empty,
.bfehr-notion-ws.is-dark .bfehr-merch-field,
.bfehr-notion-ws.is-dark .bfehr-merch-check-group,
.bfehr-notion-ws.is-dark .bfehr-merch-radio-group {
  background-image: none;
}
.bfehr-notion-ws.is-dark .bfehr-calendar-cell-empty {
  background: #12171d;
  border-color: var(--ws-border);
}
.bfehr-notion-ws.is-dark .bfehr-calendar-sunday {
  background: linear-gradient(180deg, rgba(127,29,29,.16) 0%, #171c22 100%);
  border-color: rgba(248,113,113,.26);
}
.bfehr-notion-ws.is-dark .bfehr-calendar-sunday .bfehr-calendar-date {
  color: #fca5a5;
}
.bfehr-notion-ws.is-dark .bfehr-calendar-pill-holiday {
  background: rgba(249,115,22,.14);
  color: #fdba74;
}
.bfehr-notion-ws.is-dark .bfehr-calendar-pill-event {
  background: rgba(14,165,233,.16);
  color: #7dd3fc;
}
.bfehr-notion-ws.is-dark .bfehr-calendar-alias {
  background: #166534;
}
.bfehr-notion-ws.is-dark .bfehr-focus-task-input,
.bfehr-notion-ws.is-dark .bfehr-focus-subtask-input,
.bfehr-notion-ws.is-dark .bfehr-focus-note-wrap textarea,
.bfehr-notion-ws.is-dark .bfehr-focus-checkout-note textarea,
.bfehr-notion-ws.is-dark .bfehr-focus-date-filter input[type="date"],
.bfehr-notion-ws.is-dark .bfehr-merch-field input[type="text"],
.bfehr-notion-ws.is-dark .bfehr-merch-field input[type="date"],
.bfehr-notion-ws.is-dark .bfehr-merch-field select,
.bfehr-notion-ws.is-dark .bfehr-merch-field textarea,
.bfehr-notion-ws.is-dark .bfehr-merch-field input[type="file"],
.bfehr-notion-ws.is-dark .bfehr-hr-review-note-box textarea {
  background: #101419;
  color: var(--ws-text);
  border-color: #36404a;
}
/* Background/text overrides above don't reach the browser's own native
   control chrome (the calendar-picker icon and popup, spinner arrows,
   etc.) — that needs color-scheme so it stops defaulting to a
   dark-on-dark light-mode icon. Applies to every native date/time
   input in the workspace, not just the ones with a manual dark
   background override above (e.g. Request Leave's .bfehr-field date
   inputs already go dark via the --bfehr-white token redefinition on
   .is-dark, but still need this for the icon itself). */
.bfehr-notion-ws.is-dark input[type="date"],
.bfehr-notion-ws.is-dark input[type="time"],
.bfehr-notion-ws.is-dark input[type="datetime-local"] {
  color-scheme: dark;
}
.bfehr-notion-ws.is-dark .bfehr-focus-check span {
  background: #101419;
  border-color: #475569;
}
.bfehr-notion-ws.is-dark .bfehr-focus-carry-chip {
  background-color: var(--ws-color-carry);
  color: transparent;
}
.bfehr-notion-ws.is-dark .bfehr-focus-subprogress {
  background: rgba(99,102,241,.18);
  color: #c4b5fd;
}
.bfehr-notion-ws.is-dark .bfehr-focus-checkout-card {
  background: #171c22;
  border-color: var(--ws-border);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.bfehr-notion-ws.is-dark .bfehr-crm-editor-close {
  background: #171c22;
}
.bfehr-notion-ws.is-dark .bfehr-crm-toolbar,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-empty,
.bfehr-notion-ws.is-dark .bfehr-crm-collab-box,
.bfehr-notion-ws.is-dark .bfehr-crm-empty-card,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-row,
.bfehr-notion-ws.is-dark .bfehr-crm-month-card,
.bfehr-notion-ws.is-dark .bfehr-crm-outcome-card,
.bfehr-notion-ws.is-dark .bfehr-crm-board-card {
  background-image: none;
}
.bfehr-notion-ws.is-dark .bfehr-crm-toolbar {
  background: #151a20;
}
.bfehr-notion-ws.is-dark .bfehr-calendar-head h3,
.bfehr-notion-ws.is-dark .bfehr-calendar-date,
.bfehr-notion-ws.is-dark .bfehr-team-card-main strong,
.bfehr-notion-ws.is-dark .bfehr-hr-review-card strong,
.bfehr-notion-ws.is-dark .bfehr-merch-field span,
.bfehr-notion-ws.is-dark .bfehr-merch-check-group legend,
.bfehr-notion-ws.is-dark .bfehr-merch-radio-group legend,
.bfehr-notion-ws.is-dark .bfehr-merch-step-head h4 {
  color: var(--ws-text);
}
.bfehr-notion-ws.is-dark .bfehr-calendar-weekday,
.bfehr-notion-ws.is-dark .bfehr-calendar-detail-card small,
.bfehr-notion-ws.is-dark .bfehr-calendar-detail-card p,
.bfehr-notion-ws.is-dark .bfehr-calendar-details-head span,
.bfehr-notion-ws.is-dark .bfehr-team-card-main p,
.bfehr-notion-ws.is-dark .bfehr-team-card-side small,
.bfehr-notion-ws.is-dark .bfehr-team-empty p,
.bfehr-notion-ws.is-dark .bfehr-hr-review-sub,
.bfehr-notion-ws.is-dark .bfehr-hr-review-note-box,
.bfehr-notion-ws.is-dark .bfehr-merch-hero p,
.bfehr-notion-ws.is-dark .bfehr-merch-step-head p,
.bfehr-notion-ws.is-dark .bfehr-merch-field small,
.bfehr-notion-ws.is-dark .bfehr-merch-check-group label,
.bfehr-notion-ws.is-dark .bfehr-merch-radio-group label,
.bfehr-notion-ws.is-dark .bfehr-merch-progress-count {
  color: var(--ws-muted);
}
.bfehr-notion-ws.is-dark .bfehr-merch-progress-track {
  background: #0f1419;
}
.bfehr-notion-ws.is-dark .bfehr-merch-uploading {
  background: rgba(42,181,115,.12);
  border-color: rgba(42,181,115,.28);
  color: #86efac;
}
.bfehr-notion-ws.is-dark .bfehr-merch-uploading-copy span {
  color: #bbf7d0;
}
.bfehr-notion-ws.is-dark .bfehr-crm-sheet-dismiss {
  background: rgba(0,0,0,.42);
}
.bfehr-notion-ws.is-dark .bfehr-crm-editor-close {
  background: #1b2129;
}
.bfehr-notion-ws.is-dark .bfehr-crm-legend,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-copy span,
.bfehr-notion-ws.is-dark .bfehr-crm-stage-health-value span,
.bfehr-notion-ws.is-dark .bfehr-crm-month-card span,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-stage,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-owner,
.bfehr-notion-ws.is-dark .bfehr-crm-followup-date,
.bfehr-notion-ws.is-dark .bfehr-crm-empty-card p,
.bfehr-notion-ws.is-dark .bfehr-crm-pagehead p,
.bfehr-notion-ws.is-dark .bfehr-crm-hero p,
.bfehr-notion-ws.is-dark .bfehr-crm-help,
.bfehr-notion-ws.is-dark .bfehr-crm-activity-head span,
.bfehr-notion-ws.is-dark .bfehr-crm-activity-item small,
.bfehr-notion-ws.is-dark .bfehr-crm-snapshot-card small {
  color: var(--ws-muted);
}
.bfehr-notion-ws.is-dark .bfehr-notion-notify-panel {
  background: rgba(20,24,29,.96);
  border-color: rgba(255,255,255,.08);
}
.bfehr-notion-ws.is-dark .bfehr-notion-notify-item {
  background: rgba(255,255,255,.03);
}
.bfehr-notion-ws.is-dark .bfehr-notion-notify-badge {
  box-shadow: 0 0 0 2px #14181d;
}
.bfehr-notion-ws.is-dark input,
.bfehr-notion-ws.is-dark select,
.bfehr-notion-ws.is-dark textarea {
  background: #0f1419;
  color: var(--ws-text);
  border-color: var(--ws-border);
}
.bfehr-notion-ws.is-dark .bfehr-notion-btn-secondary,
.bfehr-notion-ws.is-dark .bfehr-btn-outline,
.bfehr-notion-ws.is-dark .bfehr-btn-ghost {
  background: transparent;
  color: var(--ws-text);
  border-color: var(--ws-border);
}
.bfehr-notion-ws.is-dark .bfehr-notion-nav-icon,
.bfehr-notion-ws.is-dark .bfehr-notion-subnav-link,
.bfehr-notion-ws.is-dark .bfehr-notion-logout,
.bfehr-notion-ws.is-dark .bfehr-notion-panel-sub,
.bfehr-notion-ws.is-dark .bfehr-notion-panel-item-sub,
.bfehr-notion-ws.is-dark .bfehr-focus-topbar-meta {
  color: var(--ws-muted);
}

/* ── Sidebar ── */
.bfehr-notion-sidebar {
  width: var(--ws-sidebar-w);
  flex-shrink: 0;
  background: var(--ws-sidebar);
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 10px 8px 16px;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  transition: width .22s ease, padding .22s ease;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.bfehr-notion-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.bfehr-notion-ws-label { display: flex; align-items: center; padding: 10px 10px 16px; min-width: 0; }
.bfehr-notion-ws-logo { width: 120px; height: auto; object-fit: contain; transition: width .22s ease; }
.bfehr-notion-side-toggle { width: 34px; height: 34px; border: 1px solid var(--ws-border); border-radius: 999px; background: #fff; color: var(--ws-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: background .14s ease, border-color .14s ease; }
.bfehr-notion-side-toggle:hover { background: var(--ws-hover); border-color: #d7ddda; }
.bfehr-notion-side-toggle-icon { width: 16px; height: 16px; transition: transform .22s ease; }
.bfehr-notion-identity { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; margin-bottom: 10px; cursor: default; transition: background .12s; }
.bfehr-notion-identity:hover { background: var(--ws-hover); }
.bfehr-notion-avatar img { width: 28px; height: 28px; border-radius: 50%; display: block; flex-shrink: 0; }
.bfehr-notion-identity-info { min-width: 0; flex: 1; overflow: hidden; }
.bfehr-notion-ident-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfehr-notion-ident-role { display: block; font-size: 11px; color: var(--ws-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.bfehr-notion-ident-dept { display: block; font-size: 10px; color: var(--ws-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

/* Nav */
.bfehr-notion-nav { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.bfehr-notion-nav-group { display: flex; flex-direction: column; gap: 4px; }
.bfehr-notion-nav-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; font-size: 14px; color: var(--ws-text); text-decoration: none; transition: background .1s; white-space: nowrap; }
.bfehr-notion-nav-link:hover { background: var(--ws-hover); color: var(--ws-text); text-decoration: none; }
.bfehr-notion-nav-active { background: var(--ws-active); font-weight: 500; }
.bfehr-notion-nav-active:hover { background: var(--ws-active); }
.bfehr-notion-nav-icon { width: 20px; height: 20px; flex-shrink: 0; text-align: center; opacity: .75; }
.bfehr-icon-nav { width: 18px; height: 18px; }
.bfehr-notion-nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bfehr-notion-nav-active .bfehr-notion-nav-icon { opacity: 1; }
.bfehr-notion-subnav { margin-left: 30px; padding-left: 8px; border-left: 1px solid var(--ws-border); display: none; flex-direction: column; gap: 2px; }
.bfehr-notion-nav-group.is-active > .bfehr-notion-subnav { display: flex; }
.bfehr-notion-subnav-link { display: flex; align-items: center; min-height: 28px; padding: 4px 8px; border-radius: 4px; color: var(--ws-muted); font-size: 12.5px; font-weight: 500; text-decoration: none; transition: background .1s, color .1s; }
.bfehr-notion-subnav-link:hover { background: var(--ws-hover); color: var(--ws-text); text-decoration: none; }
.bfehr-notion-subnav-active { background: rgba(42,181,115,.08); color: var(--bfehr-primary); }

/* Sidebar footer */
.bfehr-notion-sidebar-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ws-border); }
.bfehr-notion-leave-chip { padding: 10px 12px; border-radius: 6px; background: var(--ws-accent-bg); border: 1px solid #86efac; margin-bottom: 6px; }
.bfehr-notion-leave-chip-num { display: block; font-size: 24px; font-weight: 800; color: var(--ws-accent); line-height: 1; }
.bfehr-notion-leave-chip-label { display: block; font-size: 11px; color: #15803d; margin-top: 3px; font-weight: 500; }
.bfehr-notion-logout { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 4px; font-size: 13px; color: var(--ws-muted); text-decoration: none; transition: background .1s, color .1s; }
.bfehr-notion-logout:hover { background: var(--ws-hover); color: #b91c1c; text-decoration: none; }

.bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  height: 100vh;
  z-index: 30;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 0 18px 18px 0;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  transform: translateX(calc(-100% + 16px));
  transition: transform .22s ease, box-shadow .22s ease;
}
.bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  width: 14px;
  height: 100%;
}
.bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-sidebar:hover,
.bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-sidebar:focus-within {
  transform: translateX(0);
  box-shadow: 0 26px 54px rgba(15,23,42,.16);
}
.bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-side-toggle-icon { transform: rotate(180deg); }

/* ── CRM mode: sidebar auto-hidden, main takes full width ──
   Desktop-only: this is a hover-to-reveal interaction, which doesn't
   exist on touch. Scoping it to min-width:769px (matching the
   max-width:768px mobile breakpoint) leaves the mobile hamburger
   drawer's own open/close state as the sole authority for the
   sidebar's position at mobile widths, on CRM tabs same as any other —
   previously this rule's higher selector specificity silently beat
   .bfehr-notion-sidebar.bfehr-mob-open, so opening the mobile menu on
   a CRM tab had no visible effect. */@media (min-width: 769px) {
  .bfehr-notion-ws.is-crm-mode .bfehr-notion-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    height: 100vh;
    z-index: 30;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 0 18px 18px 0;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    transform: translateX(calc(-100% + 16px));
    transition: transform .22s ease, box-shadow .22s ease;
  }
  .bfehr-notion-ws.is-crm-mode .bfehr-notion-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 14px;
    height: 100%;
  }
  .bfehr-notion-ws.is-crm-mode .bfehr-notion-sidebar:hover,
  .bfehr-notion-ws.is-crm-mode .bfehr-notion-sidebar:focus-within {
    transform: translateX(0);
    box-shadow: 0 26px 54px rgba(15,23,42,.16);
  }
  .bfehr-notion-ws.is-crm-mode .bfehr-notion-side-toggle-icon { transform: rotate(180deg); }
}
.bfehr-crm-opp-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}
.bfehr-crm-opp-toolbar-meta { display: flex; align-items: center; gap: 8px; }
.bfehr-notion-ws.is-crm-mode .bfehr-notion-content { padding: 16px 24px 32px; }
.bfehr-notion-ws.is-crm-mode .bfehr-notion-topbar { padding-left: 28px; }

/* ── Main ── */
.bfehr-notion-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.bfehr-notion-topbar { display: flex; align-items: stretch; gap: 0; padding: 0 0 0 28px; min-height: 56px; border-bottom: 1px solid var(--ws-border); background: var(--ws-surface); position: sticky; top: 0; z-index: 10; }
.bfehr-notion-breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ws-muted); flex: 1; min-width: 0; overflow: hidden; }
.bfehr-notion-bc-sep { opacity: .5; }
.bfehr-notion-bc-current { color: var(--ws-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfehr-notion-topbar-actions { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: stretch; flex-shrink: 0; height: 100%; margin-left: 18px; }
.bfehr-notion-notify-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 20px; border-left: 1px solid var(--ws-border); height: 100%; }
.bfehr-notion-notify-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--ws-border, #E9E9E7); border-radius: 999px; background: #fff; cursor: pointer; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
.bfehr-notion-notify-btn:hover { transform: translateY(-1px); background: #fff; border-color: rgba(42,181,115,.2); }
.bfehr-notion-notify-icon { width: 16px; height: 16px; }
.bfehr-icon-notify { width: 16px; height: 16px; }
.bfehr-notion-notify-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.bfehr-notion-notify-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: hidden; border: 1px solid rgba(15,23,42,.08); border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(22px); box-shadow: 0 24px 60px rgba(15,23,42,.18); z-index: 25; }
.bfehr-notion-notify-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid rgba(15,23,42,.06); font-size: 13px; color: var(--ws-muted, #9B9A97); }
.bfehr-notion-notify-head strong { color: var(--ws-text, #37352F); font-size: 14px; }
.bfehr-notion-notify-list { max-height: min(58vh, 480px); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.bfehr-notion-notify-item { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid transparent; border-radius: 14px; background: rgba(255,255,255,.76); text-align: left; cursor: pointer; transition: background .14s ease, border-color .14s ease, transform .14s ease; }
.bfehr-notion-notify-item:hover { background: #fff; border-color: rgba(42,181,115,.18); transform: translateY(-1px); }
.bfehr-notion-notify-item-dot { width: 8px; height: 8px; border-radius: 999px; background: #ef4444; margin-top: 5px; }
.bfehr-notion-notify-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bfehr-notion-notify-item-title { font-size: 13px; font-weight: 700; color: var(--ws-text, #37352F); line-height: 1.35; }
.bfehr-notion-notify-item-sub { font-size: 12px; color: var(--ws-muted, #9B9A97); line-height: 1.45; }
.bfehr-notion-notify-item-time { font-size: 11px; color: var(--ws-muted, #9B9A97); white-space: nowrap; padding-top: 1px; }
.bfehr-notion-notify-empty { padding: 16px; text-align: center; font-size: 12px; color: var(--ws-muted, #9B9A97); }
.bfehr-notion-mob-toggle { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: none; cursor: pointer; border-radius: 4px; color: var(--ws-text); padding: 0; transition: background .1s; }
.bfehr-icon-mobile-toggle { width: 18px; height: 18px; }
.bfehr-notion-mob-toggle:hover { background: var(--ws-hover); }
.bfehr-notion-content { padding: 32px 40px 52px; flex: 1; }

/* Page section headings */
.bfehr-notion-section { margin-top: 28px; }
.bfehr-notion-section:first-child { margin-top: 0; }
.bfehr-notion-section-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.bfehr-notion-section-label::after { content: ''; flex: 1; height: 1px; background: var(--ws-border); }

/* ── Team Workboard ── */
.bfehr-workboard-hero {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  background: var(--ws-surface);
  margin-bottom: 16px;
}
.bfehr-workboard-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ws-muted);
}
.bfehr-workboard-hero h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.bfehr-workboard-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--ws-muted);
  line-height: 1.6;
}
.bfehr-workboard-pane {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  background: var(--ws-surface);
}
.bfehr-workboard-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.bfehr-workboard-pane-head .bfehr-notion-section-label { margin-bottom: 10px; }
.bfehr-workboard-pane-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ws-text);
}
.bfehr-workboard-pane-head p {
  margin: 0;
  max-width: 760px;
  color: var(--ws-muted);
  line-height: 1.6;
  font-size: 14px;
}
.bfehr-workboard-pane-mine .bfehr-focus-shell { gap: 16px; }
.bfehr-workboard-sections { display: flex; flex-direction: column; gap: 0; }
.bfehr-workboard-section {
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  background: var(--ws-panel);
  overflow: hidden;
  margin: 8px 0;
}
.bfehr-workboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ws-border);
}
.bfehr-workboard-section-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.bfehr-workboard-section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(42,181,115,.10);
  color: var(--bfehr-primary);
  font-size: 13px;
  font-weight: 700;
}
.bfehr-workboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px 20px;
}
.bfehr-workboard-card {
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  background: var(--ws-surface);
  padding: 18px 20px;
}
.bfehr-workboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.bfehr-workboard-card-head h5 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}
.bfehr-workboard-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ws-muted);
}
.bfehr-workboard-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--ws-muted);
}
.bfehr-workboard-tasklist { display: flex; flex-direction: column; gap: 10px; }
.bfehr-workboard-task {
  border: 1px solid var(--ws-border);
  border-radius: 10px;
  background: var(--ws-panel);
  position: relative;
}
.bfehr-workboard-task.has-dependency::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--bfehr-dependency-color, var(--ws-accent));
}
.bfehr-workboard-task.is-unblocked::before,
.bfehr-workboard-task.is-unblocked .bfehr-workboard-link-dot {
  background: var(--ws-color-unblocked);
}
.bfehr-workboard-task.is-unblocked .bfehr-workboard-link-dot {
  border-color: var(--ws-color-unblocked);
}
.bfehr-workboard-task summary {
  list-style: none;
  cursor: default;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}
.bfehr-workboard-task summary::-webkit-details-marker { display: none; }
.bfehr-workboard-task-title-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.bfehr-workboard-link-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--bfehr-dependency-color, var(--ws-accent));
  flex-shrink: 0;
}
.bfehr-dependency-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 18;
  overflow: visible;
}
.bfehr-dependency-line {
  pointer-events: none;
}
.bfehr-workboard-task-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
}
.bfehr-workboard-task-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.bfehr-workboard-task-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bfehr-workboard-task-status-pending { background: var(--bfehr-status-neutral-bg, #f1f5f9); color: var(--bfehr-status-neutral-text-strong, #475569); }
.bfehr-workboard-task-status-in_progress { background: var(--bfehr-status-info-bg, #e0f2fe); color: var(--bfehr-status-info-text, #0369a1); }
.bfehr-workboard-task-status-blocked { background: var(--ws-color-link-bg); color: var(--ws-color-link); }
.bfehr-workboard-task-status-done { background: var(--ws-color-done-bg); color: var(--ws-color-done); }
.bfehr-workboard-carry {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  padding: 0;
  border-radius: 999px;
  background-color: var(--ws-color-carry);
  flex: 0 0 10px;
  box-shadow: none;
}
.bfehr-workboard-blocker {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 16px 12px 28px;
  position: relative;
}
.bfehr-workboard-blocker::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 2px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: var(--bfehr-dependency-color, var(--ws-accent));
}
.bfehr-workboard-blocker-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-workboard-blocker strong { font-size: 13px; color: var(--ws-text); line-height: 1.35; }
.bfehr-workboard-blocker span:last-child { font-size: 13px; color: var(--ws-muted); line-height: 1.45; }
.bfehr-workboard-subtasks {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bfehr-workboard-subtask {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ws-border);
}
.bfehr-workboard-subtask:first-child { padding-top: 10px; }
.bfehr-workboard-subtask-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ws-text);
  flex: 1;
}
.bfehr-workboard-subtask-meta { flex-shrink: 0; }
.bfehr-workboard-empty {
  padding: 14px 16px;
  border: 1px dashed var(--ws-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ws-muted);
  background: var(--ws-panel);
}
.bfehr-workboard-task summary::after { display: none; }

.bfehr-notion-ws.is-dark .bfehr-workboard-pane,
.bfehr-notion-ws.is-dark .bfehr-workboard-card,
.bfehr-notion-ws.is-dark .bfehr-workboard-task,
.bfehr-notion-ws.is-dark .bfehr-workboard-empty,
.bfehr-notion-ws.is-dark .bfehr-workboard-section {
  background: var(--ws-panel);
}
.bfehr-notion-ws.is-dark .bfehr-workboard-hero {
  background: var(--ws-surface);
}

/* ── Property list (profile) ── */
.bfehr-prop-list { display: flex; flex-direction: column; border: 1px solid var(--ws-border); border-radius: 4px; overflow: hidden; font-size: 14px; }
.bfehr-prop-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--ws-border); transition: background .1s; }
.bfehr-prop-row:last-child { border-bottom: none; }
.bfehr-prop-row:hover { background: var(--ws-hover); }
.bfehr-prop-label { width: 160px; flex-shrink: 0; padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--ws-muted); border-right: 1px solid var(--ws-border); display: flex; align-items: center; }
.bfehr-prop-value { flex: 1; padding: 9px 14px; color: var(--ws-text); display: flex; align-items: center; min-width: 0; word-break: break-word; }
.bfehr-prop-row-editable .bfehr-prop-value { cursor: pointer; }
.bfehr-prop-edit-input { display: none; width: 100%; border: none; background: transparent; font-size: 14px; font-family: inherit; color: var(--ws-text); padding: 0; outline: none; }
.bfehr-prop-edit-textarea { display: none; width: 100%; border: none; background: transparent; font-size: 14px; font-family: inherit; color: var(--ws-text); padding: 0; outline: none; resize: none; min-height: 56px; line-height: 1.6; }
.bfehr-is-editing .bfehr-prop-row-editable .bfehr-prop-value { background: rgba(42,181,115,.05); }
.bfehr-is-editing .bfehr-prop-row-editable .bfehr-edit-display { display: none; }
.bfehr-is-editing .bfehr-prop-row-editable .bfehr-prop-edit-input,
.bfehr-is-editing .bfehr-prop-row-editable .bfehr-prop-edit-textarea { display: block; }

/* ── Leave stat strip ── */
.bfehr-notion-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ws-border); border: 1px solid var(--ws-border); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.bfehr-notion-stat { background: var(--ws-surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.bfehr-notion-stat-num { font-size: 26px; font-weight: 800; line-height: 1; color: var(--ws-text); }
.bfehr-notion-stat-label { font-size: 11px; color: var(--ws-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.bfehr-notion-stat-used .bfehr-notion-stat-num { color: var(--bfehr-danger); }
.bfehr-notion-stat-pending .bfehr-notion-stat-num { color: var(--bfehr-warning); }
.bfehr-notion-stat-remaining .bfehr-notion-stat-num { color: var(--ws-accent); }

/* Progress */
.bfehr-notion-progress { height: 4px; background: var(--ws-border); border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.bfehr-notion-progress-bar { height: 100%; background: var(--ws-accent); border-radius: 99px; transition: width .6s ease; }
.bfehr-notion-progress-label { font-size: 12px; color: var(--ws-muted); margin-bottom: 24px; }

/* ── Leave request ── */
.bfehr-leave-request-intro { padding-bottom: 2px; }
.bfehr-leave-request-intro-copy .bfehr-notion-section-label { margin-bottom: 12px; }
.bfehr-leave-request-intro-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bfehr-leave-request-intro-copy .bfehr-leave-request-intro-meta .bfehr-notion-section-label { flex: 1; margin-bottom: 0; }
.bfehr-leave-request-intro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bfehr-leave-request-intro h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.1; color: var(--ws-text); padding: 0; border: 0; }
.bfehr-leave-request-intro p { margin: 0; font-size: 14px; color: var(--ws-muted); line-height: 1.6; max-width: 680px; }
.bfehr-leave-request-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #ecfdf5; color: #15803d; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.bfehr-notion-leave-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.bfehr-notion-leave-aside { display: flex; flex-direction: column; gap: 12px; }
.bfehr-leave-request-stat-strip { grid-template-columns: repeat(5, 1fr); margin-bottom: 0; }
.bfehr-notion-stat-card { padding: 11px 13px; border: 1px solid var(--ws-border); border-radius: 4px; background: var(--ws-surface); display: flex; align-items: flex-end; justify-content: space-between; }
.bfehr-notion-stat-card-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-notion-stat-card-val { font-size: 20px; font-weight: 800; line-height: 1; color: var(--ws-text); }
.bfehr-notion-stat-card-accent { border-color: #86efac; background: var(--ws-accent-bg); }
.bfehr-notion-stat-card-accent .bfehr-notion-stat-card-val { color: var(--ws-accent); }
.bfehr-notion-preview-card { padding: 13px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); }
.bfehr-notion-preview-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-muted); margin-bottom: 6px; }
.bfehr-notion-preview-num { display: block; font-size: 18px; font-weight: 700; color: var(--ws-text); margin-bottom: 3px; }
.bfehr-notion-preview-range { color: var(--ws-muted); font-size: 12px; margin: 0 0 8px; }
.bfehr-notion-avail-note { font-size: 12px; color: var(--ws-muted); padding: 7px 9px; border-radius: 3px; background: var(--ws-sidebar); }
.bfehr-notion-avail-note.bfehr-availability-warning { background: #fff1f2; color: #9f1239; }
.bfehr-notion-recent-card { padding: 13px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); }
.bfehr-notion-recent-title { font-size: 11px; font-weight: 700; color: var(--ws-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.bfehr-notion-recent-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--ws-border); font-size: 13px; }
.bfehr-notion-recent-item:first-of-type { border-top: none; padding-top: 0; }
.bfehr-notion-recent-name { display: block; font-weight: 500; color: var(--ws-text); }
.bfehr-notion-recent-dates { display: block; color: var(--ws-muted); font-size: 12px; }
.bfehr-notion-form-panel { border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); padding: 20px; }

/* ── Days counter (leave form) ── */
.bfehr-days-counter { display: flex; align-items: baseline; gap: 6px; height: 44px; padding: 0 16px; background: var(--ws-sidebar); border: 1.5px solid var(--ws-border); border-radius: 4px; }
.bfehr-dc-num { font-size: 24px; font-weight: 800; color: var(--ws-accent); line-height: 44px; transition: color .2s; }
.bfehr-dc-num.bfehr-dc-warn { color: var(--bfehr-danger); }
.bfehr-dc-label { font-size: 13px; color: var(--ws-muted); }

/* Submit button */
.bfehr-submit-leave { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 28px; background: var(--ws-accent); color: #fff; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, transform .1s; font-family: inherit; }
.bfehr-submit-leave:hover { background: var(--bfehr-primary-h); }
.bfehr-submit-leave:active { transform: scale(.98); }
.bfehr-submit-leave:disabled { opacity: .6; cursor: not-allowed; }

/* ── Calendar ── */
.bfehr-notion-calendar-wrap { border: 1px solid var(--ws-border); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.bfehr-notion-cal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--ws-border); background: var(--ws-sidebar); gap: 12px; flex-wrap: wrap; }
.bfehr-notion-cal-title { font-size: 15px; font-weight: 600; color: var(--ws-text); }
.bfehr-notion-cal-nav { display: flex; gap: 6px; align-items: center; }
.bfehr-notion-cal-nav-btn { padding: 5px 11px; border-radius: 4px; border: 1px solid var(--ws-border); background: var(--ws-surface); font-size: 13px; color: var(--ws-text); text-decoration: none; transition: background .1s; }
.bfehr-notion-cal-nav-btn:hover { background: var(--ws-hover); color: var(--ws-text); text-decoration: none; }
.bfehr-notion-cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--ws-muted); align-items: center; }
.bfehr-notion-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bfehr-notion-cal-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.bfehr-notion-cal-dot-holiday { background: #f97316; }
.bfehr-notion-cal-dot-event { background: #0ea5e9; }
.bfehr-notion-cal-dot-sunday { background: #ef4444; }
.bfehr-notion-cal-grid-wrap { padding: 10px; overflow-x: auto; }
.bfehr-notion-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; min-width: 520px; }
.bfehr-notion-cal-weekday { padding: 5px 4px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-notion-cal-cell { min-height: 72px; padding: 5px 7px; border: 1px solid var(--ws-border); border-radius: 3px; background: var(--ws-surface); display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .1s, border-color .1s; font: inherit; text-align: left; width: 100%; }
.bfehr-notion-cal-cell:hover { background: var(--ws-hover); }
.bfehr-notion-cal-empty { background: var(--ws-sidebar); border-style: dashed; cursor: default; }
.bfehr-notion-cal-empty:hover { background: var(--ws-sidebar); }
.bfehr-notion-cal-sunday { border-color: #fecaca; }
.bfehr-notion-cal-sunday .bfehr-notion-cal-date { color: #b91c1c; }
.bfehr-notion-cal-today { background: var(--ws-accent-bg) !important; border-color: #86efac !important; }
.bfehr-notion-cal-today .bfehr-notion-cal-date { color: var(--ws-accent); font-weight: 800; }
.bfehr-notion-cal-selected { border-color: var(--ws-accent) !important; box-shadow: inset 0 0 0 1px var(--ws-accent); }
.bfehr-notion-cal-date { font-size: 12px; font-weight: 700; color: var(--ws-text); }
.bfehr-notion-cal-pills { display: flex; flex-wrap: wrap; gap: 2px; }
.bfehr-notion-cal-pill { font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bfehr-notion-cal-pill-holiday { background: #ffedd5; color: #c2410c; }
.bfehr-notion-cal-pill-event { background: #e0f2fe; color: #0369a1; }
.bfehr-notion-cal-aliases { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; }
.bfehr-notion-cal-alias { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #166534; color: #fff; font-size: 8px; font-weight: 800; }
.bfehr-notion-cal-detail-panel { border-top: 1px solid var(--ws-border); padding: 18px 20px; background: var(--ws-sidebar); }
.bfehr-notion-cal-detail-date { font-size: 13px; font-weight: 700; margin: 0 0 4px; color: var(--ws-text); letter-spacing: -.01em; }
.bfehr-notion-cal-detail-hint { font-size: 12px; color: var(--ws-muted); margin: 0 0 14px; line-height: 1.5; }
.bfehr-notion-cal-detail-body { display: flex; flex-direction: column; gap: 14px; }
.bfehr-notion-cal-detail-group { display: flex; flex-direction: column; gap: 8px; }
.bfehr-notion-cal-group-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-muted); margin: 0; }
.bfehr-notion-cal-detail-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 4px; color: var(--ws-text); }
.bfehr-notion-cal-detail-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bfehr-notion-cal-detail-copy strong { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ws-text); }
.bfehr-notion-cal-detail-copy small,
.bfehr-notion-cal-detail-copy p { margin: 0; font-size: 12px; color: var(--ws-muted); line-height: 1.5; }
.bfehr-notion-cal-detail-empty { font-size: 12px; color: var(--ws-muted); line-height: 1.5; }

/* ── Team panels ── */
.bfehr-notion-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.bfehr-focus-summary-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); }
.bfehr-focus-summary-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfehr-focus-summary-kicker { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-focus-summary-copy strong { font-size: 15px; color: var(--ws-text); }
.bfehr-focus-summary-copy span:last-child { font-size: 13px; color: var(--ws-muted); }
.bfehr-focus-summary-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bfehr-focus-topbar-chip {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: start;
  gap: 2px;
  min-width: 154px;
  padding: 0 18px;
  border-left: 1px solid var(--ws-border);
  text-decoration: none;
  color: var(--ws-text);
  background: transparent;
  height: 100%;
  box-sizing: border-box;
}
.bfehr-focus-topbar-value {
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ws-text);
  font-weight: 700;
}
.bfehr-focus-topbar-meta {
  font-size: 10px;
  line-height: 1.2;
  color: var(--ws-muted);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: lowercase;
}
.bfehr-notion-panel { border: 1px solid var(--ws-border); border-radius: 6px; overflow: hidden; background: var(--ws-surface); }
.bfehr-notion-panel-head { padding: 11px 15px; border-bottom: 1px solid var(--ws-border); background: var(--ws-sidebar); }
.bfehr-notion-panel-title { font-size: 13px; font-weight: 600; margin: 0 0 2px; color: var(--ws-text); }
.bfehr-notion-panel-sub { font-size: 12px; color: var(--ws-muted); margin: 0; }
.bfehr-notion-panel-list { display: flex; flex-direction: column; }
.bfehr-notion-panel-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 15px; border-bottom: 1px solid var(--ws-border); transition: background .1s; }
.bfehr-notion-panel-item:last-child { border-bottom: none; }
.bfehr-notion-panel-item:hover { background: var(--ws-hover); }
.bfehr-notion-panel-item-main { min-width: 0; flex: 1; }
.bfehr-notion-panel-item-name { font-size: 13px; font-weight: 600; color: var(--ws-text); display: block; margin-bottom: 2px; }
.bfehr-notion-panel-item-sub { font-size: 12px; color: var(--ws-muted); display: block; line-height: 1.5; }
.bfehr-notion-panel-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.bfehr-notion-panel-empty { padding: 18px 15px; text-align: center; color: var(--ws-muted); font-size: 13px; }
.bfehr-btn-xs { padding: 6px 10px; font-size: 11px; min-height: 0; line-height: 1.2; border-radius: 999px; }
.bfehr-notion-panel-collapsible[open] { box-shadow: 0 10px 24px rgba(15, 23, 42, .04); }
.bfehr-notion-birthday-panel { align-self: start; height: auto; }
.bfehr-notion-birthday-panel:not([open]) { overflow: hidden; }
.bfehr-notion-birthday-panel:not([open]) .bfehr-notion-panel-head { border-bottom: none; }
.bfehr-notion-panel-head-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; user-select: none; }
.bfehr-notion-panel-head-toggle::-webkit-details-marker { display: none; }
.bfehr-notion-panel-toggle-side { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bfehr-notion-birthday-summary-text { font-size: 12px; color: var(--ws-muted); }
.bfehr-notion-birthday-summary-icon { width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--ws-border); display: inline-flex; align-items: center; justify-content: center; color: var(--ws-muted); font-size: 15px; line-height: 1; }
.bfehr-notion-panel-collapsible[open] .bfehr-notion-birthday-summary-icon { transform: rotate(45deg); }
.bfehr-notion-birthday-item { padding-top: 9px; padding-bottom: 9px; }
.bfehr-notion-birthday-item .bfehr-notion-panel-item-name { font-size: 12.5px; margin-bottom: 1px; }
.bfehr-notion-birthday-item .bfehr-notion-panel-item-sub { font-size: 11.5px; line-height: 1.4; }
.bfehr-notion-birthday-age { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.bfehr-notion-birthday-greeting { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; color: #15803d; font-size: 11.5px; font-weight: 700; }
.bfehr-notion-birthday-item.is-today { background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%); }
.bfehr-notion-birthday-item.is-today .bfehr-notion-birthday-age { background: #ecfdf5; border-color: #bbf7d0; color: #15803d; }

/* ── HR Dashboard ── */
.bfehr-notion-kpi-strip { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 1px; background: var(--ws-border); border: 1px solid var(--ws-border); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.bfehr-notion-kpi-card { background: var(--ws-surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.bfehr-notion-kpi-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: currentColor; }
.bfehr-icon-kpi { width: 18px; height: 18px; }
.bfehr-notion-kpi-num { font-size: clamp(18px, 5vw, 26px); font-weight: 800; line-height: 1; color: var(--ws-text); overflow-wrap: anywhere; }
.bfehr-notion-kpi-label { font-size: 11px; color: var(--ws-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.bfehr-notion-kpi-accent .bfehr-notion-kpi-num { color: var(--ws-accent); }
.bfehr-notion-kpi-warn .bfehr-notion-kpi-num { color: var(--bfehr-warning); }
.bfehr-notion-hr-section { margin-top: 28px; }
.bfehr-notion-hr-section:first-child { margin-top: 0; }
.bfehr-notion-sub-head { display: flex !important; align-items: center; gap: 8px; margin: 0 0 10px; }
.bfehr-notion-sub-title { font-size: 13px; font-weight: 600; color: var(--ws-text); }
.bfehr-notion-sub-count { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--ws-accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; flex-shrink: 0; line-height: 1; padding: 0; }
.bfehr-hr-filter-form { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bfehr-hr-filter-form select { min-width: 132px; padding: 8px 10px; border: 1px solid var(--ws-border, #E9E9E7); border-radius: 10px; background: #fff; color: var(--ws-text, #37352F); font-size: 12px; }
.bfehr-hr-actions { white-space: nowrap; }
.bfehr-hr-decide { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: opacity .15s; }
.bfehr-hr-decide:disabled { opacity: .45; cursor: not-allowed; }
.bfehr-btn-approve { background: #dcfce7; color: #15803d; margin-right: 4px; }
.bfehr-btn-approve:hover { background: #bbf7d0; }
.bfehr-btn-reject { background: #fee2e2; color: #b91c1c; }
.bfehr-btn-reject:hover { background: #fecaca; }
.bfehr-notion-vacancy-list { display: flex; flex-direction: column; gap: 6px; }
.bfehr-notion-vacancy-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 4px; transition: background .1s; }
.bfehr-notion-vacancy-card:hover { background: var(--ws-hover); }
.bfehr-notion-vacancy-info { flex: 1; min-width: 0; }
.bfehr-notion-vacancy-info strong { font-size: 14px; font-weight: 600; color: var(--ws-text); display: block; margin-bottom: 4px; }
.bfehr-notion-vacancy-meta-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.bfehr-notion-app-count { font-size: 12px; color: var(--ws-muted); font-weight: 600; }
.bfehr-notion-hr-empty { font-size: 13px; color: var(--ws-muted); padding: 14px; border: 1px dashed var(--ws-border); border-radius: 4px; text-align: center; margin-top: 2px; }
/* Scroll affordance: a shadow fades in at whichever edge still has
   scrollable content and fades out once you've scrolled past it, so a
   horizontally-scrollable table (common on mobile) doesn't look like
   it's simply been cut off. Pure-CSS technique: the two "cover"
   gradients scroll with the content (background-attachment: local) and
   mask the shadow layers near an edge once you've scrolled to it; the
   two shadow gradients stay fixed to the container (scroll) so they're
   always positioned at the edges. */
.bfehr-notion-table-wrap {
  overflow-x: auto;
  position: relative;
  background:
    linear-gradient(to right, var(--ws-surface, #fff) 30%, rgba(255,255,255,0)) left,
    linear-gradient(to left, var(--ws-surface, #fff) 30%, rgba(255,255,255,0)) right,
    linear-gradient(to right, rgba(15,23,42,.16), rgba(15,23,42,0)) left,
    linear-gradient(to left, rgba(15,23,42,.16), rgba(15,23,42,0)) right;
  background-repeat: no-repeat;
  background-color: var(--ws-surface, #fff);
  background-size: 32px 100%, 32px 100%, 12px 100%, 12px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* ── Daily focus / attendance ── */
.bfehr-focus-shell { display: flex; flex-direction: column; gap: 16px; }
.bfehr-focus-intro { padding-bottom: 2px; }
.bfehr-focus-intro-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bfehr-focus-intro-copy .bfehr-notion-section-label { margin-bottom: 12px; }
.bfehr-focus-intro-copy .bfehr-focus-intro-meta .bfehr-notion-section-label { flex: 1; margin-bottom: 0; }
.bfehr-focus-intro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bfehr-focus-intro h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.1; color: var(--ws-text); }
.bfehr-focus-intro p { margin: 0; max-width: 720px; color: var(--ws-muted); line-height: 1.6; font-size: 14px; }
.bfehr-focus-status-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.bfehr-focus-status-draft,
.bfehr-focus-status-not_started { background: var(--bfehr-status-neutral-bg, #f1f5f9); color: var(--bfehr-status-neutral-text-strong, #475569); }
.bfehr-focus-status-checked_in { background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-focus-status-checked_out { background: var(--bfehr-status-info-strong-bg, #dbeafe); color: var(--bfehr-status-info-strong-text, #1d4ed8); }
.bfehr-focus-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ws-border); border: 1px solid var(--ws-border); border-radius: 4px; overflow: hidden; }
.bfehr-focus-stat-card { padding: 14px 16px; background: var(--ws-surface); }
.bfehr-focus-stat-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-focus-stat-value { font-size: 22px; line-height: 1; color: var(--ws-text); }
.bfehr-focus-board { position: relative; padding: 20px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); box-shadow: none; overflow: hidden; }
.bfehr-focus-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.bfehr-focus-board-head .bfehr-notion-section-label { margin-bottom: 8px; }
.bfehr-focus-board-head p:last-child { margin: 0; color: var(--ws-muted); line-height: 1.55; max-width: 680px; font-size: 13px; }
.bfehr-focus-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.bfehr-focus-locked-overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(15,23,42,.58); backdrop-filter: blur(3px); z-index: 4; text-align: center; }
.bfehr-focus-locked-overlay.is-visible { display: flex; }
.bfehr-focus-locked-message { max-width: 620px; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; font-weight: 700; color: #fff; letter-spacing: -.02em; text-wrap: balance; }
.bfehr-focus-progress { margin-bottom: 6px; }
.bfehr-focus-list { display: flex; flex-direction: column; gap: 10px; }
.bfehr-focus-empty { padding: 18px; border: 1px dashed var(--ws-border); border-radius: 4px; text-align: center; color: var(--ws-muted); font-size: 13px; }
.bfehr-focus-task {
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-2);
  background: var(--ws-surface);
  overflow: hidden;
  position: relative;
}
.bfehr-focus-task.has-dependency::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--bfehr-dependency-color, #c2410c);
}
.bfehr-focus-task.is-unblocked::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--ws-color-unblocked);
}
.bfehr-focus-task-row {
  display: flex;
  flex-direction: column;
  gap: var(--ws-space-2);
  padding: 10px 14px 8px;
}
.bfehr-focus-task-main {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--ws-space-3);
}
.bfehr-focus-task-body {
  min-width: 0;
  display: block;
}
.bfehr-focus-task-primary { min-width: 0; }
.bfehr-focus-task-controls {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: start;
  gap: 8px;
  align-self: stretch;
}
.bfehr-focus-task-meta,
.bfehr-focus-task-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bfehr-focus-dependency-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 14px 10px 56px;
}
.bfehr-focus-dependency-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ws-muted);
}
.bfehr-focus-dependency-select {
  width: 100%;
  min-height: var(--ws-control-md);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-2);
  background: var(--ws-panel);
  color: var(--ws-text);
  padding: 0 34px 0 13px;
  font-size: 12.5px;
  line-height: 1.2;
}
.bfehr-focus-dependency-value {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ws-border);
  border-radius: 14px;
  background: var(--ws-panel);
  color: var(--ws-text);
  font-size: 13px;
  line-height: 1.45;
}
.bfehr-focus-task-input,
.bfehr-focus-subtask-input,
.bfehr-focus-note-wrap textarea {
  width: 100%;
  border: 1px solid #d9e2dd;
  border-radius: 16px;
  padding: 12px 16px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
}
.bfehr-focus-task-input {
  min-height: var(--ws-control-lg);
  font-size: 14px;
  line-height: 1.35;
  padding: 9px 14px;
  border-radius: var(--ws-radius-2);
}
.bfehr-focus-subtask-input {
  min-height: 42px;
  border-radius: var(--ws-radius-2);
  padding: 8px 13px;
  font-size: 14px;
}
.bfehr-focus-task-input:focus,
.bfehr-focus-subtask-input:focus,
.bfehr-focus-note-wrap textarea:focus { outline: none; border-color: var(--bfehr-primary); box-shadow: 0 0 0 3px rgba(42,181,115,.12); }
.bfehr-focus-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-self: center;
}
.bfehr-focus-check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bfehr-focus-check span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #50627e;
  background: transparent;
  display: inline-block;
}
.bfehr-focus-check input:checked + span { background: #2AB573; border-color: #2AB573; box-shadow: inset 0 0 0 4px #fff; }
.bfehr-focus-task-btn {
  border: 1px solid transparent;
  background: rgba(42,181,115,.08);
  color: #15803d;
  border-radius: var(--ws-radius-2);
  min-height: var(--ws-control-md);
  padding: 0 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.bfehr-icon-btn { width: 15px; height: 15px; }
.bfehr-focus-task-btn-text { line-height: 1; }
.bfehr-focus-task-btn:hover {
  background: rgba(42,181,115,.12);
  border-color: rgba(42,181,115,.18);
  transform: translateY(-1px);
}
.bfehr-focus-task-btn.is-danger {
  width: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 999px;
  background: rgba(239,68,68,.04);
  color: #dc2626;
  border-color: rgba(239,68,68,.14);
}
.bfehr-focus-task-btn.is-danger:hover {
  background: rgba(239,68,68,.09);
  border-color: rgba(239,68,68,.2);
}
.bfehr-focus-subtasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 14px 58px;
  margin-top: 0;
}
.bfehr-focus-subtask {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 0;
}
.bfehr-focus-subtask-main {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}
.bfehr-focus-subtask-body {
  min-width: 0;
  display: block;
}
.bfehr-focus-subtask-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bfehr-focus-task-status,
.bfehr-focus-subtask-status {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-pill);
  background: var(--ws-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a8b1c2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 13px) 50%;
  background-size: 10px 6px;
  color: var(--ws-text);
  min-height: var(--ws-control-md);
  padding: 0 32px 0 13px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  min-width: 116px;
  flex-shrink: 0;
}
.bfehr-focus-dependency-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a8b1c2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) 50%;
  background-size: 10px 6px;
}
.bfehr-focus-task-state,
.bfehr-focus-subtask-state {
  display: inline-flex;
  align-items: center;
  min-height: var(--ws-control-sm);
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ws-hover);
  color: var(--ws-muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.bfehr-focus-status-switch {
  display: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 2px;
  border: 1px solid var(--ws-border);
  border-radius: 999px;
  background: rgba(148,163,184,.08);
}
.bfehr-focus-status-switch-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ws-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.bfehr-focus-status-switch-btn.is-active {
  background: var(--ws-surface);
  color: var(--ws-text);
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.bfehr-focus-status-switch-btn:disabled {
  opacity: .5;
  cursor: default;
}
.bfehr-focus-blocked-chip,
.bfehr-focus-subprogress {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.bfehr-focus-blocked-chip { background: var(--ws-color-link-bg); color: var(--ws-color-link); }
.bfehr-focus-carry-chip {
  display: inline-block;
  min-height: 10px;
  width: 10px;
  height: 10px;
  min-width: 10px;
  flex: 0 0 10px;
  padding: 0;
  border-radius: 999px;
  background-color: var(--ws-color-carry);
  box-shadow: none;
}
.bfehr-focus-subprogress { background: var(--ws-color-progress-bg); color: var(--ws-color-progress); min-width: 40px; justify-content: center; }
.bfehr-focus-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.bfehr-focus-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  color: var(--ws-muted);
  font-size: 11px;
}
.bfehr-focus-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bfehr-focus-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ws-muted);
  flex-shrink: 0;
}
.bfehr-focus-legend-dot.is-carry { background: var(--ws-color-carry); }
.bfehr-focus-legend-dot.is-unblocked { background: var(--ws-color-unblocked); }
.bfehr-focus-legend-dot.is-blocked-link { background: var(--ws-color-link); }
.bfehr-focus-checkout-dialog[hidden] { display: none !important; }
.bfehr-focus-checkout-dialog { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15,23,42,.38); backdrop-filter: blur(4px); }
.bfehr-focus-checkout-card { width: min(100%, 520px); border: 1px solid var(--ws-border); border-radius: 18px; background: #fff; box-shadow: 0 22px 50px rgba(15,23,42,.18); overflow: hidden; }
.bfehr-focus-checkout-head { padding: 22px 22px 16px; border-bottom: 1px solid var(--ws-border); }
.bfehr-focus-checkout-head h4 { margin: 0 0 6px; font-size: 26px; line-height: 1.08; letter-spacing: -.03em; color: var(--ws-text); }
.bfehr-focus-checkout-head p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ws-muted); }
.bfehr-focus-checkout-note { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 0; }
.bfehr-focus-checkout-note label { font-size: 13px; font-weight: 700; color: var(--ws-text); }
.bfehr-focus-checkout-note textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid #d9e2dd; border-radius: 12px; padding: 11px 12px; background: #fff; color: #0f172a; font-family: inherit; font-size: 14px; }
.bfehr-focus-checkout-note textarea:focus { outline: none; border-color: var(--bfehr-primary); box-shadow: 0 0 0 3px rgba(42,181,115,.12); }
.bfehr-focus-checkout-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 22px; }
.bfehr-focus-list.is-readonly .bfehr-focus-task,
.bfehr-focus-list.is-readonly .bfehr-focus-subtask { background: var(--ws-surface, #fff); }
.bfehr-focus-detail-list { display: flex; flex-direction: column; gap: 10px; }
.bfehr-focus-detail-item { padding: 12px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface, #fff); }
.bfehr-focus-detail-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bfehr-focus-detail-children { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-left: 8px; }
.bfehr-focus-detail-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ws-text); }
.bfehr-focus-detail-status { width: 10px; height: 10px; border-radius: 999px; background: #cbd5e1; display: inline-block; }
.bfehr-focus-detail-status.is-done { background: #22c55e; }@media (max-width: 1280px) {
  .bfehr-focus-task-controls,
  .bfehr-focus-subtask-controls {
    justify-content: flex-start;
  }
  .bfehr-focus-task-meta,
  .bfehr-focus-task-actions {
    flex-wrap: wrap;
  }
  .bfehr-focus-dependency-row {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 64px;
  }
}

/* Tables (shared) */
/* border-spacing: 0 with separate (not collapse) — position:sticky on a
   <td>/<th> doesn't reliably work under border-collapse:collapse, which
   silently broke the sticky first column below. Every cell here only
   ever sets its own border-bottom (no shared/adjacent borders), so
   there's no double-border seam to compensate for switching models. */
/* overflow: visible below counters the site theme's own global table
   styling (Jupiter), which sets overflow:hidden on <table> — that's an
   ancestor between the sticky first-column cells and their intended
   scrolling container (.bfehr-notion-table-wrap), which silently
   breaks position:sticky on the cells regardless of border-collapse. */
.bfehr-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; margin-top: 4px; overflow: visible; }
.bfehr-table th { text-align: left; padding: 8px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-muted); border-bottom: 1px solid var(--ws-border); white-space: nowrap; }
.bfehr-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ws-border); vertical-align: middle; color: var(--ws-text); white-space: nowrap; }
.bfehr-table td:first-child { white-space: normal; min-width: 140px; }
/* List-table standard: never squeeze a row. Buttons and badges keep one line, the table takes the width its content needs,
   and .bfehr-notion-table-wrap scrolls sideways when that is wider than the screen. Stacked (phone card) tables are exempt. */
.bfehr-table:not(.is-stack) { min-width: max-content; }
.bfehr-table .bfehr-btn, .bfehr-table .bfehr-badge { white-space: nowrap; }
.bfehr-table tbody tr:last-child td { border-bottom: none; }
.bfehr-table tbody tr:hover td { background: var(--ws-hover, rgba(55,53,47,.06)); }
/* Keep the row's identifying column (name/employee/reference — always
   the first column across these tables) in view while scrolling a wide
   table horizontally, instead of losing row context past the edge. */
.bfehr-table th:first-child,
.bfehr-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--ws-surface, #fff);
}
/* The generic tr:hover td rule above replaces this cell's opaque
   background with a translucent one, letting columns scrolled underneath
   the sticky first column show through. Use an inset box-shadow instead
   so the hover tint layers on top of the opaque background rather than
   replacing it. */
.bfehr-table tbody tr:hover td:first-child {
  background: var(--ws-surface, #fff);
  box-shadow: inset 9999px 0 0 var(--ws-hover, rgba(55,53,47,.06));
}
/* The sticky cell has real content scrolled underneath it, so its hover
   state can't just swap in --ws-hover as a background the way a normal
   (non-sticky) cell does — --ws-hover is translucent, and replacing the
   opaque base background with it let whatever column had scrolled
   under the sticky one show through. An inset box-shadow layers the
   hover tint on top of the opaque background instead of replacing it. */
.bfehr-table tbody tr:hover td:first-child { box-shadow: inset 9999px 0 0 var(--ws-hover, rgba(55,53,47,.06)); }
.bfehr-table a { color: var(--bfehr-primary); text-decoration: none; }
.bfehr-row-unread td { background: rgba(239,68,68,.02); }
.bfehr-unread-dot { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 999px; background: #ef4444; vertical-align: middle; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

/* Eye-icon action column */
.bfehr-table td .bfehr-emp-view-btn { vertical-align: middle; }
.bfehr-table th:empty { width: 48px; padding: 8px 4px; }
.bfehr-table td:has(.bfehr-emp-view-btn) { text-align: center; width: 48px; padding: 10px 4px; }
.bfehr-table td:has(.bfehr-row-actions) { text-align: center; width: 72px; padding: 10px 8px; }

.bfehr-focus-history-head { align-items: center; gap: 16px; flex-wrap: wrap; }
.bfehr-focus-history-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bfehr-focus-date-filter { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.bfehr-focus-date-filter label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-muted); }
.bfehr-focus-date-filter input[type="date"] { min-width: 158px; border: 1px solid var(--ws-border); border-radius: 10px; padding: 10px 12px; background: var(--ws-surface); color: var(--ws-text); font: inherit; }
.bfehr-focus-history-note { margin: 0 0 14px; color: var(--ws-muted); font-size: 13px; line-height: 1.55; }
.bfehr-row-actions { position: relative; display: inline-flex; justify-content: center; }
.bfehr-row-actions-toggle { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--ws-border); background: var(--ws-surface); color: var(--ws-muted); font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 0; }
.bfehr-row-actions-toggle svg { display: block; width: 16px; height: 16px; pointer-events: none; }
.bfehr-row-actions-toggle:hover { color: var(--ws-text); background: var(--ws-hover); }
.bfehr-row-actions-menu { display: none; }
.bfehr-floating-row-menu { position: fixed; min-width: 152px; border: 1px solid var(--ws-border); border-radius: 12px; background: var(--ws-surface); box-shadow: 0 18px 32px rgba(15,23,42,.18); padding: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 120; }
.bfehr-row-actions-item { width: 100%; text-align: left; border: none; background: transparent; border-radius: 8px; padding: 9px 10px; color: var(--ws-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.bfehr-row-actions-item { display: block; box-sizing: border-box; text-decoration: none; }
.bfehr-row-actions-item.is-danger { color: #b91c1c !important; }
.bfehr-row-actions-item:hover { background: var(--ws-hover); }
.bfehr-row-actions-item:disabled { opacity: .55; cursor: wait; }

/* Status badges in tables */
.bfehr-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; display: inline-block; }
.bfehr-status-new          { background: var(--bfehr-status-teal-bg, #ccfbf1); color: var(--bfehr-status-teal-text, #0f766e); }
.bfehr-status-reviewed     { background: var(--bfehr-status-info-bg, #e0f2fe); color: var(--bfehr-status-info-text, #0369a1); }
.bfehr-status-shortlisted  { background: var(--bfehr-status-accent-bg, #ede9fe); color: var(--bfehr-status-accent-text, #7c3aed); }
.bfehr-status-rejected     { background: var(--bfehr-status-danger-bg, #fee2e2); color: var(--bfehr-status-danger-text, #b91c1c); }
.bfehr-status-hired        { background: var(--bfehr-status-success-bg, #dcfce7); color: var(--bfehr-status-success-text, #15803d); }
.bfehr-status-suppressed   { background: var(--bfehr-status-warning-soft-bg, #fef3c7); color: var(--bfehr-status-warning-soft-text, #92400e); }

/* Misc */
.bfehr-notion-empty { padding: 18px; text-align: center; color: var(--ws-muted, #9B9A97); font-size: 13px; border: 1px dashed var(--ws-border, #E9E9E7); border-radius: 4px; }
.bfehr-leave-low { color: var(--bfehr-danger); font-weight: 600; }

/* ── Avatar picker (profile tab) ── */
.bfehr-avatar-picker { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.bfehr-avatar-preview { position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.bfehr-avatar-preview img, .bfehr-avatar-preview .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; }
.bfehr-avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; border-radius: 50%; }
.bfehr-avatar-preview:hover .bfehr-avatar-overlay { opacity: 1; }
.bfehr-avatar-overlay-icon { width: 22px; height: 22px; color: #fff; }
.bfehr-icon-avatar { width: 22px; height: 22px; }
.bfehr-avatar-overlay-text { font-size: 10px; color: #fff; font-weight: 600; margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
.bfehr-avatar-remove { background: none; border: none; color: var(--bfehr-danger, #dc2626); font-size: 12px; cursor: pointer; margin-top: 8px; padding: 4px 10px; border-radius: 4px; transition: background .12s; }
.bfehr-avatar-remove:hover { background: rgba(220,38,38,.08); }

/* ── Employee view button ── */
.bfehr-emp-view-btn { background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background .12s; line-height: 1; opacity: .5; display: inline-flex; align-items: center; justify-content: center; }
.bfehr-emp-view-btn:hover { background: var(--ws-hover); opacity: 1; }
.bfehr-view-icon { width: 18px; height: 18px; display: inline-block; color: var(--bfehr-primary); background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.2 1.2 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287'/%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.2 1.2 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287'/%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3e%3c/svg%3e") center / contain no-repeat; }

/* ── Employee detail right sidebar ── */
.bfehr-emp-detail-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw; box-sizing: border-box; background: var(--ws-surface, #fff); border-left: 1px solid var(--ws-border, #E9E9E7); z-index: 60; transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(55,53,47,.08); }
.bfehr-emp-detail-panel.bfehr-emp-detail-open { transform: translateX(0); }
.bfehr-emp-detail-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--ws-border, #E9E9E7); flex-shrink: 0; }
.bfehr-emp-detail-title { font-size: 14px; font-weight: 700; color: var(--ws-text, #37352F); }
.bfehr-emp-detail-close { background: none; border: none; color: var(--ws-muted, #9B9A97); cursor: pointer; padding: 4px; line-height: 1; border-radius: 8px; transition: background .12s, color .12s; display: inline-flex; align-items: center; justify-content: center; }
.bfehr-icon-close { width: 18px; height: 18px; }
.bfehr-emp-detail-close:hover { background: var(--ws-hover); color: var(--ws-text); }
.bfehr-emp-detail-body { flex: 1; overflow-y: auto; padding: 20px; }
.bfehr-emp-detail-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.18); z-index: 55; }
.bfehr-emp-detail-overlay.bfehr-emp-detail-open { display: block; }

/* Detail panel content */
.bfehr-emp-detail-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.bfehr-emp-detail-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--ws-border); }
.bfehr-emp-detail-identity-info { flex: 1; min-width: 0; }
.bfehr-emp-detail-name { font-size: 18px; font-weight: 700; color: var(--ws-text, #37352F); display: block; line-height: 1.3; }
.bfehr-emp-detail-role { font-size: 13px; color: var(--ws-muted, #9B9A97); display: block; }
.bfehr-emp-detail-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; margin-top: 4px; }
.bfehr-emp-detail-badge-active { background: #dcfce7; color: #15803d; }
.bfehr-emp-detail-badge-inactive, .bfehr-emp-detail-badge-terminated { background: #fee2e2; color: #b91c1c; }
.bfehr-emp-detail-badge-probation { background: #fef9c3; color: #a16207; }
.bfehr-leave-detail-badge-pending { background: #fef9c3; color: #a16207; }
.bfehr-leave-detail-badge-approved { background: #dcfce7; color: #15803d; }
.bfehr-leave-detail-badge-rejected { background: #fee2e2; color: #b91c1c; }
.bfehr-leave-detail-badge-draft,
.bfehr-leave-detail-badge-not_started { background: #f1f5f9; color: #475569; }
.bfehr-leave-detail-badge-checked_in { background: #dcfce7; color: #15803d; }
.bfehr-leave-detail-badge-checked_out { background: #dbeafe; color: #1d4ed8; }
.bfehr-leave-detail-badge-open { background: #e0f2fe; color: #0369a1; }
.bfehr-leave-detail-badge-won { background: #dcfce7; color: #15803d; }
.bfehr-leave-detail-badge-lost,
.bfehr-leave-detail-badge-unqualified { background: #fee2e2; color: #b91c1c; }
.bfehr-leave-detail-badge-new,
.bfehr-leave-detail-badge-selected,
.bfehr-leave-detail-badge-shortlisted,
.bfehr-leave-detail-badge-in-progress { background: #e0f2fe; color: #0369a1; }
.bfehr-crm-detail-time { display: inline-block; margin-left: 8px; color: var(--ws-muted, #9B9A97); font-size: 11px; font-weight: 500; }

.bfehr-emp-detail-section { margin-bottom: 20px; }
.bfehr-emp-detail-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-muted, #9B9A97); margin-bottom: 8px; display: block; }
.bfehr-emp-detail-props { display: flex; flex-direction: column; border: 1px solid var(--ws-border, #E9E9E7); border-radius: 4px; overflow: hidden; }
.bfehr-emp-detail-prop { display: flex; border-bottom: 1px solid var(--ws-border, #E9E9E7); font-size: 13px; }
.bfehr-emp-detail-prop:last-child { border-bottom: none; }
.bfehr-emp-detail-prop-label { width: 120px; flex-shrink: 0; padding: 8px 12px; font-weight: 600; color: var(--ws-muted, #9B9A97); font-size: 12px; border-right: 1px solid var(--ws-border, #E9E9E7); display: flex; align-items: center; }
.bfehr-emp-detail-prop-value { flex: 1; padding: 8px 12px; color: var(--ws-text, #37352F); word-break: break-word; }

.bfehr-emp-detail-leave-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ws-border, #E9E9E7); border: 1px solid var(--ws-border, #E9E9E7); border-radius: 4px; overflow: hidden; }
.bfehr-emp-detail-leave-stat { background: var(--ws-surface, #fff); padding: 10px 12px; text-align: center; }
.bfehr-emp-detail-leave-num { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--ws-text); }
.bfehr-emp-detail-leave-label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ws-muted); font-weight: 500; }
.bfehr-leave-detail-actions { display: flex; flex-direction: column; gap: 10px; }
.bfehr-leave-detail-textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid var(--ws-border, #E9E9E7); border-radius: 4px; padding: 10px 12px; background: var(--ws-surface, #fff); color: var(--ws-text, #37352F); }
.bfehr-leave-detail-action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bfehr-merch-detail-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bfehr-merch-detail-image-link { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--ws-border, #E9E9E7); background: #fff; }
.bfehr-merch-detail-image { display: block; width: 100%; height: 140px; object-fit: cover; }

/* Mobile overlay */
.bfehr-notion-mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 40; }
.bfehr-notion-mob-overlay.bfehr-mob-open { display: block; }

/* Responsive */@media (max-width: 768px) {
  .bfehr-notion-ws {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 100svh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-x: hidden;
  }
  .bfehr-notion-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; height: 100vh; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 4px 0 20px rgba(55,53,47,.12); border-radius: 0; }
  .bfehr-notion-sidebar.bfehr-mob-open { transform: translateX(0); }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-sidebar { width: 260px; padding-left: 8px; padding-right: 8px; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-sidebar-head { justify-content: space-between; flex-direction: row; gap: 10px; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-ws-label { justify-content: flex-start; padding: 10px 10px 16px; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-ws-logo { width: 120px; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-identity { justify-content: flex-start; padding: 8px 10px; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-identity-info,
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-nav-text,
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-subnav,
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-leave-chip { display: block; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-nav-link,
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-logout { justify-content: flex-start; gap: 8px; padding-left: 10px; padding-right: 10px; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-nav-icon { width: 20px; height: 20px; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-sidebar-footer { display: block; }
  .bfehr-notion-ws.is-sidebar-collapsed .bfehr-notion-side-toggle-icon { transform: none; }
  .bfehr-notion-mob-toggle { display: flex; }
  .bfehr-notion-main {
    width: 100%;
    border-left: none;
    border-right: none;
    border-radius: 0;
    overflow-x: hidden;
  }
  .bfehr-notion-content {
    padding: 16px 14px 32px;
    overflow-x: hidden;
  }
  .bfehr-notion-topbar {
    min-height: 52px;
    padding: 0 12px;
  }
  .bfehr-notion-breadcrumb {
    font-size: 12px;
  }
  .bfehr-notion-topbar-actions {
    margin-left: 10px;
  }
  .bfehr-notion-notify-wrap {
    padding: 0 10px;
  }
  .bfehr-notion-kpi-strip { grid-template-columns: repeat(2, 1fr) !important; }
  .bfehr-focus-summary-panel { flex-direction: column; align-items: flex-start; }
  .bfehr-focus-summary-actions { width: 100%; justify-content: space-between; }
  .bfehr-focus-topbar-chip { display: none; }
  .bfehr-workboard-pane-head { flex-direction: column; align-items: flex-start; }
  .bfehr-focus-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
  .bfehr-focus-board {
    padding: 10px;
    border-radius: 10px;
    overflow-x: hidden;
  }
  .bfehr-focus-locked-overlay { padding: 22px; }
  .bfehr-focus-locked-message { font-size: clamp(22px, 6vw, 30px); }
  .bfehr-focus-board-head { flex-direction: column; }
  .bfehr-focus-toolbar { justify-content: flex-start; }
  .bfehr-workboard-hero,
  .bfehr-workboard-pane,
  .bfehr-workboard-section,
  .bfehr-workboard-card {
    border-radius: 10px;
  }
  .bfehr-workboard-hero,
  .bfehr-workboard-pane {
    padding-left: 14px;
    padding-right: 14px;
  }
  .bfehr-focus-task {
    border-radius: 10px;
    border-left-width: 1px;
    border-right-width: 1px;
    overflow: hidden;
    background: var(--ws-surface);
  }
  .bfehr-focus-task-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 10px 8px;
  }
  .bfehr-focus-task-main {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
  }
  .bfehr-focus-task-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .bfehr-focus-task-primary,
  .bfehr-focus-subtask-body {
    min-width: 0;
  }
  .bfehr-focus-task-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "status meta"
      "actions actions";
    align-items: center;
    gap: 7px 8px;
    min-width: 0;
  }
  .bfehr-focus-task-controls > .bfehr-focus-task-status,
  .bfehr-focus-task-controls > .bfehr-focus-task-state {
    grid-area: status;
    width: 100%;
    min-width: 0;
  }
  .bfehr-focus-task-status,
  .bfehr-focus-subtask-status {
    display: none;
  }
  .bfehr-focus-status-switch {
    display: inline-flex;
  }
  .bfehr-focus-task-meta {
    grid-area: meta;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .bfehr-focus-task-actions {
    grid-area: actions;
    width: 100%;
    margin-left: 0;
    gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
  }
  .bfehr-focus-task-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 10px;
  }
  .bfehr-focus-task-btn .bfehr-icon-btn {
    width: 14px;
    height: 14px;
  }
  .bfehr-focus-task-btn.is-danger {
    width: 34px;
    min-width: 34px;
  }
  .bfehr-focus-task-status,
  .bfehr-focus-task-state,
  .bfehr-focus-subtask-status,
  .bfehr-focus-subtask-state {
    margin-left: 0;
    min-width: 0;
  }
  .bfehr-focus-dependency-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 10px 10px;
    border-top: 1px solid rgba(148,163,184,.12);
  }
  .bfehr-focus-dependency-label {
    font-size: 10px;
    letter-spacing: .11em;
  }
  .bfehr-focus-dependency-select,
  .bfehr-focus-dependency-value {
    min-height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }
  .bfehr-focus-subtasks {
    padding: 2px 10px 10px;
    gap: 0;
  }
  .bfehr-focus-subtask {
    padding: 8px 0 0;
  }
  .bfehr-focus-subtask-main {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
  }
  .bfehr-focus-subtask-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 10px 34px;
    gap: 8px;
    align-items: center;
    padding-left: 32px;
    padding-top: 6px;
  }
  .bfehr-focus-subtask + .bfehr-focus-subtask {
    border-top: 1px solid rgba(148,163,184,.10);
  }
  .bfehr-focus-actions { flex-direction: column-reverse; }
  .bfehr-focus-actions .bfehr-btn { width: 100%; }
  .bfehr-focus-checkout-dialog { padding: 16px; }
  .bfehr-focus-checkout-actions { flex-direction: column-reverse; }
  .bfehr-focus-checkout-actions .bfehr-btn { width: 100%; }
  .bfehr-notion-leave-layout { grid-template-columns: 1fr; }
  .bfehr-notion-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .bfehr-notion-notify-panel { right: 0; width: min(360px, calc(100vw - 24px)); }
  .bfehr-prop-label { width: 120px; }
  .bfehr-merch-detail-images { grid-template-columns: 1fr; }
  .bfehr-crm-empty-content { grid-template-columns: 1fr; }
  .bfehr-crm-stage-health-row,
  .bfehr-crm-stage-health-top,
  .bfehr-crm-stage-health-bottom { flex-direction: column; align-items: flex-start; }
  .bfehr-crm-stage-health-value { text-align: left; }
  .bfehr-crm-stage-health-labels { justify-content: flex-start; }
  .bfehr-crm-hero { flex-direction: column; }
  .bfehr-crm-pagehead { flex-direction: column; padding: 18px 18px 16px; }
  .bfehr-crm-pagehead h3 { font-size: 28px; }
  .bfehr-crm-snapshot-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfehr-crm-snapshot-card:nth-child(2n) { border-right: 0; }
  .bfehr-crm-snapshot-card:nth-child(-n+2) { border-bottom: 1px solid var(--ws-border); }
  .bfehr-crm-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 18px; }
  .bfehr-crm-toolbar-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .bfehr-crm-pipeline-panel { padding: 18px; }
  .bfehr-crm-board { grid-auto-columns: 292px; gap: 16px; }
  .bfehr-crm-stage-body { min-height: 160px; }
  .bfehr-crm-board-card { padding: 15px; gap: 11px; }
  .bfehr-crm-board-footer { flex-wrap: wrap; }
  .bfehr-crm-card-links { width: 100%; justify-content: flex-start; }
  .bfehr-crm-editor-head,
  .bfehr-crm-editor-form { padding-left: 18px; padding-right: 18px; }
  .bfehr-notion-subnav { margin-left: 28px; }
}@media (max-width: 480px) {
  .bfehr-notion-content {
    padding: 14px 12px 28px;
  }
  .bfehr-focus-board {
    padding: 8px;
  }
  .bfehr-focus-task {
    border-radius: 9px;
  }
  .bfehr-focus-task-row {
    padding: 9px 8px 8px;
    gap: 7px;
  }
  .bfehr-focus-task-main,
  .bfehr-focus-subtask-main {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 7px;
  }
  .bfehr-focus-task-input,
  .bfehr-focus-subtask-input {
    font-size: 13px;
    border-radius: 10px;
  }
  .bfehr-focus-task-input {
    min-height: 38px;
    padding: 7px 11px;
  }
  .bfehr-focus-subtask-input {
    min-height: 34px;
    padding: 6px 10px;
  }
  .bfehr-focus-task-status,
  .bfehr-focus-subtask-status,
  .bfehr-focus-task-state,
  .bfehr-focus-subtask-state {
    min-width: 0;
    font-size: 11px;
    min-height: 32px;
  }
  .bfehr-focus-task-btn {
    min-height: 32px;
    font-size: 11px;
    padding: 0 10px;
  }
  .bfehr-focus-status-switch-btn {
    min-height: 28px;
    font-size: 10.5px;
  }
  .bfehr-focus-task-btn.is-danger {
    width: 32px;
    min-width: 32px;
  }
  .bfehr-focus-task-btn .bfehr-icon-btn {
    width: 13px;
    height: 13px;
  }
  .bfehr-focus-task-btn-text {
    font-size: 11px;
  }
  .bfehr-focus-task-actions {
    width: 100%;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr) 32px;
  }
  .bfehr-focus-check {
    width: 22px;
    height: 22px;
  }
  .bfehr-focus-check span {
    width: 18px;
    height: 18px;
  }
  .bfehr-focus-dependency-row {
    padding: 6px 8px 8px;
  }
  .bfehr-focus-subtasks {
    padding: 2px 8px 8px;
  }
  .bfehr-focus-subtask-controls {
    grid-template-columns: minmax(0, 1fr) 10px 32px;
    padding-left: 29px;
  }
  .bfehr-notion-leave-hero { flex-direction: column; }
  .bfehr-notion-cal-grid { min-width: 420px; }
  .bfehr-crm-snapshot-strip,
  .bfehr-crm-toolbar { grid-template-columns: 1fr; }
  .bfehr-crm-panel-actions { min-width: 0; width: 100%; align-items: flex-start; }
  .bfehr-crm-inline-actions { justify-content: flex-start; }
  .bfehr-crm-snapshot-card { border-right: 0; border-bottom: 1px solid var(--ws-border); }
  .bfehr-crm-snapshot-card:last-child { border-bottom: 0; }
  .bfehr-crm-board { grid-auto-columns: 268px; gap: 14px; }
  .bfehr-crm-board-card { padding: 14px; }
  .bfehr-crm-board-metrics { grid-template-columns: 1fr; }
  .bfehr-crm-card-links { width: 100%; flex-wrap: wrap; }
  .bfehr-crm-editor-sheet { width: 100vw; }
}@media (max-width: 390px) {
  .bfehr-notion-content {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bfehr-focus-task-controls {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "status"
      "meta"
      "actions";
  }
  .bfehr-focus-task-meta {
    justify-content: flex-start;
  }
  .bfehr-focus-task-actions .bfehr-focus-task-btn:not(.is-danger) {
    min-width: 32px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .bfehr-focus-task-actions .bfehr-focus-task-btn:not(.is-danger) .bfehr-focus-task-btn-text {
    display: none;
  }
  .bfehr-focus-task-actions .bfehr-focus-task-btn:not(.is-danger) .bfehr-icon-btn {
    width: 14px;
    height: 14px;
  }
  .bfehr-focus-subtask-controls {
    grid-template-columns: 1fr 10px 32px;
  }
}@media (max-width: 430px) and (min-width: 391px) {
  .bfehr-notion-content {
    padding: 14px 11px 28px;
  }
  .bfehr-focus-board {
    padding: 8px;
  }
  .bfehr-focus-list {
    gap: 8px;
  }
  .bfehr-focus-task {
    border-radius: 9px;
  }
  .bfehr-focus-task-row {
    padding: 8px 7px 7px;
    gap: 7px;
  }
  .bfehr-focus-task-main,
  .bfehr-focus-subtask-main {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 6px;
  }
  .bfehr-focus-task-input {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .bfehr-focus-subtask-input {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12.5px;
  }
  .bfehr-focus-check {
    width: 20px;
    height: 20px;
  }
  .bfehr-focus-check span {
    width: 17px;
    height: 17px;
  }
  .bfehr-focus-task-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "status meta"
      "actions actions";
    align-items: center;
    gap: 6px 8px;
  }
  .bfehr-focus-task-controls > .bfehr-focus-task-status,
  .bfehr-focus-task-controls > .bfehr-focus-task-state {
    width: 100%;
    max-width: 100%;
  }
  .bfehr-focus-task-meta {
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .bfehr-focus-task-actions {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 6px;
  }
  .bfehr-focus-task-status,
  .bfehr-focus-task-state,
  .bfehr-focus-subtask-status,
  .bfehr-focus-subtask-state {
    min-height: 30px;
    font-size: 10.5px;
    background-position: calc(100% - 10px) 50%;
    padding-left: 11px;
    padding-right: 26px;
  }
  .bfehr-focus-status-switch-btn {
    min-height: 28px;
    font-size: 10px;
  }
  .bfehr-focus-task-btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10.5px;
  }
  .bfehr-focus-task-btn-text {
    font-size: 10.5px;
  }
  .bfehr-focus-task-btn .bfehr-icon-btn {
    width: 13px;
    height: 13px;
  }
  .bfehr-focus-task-btn.is-danger {
    width: 32px;
    min-width: 32px;
  }
  .bfehr-focus-dependency-row {
    padding: 5px 7px 7px;
    gap: 5px;
  }
  .bfehr-focus-dependency-label {
    font-size: 9.5px;
    letter-spacing: .1em;
  }
  .bfehr-focus-dependency-select,
  .bfehr-focus-dependency-value {
    min-height: 32px;
    font-size: 11.5px;
    border-radius: 9px;
  }
  .bfehr-focus-subtasks {
    padding: 6px 7px 10px;
    gap: 0;
  }
  .bfehr-focus-subtask {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .bfehr-focus-subtask-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 26px;
    gap: 8px;
    margin-top: 2px;
  }
  .bfehr-focus-subtask-controls .bfehr-focus-carry-chip {
    order: 2;
    justify-self: start;
  }
  .bfehr-focus-subtask-controls [data-remove-subtask] {
    order: 3;
    justify-self: end;
  }
}

/* Mobile-first workspace reset */@media (max-width: 768px) {
  .bfehr-notion-ws,
  .bfehr-notion-ws *,
  .bfehr-notion-ws *::before,
  .bfehr-notion-ws *::after {
    box-sizing: border-box;
    min-width: 0;
  }
  .bfehr-notion-ws {
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow-x: clip;
    overflow-y: visible;
  }
  .bfehr-notion-main,
  .bfehr-notion-content {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .bfehr-notion-main {
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .bfehr-notion-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 12px 28px;
  }
  .bfehr-notion-content > * {
    width: 100%;
    max-width: 100%;
  }
  .bfehr-notion-topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 0 4px 0 12px;
    min-height: 48px;
  }
  .bfehr-notion-breadcrumb > span:first-child,
  .bfehr-notion-bc-sep {
    display: none;
  }
  .bfehr-notion-breadcrumb {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
  }
  .bfehr-notion-topbar-actions {
    display: none;
  }
  .bfehr-notion-mob-toggle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .bfehr-icon-mobile-toggle {
    width: 16px;
    height: 16px;
  }
  .bfehr-notion-notify-wrap {
    padding: 0;
    border-left: 0;
  }
  .bfehr-notion-notify-panel {
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
  .bfehr-workspace-theme-toggle-icon,
  .bfehr-icon-theme {
    width: 17px;
    height: 17px;
  }
  .bfehr-workboard-hero,
  .bfehr-focus-board {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 14px 12px;
    border-radius: 16px;
  }
  .bfehr-workboard-hero {
    display: none;
  }
  .bfehr-workboard-hero h2,
  .bfehr-workboard-pane-head h3 {
    font-size: 18px;
    line-height: 1.12;
  }
  .bfehr-workboard-hero p,
  .bfehr-workboard-pane-head p,
  .bfehr-focus-board-head p:last-child {
    max-width: none;
    font-size: 12px;
    line-height: 1.45;
  }
  .bfehr-workboard-pane {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .bfehr-workboard-pane-head {
    margin: 0;
    padding: 0 2px;
    gap: 8px;
  }
  .bfehr-workboard-pane-mine .bfehr-workboard-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 6px;
  }
  .bfehr-workboard-pane-mine .bfehr-workboard-pane-head .bfehr-notion-section-label,
  .bfehr-workboard-pane-mine .bfehr-workboard-pane-head p {
    display: none;
  }
  .bfehr-workboard-pane-mine .bfehr-workboard-pane-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
  }
  .bfehr-workboard-pane-mine .bfehr-workboard-pane-head p,
  .bfehr-focus-board-head p,
  .bfehr-notion-progress-label,
  .bfehr-focus-legend {
    display: none;
  }
  .bfehr-workboard-pane + .bfehr-workboard-pane {
    margin-top: 10px;
  }
  .bfehr-workboard-pane-mine .bfehr-focus-board {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .bfehr-workboard-sections {
    gap: 10px;
  }
  .bfehr-workboard-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .bfehr-workboard-section-head {
    padding: 6px 2px 8px;
    gap: 8px;
    border-bottom: 0;
  }
  .bfehr-workboard-section-head h4 {
    font-size: 15px;
  }
  .bfehr-workboard-section-head span {
    min-width: 0;
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }
  .bfehr-workboard-grid {
    padding: 0;
    gap: 8px;
  }
  .bfehr-workboard-card {
    padding: 12px 10px;
    border-radius: 14px;
  }
  .bfehr-workboard-card-head {
    gap: 8px;
    margin-bottom: 6px;
  }
  .bfehr-workboard-card-head h5 {
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .bfehr-workboard-card-head p {
    font-size: 12px;
  }
  .bfehr-workboard-card-meta {
    margin-bottom: 10px;
    font-size: 11px;
    gap: 6px 10px;
  }
  .bfehr-workboard-task summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .bfehr-workboard-task-title-wrap {
    width: 100%;
    gap: 8px;
  }
  .bfehr-workboard-task-title {
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .bfehr-workboard-task-meta {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
  }
  .bfehr-workboard-blocker {
    padding: 0 10px 10px 22px;
  }
  .bfehr-workboard-blocker::before {
    left: 10px;
  }
  .bfehr-workboard-blocker-label {
    font-size: 10px;
  }
  .bfehr-workboard-blocker strong,
  .bfehr-workboard-blocker span:last-child {
    font-size: 12px;
  }
  .bfehr-workboard-subtasks {
    padding: 0 10px 10px;
  }
  .bfehr-workboard-subtask {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .bfehr-workboard-subtask-meta {
    justify-self: start;
  }
  .bfehr-focus-board {
    overflow: clip;
  }
  .bfehr-focus-board-head {
    display: none;
  }
  .bfehr-focus-toolbar {
    margin: 2px 0 10px;
    justify-content: stretch;
  }
  .bfehr-focus-toolbar .bfehr-btn {
    width: 100%;
    min-height: 34px;
    border-radius: 10px;
  }
  .bfehr-focus-status-chip {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10px;
    margin-top: 2px;
  }
  .bfehr-focus-stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 12px;
    margin-top: 4px;
  }
  .bfehr-focus-stat-card {
    padding: 7px 6px 8px;
  }
  .bfehr-focus-stat-label {
    margin-bottom: 4px;
    font-size: 8px;
    letter-spacing: .07em;
  }
  .bfehr-focus-stat-value {
    font-size: 12px;
    line-height: 1.1;
  }
  .bfehr-focus-progress,
  .bfehr-notion-progress {
    display: none;
  }
  .bfehr-focus-list {
    gap: 8px;
  }
  .bfehr-focus-task {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }
  .bfehr-focus-task-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .bfehr-focus-task-main {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
  }
  .bfehr-focus-task-body {
    display: grid;
    gap: 10px;
  }
  .bfehr-focus-task-input {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .bfehr-focus-task-controls {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "meta"
      "actions";
    gap: 7px;
    width: 100%;
  }
  .bfehr-focus-task-controls > .bfehr-focus-task-status,
  .bfehr-focus-task-controls > .bfehr-focus-task-state {
    grid-area: status;
    width: 100%;
  }
  .bfehr-focus-status-switch {
    width: 100%;
  }
  .bfehr-focus-task-meta {
    grid-area: meta;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
  }
  .bfehr-focus-task-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 7px;
    width: 100%;
  }
  .bfehr-focus-task-btn {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
  }
  .bfehr-focus-task-btn.is-danger {
    width: 36px;
    min-width: 36px;
  }
  .bfehr-focus-task-actions [data-add-subtask] {
    justify-content: flex-start;
    background: rgba(42,181,115,.06);
    color: #1f8a57;
  }
  .bfehr-focus-task-actions [data-add-subtask] .bfehr-focus-task-btn-text {
    display: inline;
  }
  .bfehr-focus-dependency-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0 12px 10px;
    border-top: 1px solid rgba(148,163,184,.10);
  }
  .bfehr-focus-dependency-row.is-empty {
    padding-top: 2px;
    border-top: 0;
  }
  .bfehr-focus-dependency-row.is-empty .bfehr-focus-dependency-label {
    display: none;
  }
  .bfehr-focus-dependency-select,
  .bfehr-focus-dependency-value {
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    font-size: 12px;
    border-radius: 10px;
  }
  .bfehr-focus-dependency-select.is-empty,
  .bfehr-focus-dependency-value.is-empty {
    min-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
    border-style: dashed;
    color: var(--ws-muted);
    background: transparent;
  }
  .bfehr-focus-subtasks {
    width: 100%;
    max-width: 100%;
    padding: 6px 12px 12px;
    gap: 0;
  }
  .bfehr-focus-subtask {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .bfehr-focus-subtask + .bfehr-focus-subtask {
    border-top: 1px solid rgba(148,163,184,.10);
  }
  .bfehr-focus-subtask-main {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
  }
  .bfehr-focus-subtask-input {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12.5px;
    overflow-wrap: anywhere;
  }
  .bfehr-focus-subtask-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-left: 30px;
    margin-top: 2px;
  }
  .bfehr-focus-dependency-row + .bfehr-focus-subtasks {
    margin-top: 6px;
  }
  .bfehr-focus-subtask-controls .bfehr-focus-status-switch {
    grid-column: 1 / 2;
  }
  .bfehr-focus-actions {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 6;
    margin-top: 12px;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--ws-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ws-surface) 92%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(15,23,42,.08);
  }
  .bfehr-focus-actions .bfehr-btn {
    width: 100%;
    min-height: 40px;
  }
  .bfehr-focus-legend {
    gap: 8px 14px;
    font-size: 10.5px;
  }
  .bfehr-emp-detail-panel,
  .bfehr-crm-editor-sheet {
    width: 100vw;
    max-width: 100vw;
  }
}@media (max-width: 430px) {
  .bfehr-notion-content {
    padding: 10px 10px 24px;
    gap: 12px;
  }
  .bfehr-workboard-pane-head h3,
  .bfehr-workboard-pane-mine .bfehr-workboard-pane-head h3 {
    font-size: 16px;
  }
  .bfehr-focus-board {
    padding: 0;
    border-radius: 0;
  }
  .bfehr-workboard-section-head,
  .bfehr-workboard-grid,
  .bfehr-workboard-card,
  .bfehr-workboard-task summary,
  .bfehr-workboard-blocker,
  .bfehr-workboard-subtasks {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bfehr-workboard-blocker {
    padding-left: 22px;
  }
  .bfehr-workboard-blocker::before {
    left: 10px;
  }
  .bfehr-focus-task-row,
  .bfehr-focus-dependency-row,
  .bfehr-focus-subtasks {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bfehr-focus-dependency-row.is-empty {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bfehr-focus-subtask-controls {
    grid-template-columns: 1fr auto 36px;
    padding-left: 28px;
  }
  .bfehr-focus-task-actions {
    grid-template-columns: minmax(0, 1fr) 36px;
  }
  .bfehr-focus-task-btn.is-danger {
    width: 36px;
    min-width: 36px;
  }
  .bfehr-focus-stat-card {
    padding: 6px 5px 7px;
  }
  .bfehr-focus-stat-value {
    font-size: 11px;
  }
  .bfehr-focus-stat-label {
    font-size: 7.5px;
  }
  .bfehr-focus-actions {
    padding: 8px;
    border-radius: 12px;
  }
}

/* Portal login form */

/* Widget */
.bfehr-widget ul { list-style: none; padding: 0; margin: 0; }
.bfehr-widget li { padding: 10px 0; border-bottom: 1px solid var(--bfehr-border); }
.bfehr-widget li:last-child { border: none; }
.bfehr-widget-job-title { font-weight: 600; display: block; margin-bottom: 3px; color: var(--bfehr-text); text-decoration: none; }
.bfehr-widget-job-title:hover { color: var(--bfehr-primary); }
.bfehr-widget-meta { font-size: 12px; color: var(--bfehr-muted); }

/* Header */
.bfehr-portal-header { display: flex; align-items: center; gap: 18px; padding: 24px; background: var(--bfehr-white); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); margin-bottom: 0; box-shadow: var(--bfehr-shadow); }
.bfehr-portal-avatar img { border-radius: 50%; display: block; }
.bfehr-portal-identity { flex: 1; }
.bfehr-portal-name   { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.bfehr-portal-role   { margin: 0; font-size: 14px; color: var(--bfehr-muted); }
.bfehr-leave-bubble  { background: var(--bfehr-primary); color: #fff; border-radius: var(--bfehr-radius); padding: 12px 20px; text-align: center; min-width: 100px; }
.bfehr-leave-bubble-num   { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.bfehr-leave-bubble-label { display: block; font-size: 11px; opacity: .85; margin-top: 3px; }
.bfehr-portal-logout { position: fixed; left: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 999px; text-decoration: none; color: #fff; background: rgba(15,23,42,.92); box-shadow: 0 12px 28px rgba(15,23,42,.22); backdrop-filter: blur(10px); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.bfehr-portal-logout:hover { background: rgba(15,23,42,.98); color: #fff; transform: translateY(-1px); box-shadow: 0 16px 34px rgba(15,23,42,.28); }
.bfehr-portal-logout-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.14); }
.bfehr-portal-logout-text { font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* Tabs */
.bfehr-portal-tabs { display: flex; border-bottom: 2px solid var(--bfehr-border); margin-bottom: 0; background: var(--bfehr-white); padding: 0 4px; }
.bfehr-tab-link    { padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--bfehr-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.bfehr-tab-link:hover    { color: var(--bfehr-primary); }
.bfehr-tab-active  { color: var(--bfehr-primary); border-bottom-color: var(--bfehr-primary); }

/* Section */
.bfehr-portal-section { background: var(--bfehr-white); border: 1px solid var(--bfehr-border); border-top: none; border-radius: 0 0 var(--bfehr-radius) var(--bfehr-radius); padding: 28px 28px 36px; box-shadow: var(--bfehr-shadow); }
.bfehr-portal-section h3 { font-size: 16px; font-weight: 700; margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--bfehr-border); }
.bfehr-portal-section h3:first-child { margin-top: 0; }
.bfehr-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bfehr-section-head h3 { margin: 0; }
.bfehr-section-subtitle { margin: 6px 0 0; color: var(--bfehr-muted); font-size: 14px; line-height: 1.6; }
.bfehr-section-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bfehr-info-note { font-size: 13px; color: var(--bfehr-muted); margin-top: 20px; }
.bfehr-balance-note { font-size: 15px; margin-bottom: 20px; }
.bfehr-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bfehr-primary); margin-bottom: 8px; }
.bfehr-leave-request-shell { display: flex; flex-direction: column; gap: 16px; }
.bfehr-availability-warning { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }

/* CRM */
.bfehr-crm-shell { display: flex; flex-direction: column; gap: 18px; }
.bfehr-crm-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--ws-border); border-radius: 6px; background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,250,248,.98) 100%); }
.bfehr-crm-hero-copy { min-width: 0; }
.bfehr-crm-hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bfehr-crm-hero h3 { margin: 0 0 6px; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; }
.bfehr-crm-hero p { margin: 0; max-width: 760px; color: var(--ws-muted); font-size: 14px; line-height: 1.6; }
.bfehr-crm-hero-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 28px; padding: 0 12px; border-radius: 999px; background: #ecfdf3; color: #15803d; font-size: 12px; font-weight: 700; }
.bfehr-crm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.bfehr-crm-dashboard-grid { align-items: start; }
.bfehr-crm-empty-shell { display: flex; flex-direction: column; gap: 18px; }
.bfehr-crm-empty-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.bfehr-crm-empty-card { border: 1px solid var(--ws-border); border-radius: 6px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bfehr-crm-empty-step { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ecfdf3; color: #15803d; font-size: 12px; font-weight: 700; }
.bfehr-crm-empty-card strong { font-size: 13px; color: var(--ws-text); }
.bfehr-crm-empty-card p { margin: 0; font-size: 12px; color: var(--ws-muted); line-height: 1.55; }
.bfehr-crm-empty-actions { padding: 0 16px 16px; }
.bfehr-crm-stage-health { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.bfehr-crm-stage-health-row { display: flex; flex-direction: column; gap: 12px; padding: 15px 16px; border: 1px solid var(--ws-border); border-radius: 14px; background: #fff; }
.bfehr-crm-stage-health-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bfehr-crm-stage-health-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bfehr-crm-stage-health-copy strong { display: block; font-size: 13px; color: var(--ws-text); }
.bfehr-crm-stage-health-copy span { display: block; margin-top: 3px; font-size: 11px; color: var(--ws-muted); }
.bfehr-crm-stage-health-mix { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bfehr-crm-stage-health-dot { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.bfehr-crm-stage-health-dot-custom { background: #ecfdf3; color: #15803d; }
.bfehr-crm-stage-health-dot-scc { background: #fffbeb; color: #b45309; }
.bfehr-crm-stage-health-dot-consignee,
.bfehr-crm-stage-health-dot-general_consignment { background: #eff6ff; color: #2563eb; }
.bfehr-crm-stage-health-dot-wholesale { background: #f5f3ff; color: #6d28d9; }
.bfehr-crm-stage-health-value { text-align: right; flex-shrink: 0; }
.bfehr-crm-stage-health-value strong { display: block; font-size: 15px; color: var(--ws-text); line-height: 1.2; }
.bfehr-crm-stage-health-value span { display: block; margin-top: 3px; font-size: 11px; color: var(--ws-muted); }
.bfehr-crm-stage-health-labels { display: inline-flex; align-items: center; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.bfehr-crm-stage-health-labels span { font-size: 11px; color: var(--ws-muted); }
.bfehr-crm-bar-custom,
.bfehr-crm-month-bar-custom,
.bfehr-crm-legend-dot-custom { background: #2ab573; }
.bfehr-crm-bar-scc,
.bfehr-crm-month-bar-scc,
.bfehr-crm-legend-dot-scc { background: #f59e0b; }
.bfehr-crm-bar-consignee,
.bfehr-crm-bar-general_consignment,
.bfehr-crm-month-bar-consignee,
.bfehr-crm-month-bar-general_consignment,
.bfehr-crm-legend-dot-consignee,
.bfehr-crm-legend-dot-general_consignment { background: #1d9bf0; }
.bfehr-crm-bar-wholesale,
.bfehr-crm-month-bar-wholesale,
.bfehr-crm-legend-dot-wholesale { background: #8b5cf6; }
.bfehr-crm-legend { display: flex; align-items: center; gap: 18px; padding: 0 16px 16px; font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bfehr-crm-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
/* Line chart */
.bfehr-crm-chart-panel .bfehr-notion-panel-head { border-bottom: 1px solid var(--ws-border); }
.bfehr-crm-chart-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bfehr-crm-chart-head .bfehr-notion-panel-title { flex: 1; min-width: 0; }
.bfehr-crm-chart-nav { display: inline-flex; align-items: center; gap: 6px; }
.bfehr-crm-chart-prev,
.bfehr-crm-chart-next { background: none; border: 1px solid var(--ws-border); border-radius: 6px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--ws-muted); cursor: pointer; transition: color .12s, border-color .12s; padding: 0; }
.bfehr-crm-chart-prev:hover,
.bfehr-crm-chart-next:hover { color: var(--ws-text); border-color: var(--ws-text); }
.bfehr-crm-chart-prev:disabled,
.bfehr-crm-chart-next:disabled { opacity: .3; cursor: default; }
.bfehr-crm-chart-month-label { font-size: 13px; font-weight: 600; color: var(--ws-text); min-width: 108px; text-align: center; }
.bfehr-crm-chart-legend { display: inline-flex; align-items: center; gap: 14px; }
.bfehr-crm-chart-legend-item { font-size: 12px; color: var(--ws-muted); display: inline-flex; align-items: center; gap: 6px; }
.bfehr-crm-chart-legend-item::before { content: ''; width: 20px; height: 2px; border-radius: 999px; display: inline-block; }
.bfehr-crm-chart-legend-custom::before { background: #2ab573; }
.bfehr-crm-chart-legend-scc::before { background: #f59e0b; }
.bfehr-crm-chart-legend-consign::before { background: #1d9bf0; }
.bfehr-crm-chart-legend-wholesale::before { background: #8b5cf6; }
.bfehr-crm-chart-wrap { position: relative; padding: 16px 16px 8px; }
.bfehr-crm-chart-svg { display: block; width: 100%; height: 200px; overflow: visible; }
.bfehr-crm-chart-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ws-muted); background: var(--ws-surface); border-radius: 0 0 6px 6px; }
.bfehr-crm-chart-loading[hidden] { display: none !important; }
.bfehr-crm-chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; }
.bfehr-crm-chart-empty[hidden] { display: none !important; }
.bfehr-crm-chart-empty-icon { font-size: 22px; opacity: .35; }
.bfehr-crm-chart-empty-text { font-size: 13px; color: var(--ws-muted); }
.bfehr-crm-outcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; padding: 0; border-top: 1px solid var(--ws-border); }
.bfehr-crm-outcome-card { padding: 18px 18px 20px; border-right: 1px solid var(--ws-border); border-bottom: 1px solid var(--ws-border); background: #fff; display: flex; flex-direction: column; gap: 6px; min-height: 96px; justify-content: center; }
.bfehr-crm-outcome-card:last-child { border-right: none; }
.bfehr-crm-outcome-card strong { font-size: 30px; line-height: 1; color: var(--ws-text); letter-spacing: -.03em; }
.bfehr-crm-outcome-card span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-crm-outcome-card.is-value strong { font-size: 20px; line-height: 1.15; }
.bfehr-crm-panel-actions { align-items: flex-end; gap: 8px; min-width: 164px; }
.bfehr-crm-inline-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bfehr-crm-followup-main { gap: 10px; }
/* Follow-up queue item: row 1 = title + status badge, row 2 = tags on the left, date + actions on the right; everything centre-aligned */
.bfehr-notion-panel-item.bfehr-crm-followup-item { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 14px 16px; }
.bfehr-crm-followup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bfehr-crm-followup-head .bfehr-notion-panel-item-name { min-width: 0; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.bfehr-crm-followup-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.bfehr-crm-followup-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; min-width: 0; }
.bfehr-crm-followup-side { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.bfehr-crm-followup-side .bfehr-crm-inline-actions { flex-wrap: nowrap; }@media (max-width: 560px) { .bfehr-crm-followup-side { margin-left: 0; width: 100%; justify-content: space-between; } }
.bfehr-crm-followup-stage,
.bfehr-crm-followup-owner { font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-followup-stage::before,
.bfehr-crm-followup-owner::before { content: '•'; margin-right: 10px; color: #d0d5d1; }
.bfehr-crm-followup-badge { font-size: 11px; font-weight: 700; }
.bfehr-crm-followup-overdue { background: #fee2e2; color: #b91c1c; }
.bfehr-crm-followup-today { background: #fff7ed; color: #c2410c; }
.bfehr-crm-followup-upcoming { background: #ecfdf5; color: #15803d; }
.bfehr-crm-followup-date { font-size: 12px; color: var(--ws-muted); font-weight: 700; }
.bfehr-crm-kpi-alert .bfehr-notion-kpi-num { color: #c2410c; }
.bfehr-crm-opportunity-shell { padding: 0; overflow: hidden; }
.bfehr-crm-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 18px; border-bottom: 1px solid var(--ws-border); }
.bfehr-crm-pagehead-copy { min-width: 0; }
.bfehr-crm-pagehead-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bfehr-crm-pagehead h3 { margin: 0 0 6px; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; }
.bfehr-crm-pagehead p { margin: 0; max-width: 700px; font-size: 14px; line-height: 1.6; color: var(--ws-muted); }
.bfehr-crm-pagehead-actions { display: flex; align-items: center; gap: 10px; }
.bfehr-crm-snapshot-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--ws-border); }
.bfehr-crm-snapshot-card { padding: 18px 22px; border-right: 1px solid var(--ws-border); display: flex; flex-direction: column; gap: 4px; background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,249,.98) 100%); }
.bfehr-crm-snapshot-card:last-child { border-right: 0; }
.bfehr-crm-snapshot-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-crm-snapshot-card strong { font-size: 30px; line-height: 1; color: var(--ws-text); letter-spacing: -.03em; }
.bfehr-crm-snapshot-card small { font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--ws-border); background: #fbfcfc; }
.bfehr-crm-toolbar-group { display: flex; flex-direction: column; gap: 6px; }
.bfehr-crm-toolbar-group label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-crm-toolbar-actions { display: flex; align-items: flex-end; justify-content: flex-end; }
.bfehr-crm-pipeline-panel { padding: 20px 22px 22px; }
.bfehr-crm-pipeline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bfehr-crm-pipeline-head strong { display: block; font-size: 16px; color: var(--ws-text); }
.bfehr-crm-pipeline-head p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--ws-muted); max-width: 720px; }
.bfehr-crm-board-scroll { overflow-x: auto; padding: 4px 2px 10px; }
.bfehr-crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 18px; align-items: start; min-width: max-content; }
.bfehr-crm-stage-column { display: flex; flex-direction: column; gap: 14px; }
.bfehr-crm-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.bfehr-crm-stage-copy strong { display: block; font-size: 15px; line-height: 1.35; color: var(--ws-text); }
.bfehr-crm-stage-copy span { display: block; margin-top: 2px; font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-stage-count { min-width: 28px; height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #ecfdf3; color: #15803d; font-size: 12px; font-weight: 700; }
.bfehr-crm-stage-body { min-height: 180px; display: flex; flex-direction: column; gap: 12px; padding: 2px; border-radius: 16px; transition: background .18s ease, box-shadow .18s ease; }
.bfehr-crm-stage-body.is-sortable { cursor: grab; }
.bfehr-crm-stage-body.is-drop-target { background: rgba(42,181,115,.06); box-shadow: inset 0 0 0 1px rgba(42,181,115,.18); }
.bfehr-crm-stage-empty { padding: 18px 16px; border: 1px dashed var(--ws-border); border-radius: 14px; background: #fbfcfc; font-size: 13px; line-height: 1.55; color: var(--ws-muted); }
.bfehr-crm-board-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--ws-border); border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%); box-shadow: 0 8px 20px rgba(15, 23, 42, .03); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease; }
.bfehr-crm-board-card:hover { border-color: #d6e6dd; box-shadow: 0 12px 26px rgba(15, 23, 42, .06); transform: translateY(-1px); }
.bfehr-crm-board-card.is-draggable { cursor: grab; }
.bfehr-crm-board-card.is-dragging { opacity: .45; transform: rotate(1deg); }
.bfehr-crm-board-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bfehr-crm-board-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.bfehr-crm-board-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bfehr-crm-card-status { font-size: 11px; font-weight: 700; color: var(--ws-muted); white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: #f5f7f8; }
.bfehr-crm-board-title { display: block; font-size: 18px; line-height: 1.3; color: var(--ws-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfehr-crm-board-account { font-size: 13px; line-height: 1.5; color: var(--ws-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfehr-crm-board-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bfehr-crm-meta-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfehr-crm-meta-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-crm-meta-value { font-size: 14px; line-height: 1.45; color: var(--ws-text); }
.bfehr-crm-type-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.bfehr-crm-type-chip-custom_order { background: #ecfdf3; color: #15803d; }
.bfehr-crm-type-chip-scc { background: #fffbeb; color: #b45309; }
.bfehr-crm-type-chip-consignee,
.bfehr-crm-type-chip-general_consignment { background: #eff6ff; color: #2563eb; }
.bfehr-crm-type-chip-wholesale { background: #f5f3ff; color: #6d28d9; }
.bfehr-crm-board-metric { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bfehr-crm-board-metric span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-crm-board-metric strong { font-size: 16px; line-height: 1.3; color: var(--ws-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfehr-crm-board-metric strong.is-soft { font-size: 14px; font-weight: 700; }
.bfehr-crm-pipeline-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 0 4px; }
.bfehr-crm-pipeline-empty strong { font-size: 16px; color: var(--ws-text); }
.bfehr-crm-pipeline-empty p { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.6; color: var(--ws-muted); }
.bfehr-crm-board-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
.bfehr-crm-card-links { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.bfehr-crm-card-links .bfehr-btn-xs { min-width: auto; }
.bfehr-crm-sheet-backdrop { position: fixed; inset: 0; z-index: 190; pointer-events: none; }
.bfehr-crm-sheet-backdrop.is-open { pointer-events: auto; }
.bfehr-crm-sheet-dismiss { position: absolute; inset: 0; z-index: 0; background: rgba(15, 23, 42, .24); opacity: 0; transition: opacity .22s ease; }
.bfehr-crm-sheet-backdrop.is-open .bfehr-crm-sheet-dismiss { opacity: 1; }
.bfehr-crm-editor-sheet { position: absolute; top: 0; right: 0; z-index: 1; width: min(560px, 100vw); max-width: 100vw; box-sizing: border-box; height: 100vh; background: #fff; border-left: 1px solid var(--ws-border); box-shadow: -22px 0 40px rgba(15, 23, 42, .12); transform: translateX(100%); transition: transform .24s ease; display: flex; flex-direction: column; }
.bfehr-crm-sheet-backdrop.is-open .bfehr-crm-editor-sheet { transform: translateX(0); }
.bfehr-crm-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 22px 18px; border-bottom: 1px solid var(--ws-border); }
.bfehr-crm-editor-head h4 { margin: 6px 0 4px; font-size: 26px; line-height: 1.08; letter-spacing: -.03em; }
.bfehr-crm-editor-head p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ws-muted); max-width: 380px; }
.bfehr-crm-editor-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ws-border); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ws-text); font-size: 24px; line-height: 1; background: #fff; flex-shrink: 0; }
.bfehr-crm-editor-form { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.bfehr-crm-account-picker { position: relative; display: flex; flex-direction: column; gap: 8px; }
.bfehr-crm-account-results { position: absolute; z-index: 8; top: 72px; left: 0; right: 0; max-height: 240px; overflow-y: auto; padding: 6px; border: 1px solid var(--ws-border); border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }
.bfehr-crm-account-results[hidden] { display: none !important; }
.bfehr-crm-account-result { width: 100%; border: 0; border-radius: 6px; background: transparent; padding: 9px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; color: var(--ws-text); font-family: inherit; }
.bfehr-crm-account-result:hover { background: #f4f8f6; }
.bfehr-crm-account-result strong { font-size: 13px; line-height: 1.35; }
.bfehr-crm-account-result span { font-size: 11.5px; color: var(--ws-muted); }
.bfehr-crm-account-result.is-empty { cursor: default; color: var(--ws-muted); }
.bfehr-crm-account-result.is-empty:hover { background: transparent; }
.bfehr-crm-account-result.is-create { margin-top: 4px; border-top: 1px solid var(--ws-border); border-radius: 0 0 6px 6px; color: var(--ws-accent); font-weight: 700; }
.bfehr-crm-account-selected { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid rgba(42,181,115,.22); border-radius: 8px; background: #ecfdf3; color: #166534; font-size: 12px; font-weight: 700; }
.bfehr-crm-account-selected[hidden] { display: none !important; }
.bfehr-crm-account-clear,
.bfehr-crm-account-inline-toggle { border: 0; background: transparent; color: var(--ws-accent); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.bfehr-crm-account-inline { display: flex; flex-direction: column; gap: 8px; }
.bfehr-crm-account-inline-form { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--ws-border); border-radius: 8px; background: #fbfcfd; }
.bfehr-crm-account-inline-form[hidden] { display: none !important; }
.bfehr-crm-account-inline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfehr-crm-account-inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bfehr-crm-account-inline-message { margin: 0; min-height: 16px; font-size: 11.5px; color: var(--ws-muted); }
.bfehr-crm-stage-help { margin: 2px 0 0; min-height: 16px; font-size: 11.5px; line-height: 1.5; color: var(--ws-muted); }
.bfehr-crm-location-field[hidden] { display: none !important; }
.bfehr-crm-location-help { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ws-muted); }
.bfehr-crm-collab-box { border: 1px solid var(--ws-border); border-radius: 6px; padding: 14px; background: #fbfcfd; }
.bfehr-crm-collab-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--ws-text); font-weight: 600; }
.bfehr-crm-help { margin: 8px 0 0; font-size: 11.5px; color: var(--ws-muted); line-height: 1.5; }
.bfehr-crm-file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bfehr-crm-file-link { font-size: 12px; font-weight: 600; color: var(--bfehr-primary); text-decoration: none; }
.bfehr-crm-file-link:hover { text-decoration: underline; }
.bfehr-crm-activity-list { display: flex; flex-direction: column; gap: 10px; }
.bfehr-crm-activity-item { border: 1px solid var(--ws-border); border-radius: 6px; background: #fff; padding: 14px 15px; }
.bfehr-crm-activity-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bfehr-crm-activity-head strong { font-size: 13px; color: var(--ws-text); }
.bfehr-crm-activity-head span,
.bfehr-crm-activity-item small { font-size: 11px; color: var(--ws-muted); }
.bfehr-crm-activity-item p { margin: 6px 0 4px; font-size: 12px; color: var(--ws-text); }

/* Info grid */
.bfehr-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bfehr-info-item { background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius-sm); padding: 12px 14px; }
.bfehr-info-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--bfehr-muted); margin-bottom: 4px; font-weight: 600; }
.bfehr-info-value { display: block; font-size: 15px; font-weight: 500; word-break: break-word; }
.bfehr-info-grid-profile { margin-bottom: 10px; }
.bfehr-info-item-wide { grid-column: span 2; }
.bfehr-edit-input { display: none; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px solid var(--bfehr-border); border-radius: var(--bfehr-radius-sm); font-size: 14px; font-family: inherit; background: var(--bfehr-white); color: var(--bfehr-text); box-sizing: border-box; }
.bfehr-edit-input:focus { outline: none; border-color: var(--bfehr-primary); box-shadow: 0 0 0 3px rgba(42,181,115,.12); }
.bfehr-is-editing .bfehr-info-item-editable { background: #ffffff; border-color: #86efac; box-shadow: inset 0 0 0 1px rgba(42,181,115,.08); }
.bfehr-is-editing .bfehr-info-item-editable .bfehr-edit-display { display: none; }
.bfehr-is-editing .bfehr-info-item-editable .bfehr-edit-input { display: block; }

/* Leave dashboard cards */
.bfehr-leave-dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }@media (max-width: 640px) { .bfehr-leave-dashboard { grid-template-columns: repeat(2, 1fr); } }
.bfehr-leave-stat-card { background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); padding: 18px 14px; text-align: center; }
.bfehr-ls-num   { display: block; font-size: 32px; font-weight: 800; line-height: 1; }
.bfehr-ls-label { display: block; font-size: 12px; color: var(--bfehr-muted); margin-top: 6px; }
.bfehr-leave-stat-card small { display: block; font-size: 11px; color: var(--bfehr-muted); margin-top: 4px; }
.bfehr-ls-used      { border-color: #fca5a5; }
.bfehr-ls-used .bfehr-ls-num { color: var(--bfehr-danger); }
.bfehr-ls-pending   { border-color: #fde68a; }
.bfehr-ls-pending .bfehr-ls-num { color: var(--bfehr-warning); }
.bfehr-ls-remaining { border-color: #86efac; }
.bfehr-ls-remaining .bfehr-ls-num { color: var(--bfehr-success); }

/* Progress bar */
.bfehr-progress-wrap  { height: 10px; background: var(--bfehr-border); border-radius: 99px; overflow: hidden; margin: 4px 0; }
.bfehr-progress-bar   { height: 100%; background: var(--bfehr-primary); border-radius: 99px; transition: width .6s ease; }
.bfehr-progress-label { font-size: 12px; color: var(--bfehr-muted); margin-bottom: 24px; }

/* ── Request Leave: Balance summary ── */
.bfehr-request-balance { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: var(--bfehr-bg); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); margin-bottom: 24px; flex-wrap: wrap; }
.bfehr-rb-item { text-align: center; min-width: 60px; }
.bfehr-rb-num { display: block; font-size: 26px; font-weight: 800; line-height: 1; color: var(--bfehr-text); }
.bfehr-rb-label { display: block; font-size: 11px; color: var(--bfehr-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .3px; }
.bfehr-rb-sep { font-size: 20px; font-weight: 300; color: var(--bfehr-muted); padding: 0 2px; }
.bfehr-rb-result .bfehr-rb-num { color: var(--bfehr-success); }@media (max-width: 480px) { .bfehr-request-balance { gap: 8px; padding: 14px; } .bfehr-rb-num { font-size: 20px; } }

/* ── Request Leave: Form ── */
.bfehr-leave-request-form { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.bfehr-field { display: flex; flex-direction: column; gap: 6px; }
.bfehr-field label { font-size: 14px; font-weight: 600; color: var(--bfehr-text); }
.bfehr-field .bfehr-optional { font-weight: 400; color: var(--bfehr-muted); font-size: 13px; }
.bfehr-field select,
.bfehr-field input[type="text"],
.bfehr-field input[type="email"],
.bfehr-field input[type="tel"],
.bfehr-field input[type="date"],
.bfehr-field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--bfehr-border); border-radius: var(--bfehr-radius-sm); font-size: 14px; font-family: inherit; background: var(--bfehr-white); color: var(--bfehr-text); box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.bfehr-field select:focus,
.bfehr-field input:focus,
.bfehr-field textarea:focus { outline: none; border-color: var(--bfehr-primary); box-shadow: 0 0 0 3px rgba(42,181,115,.12); }
.bfehr-field textarea { resize: vertical; min-height: 80px; }
.bfehr-field select { cursor: pointer; appearance: auto; }
.bfehr-field-row { display: flex; gap: 16px; }
.bfehr-field-row .bfehr-field { flex: 1; }@media (max-width: 480px) { .bfehr-field-row { flex-direction: column; } }

/* Days counter */
.bfehr-days-counter { display: flex; align-items: baseline; gap: 6px; height: 44px; padding: 0 16px; background: var(--bfehr-bg); border: 1.5px solid var(--bfehr-border); border-radius: var(--bfehr-radius-sm); }
.bfehr-dc-num { font-size: 24px; font-weight: 800; color: var(--bfehr-primary); line-height: 44px; transition: color .2s; }
.bfehr-dc-num.bfehr-dc-warn { color: var(--bfehr-danger); }
.bfehr-dc-label { font-size: 13px; color: var(--bfehr-muted); }

/* Submit button */
.bfehr-submit-leave { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 32px; background: var(--bfehr-primary); color: #fff; border: none; border-radius: var(--bfehr-radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, transform .1s; font-family: inherit; }
.bfehr-submit-leave:hover { background: var(--bfehr-primary-h); }
.bfehr-submit-leave:active { transform: scale(.98); }
.bfehr-submit-leave:disabled { opacity: .6; cursor: not-allowed; }

.bfehr-team-shell { display: flex; flex-direction: column; gap: 22px; }
.bfehr-calendar-board { padding: 20px; border: 1px solid var(--bfehr-border); border-radius: 18px; background: var(--bfehr-white); box-shadow: var(--bfehr-shadow); }
.bfehr-calendar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bfehr-calendar-head h3 { margin: 0; padding: 0; border: 0; font-size: 24px; }
.bfehr-calendar-nav { display: flex; align-items: center; gap: 10px; }
.bfehr-calendar-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--bfehr-muted); font-size: 13px; }
.bfehr-calendar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.bfehr-calendar-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.bfehr-calendar-dot-holiday { background: #f97316; }
.bfehr-calendar-dot-event { background: #0ea5e9; }
.bfehr-calendar-dot-sunday { background: #ef4444; }
.bfehr-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.bfehr-calendar-grid-weekdays { margin-bottom: 8px; }
.bfehr-calendar-weekday { padding: 10px 6px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bfehr-muted); }
.bfehr-calendar-cell { min-height: 138px; padding: 10px; border: 1px solid var(--bfehr-border); border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); display: flex; flex-direction: column; gap: 8px; }
.bfehr-calendar-cell-empty { background: #f8fafc; border-style: dashed; min-height: 138px; }
.bfehr-calendar-day-button { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.bfehr-calendar-day-button:hover { border-color: #86efac; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
.bfehr-calendar-day-active { border-color: #22c55e; box-shadow: inset 0 0 0 1px rgba(34,197,94,.2), 0 10px 24px rgba(15, 23, 42, .06); }
.bfehr-calendar-date { font-size: 15px; font-weight: 700; color: var(--bfehr-text); }
.bfehr-calendar-sunday { border-color: #fecaca; background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%); }
.bfehr-calendar-sunday .bfehr-calendar-date { color: #b91c1c; }
.bfehr-calendar-today { box-shadow: inset 0 0 0 2px rgba(42,181,115,.32); }
.bfehr-calendar-events { display: flex; flex-direction: column; gap: 6px; }
.bfehr-calendar-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.3; }
.bfehr-calendar-pill-holiday { background: #ffedd5; color: #c2410c; }
.bfehr-calendar-pill-event { background: #e0f2fe; color: #0369a1; }
.bfehr-calendar-leave-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.bfehr-calendar-alias { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #166534; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.bfehr-calendar-details { margin-top: 16px; padding: 18px; border: 1px solid var(--bfehr-border); border-radius: 16px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.bfehr-calendar-details-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.bfehr-calendar-details-head strong { font-size: 18px; }
.bfehr-calendar-details-head span { color: var(--bfehr-muted); font-size: 14px; }
.bfehr-calendar-details-body { display: flex; flex-direction: column; gap: 16px; }
.bfehr-calendar-detail-group h5 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--bfehr-muted); }
.bfehr-calendar-detail-list { display: flex; flex-direction: column; gap: 10px; }
.bfehr-calendar-detail-card { padding: 14px; border: 1px solid var(--bfehr-border); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.bfehr-calendar-detail-card strong { font-size: 15px; }
.bfehr-calendar-detail-card small,
.bfehr-calendar-detail-card p { margin: 0; color: var(--bfehr-muted); line-height: 1.55; }
.bfehr-calendar-detail-person { display: flex; align-items: center; gap: 10px; }
.bfehr-calendar-details-empty { margin: 0; color: var(--bfehr-muted); }
.bfehr-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.bfehr-team-panel { padding: 20px; border: 1px solid var(--bfehr-border); border-radius: 18px; background: var(--bfehr-white); box-shadow: var(--bfehr-shadow); }
.bfehr-team-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.bfehr-team-panel-head h4 { margin: 0 0 4px; font-size: 18px; }
.bfehr-team-panel-head p { margin: 0; color: var(--bfehr-muted); font-size: 14px; }
.bfehr-team-list { display: flex; flex-direction: column; gap: 12px; }
.bfehr-team-card { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--bfehr-border); border-radius: 16px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.bfehr-team-card-main { min-width: 0; }
.bfehr-team-card-main strong { display: block; font-size: 15px; margin-bottom: 4px; }
.bfehr-team-card-main span { display: block; font-size: 13px; font-weight: 600; color: var(--bfehr-primary); margin-bottom: 6px; }
.bfehr-team-card-main p { margin: 0; color: var(--bfehr-muted); line-height: 1.55; font-size: 14px; }
.bfehr-team-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; text-align: right; }
.bfehr-team-card-side small { color: var(--bfehr-muted); font-size: 12px; }
.bfehr-team-card-birthday { background: linear-gradient(180deg, #fffef7 0%, #ffffff 100%); border-color: #fde68a; }
.bfehr-team-empty { padding: 18px; border: 1px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; }
.bfehr-team-empty strong { display: block; margin-bottom: 6px; font-size: 15px; }
.bfehr-team-empty p { margin: 0; color: var(--bfehr-muted); line-height: 1.6; }@media (max-width: 860px) {
  .bfehr-notion-leave-layout { grid-template-columns: 1fr; }
  .bfehr-leave-request-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .bfehr-team-grid { grid-template-columns: 1fr; }
  .bfehr-section-head { flex-direction: column; align-items: flex-start; }
  .bfehr-calendar-head { flex-direction: column; align-items: flex-start; }
  .bfehr-calendar-nav { width: 100%; }
}@media (max-width: 640px) {
  .bfehr-leave-request-intro-meta,
  .bfehr-leave-request-intro-head { flex-direction: column; align-items: flex-start; }
  .bfehr-calendar-board { padding: 16px; overflow-x: auto; }
  .bfehr-calendar-grid { min-width: 720px; }
  .bfehr-calendar-nav { flex-wrap: wrap; }
  .bfehr-team-panel { padding: 16px; }
  .bfehr-team-card { flex-direction: column; }
  .bfehr-team-card-side { align-items: flex-start; text-align: left; }
  .bfehr-info-item-wide { grid-column: span 1; }
}

/* (table styles defined in workspace section above) */

/* Leave low balance */
.bfehr-leave-low { color: var(--bfehr-danger); font-weight: 600; }

/* Employee directory (front-end) */
.bfehr-employee-list { padding: 24px 0 48px; }
.bfehr-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.bfehr-directory-table { font-size: 14px; }
.bfehr-table-scroll { overflow-x: auto; }
.bfehr-directory-search { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bfehr-directory-search .bfehr-input { max-width: 280px; }

/* Portal login form */

/* Widget */
.bfehr-widget ul  { list-style: none; padding: 0; margin: 0; }
.bfehr-widget li  { padding: 10px 0; border-bottom: 1px solid var(--bfehr-border); }
.bfehr-widget li:last-child { border: none; }
.bfehr-widget-job-title { font-weight: 600; display: block; margin-bottom: 3px; color: var(--bfehr-text); text-decoration: none; }
.bfehr-widget-job-title:hover { color: var(--bfehr-primary); }
.bfehr-widget-meta { font-size: 12px; color: var(--bfehr-muted); }

/* ════════════════════════════════════════
   HR DASHBOARD (employee-space hr tab)
   ════════════════════════════════════════ */

/* KPI strip */
.bfehr-hr-kpis { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 14px; margin-bottom: 28px; }
.bfehr-hr-kpi  { background: var(--bfehr-white); border: 1px solid var(--bfehr-border); border-top: 3px solid var(--bfehr-primary); border-radius: var(--bfehr-radius); padding: 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; box-shadow: var(--bfehr-shadow); }
.bfehr-hr-kpi-warn   { border-top-color: var(--bfehr-warning); }
.bfehr-hr-kpi-accent { border-top-color: var(--bfehr-success); }
.bfehr-hr-kpi-icon   { font-size: 22px; margin-bottom: 4px; }
.bfehr-hr-kpi-num    { font-size: 32px; font-weight: 800; line-height: 1; color: var(--bfehr-text); }
.bfehr-hr-kpi-label  { font-size: 12px; color: var(--bfehr-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Section heading */
.bfehr-hr-section-head { display: flex !important; align-items: center; gap: 10px; margin: 28px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bfehr-border); }
.bfehr-hr-section-title { font-size: 15px; font-weight: 700; color: var(--bfehr-text); line-height: 1.3; }
.bfehr-hr-count { background: var(--bfehr-primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; flex-shrink: 0; }

/* Table wrapper */
.bfehr-hr-table-wrap { overflow-x: auto; }

/* Leave decision buttons */
.bfehr-hr-actions { white-space: nowrap; }
.bfehr-hr-decide  { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--bfehr-radius-sm); font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: opacity .15s; }
.bfehr-hr-decide:disabled { opacity: .45; cursor: not-allowed; }
.bfehr-hr-review { display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px; margin-right: 6px; border-radius: var(--bfehr-radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; }
.bfehr-hr-review-panel { margin-top: 18px; padding: 20px; border: 1px solid #d6e4df; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%); box-shadow: 0 14px 40px rgba(15, 23, 42, .06); }
.bfehr-hr-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.bfehr-hr-review-head .bfehr-notion-sub-title { display: block; margin-bottom: 4px; }
.bfehr-hr-review-sub { margin: 0; color: #667085; }
.bfehr-hr-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.bfehr-hr-review-card { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e5ece9; }
.bfehr-hr-review-card span,
.bfehr-hr-review-note-box span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.bfehr-hr-review-card strong { color: #0f172a; font-size: 14px; }
.bfehr-hr-review-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.bfehr-hr-review-note-box { display: block; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e5ece9; color: #334155; }
.bfehr-hr-review-note-box p { margin: 0; white-space: pre-wrap; }
.bfehr-hr-review-note-box textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid #d7dfdb; border-radius: 12px; padding: 10px 12px; background: #fcfefd; color: #0f172a; }
.bfehr-hr-review-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bfehr-hr-review-admin-link { color: #2AB573; font-weight: 600; text-decoration: none; }@media (max-width: 860px) {
  .bfehr-hr-review-grid,
  .bfehr-hr-review-notes { grid-template-columns: 1fr; }
  .bfehr-hr-actions { white-space: normal; }
  .bfehr-hr-filter-form { margin-left: 0; width: 100%; }
  .bfehr-hr-filter-form select { flex: 1 1 160px; }
}
.bfehr-btn-approve { background: #dcfce7; color: #15803d; margin-right: 6px; }
.bfehr-btn-approve:hover { background: #bbf7d0; }
.bfehr-btn-reject  { background: #fee2e2; color: #b91c1c; }
.bfehr-btn-reject:hover { background: #fecaca; }

/* Vacancy cards */
.bfehr-hr-vacancy-list { display: flex; flex-direction: column; gap: 10px; }
.bfehr-hr-vacancy-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--bfehr-white); border: 1px solid var(--bfehr-border); border-radius: var(--bfehr-radius); box-shadow: var(--bfehr-shadow); }
.bfehr-hr-vacancy-info { flex: 1; }
.bfehr-hr-vacancy-info strong { font-size: 15px; font-weight: 700; }
.bfehr-hr-vacancy-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.bfehr-hr-app-count    { font-size: 12px; color: var(--bfehr-muted); font-weight: 600; }

/* Empty state */
.bfehr-hr-empty { font-size: 14px; color: var(--bfehr-muted); padding: 12px 0 4px; }@media (max-width: 640px) {
  .bfehr-hr-kpis { grid-template-columns: repeat(2, 1fr) !important; }
  .bfehr-hr-vacancy-card { flex-direction: column; align-items: flex-start; }
  .bfehr-hr-vacancy-meta { flex-direction: row; align-items: center; }
}@media (max-width: 560px) {
  .bfehr-portal-logout { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
}

/* Merchandising report workspace */
.bfehr-merch-shell { display: flex; flex-direction: column; gap: 18px; }
.bfehr-merch-hero { display: block; padding: 24px; border: 1px solid #dfe7e2; border-radius: 18px; background: linear-gradient(135deg, #f7fbf9 0%, #ffffff 100%); }
.bfehr-merch-hero h3 { margin: 6px 0 8px; font-size: 30px; line-height: 1.1; }
.bfehr-merch-hero p { margin: 0; max-width: 680px; color: #5f6d67; }
.bfehr-merch-form { position: relative; padding: 24px; border: 1px solid #e6ece8; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(15, 23, 42, .04); }
.bfehr-merch-progress { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.bfehr-merch-progress-meta { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; }
.bfehr-merch-progress-count { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.bfehr-merch-progress-track { width: 100%; height: 8px; border-radius: 999px; background: #eef2f1; overflow: hidden; }
.bfehr-merch-progress-bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2AB573 0%, #22c55e 100%); transition: width .24s ease; }
.bfehr-merch-step { display: none; }
.bfehr-merch-step.is-active { display: block; }
.bfehr-merch-step-head { margin-bottom: 18px; }
.bfehr-merch-step-head h4 { margin: 0 0 6px; font-size: 24px; }
.bfehr-merch-step-head p { margin: 0; color: #64748b; }
.bfehr-merch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.bfehr-merch-field,
.bfehr-merch-check-group,
.bfehr-merch-radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; padding: 18px; border: 1px solid #e5ece9; border-radius: 16px; background: #fcfefd; }
.bfehr-merch-field span,
.bfehr-merch-check-group legend,
.bfehr-merch-radio-group legend { font-size: 14px; font-weight: 700; color: #0f172a; }
.bfehr-merch-field em,
.bfehr-merch-check-group em,
.bfehr-merch-radio-group em { color: #dc2626; font-style: normal; }
.bfehr-merch-field small { color: #64748b; }
.bfehr-merch-field input[type="text"],
.bfehr-merch-field input[type="date"],
.bfehr-merch-field select,
.bfehr-merch-field textarea,
.bfehr-merch-field input[type="file"] { width: 100%; border: 1px solid #d9e2dd; border-radius: 12px; padding: 12px 14px; background: #fff; color: #0f172a; }
.bfehr-merch-check-group label,
.bfehr-merch-radio-group label { display: flex; align-items: flex-start; gap: 10px; color: #334155; }
.bfehr-merch-check-group input,
.bfehr-merch-radio-group input { margin-top: 3px; }
.bfehr-merch-file-count { color: #2AB573; font-weight: 600; }
.bfehr-merch-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.bfehr-merch-uploading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #b7e6cb; border-radius: 14px; background: #effcf5; color: #14532d; }
.bfehr-merch-uploading-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bfehr-merch-uploading-copy strong { font-size: 14px; line-height: 1.3; }
.bfehr-merch-uploading-copy span { font-size: 13px; line-height: 1.5; color: #166534; }
.bfehr-merch-uploading-spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid rgba(42,181,115,.25); border-top-color: #2AB573; animation: bfehrSpin .8s linear infinite; flex-shrink: 0; }
.bfehr-merch-form.is-submitting { opacity: .96; }
.bfehr-merch-form.is-submitting .bfehr-merch-step,
.bfehr-merch-form.is-submitting .bfehr-merch-progress,
.bfehr-merch-form.is-submitting .bfehr-merch-actions { pointer-events: none; }

@keyframes bfehrSpin {
  to { transform: rotate(360deg); }
}@media (max-width: 960px) {
  .bfehr-merch-shell { gap: 14px; }
  .bfehr-merch-hero,
  .bfehr-merch-form { padding: 16px; border-radius: 16px; }
  .bfehr-merch-hero h3 { font-size: 24px; }
  .bfehr-merch-step-head h4 { font-size: 20px; }
  .bfehr-merch-grid { grid-template-columns: 1fr; }
  .bfehr-merch-progress-meta { align-items: flex-start; }
  .bfehr-merch-field,
  .bfehr-merch-check-group,
  .bfehr-merch-radio-group { padding: 14px; border-radius: 14px; margin-bottom: 14px; }
  .bfehr-merch-field input[type="text"],
  .bfehr-merch-field input[type="date"],
  .bfehr-merch-field select,
  .bfehr-merch-field textarea,
  .bfehr-merch-field input[type="file"] { min-height: 48px; padding: 12px; font-size: 16px; }
  .bfehr-merch-actions { flex-direction: column-reverse; }
  .bfehr-merch-actions .bfehr-btn { width: 100%; min-height: 48px; }
  .bfehr-merch-uploading { align-items: flex-start; padding: 12px 14px; }
}@media (max-width: 480px) {
  .bfehr-merch-progress-count { font-size: 10px; }
  .bfehr-merch-step-head p,
  .bfehr-merch-field small,
  .bfehr-merch-uploading-copy span { font-size: 12px; }
  .bfehr-merch-check-group label,
  .bfehr-merch-radio-group label { font-size: 14px; line-height: 1.5; }
}


/* ── CRM Account Layer ────────────────────────────────────────────────── */

/* Account list */
.bfehr-crm-account-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 16px; }
.bfehr-crm-account-card { display: block; padding: 16px 18px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.bfehr-crm-account-card:hover { border-color: var(--ws-accent); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.bfehr-crm-account-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bfehr-crm-account-card-head strong { font-size: 14px; color: var(--ws-text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfehr-crm-account-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.bfehr-crm-account-card-meta span { font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-account-card-meta span + span::before { content: '·'; margin-right: 6px; }
.bfehr-crm-account-card-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--ws-muted); padding-top: 8px; border-top: 1px solid var(--ws-border); }

/* Status badges */
.bfehr-crm-account-status-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
.bfehr-crm-account-status-prospect  { background: rgba(148,163,184,.15); color: var(--ws-muted); }
.bfehr-crm-account-status-active    { background: rgba(42,181,115,.12); color: #2ab573; }
.bfehr-crm-account-status-dormant   { background: rgba(245,158,11,.12);  color: #f59e0b; }
.bfehr-crm-account-status-churned   { background: rgba(239,68,68,.1);   color: #ef4444; }

/* Account view */
.bfehr-crm-account-view-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.bfehr-crm-account-view-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bfehr-crm-account-view-title h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ws-text); }
.bfehr-crm-back-link { font-size: 13px; color: var(--ws-muted); text-decoration: none; white-space: nowrap; }
.bfehr-crm-back-link:hover { color: var(--ws-text); }

.bfehr-crm-account-info-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 0; border-top: 1px solid var(--ws-border); border-bottom: 1px solid var(--ws-border); margin-bottom: 18px; }
.bfehr-crm-account-info-item { display: flex; flex-direction: column; gap: 2px; }
.bfehr-crm-account-info-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-crm-account-info-item span:last-child { font-size: 13px; color: var(--ws-text); }

.bfehr-crm-account-kpi-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.bfehr-crm-account-kpi { flex: 1; min-width: 120px; padding: 14px 16px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.bfehr-crm-account-kpi strong { font-size: 20px; font-weight: 700; color: var(--ws-text); line-height: 1.1; }
.bfehr-crm-account-kpi span { font-size: 11px; color: var(--ws-muted); }

.bfehr-crm-account-body { display: flex; flex-direction: column; gap: 14px; }
.bfehr-crm-account-panel { margin: 0; }
.bfehr-crm-account-notes { font-size: 14px; color: var(--ws-text); line-height: 1.7; padding: 12px 16px; }

/* PIC list (view) */
.bfehr-crm-pic-list { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.bfehr-crm-pic-item { padding: 12px 14px; background: var(--ws-bg); border: 1px solid var(--ws-border); border-radius: 8px; }
.bfehr-crm-pic-item.bfehr-crm-pic-inactive { opacity: .55; }
.bfehr-crm-pic-name { font-size: 14px; font-weight: 600; color: var(--ws-text); display: flex; align-items: center; gap: 8px; }
.bfehr-crm-pic-active-badge { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: rgba(42,181,115,.12); color: #2ab573; font-weight: 700; }
.bfehr-crm-pic-role { font-size: 12px; color: var(--ws-muted); margin-top: 2px; }
.bfehr-crm-pic-contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--ws-muted); }

/* Location list (view) */
.bfehr-crm-location-list { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.bfehr-crm-location-item { padding: 12px 14px; background: var(--ws-bg); border: 1px solid var(--ws-border); border-radius: 8px; }
.bfehr-crm-location-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.bfehr-crm-location-head strong { flex: 1; font-size: 14px; color: var(--ws-text); }
.bfehr-crm-location-status { font-size: 10px; padding: 1px 7px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bfehr-crm-location-status-active   { background: rgba(42,181,115,.12); color: #2ab573; }
.bfehr-crm-location-status-inactive { background: rgba(148,163,184,.12); color: var(--ws-muted); }
.bfehr-crm-location-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-location-products { margin-top: 6px; font-size: 12px; color: var(--ws-muted); font-style: italic; }

/* Account form */
.bfehr-crm-account-form-head { margin-bottom: 20px; }
.bfehr-crm-account-form-head h2 { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.bfehr-crm-account-form-section { background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.bfehr-crm-account-form-section h3 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-muted); }
.bfehr-crm-form-row { display: flex; flex-direction: column; gap: 5px; }
.bfehr-crm-form-row label { font-size: 12px; font-weight: 600; color: var(--ws-muted); }
.bfehr-crm-form-row input[type="text"],
.bfehr-crm-form-row input[type="email"],
.bfehr-crm-form-row input[type="url"],
.bfehr-crm-form-row input[type="date"],
.bfehr-crm-form-row input[type="number"],
.bfehr-crm-form-row select,
.bfehr-crm-form-row textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--ws-border); border-radius: 7px; background: var(--ws-bg); color: var(--ws-text); font-size: 13px; }
.bfehr-crm-form-row textarea { resize: vertical; }
.bfehr-crm-form-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.bfehr-crm-form-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.bfehr-required { color: #ef4444; }

/* PIC editor rows */
.bfehr-crm-pic-editor { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.bfehr-crm-pic-row { padding: 14px; background: var(--ws-bg); border: 1px solid var(--ws-border); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.bfehr-crm-pic-row-foot { display: flex; align-items: center; justify-content: space-between; }
.bfehr-crm-pic-active-toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ws-muted); cursor: pointer; }
.bfehr-crm-account-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }

/* Small ghost buttons */
.bfehr-btn-ghost-xs { background: none; border: 1px solid var(--ws-border); border-radius: 5px; padding: 2px 8px; font-size: 11px; cursor: pointer; color: var(--ws-muted); }
.bfehr-btn-ghost-xs:hover { border-color: var(--ws-text); color: var(--ws-text); }
.bfehr-btn-danger-xs { color: #ef4444; border-color: rgba(239,68,68,.3); }
.bfehr-btn-danger-xs:hover { border-color: #ef4444; background: rgba(239,68,68,.06); }

/* Filter bar */
.bfehr-crm-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.bfehr-crm-filter-search { flex: 1; min-width: 180px; padding: 6px 10px; border: 1px solid var(--ws-border); border-radius: 7px; background: var(--ws-bg); color: var(--ws-text); font-size: 13px; }
.bfehr-crm-filter-bar select { padding: 6px 10px; border: 1px solid var(--ws-border); border-radius: 7px; background: var(--ws-bg); color: var(--ws-text); font-size: 13px; }

/* ── Overtime ─────────────────────────────────────────────────────────── */
.bfehr-ot-shell { display: flex; flex-direction: column; gap: 20px; }
.bfehr-ot-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: var(--ws-hover); font-size: 14px; color: var(--ws-text); }
.bfehr-ot-identity-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-muted); }
.bfehr-ot-identity-dept { color: var(--ws-muted); }
.bfehr-ot-identity-dept::before { content: "·"; margin-right: 8px; }
.bfehr-ot-form-panel .bfehr-field { margin-bottom: 16px; }
.bfehr-ot-form-panel .bfehr-field-row { margin-bottom: 0; }
.bfehr-ot-hours { max-width: 140px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.bfehr-ot-hint { font-size: 12px; color: var(--ws-muted); }
.bfehr-ot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bfehr-ot-chip { padding: 5px 12px; border: 1px solid var(--ws-border); border-radius: 999px; background: var(--ws-surface); color: var(--ws-text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, border-color .15s; }
.bfehr-ot-chip:hover { background: var(--ws-hover); border-color: var(--bfehr-primary); }
.bfehr-ot-chip.is-active { background: var(--ws-accent-bg); border-color: var(--bfehr-primary); color: var(--bfehr-primary); }
.bfehr-ot-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 14px; color: var(--ws-text); }
.bfehr-ot-summary-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-muted); }
.bfehr-ot-summary-item strong { font-variant-numeric: tabular-nums; font-size: 16px; }
.bfehr-ot-reason-cell { white-space: normal !important; min-width: 160px; max-width: 360px; line-height: 1.5; }
.bfehr-ot-hr-note { display: block; margin-top: 4px; font-size: 12px; color: var(--ws-muted); }
.bfehr-ot-month-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bfehr-ot-month-label { min-width: 118px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ws-text); }
.bfehr-ot-month-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--ws-border); border-radius: 8px; color: var(--ws-text); text-decoration: none; font-size: 18px; line-height: 1; }
.bfehr-ot-month-btn:hover { background: var(--ws-hover); }
.bfehr-ot-month-today { font-size: 13px; font-weight: 600; color: var(--bfehr-primary); text-decoration: none; }
.bfehr-ot-month-today:hover { text-decoration: underline; }
.bfehr-ot-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ws-border); border: 1px solid var(--ws-border); border-radius: 8px; overflow: hidden; margin: 0 0 14px; }
.bfehr-ot-actions { white-space: normal !important; }
.bfehr-ot-actions .bfehr-ot-decide { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; margin: 0 4px 4px 0; }
.bfehr-ot-actions .bfehr-ot-decide:disabled { opacity: .45; cursor: not-allowed; }
.bfehr-ot-edit { font-size: 12px; font-weight: 600; color: var(--ws-muted); text-decoration: none; margin-left: 4px; }
.bfehr-ot-edit:hover { color: var(--ws-text); text-decoration: underline; }@media (max-width: 640px) {
  .bfehr-ot-form-panel .bfehr-field-row { flex-direction: column; gap: 0; }
  .bfehr-ot-month-nav { margin-left: 0; width: 100%; }
  .bfehr-ot-kpis { grid-template-columns: 1fr; }
}

/* ── Check-in screen (shown until the employee has checked in) ─────────── */
.bfehr-checkin-gate { display: flex; align-items: center; justify-content: center; min-height: 62vh; padding: 24px 0; }
.bfehr-checkin-gate[hidden], #bfehr-workboard-body[hidden] { display: none !important; }
.bfehr-checkin-gate-card { width: 100%; max-width: 460px; text-align: center; }
.bfehr-checkin-gate-date { margin: 0 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-muted); }
.bfehr-checkin-gate-card h2 { margin: 0 0 28px; font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--ws-text); padding: 0; border: 0; }
.bfehr-checkin-gate-card .bfehr-form-message { margin: 0 0 18px; text-align: left; }
.bfehr-checkin-gate-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; min-height: 60px; padding: 16px 48px; border: 0; border-radius: 14px; background: #187f4e; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .01em; cursor: pointer; box-shadow: 0 6px 18px rgba(24,127,78,.28); transition: background .15s, transform .1s, box-shadow .15s; }
.bfehr-checkin-gate-btn:hover { background: #126b40; box-shadow: 0 8px 22px rgba(24,127,78,.34); }
.bfehr-checkin-gate-btn:active { transform: scale(.98); }
.bfehr-checkin-gate-btn:focus-visible { outline: 3px solid rgba(24,127,78,.4); outline-offset: 3px; }
.bfehr-checkin-gate-btn:disabled { opacity: .6; cursor: wait; }
.bfehr-checkin-gate-hint { margin: 16px 0 0; font-size: 14px; color: var(--ws-muted); }@media (max-width: 640px) {
  .bfehr-checkin-gate { min-height: 70vh; }
  .bfehr-checkin-gate-card h2 { font-size: 26px; }
  .bfehr-checkin-gate-btn { width: 100%; min-width: 0; }
}

/* ── Simplified board: slim header, inline add, compact tasks, summary sheet ───────── */
.bfehr-focus-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bfehr-focus-head h3 { margin: 0; padding: 0; border: 0; font-size: 20px; line-height: 1.2; color: var(--ws-text); }
.bfehr-focus-head-date { font-size: 13px; color: var(--ws-muted); }

/* One slim line of facts instead of four cards */
.bfehr-focus-stat-strip { display: flex; grid-template-columns: none; }
.bfehr-focus-stat-card { flex: 1 1 0; min-width: 0; padding: 10px 14px; }
.bfehr-focus-stat-card.is-out, .bfehr-focus-stat-card.is-carry { display: none; }
#bfehr-focus-app[data-board-status="checked_out"] .bfehr-focus-stat-card.is-out { display: block; }
#bfehr-focus-app.has-carry .bfehr-focus-stat-card.is-carry { display: block; }

.bfehr-focus-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: var(--ws-accent-bg); color: var(--ws-text); font-size: 13px; line-height: 1.5; }
.bfehr-focus-notice[hidden] { display: none !important; }
.bfehr-focus-notice button { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ws-muted); padding: 0 2px; }

.bfehr-focus-saved { display: block; min-height: 16px; margin: 2px 0 10px; font-size: 12px; color: var(--ws-muted); }
.bfehr-focus-saved[data-state="error"] { color: #b91c1c; }

.bfehr-focus-quickadd { display: flex; gap: 8px; margin: 0 0 14px; }
.bfehr-focus-quickadd[hidden] { display: none !important; }
.bfehr-focus-quickadd input { background: var(--ws-surface); color: var(--ws-text); }

/* A plain task shows only checkbox, title, status and delete. "More" reveals subtasks and the blocker. */
.bfehr-focus-task.is-compact:not(.is-expanded) .bfehr-focus-dependency-row,
.bfehr-focus-task.is-compact:not(.is-expanded) [data-add-subtask] { display: none; }
.bfehr-focus-more-btn { font-weight: 600; }

/* Check-out: one sticky button, summary sheet */
.bfehr-focus-actions { justify-content: flex-end; }
.bfehr-focus-checkout-summary { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ws-text); }
.bfehr-focus-note-toggle { align-self: flex-start; border: 0; background: transparent; padding: 0; color: var(--bfehr-primary); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.bfehr-focus-note-toggle[hidden], #bfehr-focus-end-note[hidden] { display: none !important; }@media (max-width: 640px) {
  .bfehr-focus-stat-card { padding: 9px 10px; }
  .bfehr-focus-actions { position: sticky; bottom: 0; z-index: 5; margin: 14px -4px 0; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ws-surface) 78%, transparent); flex-direction: column-reverse; }
  .bfehr-focus-actions .bfehr-btn { width: 100%; min-height: 48px; font-size: 16px; }
  .bfehr-focus-task-btn { min-height: 36px; }
  .bfehr-focus-checkout-dialog { align-items: flex-end; padding: 0; }
  .bfehr-focus-checkout-card { width: 100%; border-radius: 18px 18px 0 0; }
  .bfehr-focus-checkout-actions { flex-direction: column-reverse; }
  .bfehr-focus-checkout-actions .bfehr-btn { width: 100%; min-height: 48px; }
}

/* ── Test mode banner (administrators acting as a test employee) ─────────── */
.bfehr-testmode-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 16px; background: #fef3c7; color: #78350f; font-size: 13px; border-bottom: 1px solid #fcd34d; }
.bfehr-testmode-links { display: inline-flex; gap: 14px; }
.bfehr-testmode-links a { color: #78350f; font-weight: 700; text-decoration: underline; }
.bfehr-notion-ws.is-dark .bfehr-testmode-bar { background: #3b2a06; color: #fcd34d; border-color: #92400e; }
.bfehr-notion-ws.is-dark .bfehr-testmode-links a { color: #fcd34d; }

/* Busy buttons (check in / check out): the label changes and a small spinner shows while the server answers */
.bfehr-checkin-gate-btn.is-busy, #bfehr-focus-confirm-checkout.is-busy { cursor: progress; opacity: .85; }
.bfehr-checkin-gate-btn.is-busy::after, #bfehr-focus-confirm-checkout.is-busy::after { content: ""; width: 16px; height: 16px; margin-left: 10px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: bfehr-spin .7s linear infinite; }
@keyframes bfehr-spin { to { transform: rotate(360deg); } }

/* Phone tap targets: at least 44px for everything inside a task row */@media (max-width: 640px) {
  .bfehr-focus-task-btn,
  .bfehr-focus-task select,
  .bfehr-focus-subtask select,
  .bfehr-focus-status-switch-btn { min-height: 44px; }
  .bfehr-focus-task-btn { min-width: 44px; }
  .bfehr-focus-check { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .bfehr-focus-task-input, .bfehr-focus-subtask-input { min-height: 44px; }
}

/* ── Extension points: bell rows from other plugins, care eligibility box ───────── */
a.bfehr-notion-notify-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.bfehr-notion-notify-count { margin-left: auto; min-width: 22px; padding: 1px 8px; border-radius: 999px; background: var(--ws-accent-bg); color: var(--ws-text); font-size: 12px; font-weight: 700; text-align: center; }
.bfehr-care-eligibility { display: block; padding: 10px 12px; border: 1px solid var(--ws-border); border-radius: 8px; background: var(--ws-surface); font-size: 14px; color: var(--ws-text); }
.bfehr-care-eligibility-date { font-weight: 600; margin-right: 6px; }
.bfehr-care-eligibility-reason { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ws-muted); }@media (max-width: 640px) {
  .bfehr-notion-notify-item { min-height: 44px; }
}

/* ── Customer Care inbox (4.7.0) ── */
.bfehr-care-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.bfehr-care-filters select, .bfehr-care-filters input[type=search], .bfehr-care-form select, .bfehr-care-form textarea { min-height: 40px; padding: 8px 10px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); color: var(--ws-text); font: inherit; }
.bfehr-care-form textarea { width: 100%; box-sizing: border-box; }
.bfehr-care-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ws-muted); }
.bfehr-care-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #dc2626; }
.bfehr-care-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--ws-muted); }
.bfehr-care-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bfehr-care-title { margin: 0; font-size: 18px; color: var(--ws-text); }
.bfehr-care-meta, .bfehr-care-hint { font-size: 13px; color: var(--ws-muted); margin: 6px 0 12px; }
.bfehr-care-timeline { list-style: none; margin: 8px 0 20px; padding: 0 0 0 14px; border-left: 2px solid var(--ws-border); display: flex; flex-direction: column; gap: 14px; }
.bfehr-care-event { display: flex; }
.bfehr-care-card { max-width: 86%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ws-border); background: var(--ws-surface); color: var(--ws-text); }
.bfehr-care-customer_message .bfehr-care-card { background: #dcfce7; border-color: #86efac; color: #14532d; }
.bfehr-care-staff_reply { justify-content: flex-end; }
.bfehr-care-internal_note .bfehr-care-card { background: #fef9c3; border: 1px dashed #ca8a04; color: #713f12; }
.bfehr-notion-ws.is-dark .bfehr-care-customer_message .bfehr-care-card { background: #123524; border-color: #1f6b43; color: #d1fae5; }
.bfehr-notion-ws.is-dark .bfehr-care-internal_note .bfehr-care-card { background: #3a3210; border-color: #a16207; color: #fde68a; }
.bfehr-care-card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 6px; }
.bfehr-care-by, .bfehr-care-when { opacity: .7; }
.bfehr-care-when { margin-left: auto; }
.bfehr-care-body { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bfehr-care-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bfehr-care-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ws-border); }
.bfehr-care-marker { text-align: center; font-size: 12px; color: var(--ws-muted); }
.bfehr-care-marker span { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ws-hover); }
.bfehr-care-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ws-border); }
.bfehr-care-label { display: block; font-size: 12px; font-weight: 600; color: var(--ws-muted); margin-bottom: 6px; }
.bfehr-care-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }@media (max-width: 768px) {
  .bfehr-care-card { max-width: 100%; }
  .bfehr-care-actions .bfehr-btn, .bfehr-care-actions select, .bfehr-care-filters select, .bfehr-care-filters input[type=search], .bfehr-care-filters .bfehr-btn, .bfehr-care-pager .bfehr-btn { min-height: 44px; }
  .bfehr-care-actions select { flex: 1 1 100%; }
}

.bfehr-care-unit { margin: 6px 0 12px; font-size: 13px; color: var(--ws-text); }
.bfehr-care-unit .bfehr-care-eligibility { margin-top: 4px; }
.bfehr-care-form .bfehr-care-check { margin: 6px 0; }
.bfehr-care-form button[disabled] { opacity: .6; cursor: wait; }

/* Customer Care claims board (4.9.0) */
/* Columns keep a comfortable width; whatever does not fit scrolls sideways. */
.bfehr-claim-board { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.bfehr-claim-col { flex: 0 0 320px; width: 320px; scroll-snap-align: start; background: var(--ws-hover); border-radius: 8px; padding: 10px; box-sizing: border-box; min-width: 0; }
.bfehr-claim-col-head { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-muted); display: flex; justify-content: space-between; }
.bfehr-claim-declined-head { margin-top: 20px; justify-content: flex-start; gap: 8px; }
.bfehr-claim-count { background: var(--ws-surface); border-radius: 999px; padding: 0 8px; }
.bfehr-claim-none { font-size: 12px; color: var(--ws-muted); margin: 0; }
.bfehr-claim-ship { margin: 10px 0; }
.bfehr-claim-ship-row { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bfehr-claim-ship-row label { flex: 1 1 100%; margin: 0; }
.bfehr-claim-ship-row input { flex: 1 1 140px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); color: var(--ws-text); font: inherit; box-sizing: border-box; min-width: 0; }
.bfehr-claim-ship-extra { display: inline-flex; }
.bfehr-claim-form input[type=text], .bfehr-claim-form textarea { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); color: var(--ws-text); font: inherit; margin-bottom: 8px; }
.bfehr-claim-block { color: #b45309; margin: 4px 0 0; }
.bfehr-care-claimlist { margin: 4px 0 0; padding-left: 18px; }@media (max-width: 768px) {
  .bfehr-claim-col { flex-basis: min(320px, 86%); width: min(320px, 86%); }
  .bfehr-claim-ship-row input, .bfehr-claim-form input[type=text], #bfehr-emp-detail-body .bfehr-care-form .bfehr-btn { min-height: 44px; }
}

/* Claim cards: a short summary like a Notion board card; the details open in the right-hand panel. */
.bfehr-claim-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin-bottom: 8px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 8px; color: var(--ws-text); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bfehr-claim-card:hover, .bfehr-claim-card:focus-visible { border-color: var(--ws-accent, #1f9d68); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); outline: none; }
.bfehr-claim-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.bfehr-claim-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ws-hover); color: var(--ws-muted); }
.bfehr-claim-age { font-size: 11px; color: var(--ws-muted); }
.bfehr-claim-card-title { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.bfehr-claim-card-sub { font-size: 12px; color: var(--ws-muted); }
.bfehr-claim-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.bfehr-claim-rejected { opacity: .9; }
.bfehr-claim-facts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; font-size: 13px; }
.bfehr-claim-facts span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-muted); }
#bfehr-emp-detail-body .bfehr-care-form { border-top: 1px solid var(--ws-border); }
#bfehr-emp-detail-body .bfehr-claim-form input[type=url], #bfehr-emp-detail-body .bfehr-claim-form input[type=text], #bfehr-emp-detail-body .bfehr-claim-form textarea { width: 100%; box-sizing: border-box; }

.bfehr-claim-history { margin: 14px 0; }
.bfehr-claim-history ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--ws-border); display: flex; flex-direction: column; gap: 10px; }
.bfehr-claim-history li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.bfehr-claim-history time { font-size: 11px; color: var(--ws-muted); }
.bfehr-claim-history-by { font-size: 11px; font-style: normal; color: var(--ws-muted); }

.bfehr-claim-address { margin: 12px 0; }
.bfehr-claim-address-body { display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-bottom: 8px; overflow-wrap: anywhere; }

/* Customer Care dashboard (4.13.0) */
.bfehr-care-h { margin: 22px 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-muted); }
.bfehr-care-range { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.bfehr-care-range-link { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ws-border); color: var(--ws-text); text-decoration: none; font-size: 13px; min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; }
.bfehr-care-range-link.is-on { background: var(--ws-accent-bg, #e6f6ee); border-color: var(--ws-accent, #1f9d68); font-weight: 600; }
.bfehr-care-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.bfehr-care-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 8px; color: var(--ws-text); }
.bfehr-care-tile.is-alert { border-color: #d97706; background: rgba(217, 119, 6, .08); }
.bfehr-care-tile-label { font-size: 12px; color: var(--ws-muted); }
.bfehr-care-tile-value { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bfehr-care-tile-hint { font-size: 12px; color: var(--ws-muted); }
.bfehr-care-dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.bfehr-care-panel { padding: 4px 14px 14px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 8px; }
.bfehr-care-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bfehr-care-bars li { display: grid; grid-template-columns: minmax(70px, 120px) 1fr 32px; align-items: center; gap: 8px; font-size: 13px; }
.bfehr-care-bar { display: block; height: 10px; background: var(--ws-hover); border-radius: 999px; overflow: hidden; }
.bfehr-care-bar > span { display: block; height: 100%; background: var(--ws-accent, #1f9d68); border-radius: 999px; }
.bfehr-care-bar-n { text-align: right; font-variant-numeric: tabular-nums; }@media (max-width: 768px) { .bfehr-care-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bfehr-care-range-link { min-height: 44px; } }

/* Customer Care units (4.15.0) */
.bfehr-unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 8px; }
.bfehr-unit-grid .bfehr-claim-card { margin-bottom: 0; }
.bfehr-unit-proof { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--ws-border); object-fit: contain; background: var(--ws-hover); }
.bfehr-care-eligibility-date { margin-right: 8px; font-size: 13px; }

/* Customer Care cases, flow 2 (4.16.0) */
.bfehr-case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
/* The shared .bfehr-claim-facts span rule styles labels; these lines must read as normal text, so they need the higher specificity. */
.bfehr-case-facts .bfehr-case-line { display: block; font-size: 13px; font-weight: 400; color: var(--ws-text); margin-top: 2px; text-transform: none; letter-spacing: 0; }
.bfehr-case-facts .bfehr-case-line a { text-transform: none; letter-spacing: 0; }
.bfehr-case-facts .bfehr-claim-chip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ws-muted); text-transform: none; letter-spacing: 0; }
.bfehr-case-words { margin: 6px 0 12px; }
.bfehr-case-words p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bfehr-case-photos { margin: 10px 0; }
.bfehr-case-history-label { margin-top: 16px; }
.bfehr-case-ship { padding: 10px 0; border-top: 1px solid var(--ws-border); border-bottom: 1px solid var(--ws-border); margin: 12px 0; }
.bfehr-case-facts .bfehr-case-window { color: #15803d; }
.bfehr-case-facts .bfehr-case-window.is-outside { color: #b45309; }

/* Payroll (4.17.0) */
.bfehr-pay-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.bfehr-pay-month { font-size: 16px; color: var(--ws-text); }
.bfehr-pay-label-row { margin-bottom: 12px; }
.bfehr-pay-label-row input, .bfehr-pay-in { min-height: 40px; padding: 8px 10px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); color: var(--ws-text); font: inherit; box-sizing: border-box; }
.bfehr-pay-label-row input { width: 100%; max-width: 360px; }
.bfehr-pay-table td { vertical-align: top; }
.bfehr-pay-table .bfehr-case-line { display: block; font-size: 12px; color: var(--ws-muted); margin-top: 2px; }
.bfehr-pay-num { text-align: right; white-space: nowrap; }
.bfehr-pay-in { width: 118px; text-align: right; font-variant-numeric: tabular-nums; }
.bfehr-pay-total strong { font-variant-numeric: tabular-nums; }
.bfehr-pay-actions { min-width: 120px; }
.bfehr-pay-hist { margin-top: 4px; font-size: 12px; }
.bfehr-pay-hist ul { margin: 4px 0 0; padding-left: 16px; color: var(--ws-muted); }
.bfehr-pay-grand { margin: 10px 0 14px; font-size: 14px; color: var(--ws-text); }
.bfehr-pay-slipactions { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--ws-border); }
.bfehr-pay-mini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.bfehr-pay-mini span { min-width: 180px; }@media (max-width: 768px) { .bfehr-pay-in, .bfehr-pay-label-row input { min-height: 44px; } .bfehr-pay-in { width: 104px; } .bfehr-pay-mini .bfehr-btn { min-height: 44px; } }

/* Line icons outside the workspace shell (public job pages, empty states, buttons) */
.bfehr-icon-inline { display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: -3px; margin-right: 4px; }
.bfehr-job-meta .bfehr-meta-tag { display: inline-flex; align-items: center; gap: 2px; line-height: 1.3; }
.bfehr-icon-sm { width: 16px; height: 16px; flex: none; }
.bfehr-icon-lg { width: 20px; height: 20px; flex: none; }
.bfehr-empty-icon .bfehr-icon { width: 32px; height: 32px; color: var(--ws-muted, #9ca3af); }
.bfehr-file-icon .bfehr-icon { width: 24px; height: 24px; }
.bfehr-crm-pic-contacts span { display: inline-flex; align-items: center; }

/* ════════════════════════════════════════
   WORKSPACE — readability & touch pass (4.18.0)
   Measured on the live pages: secondary greys were 2.5-2.8:1, white text on the
   brand green 2.6:1 (4.5:1 is the standard), form fields under 16px made iPhones
   zoom the page, and many tap targets were 26-35px (44px is the standard).
   Light mode only for the colours; dark mode already has its own palette.
   ════════════════════════════════════════ */
.bfehr-notion-ws:not(.is-dark) {
  --ws-muted: #6b6a66;
  --bfehr-primary: #187f4e;
  --bfehr-primary-h: #126b40;
  --ws-accent: #187f4e;
}
.bfehr-notion-ws .bfehr-table th,
.bfehr-notion-ws .bfehr-badge,
.bfehr-notion-ws .bfehr-status,
.bfehr-notion-ws .bfehr-claim-age,
.bfehr-notion-ws .bfehr-claim-chip,
.bfehr-notion-ws .bfehr-crm-card-status,
.bfehr-notion-ws .bfehr-crm-snapshot-label,
.bfehr-notion-ws .bfehr-crm-type-chip,
.bfehr-notion-ws .bfehr-leave-request-badge,
.bfehr-notion-ws .bfehr-notion-birthday-age,
.bfehr-notion-ws .bfehr-notion-ident-role,
.bfehr-notion-ws .bfehr-notion-kpi-label,
.bfehr-notion-ws .bfehr-notion-leave-chip-label,
.bfehr-notion-ws .bfehr-notion-preview-label,
.bfehr-notion-ws .bfehr-notion-stat-label,
.bfehr-notion-ws .bfehr-notion-sub-count,
.bfehr-notion-ws .bfehr-notion-recent-title,
.bfehr-notion-ws .bfehr-notion-section-label,
.bfehr-notion-ws .bfehr-notion-panel-item-sub { font-size: 12px; }
.bfehr-notion-ws .bfehr-notion-cal-weekday,
.bfehr-notion-ws .bfehr-notion-cal-pill,
.bfehr-notion-ws .bfehr-focus-topbar-meta,
.bfehr-notion-ws .bfehr-focus-summary-kicker { font-size: 11px; }
.bfehr-notion-ws .bfehr-notion-notify-badge { background: #dc2626; font-size: 11px; }@media (max-width: 768px) {
  .bfehr-notion-ws .bfehr-notion-nav-link,
  .bfehr-notion-ws .bfehr-notion-subnav-link,
  .bfehr-notion-ws .bfehr-notion-logout { min-height: 44px; }
  .bfehr-notion-ws .bfehr-notion-mob-toggle,
  .bfehr-notion-ws .bfehr-notion-side-toggle { width: 44px; height: 44px; }
  .bfehr-notion-ws .bfehr-notion-topbar { grid-template-columns: 44px minmax(0, 1fr); padding-right: 4px; }
  .bfehr-notion-ws .bfehr-emp-view-btn { min-width: 44px; min-height: 44px; }
}

/* ════════════════════════════════════════
   WORKSPACE — dark mode fixes (4.19.0)
   Found by auditing every tab in dark mode: white text on the bright green was 2.6:1, the leave-chip
   green, Sunday red and birthday grey were 2.8-3.7:1, the pastel status pills glared on the dark
   surface and the black wordmark of the logo vanished.
   ════════════════════════════════════════ */
.bfehr-notion-ws.is-dark {
  --bfehr-status-success-bg: rgba(42,181,115,.16);  --bfehr-status-success-text: #6ee7a8;
  --bfehr-status-warning-bg: rgba(245,158,11,.16);  --bfehr-status-warning-text: #fcd34d;
  --bfehr-status-warning-soft-bg: rgba(245,158,11,.14); --bfehr-status-warning-soft-text: #fcd34d;
  --bfehr-status-danger-bg: rgba(239,68,68,.16);    --bfehr-status-danger-text: #fca5a5; --bfehr-status-danger-strong-text: #fca5a5;
  --bfehr-status-info-bg: rgba(56,189,248,.16);     --bfehr-status-info-text: #7dd3fc;
  --bfehr-status-info-strong-bg: rgba(96,165,250,.16); --bfehr-status-info-strong-text: #93c5fd;
  --bfehr-status-accent-bg: rgba(167,139,250,.18);  --bfehr-status-accent-text: #c4b5fd;
  --bfehr-status-neutral-bg: rgba(148,163,184,.16); --bfehr-status-neutral-text: #cbd5e1;
  --bfehr-status-teal-bg: rgba(45,212,191,.16);     --bfehr-status-teal-text: #5eead4;
}
.bfehr-notion-ws.is-dark .bfehr-btn-primary,
.bfehr-notion-ws.is-dark .bfehr-btn-outline:hover,
.bfehr-notion-ws.is-dark .bfehr-submit-leave,
.bfehr-notion-ws.is-dark .bfehr-notion-sub-count,
.bfehr-notion-ws.is-dark .bfehr-leave-bubble,
.bfehr-notion-ws.is-dark .bfehr-hr-count,
.bfehr-notion-ws.is-dark .bfehr-pagination .page-numbers.current { background: #187f4e; border-color: #187f4e; color: #fff; }
.bfehr-notion-ws.is-dark .bfehr-btn-primary:hover,
.bfehr-notion-ws.is-dark .bfehr-submit-leave:hover { background: #126b40; border-color: #126b40; }
.bfehr-notion-ws.is-dark .bfehr-notion-leave-chip-label { color: #6ee7a8; }
.bfehr-notion-ws.is-dark .bfehr-notion-cal-sunday .bfehr-notion-cal-date { color: #f87171; }
.bfehr-notion-ws.is-dark .bfehr-notion-birthday-age { color: #cbd5e1; }
.bfehr-notion-ws.is-dark .bfehr-leave-request-badge { background: rgba(42,181,115,.16); color: #6ee7a8; }
/* the logo is a PNG with a black wordmark: invert it and rotate the hue back so the green mark stays green */
.bfehr-notion-ws.is-dark .bfehr-notion-ws-logo { filter: invert(1) hue-rotate(180deg); }

/* ════════════════════════════════════════
   WORKSPACE — phone header and table cards (4.19.0)
   On phones the header hid the check-in status and the notification bell, and every table was a
   670-1,036px strip that scrolled sideways. The header now keeps both; each table row becomes a
   labelled card (the labels are copied from the column headings by public.js).
   ════════════════════════════════════════ */@media (max-width: 768px) {
  .bfehr-notion-ws .bfehr-notion-topbar { grid-template-columns: 44px minmax(0, 1fr) auto; padding-right: 4px; }
  .bfehr-notion-ws .bfehr-notion-topbar-actions { display: flex; margin-left: 0; height: auto; align-items: center; }
  .bfehr-notion-ws .bfehr-focus-topbar-chip { display: grid; min-width: 0; height: auto; padding: 0 8px; border: 0; background: none; }
  .bfehr-notion-ws .bfehr-focus-topbar-meta { display: none; }
  .bfehr-notion-ws .bfehr-notion-notify-wrap { height: auto; padding: 0; border-left: 0; }
  .bfehr-notion-ws .bfehr-notion-notify-btn { width: 44px; height: 44px; }
  .bfehr-notion-ws .bfehr-notion-notify-panel { position: fixed; top: 54px; left: 12px; right: 12px; width: auto; max-width: none; }
  .bfehr-notion-ws .bfehr-notion-breadcrumb { min-width: 0; }
  .bfehr-notion-ws .bfehr-notion-bc-current { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bfehr-notion-ws .bfehr-notion-sub-head { flex-wrap: wrap; gap: 10px; }
  .bfehr-notion-ws .bfehr-notion-sub-head > *:last-child:not(:first-child) { flex: 1 1 100%; display: flex; gap: 8px; }
  .bfehr-notion-ws .bfehr-notion-sub-head > *:last-child:not(:first-child) select { flex: 1 1 0; min-width: 0; }

  .bfehr-notion-ws .bfehr-notion-table-wrap:has(> .bfehr-table.is-stack) { overflow-x: visible; background: none; }
  .bfehr-notion-ws .bfehr-table.is-stack,
  .bfehr-notion-ws .bfehr-table.is-stack tbody,
  .bfehr-notion-ws .bfehr-table.is-stack tr,
  .bfehr-notion-ws .bfehr-table.is-stack td { display: block; width: auto; }
  .bfehr-notion-ws .bfehr-table.is-stack { border: 0; margin: 0; }
  .bfehr-notion-ws .bfehr-table.is-stack thead { display: none; }
  .bfehr-notion-ws .bfehr-table.is-stack tr { margin: 0 0 12px; padding: 4px 14px; border: 1px solid var(--ws-border); border-radius: 12px; background: var(--ws-surface, #fff); }
  .bfehr-notion-ws .bfehr-table.is-stack td { display: grid; grid-template-columns: minmax(84px, 40%) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ws-border); white-space: normal; min-width: 0; text-align: left; width: auto; }
  .bfehr-notion-ws .bfehr-table.is-stack td:last-child { border-bottom: 0; }
  .bfehr-notion-ws .bfehr-table.is-stack td::before { content: attr(data-label); grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-muted); }
  .bfehr-notion-ws .bfehr-table.is-stack td > * { grid-column: 2; }
  .bfehr-notion-ws .bfehr-table.is-stack td:first-child { position: static; display: block; font-size: 16px; font-weight: 700; min-width: 0; }
  .bfehr-notion-ws .bfehr-table.is-stack td:first-child::before,
  .bfehr-notion-ws .bfehr-table.is-stack td[data-label=""]::before { content: none; }
  .bfehr-notion-ws .bfehr-table.is-stack td[data-label=""] { display: block; }
  .bfehr-notion-ws .bfehr-table.is-stack .bfehr-pay-in { width: 100%; }
  .bfehr-notion-ws .bfehr-table.is-stack .bfehr-pay-num { text-align: left; }
}

/* Dark mode: the workboard task colours and one status token had no dark values, so the "Not started",
   "Pending" and "Done" pills on the Team Workboard used light-mode text on the dark surface (2.4:1). */
.bfehr-notion-ws.is-dark {
  --bfehr-status-neutral-text-strong: #cbd5e1;
  --ws-color-done: #6ee7a8;           --ws-color-done-bg: rgba(42,181,115,.16);
  --ws-color-link: #f87171;
  --ws-color-unblocked: #93c5fd;      --ws-color-unblocked-bg: rgba(96,165,250,.16);
  --ws-color-progress: #a5b4fc;       --ws-color-progress-bg: rgba(129,140,248,.18);
  --ws-color-carry: #fbbf24;
}

/* ════════════════════════════════════════
   WORKSPACE — desktop tables (4.21.0)
   The content card is only ~800px wide next to the sidebar, and the HR employees table, the HR leave table and
   Payroll were 827, 864 and 1,086px, so they scrolled sideways and the Action / Payslip column was cut off.
   Cells are 10px instead of 14px, Payroll inputs are 104px and its "last: ..." hint and long column heading wrap,
   so all of them fit. If a table is still wider than the card (narrow windows) its last column stays pinned in view,
   with an edge shadow only while the table actually scrolls (public.js adds .has-xscroll).
   ════════════════════════════════════════ */@media (min-width: 769px) {
  .bfehr-notion-ws .bfehr-table th,
  .bfehr-notion-ws .bfehr-table td { padding-left: 10px; padding-right: 10px; }
  .bfehr-notion-ws .bfehr-table th:empty { padding-left: 4px; padding-right: 4px; }
  .bfehr-notion-ws .bfehr-table td:has(.bfehr-emp-view-btn) { padding-left: 4px; padding-right: 4px; }
  .bfehr-notion-ws .bfehr-table td:has(.bfehr-row-actions) { padding-left: 8px; padding-right: 8px; }
  .bfehr-notion-ws .bfehr-table td:first-child { min-width: 112px; }
  .bfehr-notion-ws .bfehr-table.pin-last th:last-child,
  .bfehr-notion-ws .bfehr-table.pin-last td:last-child { position: sticky; right: 0; z-index: 1; background: var(--ws-surface, #fff); }
  .bfehr-notion-ws .bfehr-table.pin-last.has-xscroll th:last-child,
  .bfehr-notion-ws .bfehr-table.pin-last.has-xscroll td:last-child { box-shadow: -8px 0 8px -8px rgba(15,23,42,.14); }
  .bfehr-notion-ws .bfehr-table.pin-last.has-xscroll tbody tr:hover td:last-child { box-shadow: -8px 0 8px -8px rgba(15,23,42,.14), inset 9999px 0 0 var(--ws-hover, rgba(55,53,47,.06)); }
  .bfehr-notion-ws .bfehr-table.pin-last tbody tr:hover td:last-child { box-shadow: inset 9999px 0 0 var(--ws-hover, rgba(55,53,47,.06)); }
  .bfehr-notion-ws .bfehr-pay-table th { white-space: normal; }
  .bfehr-notion-ws .bfehr-pay-table .bfehr-case-line { white-space: normal; max-width: 104px; }
  .bfehr-notion-ws input.bfehr-pay-in { width: 104px; padding-left: 8px; padding-right: 8px; }
  .bfehr-notion-ws .bfehr-pay-actions { min-width: 0; }
}@media (max-width: 768px) {
  /* phone cards: the pinned last column of the desktop table does not apply */
  .bfehr-notion-ws .bfehr-table.is-stack th:last-child,
  .bfehr-notion-ws .bfehr-table.is-stack td:last-child { position: static; box-shadow: none; }
}


/* ── Casual employees: time clock + HR hours (4.28.0) ─────────────────────── */
.bfehr-casual { max-width: 460px; margin: 0 auto 32px; padding: 28px 24px; text-align: center; background: var(--ws-surface, #fff); border: 1px solid var(--ws-border); border-radius: 12px; }
.bfehr-casual-date { margin: 0 0 4px; font-size: 12px; color: var(--ws-muted); }
.bfehr-casual-title { margin: 0 0 12px; font-size: 20px; line-height: 1.25; color: var(--ws-text); }
.bfehr-casual-state { margin: 0 0 12px; font-size: 14px; color: var(--ws-muted); }
.bfehr-casual-timer { margin: 0 0 16px; font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ws-text); }
.bfehr-casual .bfehr-btn { min-width: 180px; }
.bfehr-casual-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 24px; background: var(--ws-border); border: 1px solid var(--ws-border); border-radius: 8px; overflow: hidden; }
.bfehr-casual-totals > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--ws-surface, #fff); }
.bfehr-casual-totals span { font-size: 12px; color: var(--ws-muted); }
.bfehr-casual-totals strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ws-text); }
.bfehr-casual-heading { margin: 0 0 12px; }
.bfehr-casual-foot { margin: 12px 0 0; font-size: 12px; color: var(--ws-muted); }

.bfehr-ch-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 8px; }
.bfehr-ch-form label { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.bfehr-ch-form label span { font-size: 12px; font-weight: 600; color: var(--ws-muted); }
.bfehr-ch-form .bfehr-ch-note { flex: 1 1 200px; }
.bfehr-ch-form select, .bfehr-ch-form input { width: 100%; }
.bfehr-ch-hint { margin: 0 0 12px; font-size: 12px; color: var(--ws-muted); }
#bfehr-casual-hours .bfehr-ot-kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 16px; }
.bfehr-ch-actions .bfehr-btn { margin: 0 4px 0 0; }
@media (max-width: 640px) {
  .bfehr-casual { padding: 24px 16px; }
  .bfehr-ch-form label { flex: 1 1 100%; }
}

/* Payment links (Midtrans generator) */
.bfehr-pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-bottom: 32px; }
.bfehr-pl-h { margin: 24px 0 12px; font-size: 14px; font-weight: 600; }
.bfehr-pl-h:first-child { margin-top: 0; }
.bfehr-pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 80px 40px; gap: 8px; margin-bottom: 8px; }
.bfehr-pl-row input { width: 100%; }
.bfehr-pl-total { display: flex; justify-content: space-between; margin: 16px 0 0; font-size: 14px; }
.bfehr-pl-total strong { font-size: 18px; }
.bfehr-pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bfehr-pl-grid label { display: flex; flex-direction: column; gap: 4px; }
.bfehr-pl-grid label > span { font-size: 12px; font-weight: 600; color: var(--ws-muted); }
.bfehr-pl-grid input, .bfehr-pl-grid select { width: 100%; }
.bfehr-pl-grid .bfehr-pl-wide { grid-column: 1 / -1; }
.bfehr-pl-grid .bfehr-pl-check { flex-direction: row; align-items: center; gap: 8px; }
.bfehr-pl-grid .bfehr-pl-check input { width: auto; }
.bfehr-pl-grid .bfehr-pl-check > span { font-size: 14px; font-weight: 400; color: inherit; }
.bfehr-pl-actions { margin-top: 20px; }
.bfehr-pl-result { display: none; gap: 8px; margin-top: 12px; align-items: center; }
.bfehr-pl-result input { flex: 1 1 auto; min-width: 0; }
.bfehr-pl-preview { position: sticky; top: 16px; }
.bfehr-pl-preview-cap { margin: 0 0 8px; font-size: 12px; color: var(--ws-muted); }
.bfehr-pl-card { border: 1px solid var(--ws-border); border-radius: 12px; background: #fff; overflow: hidden; color: #1f2937; }
.bfehr-pl-card-head { padding: 16px; background: #f7f8fa; border-bottom: 1px solid var(--ws-border); }
.bfehr-pl-card-title { font-size: 12px; color: #6b7280; }
.bfehr-pl-card-total { font-size: 24px; font-weight: 700; margin: 2px 0; }
.bfehr-pl-card-order { font-size: 11px; color: #6b7280; }
.bfehr-pl-card-items { list-style: none; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--ws-border); font-size: 13px; }
.bfehr-pl-card-items:empty { display: none; }
.bfehr-pl-card-items li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.bfehr-pl-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; font-size: 13px; }
.bfehr-pl-card-body.is-optional { opacity: .55; }
.bfehr-pl-fake { display: block; padding: 8px 10px; border: 1px solid var(--ws-border); border-radius: 6px; color: #9ca3af; }
.bfehr-pl-fake-btn { margin: 0 16px 16px; padding: 10px; border-radius: 6px; background: #2d3139; color: #fff; text-align: center; font-size: 14px; }
@media (max-width: 900px) {
  .bfehr-pl-layout { grid-template-columns: 1fr; }
  .bfehr-pl-preview { position: static; }
}
@media (max-width: 640px) {
  .bfehr-pl-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .bfehr-pl-row .pl-name { grid-column: 1 / -1; }
  .bfehr-pl-row .pl-price { grid-column: 1 / 2; }
  .bfehr-pl-row .pl-qty { grid-column: 1 / 2; }
  .bfehr-pl-grid { grid-template-columns: 1fr; }
}
.bfehr-pl-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.bfehr-pl-panel-check { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.bfehr-pl-panel-check .bfehr-ch-hint { margin: 0; }
.bfehr-badge.is-checking { opacity: .6; }

/* CRM opportunity editor: order items and consignment details */
.bfehr-crm-lines-box { margin: 0 0 16px; padding: 14px; border: 1px solid var(--ws-border); border-radius: 10px; background: var(--ws-surface); }
.bfehr-crm-lines-box[hidden] { display: none !important; }
.bfehr-crm-lines-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bfehr-crm-lines-head label { font-weight: 600; color: var(--ws-text); }
.bfehr-crm-lines-sum { font-size: 12px; font-weight: 600; color: var(--ws-accent); }
.bfehr-crm-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-top: 1px solid var(--ws-border); }
.bfehr-crm-line:first-child { border-top: 0; padding-top: 0; }
.bfehr-crm-line .bfehr-field { margin: 0; }
.bfehr-crm-line-product { grid-column: 1 / -1; }
.bfehr-crm-line-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.bfehr-crm-line-total { font-size: 12px; color: var(--ws-muted); }
#bfehr-crm-estimated[readonly] { opacity: .75; cursor: not-allowed; }

/* ── CRM data display ─────────────────────────────────────────────────────────
   Type colours are one validated categorical set (adjacent colour-blind separation
   ΔE >= 13, light and dark). Text never wears a series colour: chips and legends use
   the normal text colour and carry identity with a swatch. Status colours (won, lost,
   open) stay separate from these, so a type never looks like an outcome. */
.bfehr-notion-ws {
  --crm-type-custom_order: #2a78d6;
  --crm-type-scc: #e87ba4;
  --crm-type-general_consignment: #6250d6;
  --crm-type-wholesale: #eda100;
}
.bfehr-notion-ws.is-dark {
  --crm-type-custom_order: #3987e5;
  --crm-type-scc: #d55181;
  --crm-type-general_consignment: #9085e9;
  --crm-type-wholesale: #c98500;
}
.bfehr-crm-seg-custom_order, .bfehr-crm-swatch-custom_order { background: var(--crm-type-custom_order); }
.bfehr-crm-seg-scc, .bfehr-crm-swatch-scc { background: var(--crm-type-scc); }
.bfehr-crm-seg-general_consignment, .bfehr-crm-swatch-general_consignment { background: var(--crm-type-general_consignment); }
.bfehr-crm-seg-wholesale, .bfehr-crm-swatch-wholesale { background: var(--crm-type-wholesale); }

.bfehr-crm-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.bfehr-crm-seg-bar { display: flex; gap: 2px; border-radius: 999px; overflow: hidden; }
.bfehr-crm-seg-bar-thin { height: 8px; margin-top: 12px; }
.bfehr-crm-seg { display: block; min-width: 6px; height: 100%; }
.bfehr-crm-seg-empty { background: var(--ws-border); }
.bfehr-crm-mix-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-mix-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bfehr-notion-ws .bfehr-crm-snapshot-card .bfehr-crm-mix-legend strong { display: inline; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--ws-text); }
.bfehr-crm-mix-legend li.is-zero { opacity: .55; }

/* chips, legends and dots wear text colour; the swatch carries the type */
.bfehr-notion-ws .bfehr-crm-type-chip { gap: 7px; background: var(--ws-hover); color: var(--ws-text); }
.bfehr-notion-ws .bfehr-crm-type-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--ws-muted)); flex-shrink: 0; }
.bfehr-notion-ws .bfehr-crm-type-chip.bfehr-crm-type-chip-custom_order, .bfehr-notion-ws.is-dark .bfehr-crm-type-chip.bfehr-crm-type-chip-custom_order, .bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip.bfehr-crm-type-chip-custom_order { --tc: var(--crm-type-custom_order); background: color-mix(in srgb, var(--crm-type-custom_order) 12%, var(--ws-surface)); color: var(--ws-text); }
.bfehr-notion-ws .bfehr-crm-type-chip.bfehr-crm-type-chip-scc, .bfehr-notion-ws.is-dark .bfehr-crm-type-chip.bfehr-crm-type-chip-scc, .bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip.bfehr-crm-type-chip-scc { --tc: var(--crm-type-scc); background: color-mix(in srgb, var(--crm-type-scc) 12%, var(--ws-surface)); color: var(--ws-text); }
.bfehr-notion-ws .bfehr-crm-type-chip.bfehr-crm-type-chip-general_consignment, .bfehr-notion-ws.is-dark .bfehr-crm-type-chip.bfehr-crm-type-chip-general_consignment, .bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip.bfehr-crm-type-chip-general_consignment { --tc: var(--crm-type-general_consignment); background: color-mix(in srgb, var(--crm-type-general_consignment) 12%, var(--ws-surface)); color: var(--ws-text); }
.bfehr-notion-ws .bfehr-crm-type-chip.bfehr-crm-type-chip-wholesale, .bfehr-notion-ws.is-dark .bfehr-crm-type-chip.bfehr-crm-type-chip-wholesale, .bfehr-notion-ws.is-dark .bfehr-crm-followup-meta .bfehr-crm-type-chip.bfehr-crm-type-chip-wholesale { --tc: var(--crm-type-wholesale); background: color-mix(in srgb, var(--crm-type-wholesale) 12%, var(--ws-surface)); color: var(--ws-text); }

/* Pipeline Health: one bar per stage, length = open records, split by type */
.bfehr-crm-stage-bars { padding: 4px 16px 0; }
.bfehr-crm-stage-bar-row { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 28px minmax(64px, auto); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ws-border); }
.bfehr-crm-stage-bar-row:first-child { border-top: 0; }
.bfehr-crm-stage-bar-name { font-size: 13px; color: var(--ws-text); }
.bfehr-crm-stage-bar-track { min-width: 0; }
.bfehr-crm-stage-bar-track .bfehr-crm-seg-bar { height: 10px; min-width: 14px; }
.bfehr-crm-stage-bar-count { font-size: 13px; font-weight: 600; color: var(--ws-text); text-align: right; font-variant-numeric: tabular-nums; }
.bfehr-crm-stage-bar-value { font-size: 12px; color: var(--ws-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .bfehr-crm-stage-bar-row { grid-template-columns: minmax(0, 1fr) 28px auto; }
  .bfehr-crm-stage-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* KPI change line */
.bfehr-crm-delta { display: block; margin-top: 2px; font-size: 12px; color: var(--ws-muted); }
.bfehr-crm-delta-up { color: #0a7d0a; }
.bfehr-crm-delta-down { color: #b42323; }
.bfehr-notion-ws.is-dark .bfehr-crm-delta-up { color: #4ade80; }
.bfehr-notion-ws.is-dark .bfehr-crm-delta-down { color: #f87171; }

/* legend swatch squares (chart + pipeline) */
.bfehr-crm-chart-legend-item::before { display: none; }
.bfehr-crm-chart-legend-item { gap: 6px; }
.bfehr-crm-legend .bfehr-crm-swatch { margin-right: 0; }

/* stacked weekly columns */
.bfehr-crm-col { cursor: default; }
.bfehr-crm-col:hover { opacity: .85; }
.bfehr-crm-col-label { font-size: 11px; font-weight: 600; fill: var(--ws-text); }

/* "View as table" disclosure under each chart */
.bfehr-crm-viz-table { margin: 4px 16px 14px; font-size: 12px; }
.bfehr-crm-viz-table > summary { cursor: pointer; color: var(--ws-muted); padding: 6px 0; min-height: 32px; display: flex; align-items: center; }
.bfehr-crm-viz-table > summary:hover { color: var(--ws-text); }
.bfehr-crm-viz-table .bfehr-table th, .bfehr-crm-viz-table .bfehr-table td { padding: 6px 10px; font-size: 12px; }

/* shared hover tooltip */
.bfehr-viz-tip { position: fixed; z-index: 100000; pointer-events: none; max-width: 240px; padding: 7px 10px; border-radius: 8px; background: #1f1f1e; color: #f5f5f4; font-size: 12px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0,0,0,.18); white-space: pre-line; }
.bfehr-viz-tip[hidden] { display: none; }
.bfehr-crm-legend, .bfehr-crm-chart-legend { flex-wrap: wrap; gap: 6px 14px; }
.bfehr-crm-legend span, .bfehr-crm-chart-legend-item { white-space: nowrap; }

/* Barcode labels */
.bfehr-bc-layout { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.bfehr-bc-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--ws-border); border-radius: 6px; padding: 8px 10px; background: var(--ws-surface); color: var(--ws-text); font: inherit; }
.bfehr-bc-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr) 28px; gap: 6px; margin-bottom: 6px; }
.bfehr-bc-row input { min-width: 0; box-sizing: border-box; border: 1px solid var(--ws-border); border-radius: 6px; padding: 7px 8px; background: var(--ws-surface); color: var(--ws-text); font: inherit; font-size: 13px; }
.bfehr-bc-x { border: none; background: transparent; color: var(--ws-muted); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; }
.bfehr-bc-x:hover { background: var(--ws-hover); color: var(--ws-text); }
.bfehr-bc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.bfehr-bc-opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.bfehr-bc-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ws-muted); }
.bfehr-bc-opts select, .bfehr-bc-opts input[type="number"] { border: 1px solid var(--ws-border); border-radius: 6px; padding: 6px 8px; background: var(--ws-surface); color: var(--ws-text); width: 90px; }
.bfehr-bc-opts .bfehr-bc-check { flex-direction: row; align-items: center; gap: 6px; color: var(--ws-text); }
.bfehr-bc-msg { font-size: 12px; color: var(--ws-muted); margin: 6px 0 0; }
.bfehr-bc-msg.is-warn { color: #b45309; }
.bfehr-bc-paper { background: #e5e7eb; border: 1px solid var(--ws-border); border-radius: 8px; padding: 8px; overflow: hidden; }
.bfehr-bc-paper .bfehr-bc-page { margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.bfehr-bc-paper:has(.bfehr-bc-sheet:empty) { display: none; }
@media (max-width: 960px) { .bfehr-bc-layout { grid-template-columns: minmax(0, 1fr); } }

/* Production board */
.bfehr-wo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bfehr-wo-toggle { display: inline-flex; border: 1px solid var(--ws-border); border-radius: 8px; overflow: hidden; }
.bfehr-wo-toggle button { border: none; background: var(--ws-surface); color: var(--ws-muted); padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bfehr-wo-toggle button + button { border-left: 1px solid var(--ws-border); }
.bfehr-wo-toggle button.is-active { background: var(--ws-hover); color: var(--ws-text); }
.bfehr-wo-viewonly { font-size: 12px; color: var(--ws-muted); }
.bfehr-wo-board[hidden], .bfehr-wo-list[hidden], .bfehr-wo-list-empty[hidden], .bfehr-wo-form [hidden] { display: none !important; }
.bfehr-wo-board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 16px; align-items: stretch; overflow-x: auto; padding-bottom: 4px; }
.bfehr-wo-col { background: var(--ws-hover); border-radius: 12px; padding: 14px; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; min-height: 160px; }
.bfehr-wo-col-head { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.bfehr-wo-col .bfehr-wo-col-head h3.bfehr-wo-col-title { margin: 0; padding: 0; font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ws-text); }
.bfehr-wo-count { font-size: 12px; font-weight: 700; color: var(--ws-muted); background: var(--ws-surface); border-radius: 999px; padding: 2px 9px; }
.bfehr-wo-col-body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 80px; border-radius: 8px; }
.bfehr-wo-col-body:empty::after { content: attr(data-empty); display: block; padding: 22px 8px; text-align: center; font-size: 12px; color: var(--ws-muted); border: 1px dashed var(--ws-border); border-radius: 8px; }
.bfehr-wo-col-body.is-over { outline: 2px dashed var(--ws-muted); outline-offset: 2px; }
.bfehr-wo-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.bfehr-wo-card.is-draggable { cursor: grab; }
.bfehr-wo-card.is-dragging { opacity: .45; }
.bfehr-wo-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.bfehr-wo-card .bfehr-row-actions-toggle { width: 28px; height: 28px; }
.bfehr-wo-title { display: flex; flex-direction: column; gap: 2px; }
.bfehr-wo-title .bfehr-wo-name { font-size: 14px; }
.bfehr-wo-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.bfehr-wo-type { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ws-hover); color: var(--ws-text); white-space: nowrap; }
.bfehr-wo-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #e0ecfb; color: #1d4f91; }
.bfehr-wo-chip-uv_print { background: #fdecc8; color: #8a5a00; }
.bfehr-wo-name { font-size: 14px; line-height: 1.3; color: var(--ws-text); cursor: pointer; overflow-wrap: anywhere; }
.bfehr-wo-account { font-size: 12px; color: var(--ws-muted); }
.bfehr-wo-items { font-size: 12px; color: var(--ws-muted); overflow-wrap: anywhere; }
.bfehr-wo-qty { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ws-muted); }
.bfehr-wo-qty strong { color: var(--ws-text); font-size: 13px; }
.bfehr-wo-bar { height: 6px; border-radius: 999px; background: var(--ws-hover); overflow: hidden; }
.bfehr-wo-bar i { display: block; height: 100%; background: #2ab573; border-radius: 999px; }
.bfehr-wo-dates { font-size: 12px; color: var(--ws-muted); }
.bfehr-wo-status-queued { background: var(--ws-hover); color: var(--ws-muted); }
.bfehr-wo-status-in_production { background: #e0ecfb; color: #1d4f91; }
.bfehr-wo-status-done { background: #dcfce7; color: #15803d; }
.bfehr-wo-progress-cell { min-width: 120px; }
.bfehr-wo-progress-cell span { font-size: 12px; color: var(--ws-muted); }
.bfehr-wo-list .bfehr-wo-items { max-width: 260px; }
.bfehr-wo-list-empty { color: var(--ws-muted); font-size: 13px; }
.bfehr-wo-panel { width: 520px; }
.bfehr-wo-lines { display: flex; flex-direction: column; gap: 12px; }
.bfehr-wo-line-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.bfehr-wo-line-qty { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ws-text); }
.bfehr-wo-progress-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 8px; }
.bfehr-wo-form input, .bfehr-wo-form select, .bfehr-wo-form textarea, .bfehr-wo-progress-form input, .bfehr-wo-progress-form select { min-width: 0; box-sizing: border-box; width: 100%; border: 1px solid var(--ws-border); border-radius: 6px; padding: 8px 10px; background: var(--ws-surface); color: var(--ws-text); font: inherit; font-size: 13px; }
.bfehr-wo-form label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--ws-muted); }
.bfehr-wo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.bfehr-wo-h { margin: 8px 0 2px; font-size: 13px; color: var(--ws-text); }
.bfehr-wo-line-edit { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 76px 28px; gap: 6px; margin-bottom: 6px; }
.bfehr-wo-x { border: none; background: transparent; color: var(--ws-muted); font-size: 18px; cursor: pointer; border-radius: 6px; }
.bfehr-wo-x:hover { background: var(--ws-hover); color: var(--ws-text); }
.bfehr-wo-lines-foot { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; font-size: 13px; color: var(--ws-muted); }
.bfehr-wo-form-actions { display: flex; gap: 8px; }
.bfehr-wo-msg { min-height: 1em; margin: 6px 0; font-size: 12px; color: var(--ws-muted); }
.bfehr-wo-msg.is-bad { color: #b91c1c; }
.bfehr-wo-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bfehr-wo-log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--ws-text); padding-bottom: 8px; border-bottom: 1px solid var(--ws-border); }
.bfehr-wo-log li.is-empty { color: var(--ws-muted); border-bottom: none; }
.bfehr-wo-log small { color: var(--ws-muted); font-size: 11px; }
.bfehr-wo-log-del { margin-left: auto; border: none; background: transparent; color: var(--ws-muted); font-size: 16px; cursor: pointer; }
.bfehr-wo-log-del:hover { color: #b91c1c; }
.bfehr-wo-remark { margin: 0; font-size: 13px; color: var(--ws-text); }
@media (max-width: 900px) { .bfehr-wo-board { grid-template-columns: repeat(3, minmax(240px, 1fr)); } .bfehr-wo-panel { width: 100%; max-width: 100vw; } }
.bfehr-wo-chip-laser_uv { background: #e3dcf7; color: #4b2f94; }

/* Phone layout (4.40.5): one column fills the screen and the next one peeks in; items stack; bigger tap targets */
.bfehr-wo-move-item { display: none !important; }
.bfehr-wo-form p.description { margin: 0 0 10px; font-size: 12px; line-height: 1.45; font-weight: 400; color: var(--ws-muted); }
@media (max-width: 700px) {
  .bfehr-wo-board { grid-template-columns: repeat(3, 86%); scroll-snap-type: x mandatory; scroll-padding-left: 0; -webkit-overflow-scrolling: touch; }
  .bfehr-wo-col { scroll-snap-align: start; }
  .bfehr-wo-line-edit { grid-template-columns: minmax(0, 1fr) 96px 40px; gap: 8px; margin-bottom: 14px; }
  .bfehr-wo-line-edit > [data-f="item"] { grid-column: 1 / 3; grid-row: 1; }
  .bfehr-wo-line-edit > .bfehr-wo-x { grid-column: 3; grid-row: 1; width: 40px; height: 40px; justify-self: end; }
  .bfehr-wo-line-edit > [data-f="method"] { grid-column: 1; grid-row: 2; }
  .bfehr-wo-line-edit > [data-f="qty"] { grid-column: 2 / 4; grid-row: 2; }
  .bfehr-notion-ws .bfehr-table.is-stack td.bfehr-wo-items { max-width: none; min-width: 0; }
}
@media (pointer: coarse), (max-width: 700px) {
  .bfehr-wo-move-item { display: block !important; }
  .bfehr-wo-card .bfehr-row-actions-toggle { width: 40px; height: 40px; }
  .bfehr-wo-card-top { min-height: 40px; }
  .bfehr-row-actions-item[data-wo-act] { min-height: 44px; display: flex; align-items: center; }
  .bfehr-wo-card { cursor: pointer; }
}

.bfehr-wo-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bfehr-wo-help { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--ws-border); background: var(--ws-surface); color: var(--ws-muted); font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.bfehr-wo-help:hover { color: var(--ws-text); background: var(--ws-hover); }
.bfehr-wo-tour { position: fixed; inset: 0; z-index: 100000; isolation: isolate; }
.bfehr-wo-tour-spot { position: fixed; z-index: 1; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15,23,42,.55); pointer-events: none; }
.bfehr-wo-tour-pop { position: fixed; z-index: 2; opacity: 1 !important; animation: none !important; transition: none !important; filter: none !important; box-sizing: border-box; width: 340px; max-width: calc(100vw - 24px); background-color: var(--ws-surface, #fff); color: var(--ws-text, #1f2933); border: 1px solid var(--ws-border, #e5e7eb); border-radius: 12px; padding: 16px; box-shadow: 0 18px 40px rgba(15,23,42,.28); display: flex; flex-direction: column; gap: 8px; }
.bfehr-wo-tour-count { font-size: 11px; font-weight: 700; color: var(--ws-muted); text-transform: uppercase; letter-spacing: .04em; }
.bfehr-wo-tour-pop h4 { margin: 0; font-size: 15px; line-height: 1.3; color: var(--ws-text); }
.bfehr-wo-tour-pop p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ws-muted); }
.bfehr-wo-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.bfehr-wo-tour-actions > span { display: inline-flex; gap: 8px; margin-left: auto; }
.bfehr-wo-tour-skip { border: none; background: transparent; color: var(--ws-muted); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 0; }
.bfehr-wo-tour-skip:hover { color: var(--ws-text); }

.bfehr-shortcut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bfehr-shortcut { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--ws-border); border-radius: 12px; background: var(--ws-surface); color: var(--ws-text); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.bfehr-shortcut:hover { background: var(--ws-hover); }
.bfehr-shortcut strong { font-size: 14px; line-height: 1.3; }
.bfehr-shortcut span { font-size: 12px; line-height: 1.4; color: var(--ws-muted); }

.bfehr-wo-extra { margin: 6px 0 0; font-size: 12px; color: #b45309; }
.bfehr-shortcut-dot { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 999px; background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
.bfehr-wo-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100001; padding: 10px 16px; border-radius: 10px; background: #17211c; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 28px rgba(15,23,42,.3); }
.bfehr-wo-hint { font-size: 11px; font-weight: 400; color: var(--ws-muted); }
.bfehr-wo-form label.bfehr-wo-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.bfehr-wo-form label.bfehr-wo-check input { width: auto; flex: 0 0 auto; }

/* Check-in prompt for the Production team: what to do next on the board. */
.bfehr-wo-cue { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; padding: 16px 18px; border: 1px solid #86d3a8; border-left: 5px solid #1a7f4b; border-radius: 12px; background: #eef9f2; color: #14341f; animation: bfehr-wo-cue-in .35s ease-out; }
.bfehr-wo-cue.is-empty { border-color: #f1c27a; border-left-color: #d97706; background: #fff7e8; color: #4a2f06; }
.bfehr-wo-cue-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.bfehr-wo-cue-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.bfehr-wo-cue-text strong { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.bfehr-wo-cue-text span:last-child { font-size: 13px; opacity: .85; }
.bfehr-wo-cue-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes bfehr-wo-cue-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bfehr-wo-cue { animation: none; } }
@media (max-width: 600px) { .bfehr-wo-cue-actions .bfehr-btn { flex: 1 1 100%; text-align: center; } }
.bfehr-notion-ws.is-dark .bfehr-wo-cue { background: rgba(42,181,115,.12); border-color: rgba(42,181,115,.4); border-left-color: #2ab573; color: #e6f4ec; }
.bfehr-notion-ws.is-dark .bfehr-wo-cue.is-empty { background: rgba(217,119,6,.14); border-color: rgba(217,119,6,.45); border-left-color: #f59e0b; color: #fdebc8; }
