/* the staff side's event drawer (class/class.event_drawer.php, event_drawer.js): the blurred
   poster head, then settings_row groups on the #eef3f3 drawer ground, and the stacked
   Availability / Sign up / Travel drawers in the mchat shell */

.evd_drawer, .evd_stack
{
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2a2b;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.evd_drawer *, .evd_stack * { box-sizing: border-box; }

/* ---------- head ---------- */
.evd_head { position: relative; overflow: hidden; color: #fff; flex: none; }
.evd_head_bg { position: absolute; top: -20px; right: -20px; bottom: -20px; left: -20px; background-size: cover; background-position: center; filter: blur(14px) saturate(1.2); transform: scale(1.1); }
.evd_head_wash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(6,14,32,0.55) 0%, rgba(6,14,32,0.82) 100%); }
.evd_head_in { position: relative; padding: calc(14px + env(safe-area-inset-top)) 16px 16px; }
.evd_head_bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.evd_head_btn { width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255,255,255,0.16); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; cursor: pointer; }
.evd_head_btn:focus { outline: none; }
.evd_fav.is_on { color: #ff5a8a; }
.evd_head_right { display: flex; align-items: center; gap: 8px; }
.evd_head_menu { position: relative; }
.evd_head_menu .dropdown-toggle::after { display: none; }
.evd_menu { min-width: 210px; padding: 6px 0; border-radius: 8px; margin-top: 6px; }
.evd_menu > li > a { display: block; padding: 10px 16px; font-weight: 600; color: #16211f; font-size: 14px; }
.evd_menu > li > a .bi { margin-right: 10px; color: #0f7777; }
.evd_menu > li > a:hover { background: #f3f5f7; color: #16211f; }
.evd_head_grid { display: flex; gap: 14px; align-items: flex-end; }
.evd_poster { width: 82px; height: 110px; border-radius: 10px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.18); flex: none; }
.evd_head_text { flex: 1; min-width: 0; }
.evd_head_title { font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; letter-spacing: -0.01em; }
.evd_head_co { font-size: 13px; opacity: 0.85; }
.evd_head_when { font-size: 12.5px; opacity: 0.7; margin-top: 2px; }
.evd_chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.evd_chip { font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 12px; background: rgba(255,255,255,0.16); color: #fff; text-transform: uppercase; }
.evd_chip_teal { background: #007A85; }
.evd_chip_pink { background: #E5006B; }
.evd_chip_ghost { background: transparent; border: 1px solid rgba(255,255,255,0.35); }

/* ---------- body ---------- */
.evd_body { padding: 0 14px calc(40px + env(safe-area-inset-bottom)); }
.evd_error { margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; background: #fdecec; color: #b3261e; font-size: 13px; }
.evd_error.hide_me { display: none; }
.evd_group_title { font-size: 12px; font-weight: 700; color: #0f5e63; letter-spacing: 0.08em; text-transform: uppercase; margin: 22px 0 8px; padding-left: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.evd_group_count { font-weight: 500; letter-spacing: 0; text-transform: none; color: #6b7c7d; font-size: 12px; }
.evd_group { background: #fff; border: 1px solid #d3e2e3; border-radius: 12px; box-shadow: 0 1px 2px rgba(11,61,64,0.06); overflow: hidden; }
.evd_row { display: flex; align-items: center; padding: 13px 14px; border-bottom: 1px solid #e4eeee; font-size: 15px; cursor: pointer; color: #1f2a2b; }
.evd_row:last-child { border-bottom: 0; }
.evd_past .evd_row:last-child { border-bottom: 0; }
.evd_row:hover { background: #eaf4f4; }
.evd_row_static, .evd_row_static:hover { cursor: default; background: #fff; }
.evd_row_icon { flex: none; width: 36px; height: 36px; border-radius: 9px; background: #e2efef; color: #0f5e63; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.evd_row_label { flex: 1 1 auto; min-width: 0; padding-left: 12px; font-weight: 500; line-height: 1.3; }
.evd_row_sub { font-size: 12.5px; font-weight: 400; color: #6b7c7d; margin-top: 2px; }
.evd_row_sub i { margin-right: 3px; }
.evd_row_chev { flex: none; margin-left: 10px; color: #9fb3b4; font-size: 14px; }
.evd_row_end { flex: none; margin-left: 10px; display: flex; align-items: center; gap: 8px; }
/* the filter strip over the shift rows: Open / Mine / Upcoming / Past / All with counts */
.evd_pills { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #e4eeee; background: #f6f9f9; }
.evd_pill_btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d3e2e3; border-radius: 20px; background: #fff; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 700; color: #37474f; cursor: pointer; line-height: 1.2; }
.evd_pill_btn:focus { outline: none; }
.evd_pill_n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 20px; background: #e2efef; color: #0f5e63; font-size: 11px; text-align: center; }
.evd_pill_btn.is_on { background: #0f7777; border-color: #0f7777; color: #fff; }
.evd_pill_btn.is_on .evd_pill_n { background: rgba(255,255,255,0.22); color: #fff; }
.evd_shift_row.evd_row_off { display: none; }
.evd_shift_row[data-past = '1'] { opacity: 0.75; }
.evd_filter_empty.hide_me { display: none; }
.evd_note { padding: 12px 14px; font-size: 13px; line-height: 1.55; color: #37474f; }
.evd_note_line { border-bottom: 1px solid #e4eeee; }
.evd_empty { padding: 14px; display: flex; align-items: center; gap: 11px; color: #6b7c7d; font-size: 13px; }
.evd_empty i { font-size: 18px; color: #90a4ae; flex: none; }

/* the status card */
.evd_status { margin-top: 14px; background: #fff; border: 1px solid #d3e2e3; border-radius: 12px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(11,61,64,0.06); }
.evd_status_icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.evd_status_grey { background: #eceff1; color: #607d8b; }
.evd_status_teal { background: #e2efef; color: #0f5e63; }
.evd_status_pink { background: #fde4ef; color: #E5006B; }
.evd_status_text { flex: 1; min-width: 0; }
.evd_status_t { font-weight: 700; font-size: 14.5px; }
.evd_status_s { font-size: 12.5px; color: #6b7c7d; margin-top: 2px; }

/* buttons */
.evd_btn { border: 0; border-radius: 9px; padding: 9px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; font-family: inherit; line-height: 1.3; }
.evd_btn:focus { outline: none; }
.evd_btn_teal { background: #007A85; color: #fff; }
.evd_btn_line { background: #fff; color: #0f5e63; border: 1px solid #d3e2e3; }
.evd_btn_sm { padding: 7px 12px; font-size: 12.5px; }
.evd_btn_block { display: block; width: 100%; padding: 13px; font-size: 14px; border-radius: 4px; }
.evd_btn[disabled] { opacity: 0.5; cursor: default; }

/* a shift row's date block and its right side */
.evd_date_box { flex: none; width: 44px; height: 44px; border-radius: 9px; background: #e2efef; color: #0f5e63; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.evd_date_m { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.evd_date_d { font-size: 18px; font-weight: 700; margin-top: 2px; }
.evd_date_you { background: #007A85; color: #fff; }
.evd_date_box_big { width: 54px; height: 54px; }
.evd_date_box_big .evd_date_d { font-size: 22px; }
.evd_pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; }
.evd_pill_grey { background: #eceff1; color: #607d8b; }
.evd_pill_teal { background: #e2efef; color: #0f5e63; }
.evd_pill_you { background: #007A85; color: #fff; }
.evd_pill_open { background: #fde4ef; color: #E5006B; }
.evd_faces { display: flex; }
.evd_face { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; background: #b0bec5; color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.evd_face:first-child { margin-left: 0; }
.evd_face_open { background: #fff; border: 2px dashed #cfd8dc; color: #90a4ae; }
.evd_face_more { background: #78909c; font-size: 8px; }

/* location */
.evd_loc_photo { height: 150px; background-size: cover; background-position: center; position: relative; }
.evd_loc_photo::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%); }
.evd_loc_name { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; z-index: 1; }
.evd_loc_name b { display: block; font-size: 16px; }
.evd_loc_name span { font-size: 12.5px; opacity: 0.85; }
.evd_loc_plain { padding: 12px 14px; border-bottom: 1px solid #e4eeee; }
.evd_loc_plain b { display: block; font-size: 16px; }
.evd_loc_plain span { font-size: 12.5px; color: #6b7c7d; }

/* who's on it */
.evd_person { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid #e4eeee; }
.evd_person:last-child { border-bottom: 0; }
.evd_avatar { width: 34px; height: 34px; border-radius: 50%; background: #546e7a; color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.evd_person_text { flex: 1; min-width: 0; }
.evd_person_text b { display: block; font-size: 14px; }
.evd_person_text span { font-size: 12px; color: #6b7c7d; }
.evd_person_tick { color: #2e7d32; font-size: 15px; }
.evd_person_wait { color: #ef8f00; font-size: 15px; }

/* ---------- stacked drawers ---------- */
.evd_stack_head { background: #0f7777; height: auto; flex: none; padding: calc(10px + env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; gap: 12px; color: #fff; }
.evd_stack_head .evd_head_btn { background: rgba(255,255,255,0.18); }
.evd_stack_titles { flex: 1; min-width: 0; }
.evd_stack_title { font-size: 16px; font-weight: 700; line-height: 1.2; }
.evd_stack_sub { font-size: 12px; opacity: 0.8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evd_stack_body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 20px; background: #eef3f3; }
.evd_stack_intro { font-size: 13px; color: #37474f; line-height: 1.5; margin: 16px 4px 0; }
.evd_stack_foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d3e2e3; flex: none; }
.evd_fine { font-size: 12px; color: #6b7c7d; text-align: center; margin-top: 8px; }

/* availability: a day row, a tick on the right (the Give Up Shift row's circle) */
.evd_day { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e4eeee; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.evd_day:last-child { border-bottom: 0; }
.evd_day:hover { background: #eaf4f4; }
.evd_day_label { flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; }
.evd_day_label .evd_row_sub { line-height: 1.35; }
.evd_day_label .evd_row_sub i { color: #0f7777; }
.evd_day_tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c5cbd1; background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: background .12s, border-color .12s; }
.evd_day_tick i { visibility: hidden; }
.evd_day.is_on .evd_day_tick { background: #0f7777; border-color: #0f7777; }
.evd_day.is_on .evd_day_tick i { visibility: visible; }
.evd_day.is_on, .evd_day.is_on:hover { background: #e2efef; border-bottom-color: #c3d8d9; }
/* the line over a ticked row too, so two ticked days stay two rows */
.evd_day:has(+ .evd_day.is_on) { border-bottom-color: #c3d8d9; }
.evd_day.is_on .evd_day_label { color: #0f5e63; }
.evd_day.is_saving { opacity: 0.6; }

/* sign up */
.evd_claim_hero { margin-top: 14px; background: #fff; border: 1px solid #d3e2e3; border-radius: 12px; padding: 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 1px 2px rgba(11,61,64,0.06); }
.evd_claim_text { flex: 1; min-width: 0; }
.evd_claim_role { font-size: 16px; font-weight: 700; }
.evd_claim_meta { font-size: 12.5px; color: #6b7c7d; margin-top: 2px; }
.evd_warn { color: #b3261e; font-weight: 600; }
.evd_check_row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; border-bottom: 1px solid #e4eeee; }
.evd_check_row:last-child { border-bottom: 0; }
.evd_check_box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #b0bec5; background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex: none; }
.evd_check_row.is_on .evd_check_box { background: #007A85; border-color: #007A85; }
.evd_check_t { font-weight: 600; }
.evd_check_s { font-size: 12.5px; color: #6b7c7d; margin-top: 2px; }
.evd_done { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.evd_done_ring { width: 78px; height: 78px; border-radius: 50%; background: #e2efef; color: #007A85; font-size: 38px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.evd_done h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.evd_done p { margin: 0; color: #6b7c7d; font-size: 13.5px; line-height: 1.5; }
.evd_done .evd_btn { margin-top: 22px; }
.evd_stack.is_done .evd_claim_hero, .evd_stack.is_done .evd_group_title, .evd_stack.is_done .evd_group, .evd_stack.is_done .evd_stack_foot { display: none; }
.evd_stack.is_done .evd_done { display: flex; }

/* travel */
.evd_textarea { display: block; width: 100%; border: 0; padding: 12px 14px; min-height: 90px; resize: vertical; font: inherit; font-size: 14px; color: #1f2a2b; }
.evd_textarea:focus { outline: none; }

/* ---------- the shift drawer (class.shift_drawer.php, shift_drawer.js) ---------- */
.shd_avatar_you { background: #007A85; }
.shd_sub_head { padding: 10px 14px 4px; font-size: 12px; font-weight: 700; color: #0f5e63; }
.shd_sub_head span { font-weight: 500; color: #6b7c7d; margin-left: 6px; }
.evd_person.prev_coworker_tap { cursor: pointer; }
.evd_person.prev_coworker_tap:hover { background: #eaf4f4; }
.shd_empty_tight { padding: 6px 14px 12px; }
