/* ───────────────────────────────────────────────────────────────────────────────
   The employer Home, redrawn (class.employer_home.php, pilot). The landing v2 palette:
   DM Sans, mint ground, dark-teal ink, #0f7777 the one action colour, the logo gradient
   only on the greeting's name. Status colours (green / amber / red) mean state and nothing
   else. Everything sits under .eh_root so nothing leaks into or out of the rest of the site.
   ─────────────────────────────────────────────────────────────────────────────── */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('../dmsans/DMSans-Regular.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('../dmsans/DMSans-Medium.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('../dmsans/DMSans-Bold.ttf') format('truetype'); }

.eh_root
{
  --eh-ink: #102d35; --eh-ink-70: rgba(16, 45, 53, .70); --eh-ink-55: rgba(16, 45, 53, .55); --eh-ink-18: rgba(16, 45, 53, .18); --eh-ink-10: rgba(16, 45, 53, .10); --eh-ink-06: rgba(16, 45, 53, .06);
  --eh-teal: #0f7777; --eh-teal-deep: #0c6363; --eh-mint: #d6f5f5; --eh-mint-soft: #e6f5f4; --eh-ground: #f7fcfc;
  --eh-magenta: #ae269a;
  --eh-grad: linear-gradient(90deg, #17a29b 0%, #50aebd 35%, #ae269a 100%);
  --eh-good: #1f8a5b; --eh-good-soft: #e2f5ea; --eh-warn: #b26a00; --eh-warn-soft: #fff2d9; --eh-bad: #c0392b; --eh-bad-soft: #fbe8e5;
  --eh-radius: 18px; --eh-radius-sm: 12px;
  --eh-shadow: 0 10px 30px rgba(16, 45, 53, .07); --eh-shadow-sm: 0 1px 2px rgba(16, 45, 53, .05), 0 2px 8px rgba(16, 45, 53, .04);

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--eh-ink);
  background: var(--eh-ground);
  padding: 26px 34px 56px;
  min-height: calc(100vh - 46px);
  max-width: 1240px;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}
