/* ================== NEWSLETTERS (class.newsletters.php) ==================
   nl_ classes: the employer page (employers?a=newsletters), its list and drawers. the hero,
   the How it works section and the pills borrow the meetings look (css/company_meetings.css) */

/* the page */
/* inside the phone's tool drawer the door is the footer button, not the hero's or the list heading's */
.employer_tool_drawer_newsletters .svy_intro_buttons, .employer_tool_drawer_newsletters .svy_list_top .svy_create { display: none; }
.nl_hero .svy_intro_art { max-width: 520px; }
.nl_page, .nl_page * { min-width: 0; }
.nl_page .settings_row_label { overflow-wrap: anywhere; }
.nl_row_done { opacity: .75; }
.nl_pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.nl_pill_draft { background: #eef0f2; color: #4b5b62; }
.nl_pill_wait { background: #fff4de; color: #9a6400; }
.nl_pill_sent { background: #e6f3f3; color: #0f7777; }
.nl_pill_off { background: #fdeaea; color: #b91c1c; }
.nl_list_buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nl_secondary { background: #fff; color: #0f7777; border: 1.5px solid #0f7777; }
.nl_secondary:hover { background: #eef7f7; color: #0b5f5f; }
.nl_swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.08); }

/* the drawer */
.nl_details { margin-bottom: 4px; }
.nl_details .cm_detail_title { margin-bottom: 4px; font-size: 18px; }
.nl_doors { margin-bottom: 4px; }
.nl_doors .settings_row_sub b { color: #0f7777; }
.nl_foot { display: block; }
.nl_foot .cm_confirm { margin-bottom: 12px; }
.nl_foot_buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nl_foot_buttons .btn { width: 100%; }
.nl_secondary_btn, .nl_foot .btn.nl_secondary_btn[disabled], .nl_secondary_btn:disabled { background: #fff; color: #0f7777 !important; border-color: #0f7777; }
.nl_secondary_btn:hover, .nl_secondary_btn:focus { background: #eef7f7; color: #0b5f5f !important; border-color: #0b5f5f; }
.nl_foot_hint { margin: 10px 2px 0; text-align: center; }
.nl_tally { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nl_drawer_container .cm_draft_note div b, .nl_drawer_container .cm_draft_note b { color: #0f7777; }

/* Content: the block rows, the handle, the drag */
.nl_block_list .settings_row { position: relative; }
.nl_handle { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #8a9a9f; font-size: 18px; cursor: grab; touch-action: none; border-radius: 8px; }
.nl_handle:hover { background: #eef3f3; color: #0f7777; }
.nl_block_row.ui-sortable-helper { box-shadow: 0 8px 24px rgba(0,0,0,.12); background: #fff; border-radius: 10px; }
.nl_block_placeholder { height: 62px; margin: 0; border: 2px dashed #9fd3d8; border-radius: 10px; background: #f4fafa; box-sizing: border-box; }
.nl_add_block_btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; font-weight: 700; color: #0f7777; background: #fff; border: 1.5px dashed #9fd3d8; border-radius: 10px; padding: 12px; }
.nl_add_block_btn:hover { background: #f4fafa; border-style: solid; color: #0b5f5f; }
.nl_auto_pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 1px 7px; margin-left: 6px; background: #e6f3f3; color: #0f7777; vertical-align: 2px; }
.nl_type_cards .pd_card_check { color: #8a9a9f; }
.nl_align_chips .pd_chip i, .nl_size_chips .pd_chip i { margin-right: 4px; }
.nl_block_container .pd_form textarea.form-control { height: auto; resize: vertical; min-height: 180px; }
.nl_block_container .nl_foot { display: flex; }
.nl_block_container .nl_foot .btn, .nl_look_container .nl_foot .btn { flex: 1; }
.nl_look_container .nl_foot { display: flex; }

/* a picture: the drop box, the preview, the busy state */
.nl_image_box { position: relative; background: #fff; border: 1.5px dashed #9fd3d8; border-radius: 10px; min-height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.nl_image_box.nl_has_image { border-style: solid; border-color: #dbe4e6; }
.nl_image_box:hover { background: #f4fafa; }
.nl_image_preview { display: block; max-width: 100%; max-height: 260px; margin: 0 auto; }
.nl_logo_box .nl_image_preview { max-height: 90px; padding: 12px; }
.nl_image_empty { text-align: center; color: #0f7777; font-weight: 700; padding: 20px; }
.nl_image_empty i { display: block; font-size: 28px; margin-bottom: 4px; }
.nl_image_hint { font-size: 12.5px; font-weight: 500; color: #8a9a9f; margin-top: 2px; }
.nl_image_box.nl_uploading { opacity: .5; pointer-events: none; }
.nl_image_actions { margin: 8px 2px 0; font-size: 14px; color: #8a9a9f; }
.nl_image_actions .pd_link { background: none; border: 0; padding: 0; font: inherit; }

/* a look: the swatches */
.nl_swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nl_swatch_btn { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #dbe4e6; cursor: pointer; padding: 0; }
.nl_swatch_btn.nl_on { box-shadow: 0 0 0 2.5px #16211f; }
.nl_swatch_custom { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #dbe4e6; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #4b5b62; cursor: pointer; margin: 0; overflow: hidden; }
.nl_swatch_custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.nl_look_cards .pd_card_icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.nl_look_actions { margin: 12px 2px 0; }
.nl_look_actions .pd_link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; }

/* Who gets it */
.nl_roles.hide_me { display: none; }
.nl_count_line { flex: 1 1 100%; font-size: 14px; color: #4b5b62; margin: 0 0 10px; text-align: center; }
.nl_count_line b { color: #0f7777; }
.nl_audience_container .nl_foot { display: block; }

/* Preview: the frame */
.nl_preview_top { background: #fff; border: 1.5px solid #dbe4e6; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.nl_preview_subject { font-size: 16px; font-weight: 800; color: #16211f; }
.nl_preview_from { font-size: 13px; color: #61727a; margin-top: 2px; }
.nl_frame_wrap { border: 1.5px solid #dbe4e6; border-radius: 10px; overflow: hidden; background: #eef3f3; height: calc(100vh - 260px); min-height: 420px; }
.nl_frame { width: 100%; height: 100%; border: 0; display: block; background: #eef3f3; }

/* Who got it */
.nl_rp_row { display: flex; align-items: center; }
.nl_rp_row.hide_me { display: none; }
.nl_rp_open { background: #e3f4ea; color: #1f7a45; }
.nl_rp_sent { background: #e6f3f3; color: #0f7777; }
.nl_rp_skip { background: #eef0f2; color: #6b7280; }
/* the phone: the two page buttons on their own row under the heading */
@media (max-width: 767px)
{
  .nl_page .svy_list_top { flex-wrap: wrap; }
  .nl_list_buttons { flex: 1 1 100%; }
  .nl_list_buttons .svy_create { flex: 1; justify-content: center; }
  .nl_frame_wrap { height: calc(100vh - 230px); }
}
/* the phone tool drawer's footer button: the same height as the meetings one (its rule is on .cm_new) */
.cm_tool_foot .nl_new { font-weight: 700; padding: 11px; border-radius: 4px; }
/* a photo row's three slots */
.nl_slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nl_slots .nl_image_wrap { min-width: 0; }
.nl_slots .nl_image_box { min-height: 96px; }
.nl_slots .nl_image_empty { padding: 10px 4px; font-size: 12.5px; }
.nl_slots .nl_image_empty i { font-size: 20px; }
.nl_slots .nl_image_hint { font-size: 11px; }
.nl_slots .nl_image_preview { max-height: 120px; width: 100%; object-fit: cover; }
.nl_slots .nl_image_actions { font-size: 12.5px; }
.nl_layout_chips .pd_chip i, .nl_tone_chips .pd_chip i { margin-right: 4px; }
/* the editor frame: taller, since it is the workbench now */
.nl_preview_container[data-open='1'] .nl_frame_wrap { height: calc(100vh - 210px); }
.nl_editor_hint b { color: #0f7777; }
/* the editor / preview window: the frame is the whole window, a slim strip over it */
.nl_preview_container .mchat_messages { padding: 0 !important; display: flex; flex-direction: column; overflow: hidden !important; }
.nl_editor_fill { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nl_editor_fill .nl_preview_top { border-radius: 0; border-width: 0 0 1px; margin: 0; padding: 8px 14px; }
.nl_editor_fill .nl_preview_subject { font-size: 14px; }
.nl_editor_fill .nl_preview_from { font-size: 12px; }
.nl_editor_fill .nl_editor_hint, .nl_editor_fill .pd_hint { margin: 0; padding: 6px 14px; font-size: 12.5px; line-height: 1.4; background: #f7fbfb; border-bottom: 1px solid #dbe4e6; }
.nl_editor_fill .nl_frame_wrap { flex: 1; min-height: 0; height: auto !important; border: 0; border-radius: 0; }
/* the editor strip: the hint and Undo side by side */
.nl_editor_bar { display: flex; align-items: center; gap: 10px; background: #f7fbfb; border-bottom: 1px solid #dbe4e6; padding: 0 10px 0 0; }
.nl_editor_bar .nl_editor_hint { flex: 1; border: 0; background: transparent; }
.nl_undo { flex: none; font-size: 13px; font-weight: 700; color: #0f7777; background: #fff; border: 1.5px solid #0f7777; border-radius: 6px; padding: 5px 10px; }
.nl_undo[disabled] { opacity: .4; }
.nl_undo i { margin-right: 2px; }