.eh_root *, .eh_root *::before, .eh_root *::after { box-sizing: border-box; }
.eh_root h1, .eh_root h2 { margin: 0; letter-spacing: -.02em; line-height: 1.15; font-weight: 700; font-family: inherit; color: var(--eh-ink); }
.eh_root a, .eh_root a:visited, .eh_root a:hover { color: inherit; text-decoration: none; }
.eh_root button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* ── header ──────────────────────────────────────────────────────────────── */
.eh_hdr { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eh_eyebrow { color: var(--eh-teal); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.eh_dot { width: 6px; height: 6px; border-radius: 50%; background: var(--eh-magenta); flex: 0 0 auto; }
.eh_hdr h1 { font-size: 34px; }
.eh_accent { background: var(--eh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.eh_hdr p { margin: 6px 0 0; color: var(--eh-ink-70); font-size: 15px; }
.eh_actions { display: flex; gap: 10px; flex: 0 0 auto; }
.eh_root .eh_btn, .eh_root a.eh_btn, .eh_root button.eh_btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; border-radius: 12px; padding: 11px 18px; border: 2px solid transparent; transition: background .15s, transform .1s; white-space: nowrap; line-height: 1.3; box-shadow: none; text-shadow: none; }
.eh_root .eh_btn_primary, .eh_root a.eh_btn_primary, .eh_root button.eh_btn_primary { background: var(--eh-teal); color: #fff; box-shadow: 0 8px 20px rgba(15, 119, 119, .22); }
.eh_root .eh_btn_primary:hover, .eh_root a.eh_btn_primary:hover, .eh_root button.eh_btn_primary:hover { background: var(--eh-teal-deep); color: #fff; transform: translateY(-1px); }
.eh_root .eh_btn_ghost, .eh_root a.eh_btn_ghost, .eh_root button.eh_btn_ghost { background: #fff; color: var(--eh-teal); border-color: rgba(15, 119, 119, .35); }
.eh_root .eh_btn_ghost:hover, .eh_root a.eh_btn_ghost:hover, .eh_root button.eh_btn_ghost:hover { background: rgba(15, 119, 119, .06); color: var(--eh-teal); }

/* ── needs attention ─────────────────────────────────────────────────────── */
.eh_attn_strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; min-width: 0; }
.eh_attn_strip:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.eh_attn_strip:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eh_attn_strip:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eh_attn { display: flex; align-items: center; gap: 14px; min-width: 0; background: #fff; border: 1px solid var(--eh-ink-10); border-radius: var(--eh-radius-sm); padding: 14px 16px; box-shadow: var(--eh-shadow-sm); transition: border-color .15s, transform .1s, box-shadow .15s; cursor: pointer; }
.eh_attn:hover { border-color: rgba(15, 119, 119, .4); transform: translateY(-1px); box-shadow: var(--eh-shadow); }
.eh_attn_clear { cursor: default; }
.eh_attn_clear:hover { border-color: var(--eh-ink-10); transform: none; box-shadow: var(--eh-shadow-sm); }
.eh_attn_ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.eh_attn_ic.eh_bad { background: var(--eh-bad-soft); color: var(--eh-bad); }
.eh_attn_ic.eh_warn { background: var(--eh-warn-soft); color: var(--eh-warn); }
.eh_attn_ic.eh_teal { background: var(--eh-mint-soft); color: var(--eh-teal); }
.eh_attn_ic.eh_good { background: var(--eh-good-soft); color: var(--eh-good); }
.eh_attn_text { min-width: 0; flex: 1 1 auto; }
.eh_attn_text b { display: block; font-size: 15px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.eh_attn_text span { display: block; font-size: 12.5px; color: var(--eh-ink-55); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh_attn_go { margin-left: auto; color: var(--eh-teal); font-weight: 700; font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }

/* ── tiles ───────────────────────────────────────────────────────────────── */
.eh_stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; min-width: 0; }
.eh_stat, .eh_root a.eh_stat { min-width: 0; background: #fff; border: 1px solid var(--eh-ink-10); border-radius: var(--eh-radius-sm); padding: 16px 18px 14px; box-shadow: var(--eh-shadow-sm); position: relative; overflow: hidden; display: block; transition: border-color .15s, box-shadow .15s; }
.eh_stat:hover { border-color: rgba(15, 119, 119, .4); box-shadow: var(--eh-shadow); }
.eh_stat_lbl { min-width: 0; font-size: 12px; font-weight: 700; color: var(--eh-ink-55); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; }
.eh_stat_lbl .bi { font-size: 14px; color: var(--eh-teal); }
.eh_stat_val { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.eh_stat_sub { font-size: 12.5px; color: var(--eh-ink-55); margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eh_chip { display: inline-block; padding: 1px 7px; border-radius: 8px; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.eh_chip_good { background: var(--eh-good-soft); color: var(--eh-good); }
.eh_chip_warn { background: var(--eh-warn-soft); color: var(--eh-warn); }
.eh_chip_bad { background: var(--eh-bad-soft); color: var(--eh-bad); }
.eh_chip_mute { background: var(--eh-ink-06); color: var(--eh-ink-70); }
.eh_bar { height: 6px; background: var(--eh-mint-soft); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.eh_bar i { display: block; height: 100%; background: var(--eh-teal); border-radius: 3px; }
.eh_bar i.eh_bad { background: var(--eh-bad); }
.eh_bar i.eh_warn { background: var(--eh-warn); }
.eh_ring { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; }
.eh_stat_ring .eh_stat_lbl, .eh_stat_ring .eh_stat_val { padding-right: 52px; }
.eh_ring svg { width: 44px; height: 44px; transform: rotate(-90deg); display: block; }
.eh_ring circle { fill: none; stroke-width: 5; }
.eh_ring_t { stroke: var(--eh-mint); }
.eh_ring_p { stroke: var(--eh-teal); stroke-linecap: round; }

/* ── the two columns + cards ─────────────────────────────────────────────── */
.eh_cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 18px; align-items: start; min-width: 0; }
.eh_cols > div { min-width: 0; }
.eh_card { min-width: 0; background: #fff; border: 1px solid var(--eh-ink-10); border-radius: var(--eh-radius); box-shadow: var(--eh-shadow-sm); margin-bottom: 18px; overflow: hidden; }
.eh_card_h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; min-width: 0; }
.eh_card_h > div:first-child { min-width: 0; }
.eh_card_h h2 { font-size: 17px; }
.eh_card_sub { font-size: 12.5px; color: var(--eh-ink-55); margin-top: 2px; }
.eh_link, .eh_root a.eh_link { color: var(--eh-teal); font-weight: 700; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.eh_link:hover, .eh_root a.eh_link:hover { text-decoration: underline; color: var(--eh-teal); }
.eh_empty { padding: 22px 20px 26px; text-align: center; color: var(--eh-ink-55); font-size: 14px; border-top: 1px solid var(--eh-ink-06); }
.eh_empty .eh_link { margin-top: 8px; }

/* ── this week ───────────────────────────────────────────────────────────── */
.eh_week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 6px 20px 18px; min-width: 0; }
.eh_day { border: 1px solid var(--eh-ink-10); border-radius: 12px; padding: 10px 6px 12px; text-align: center; background: #fff; min-width: 0; }
.eh_day_today { background: var(--eh-mint-soft); border-color: rgba(15, 119, 119, .45); }
.eh_day_dn { font-size: 11px; font-weight: 700; color: var(--eh-ink-55); letter-spacing: .08em; text-transform: uppercase; }
.eh_day_dd { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.eh_day_today .eh_day_dd { color: var(--eh-teal-deep); }
.eh_day_cov { display: flex; gap: 2px; justify-content: center; margin-top: 8px; height: 22px; align-items: flex-end; }
.eh_day_cov i { display: block; width: 6px; height: 18px; border-radius: 2px 2px 0 0; background: var(--eh-teal); }
.eh_day_cov i.eh_day_open { background: var(--eh-bad); }
.eh_day_cov i.eh_day_none { background: var(--eh-mint); height: 6px; border-radius: 3px; }
.eh_day_cnt { font-size: 11.5px; color: var(--eh-ink-55); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh_day_cnt b { color: var(--eh-ink); font-weight: 600; }
.eh_day_o { color: var(--eh-bad); font-weight: 700; }

/* ── event rows ──────────────────────────────────────────────────────────── */
.eh_ev { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 13px 20px; border-top: 1px solid var(--eh-ink-06); cursor: pointer; transition: background .12s; }
.eh_ev:hover { background: var(--eh-ground); }
.eh_ev_past { opacity: .55; }
.eh_ev_img { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px; background-color: var(--eh-mint); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.eh_ev_img_blank .bi { color: var(--eh-teal); font-size: 22px; }
.eh_ev_main { flex: 1 1 auto; min-width: 0; }
.eh_ev_name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh_ev_sub { font-size: 12.5px; color: var(--eh-ink-55); margin-top: 2px; }
.eh_ev_date { color: var(--eh-teal-deep); font-weight: 600; }
.eh_ev_fill { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.eh_ev_fill .eh_bar { flex: 1 1 auto; margin: 0; max-width: 220px; }
.eh_ev_fill_text { font-size: 12px; color: var(--eh-ink-55); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eh_ev_fill_text b { color: var(--eh-ink); }
.eh_open { color: var(--eh-bad); font-weight: 700; }
.eh_ev_side { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.eh_pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 9px; white-space: nowrap; }
.eh_pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eh_pill_ok { background: var(--eh-good-soft); color: var(--eh-good); }
.eh_pill_part { background: var(--eh-warn-soft); color: var(--eh-warn); }
.eh_pill_draft { background: var(--eh-ink-06); color: var(--eh-ink-70); }
.eh_chev { color: var(--eh-ink-18); font-size: 14px; }

/* ── invites ─────────────────────────────────────────────────────────────── */
.eh_inv { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 20px; border-top: 1px solid var(--eh-ink-06); cursor: pointer; }
.eh_inv:hover { background: var(--eh-ground); }
.eh_inv.hide_me { display: none; }
.eh_avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--eh-mint); color: var(--eh-teal-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.eh_inv_main { flex: 1 1 auto; min-width: 0; }
.eh_inv_name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.eh_role { font-size: 11px; font-weight: 700; color: var(--eh-teal-deep); background: var(--eh-mint-soft); border-radius: 7px; padding: 1px 7px; white-space: nowrap; }
.eh_inv_sub { font-size: 12.5px; color: var(--eh-ink-55); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh_age { font-size: 11.5px; font-weight: 700; color: var(--eh-ink-70); background: var(--eh-ink-06); border-radius: 8px; padding: 3px 8px; white-space: nowrap; flex: 0 0 auto; }
.eh_age_warn { color: var(--eh-warn); background: var(--eh-warn-soft); }
.eh_age_bad { color: var(--eh-bad); background: var(--eh-bad-soft); }
.eh_more { display: block; width: 100%; padding: 12px 20px; font-size: 13px; color: var(--eh-teal); font-weight: 700; border-top: 1px solid var(--eh-ink-06); text-align: center; }
.eh_more:hover { background: var(--eh-ground); }

/* ── availability ────────────────────────────────────────────────────────── */
.eh_av { padding: 4px 20px 18px; }
.eh_av_big { display: flex; align-items: baseline; gap: 8px; }
.eh_av_big b { font-size: 32px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.eh_av_big span { font-size: 13px; color: var(--eh-ink-55); }
.eh_av_big .eh_av_pct { margin-left: auto; font-size: 11.5px; }
.eh_av .eh_bar { height: 10px; border-radius: 5px; margin-top: 10px; }
.eh_av_faces { display: flex; align-items: center; margin-top: 14px; gap: 10px; }
.eh_av_stack { display: flex; }
.eh_av_stack .eh_avatar { width: 28px; height: 28px; font-size: 11px; margin-left: -8px; border: 2px solid #fff; }
.eh_av_stack .eh_avatar:first-child { margin-left: 0; }
.eh_av_faces > span { font-size: 12.5px; color: var(--eh-ink-55); }

/* ── narrower ────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 1100px)
{
  .eh_cols { grid-template-columns: minmax(0, 1fr); }
  .eh_attn_strip, .eh_attn_strip:has(> :only-child), .eh_attn_strip:has(> :nth-child(2):last-child), .eh_attn_strip:has(> :nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
}
@media only screen and (max-width: 767px)
{
  /* the content cell has 20px above and 6px each side on phone (.user_content_container in
     navbar_header, as the welcome hero and the profile preview bleed over): the mint ground
     takes them back. the cell's wrapper clips overflow-x for the inbox, which clips the bleed
     too — released only while it holds this page */
  .eh_root { padding: 14px 10px 32px; margin: -20px -6px 0; width: calc(100% + 12px); max-width: none !important; min-height: calc(100vh - 36px); }
  .company_settings_button_container:has(> .eh_root) { overflow: visible; }
  .eh_attn_strip, .eh_stats { margin-bottom: 14px; gap: 8px; }
  .eh_card { margin-bottom: 12px; }
  .eh_hdr { flex-direction: column; align-items: flex-start; gap: 14px; }
  .eh_hdr h1 { font-size: 28px; }
  .eh_actions { width: 100%; }
  .eh_actions .eh_btn { flex: 1 1 0; justify-content: center; padding: 11px 12px; }
  .eh_stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eh_stat, .eh_root a.eh_stat { padding: 14px 14px 12px; }
  .eh_stat_lbl { font-size: 11px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .eh_stat_lbl .bi { display: none; }
  .eh_stat_val { font-size: 30px; }
  .eh_ring { display: none; }
  .eh_stat:last-child:nth-child(odd) { grid-column: span 2; }
  .eh_stat_ring .eh_stat_lbl, .eh_stat_ring .eh_stat_val { padding-right: 0; }
  .eh_week { gap: 4px; padding: 6px 12px 14px; }
  .eh_day { padding: 8px 2px 10px; border-radius: 10px; }
  .eh_day_cov { display: none; }
  .eh_day_cnt { font-size: 10.5px; white-space: normal; line-height: 1.25; }
  .eh_day_sep { display: none; }
  .eh_day_o { display: block; }
  .eh_attn { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .eh_attn_text { flex: 1 1 0; }
  .eh_attn_text span { white-space: normal; }
  .eh_attn_go { flex: 0 0 100%; margin-left: 52px; }
  .eh_ev { padding: 12px 14px; gap: 10px; }
  .eh_ev_img { width: 46px; height: 46px; }
  .eh_ev_fill { flex-wrap: wrap; gap: 4px 10px; }
  .eh_ev_fill .eh_bar { flex: 1 1 100%; max-width: none; }
  .eh_ev_fill_text { white-space: normal; }
  .eh_ev_side .eh_pill { display: none; }
  .eh_inv { padding: 10px 14px; }
  .eh_card_h { padding: 14px 14px 10px; }
  .eh_av { padding: 4px 14px 16px; }
  .eh_empty { padding: 18px 14px 22px; }
}
