/* =============================================
   Newsletter Community Hub — stylesheet
   ============================================= */

/* ---------- Tab strip ---------- */
.nl-com-tabs-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  gap: 10px;
  box-shadow: none;
}

.nl-com-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.nl-com-tabs li a {
  display: block;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

.nl-com-tabs li a:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #333;
}

.nl-com-tabs li.active a {
  background: #fff;
  border-color: #2196f3;
  color: #2196f3;
}

.nl-com-tabs-bar {
  border-bottom: 2px solid #2196f3;
  margin-top: 4px;
  display: none; /* underline hidden when pill style active */
}

/* ---------- Page header row ---------- */
.nl-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.nl-page-header h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- List rows (posts / tags / templates) ---------- */
.nl-list-row {
display: flex;
    align-items: flex-start !important;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    text-decoration: none;
    color: inherit;
    transition: background .1s;
    flex-direction: row;
    align-content: flex-start !important;
    flex-wrap: wrap;
    justify-content: space-between;
}

.nl-list-row:last-child {
  border-bottom: none;
}

.nl-list-row:hover {
  background: #fafbfc;
}

.nl-list-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

.nl-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nl-list-thumb-initials {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nl-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nl-list-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nl-list-meta {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nl-list-meta .nl-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  /* text-transform: uppercase; */
  letter-spacing: .3px;
}

.nl-badge-published {
  background: #e8f5e9;
  color: #2e7d32;
}

.nl-badge-draft {
  background: #fff3e0;
  color: #e65100;
}

.nl-badge-scheduled {
  background: #e3f2fd;
  color: #1565c0;
}

.nl-list-date {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
}

.nl-list-action {
  flex-shrink: 0;
  color: #bbb;
  display: flex;
  align-items: center;
}

.nl-list-action:hover {
  color: #555;
}

/* ---------- Tag color swatch ---------- */
.nl-tag-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-tag-swatch svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* ---------- Empty state ---------- */
.nl-empty {
  text-align: center;
  padding: 48px 20px;
  color: #aaa;
}

.nl-empty svg {
  display: block;
  margin: 0 auto 14px;
  opacity: .35;
}

.nl-empty p {
  font-size: 14px;
  margin: 0 0 12px;
}

/* ---------- Media grid ---------- */
.nl-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}

@media (max-width: 900px) {
  .nl-media-grid { grid-template-columns: repeat(3, 1fr); }
  
/* .nl-list-title{
    white-space: break-spaces;
} */
}
@media (max-width: 600px) {
  .nl-media-grid { grid-template-columns: repeat(2, 1fr); }
}

.nl-media-cell {
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  cursor: pointer;
}

.nl-media-cell:hover .nl-media-overlay {
  opacity: 1;
}

.nl-media-cell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.nl-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
}

.nl-media-overlay button {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.nl-media-overlay button:hover {
  background: rgba(255,255,255,.3);
}

.nl-media-info {
  padding: 6px 8px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Template card ---------- */
.nl-tpl-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #e8eaed;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-tpl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Tag row action buttons ---------- */
/* .nl-tag-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nl-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.nl-icon-btn:hover { color: #555; background: #f0f0f0; }
.nl-icon-btn.danger:hover { color: #c0392b; background: #fdecea; } */

/* ---------- Filter bar ---------- */
.nl-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f2f5;
  flex-wrap: wrap;
}

.nl-filter-bar select {
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  cursor: pointer;
}

.nl-filter-bar select:focus { outline: none; border-color: #2196f3; }

/* Status tabs — same look as the Vote module's .voting-tab */
.nl-status-tabs { display: flex; align-items: center; gap: 6px; padding: 8px 16px 0; flex-wrap: wrap; border-bottom: 1px solid #f0f2f5; }
.nl-tab { border: none; background: none; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: #6b7280; cursor: pointer; border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; }
.nl-tab:hover { color: #333; }
.nl-tab.active { color: #3f6df8; border-bottom-color: #3f6df8; }

.nl-search-input {
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  flex: 1 1 200px;
  max-width: 320px;
}

.nl-search-input:focus { outline: none; border-color: #2196f3; }

.nl-subs-daterange {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 10px; height: 32px;
  border: 1px solid #ddd; border-radius: 6px; background: #fff;
}
.nl-subs-date { border: none; height: 30px; padding: 0; font-size: 13px; color: #555; max-width: 100%; }
.nl-subs-date:focus { outline: none; }
.nl-subs-daterange-label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.nl-subs-daterange-sep { font-size: 12px; color: #9aa3b5; }

/* ---------- Create-post modal — tag autocomplete & chips ---------- */
.nl-cp-tags-drop {
  position: absolute;
  /* top: calc(100% + 2px); */
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  max-height: 180px;
  overflow-y: auto;
}

.nl-cp-tags-drop-item {
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .1s;
}

.nl-cp-tags-drop-item:hover {
  background: #f5f5f5;
}

.nl-cp-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  line-height: 1.2;
}

.nl-cp-tag-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  transition: color .1s;
}

.nl-cp-tag-chip button:hover {
  color: #e53e3e;
}

/* ── Newsletter Create Post — Editor.js overrides ─────────── */
.nl-cp-editor-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: visible;
  background: #fff;
}

#nl-cp-editor {
  color: #333;
  padding: 20px 54px;
  min-height: 360px;
}

#nl-cp-editor .ce-paragraph,
#nl-cp-editor .ce-header,
#nl-cp-editor .cdx-input,
#nl-cp-editor [contenteditable] {
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
}

#nl-cp-editor .ce-block__content * {
  color: #333;
  -webkit-text-fill-color: #333;
}

#nl-cp-editor .ce-block__content,
#nl-cp-editor .ce-toolbar__content {
  max-width: 100% !important;
}

#nl-cp-editor .codex-editor {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  overflow: visible;
  border: 1px solid #e6ebf0;
  border-radius: 7px;
}

#nl-cp-editor .ce-toolbar {
  position: relative !important;
  order: -1 !important;
  top: 0 !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  height: auto !important;
  width: auto !important;
  flex-shrink: 0;
  align-self: flex-start !important;
  overflow: visible !important;
}

#nl-cp-editor .ce-toolbar__actions {
  position: static !important;
  top: auto !important;
  transform: none !important;
  overflow: visible !important;
}

#nl-cp-editor .codex-editor__redactor {
  padding-bottom: 0 !important;
  min-height: 0 !important;
  margin-right: 0 !important;
  flex: 1;
  min-width: 0;
}

#nl-cp-body {
  overflow: visible !important;
}

#nl-cp-modal,
#nl-cp-modal > div {
  overflow: visible !important;
}

#nl-cp-editor .ce-popover,
#nl-cp-editor .ce-popover__container,
#nl-cp-editor .ce-toolbox {
  overflow: visible !important;
  z-index: 200 !important;
}
/* ── Editor.js block renderer — newsletter post view ─────── */

.newsletter-post-body figure.kb-image { margin: 16px 0; text-align: center; }
.newsletter-post-body figure.kb-image img { max-width: 100%; border-radius: 6px; display: inline-block; }
.newsletter-post-body figure.kb-image.kb-img-bg { background: #f0f4ff; border-radius: 10px; padding: 16px; }
.newsletter-post-body figure.kb-image.kb-img-bordered img { border: 1px solid #e5e7eb; }
.newsletter-post-body figure.kb-image.kb-img-stretched img { width: 100%; }
.newsletter-post-body figure.kb-image figcaption { font-size: 13px; color: #888; margin-top: 6px; text-align: center; }

.newsletter-post-body .kb-code-block { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 18px; margin: 14px 0; overflow-x: auto; }
.newsletter-post-body .kb-code-block code { font-family: Menlo, Monaco, Consolas, monospace; font-size: 13px; color: #1f2937; line-height: 1.6; }

.newsletter-post-body .kb-quote { border-left: 4px solid #6B46C1; margin: 16px 0; padding: 12px 20px; background: #f9f7ff; border-radius: 0 8px 8px 0; }
.newsletter-post-body .kb-quote p { margin: 0 0 4px; font-style: italic; color: #374151; }
.newsletter-post-body .kb-quote cite { font-size: 13px; color: #888; }

.newsletter-post-body .kb-warning { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 12px 16px; margin: 14px 0; }
.newsletter-post-body .kb-warning strong { display: block; margin-bottom: 4px; color: #92400e; }
.newsletter-post-body .kb-warning p { margin: 0; color: #78350f; font-size: 14px; }

.newsletter-post-body .kb-embed { margin: 16px 0; text-align: center; }
.newsletter-post-body .kb-embed iframe { max-width: 100%; border-radius: 8px; }
.newsletter-post-body .kb-embed figcaption { font-size: 13px; color: #888; margin-top: 6px; }

.newsletter-post-body .kb-table-wrap { overflow-x: auto; margin: 14px 0; }
.newsletter-post-body .kb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.newsletter-post-body .kb-table td, .newsletter-post-body .kb-table th { border: 1px solid #e5e7eb; padding: 8px 12px; text-align: left; }
.newsletter-post-body .kb-table tr:nth-child(even) td { background: #f9fafb; }

.newsletter-post-body .kb-checklist { list-style: none; padding: 0; margin: 10px 0; }
.newsletter-post-body .kb-checklist-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 15px; }
.newsletter-post-body .kb-checklist-item.kb-checked { color: #6b7280; text-decoration: line-through; }

/* ── Step indicator ───────────────────────────────────── */
.nl-cp-step-num { display: none; }

.nl-cp-step-label {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  transition: color .15s, font-weight .15s;
}
.nl-cp-step-active .nl-cp-step-label {
  color: #1a1a2e;
  font-weight: 700;
  font-size: 14px;
}
.nl-cp-step-done .nl-cp-step-label {
  color: #9ca3af;
  font-weight: 400;
}
.nl-cp-step-line {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
  margin: 0 10px;
  min-width: 20px;
  transition: background .2s;
}
/* Sibling selector: line after a done step */
.nl-cp-step-done ~ .nl-cp-step-line,
.nl-cp-step-done + .nl-cp-step-line {
  background: var(--main-color, #c0392b);
}

/* ── Thumbnail upload dropzone ─────────────────────────── */
.nl-cp-thumb-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.nl-cp-thumb-dropzone:hover,
.nl-cp-thumb-dropzone:focus-visible {
  border-color: var(--main-color, #2196F3);
  background: #eff6ff;
}
.nl-cp-thumb-dropzone.nl-cp-dragover {
  border-color: var(--main-color, #2196F3);
  background: #eff6ff;
}
.nl-cp-thumb-dropzone-icon {
  margin: 0 auto 10px;
  display: block;
  stroke: var(--main-color, #2196F3);
}
.nl-cp-thumb-dropzone-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.nl-cp-thumb-dropzone-sub {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}
.nl-cp-thumb-dropzone input[type="file"].nl-cp-thumb-file-input {
  display: none;
}

/* ── Thumbnail toggle active ──────────────────────────── */
.nl-cp-thumb-tab-active {
  background: var(--main-color, #6B46C1) !important;
  color: #fff !important;
}
.nl-cp-media-thumb.nl-cp-selected {
  border-color: var(--main-color, #6B46C1) !important;
  box-shadow: 0 0 0 2px rgba(107,70,193,.2);
}

/* ── Editor.js light mode ─────────────────────────────── */
.cdx-raw__textarea, .ce-rawtool__textarea {
  background: #f8f9fa !important; color: #1f2937 !important;
  border: 1px solid #d1d5db !important; border-radius: 6px !important;
  font-family: Menlo, Monaco, Consolas, monospace !important;
  font-size: 13px !important; min-height: 120px !important; padding: 10px 12px !important;
}
.ce-code__textarea {
  background: #f3f4f6 !important; color: #1f2937 !important;
  border: 1px solid #d1d5db !important; border-radius: 6px !important;
}
#nl-cp-editor .codex-editor { padding: 0 12px; }
#nl-cp-editor .ce-block__content { max-width: 100%; }

/* ── wow_form_fields inside modal ─────────────────────── */
#nl-cp-modal .wow_form_fields { margin-top: 14px; }
#nl-cp-modal .wow_form_fields:first-child { margin-top: 0; }

#nl-cp-modal .nl-cp-field-error {
  display: none;
  margin-top: 6px;
  font-size: 16px;
  color: #e53e3e;
}

/* ── Template picker ──────────────────────────────────── */
.nl-tpl-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.nl-tpl-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.nl-tpl-card-blank {
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
  min-height: 200px;
}
.nl-tpl-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.nl-tpl-card-initials {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
}
.nl-tpl-card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nl-tpl-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nl-tpl-dots {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
  flex-shrink: 0;
  line-height: 1.4;
}
.nl-tpl-dots:hover { background: #f3f4f6; }
.nl-tpl-dots-wrap {
  position: relative;
  flex-shrink: 0;
}
.nl-tpl-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  min-width: 160px;
  z-index: 10002;
  overflow: hidden;
}
.nl-tpl-menu.open { display: block; }
.nl-tpl-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: none;
  font-size: 13px;
  color: #1a1a2e;
  cursor: pointer;
}
.nl-tpl-menu-item:hover { background: #f3f4f6; }
#nl-cp-modal .nl-cp-field-round {
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  height: 44px;
  padding: 0 14px;
}

#nl-cp-modal .nl-cp-tags-wrap { position: relative; }

#nl-cp-modal .nl-cp-tags-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#nl-cp-modal .nl-cp-tags-input-row .form-control {
  flex: 1;
  min-width: 0;
}

#nl-cp-modal .nl-cp-tags-add-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
  background: #f3f4f6;
  border: none;
  font-size: 22px;
}

#nl-cp-modal .nl-cp-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#nl-cp-modal .nl-cp-tag-chip {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

/* ---------- Tag row action buttons (minimal grey icons) ---------- */
.nl-tag-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.nl-tag-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nl-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 2px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nl-icon-btn svg {
  display: block;
  pointer-events: none;
}

.nl-icon-btn:hover,
.nl-icon-btn:focus {
  color: #555;
  background: none;
  outline: none;
  text-decoration: none;
}

.nl-icon-btn.danger {
  color: #aaa;
}

.nl-icon-btn.danger:hover,
.nl-icon-btn.danger:focus {
  color: #c0392b;
  background: none;
  text-decoration: none;
}

.nl-list-row {
  flex-wrap: nowrap;
  align-items: center;
}

.nl-post-image-section {
  flex-shrink: 0;
}

.nl-post-image-section .nl-list-thumb {
  width: 55px;
  height: 55px;
}

.nl-post-content-section {
  flex: 1;
  min-width: 0;
}

.nl-post-actions-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nl-post-action-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nl-post-action-buttons > span {
  display: flex;
  align-items: center;
  color: #9e9e9e;
  cursor: pointer;
}
.nl-post-content-section {
  width: 70%;
}
.nl-post-action-buttons
 {
    display: flex;
    gap: 10px;
    align-items: center;
}
.nl-post-actions-section {
  display: flex;
  gap: 15px;
  align-items: center;
  /* width: 20%; */
}
/* .nl-post-image-section {
  width: 10%;
} */
.nl-post-action-buttons .nl-post-edit-action {
  color: #2196f3;
}

.nl-post-action-buttons .nl-post-delete-action {
  color: #e53935;
}
.nl-post-action-buttons svg {
  width: 16px;
  height: 16px;
}
/* Newsletter share icon without circle */
.nl-post-action-buttons .shareLinksTrigger {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #16a34a;
}

.nl-post-action-buttons .shareLinksTrigger:hover {
  background: transparent;
}
a.nl-list-row,
a.nl-list-row:hover,
a.nl-list-row:focus,
a.nl-list-row:active {
  text-decoration: none !important;
}

a.nl-list-row * {
  text-decoration: none !important;
}
@media (max-width: 600px) {
  .nl-list-row {
    display: grid !important;
    grid-template-columns: 60px minmax(0, 1fr) !important;
    gap: 14px 16px;
    align-items: start !important;
  }

  .nl-post-image-section {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .nl-post-content-section {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto;
  }

  .nl-post-actions-section {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
  }

  .nl-post-action-buttons {
    gap: 12px;
  }
}
.nl-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #2196f3;
  padding: 2px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nl-icon-btn svg {
  display: block;
  pointer-events: none;
}

.nl-icon-btn:hover,
.nl-icon-btn:focus {
  color: #1976d2;
  background: none;
  outline: none;
  text-decoration: none;
}

.nl-icon-btn.danger {
  color: #e53935 !important;
}

.nl-icon-btn.danger:hover,
.nl-icon-btn.danger:focus {
  color: #c62828;
  background: none;
  text-decoration: none;
}

/* ---------- Subscribers tab ---------- */

.nl-subs-wrap { padding: 0; overflow: hidden; }

.nl-subs-header {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #eef0f4;
}
.nl-subs-header-text { flex: 1 1 200px; min-width: 180px; }
.nl-subs-header-text h4 { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: #101a2e; }
.nl-subs-header-text p { margin: 0; font-size: 13.5px; color: #6b7280; line-height: 1.5; }

.nl-subs-header-stat { flex: 0 0 auto; text-align: right; line-height: 1.25; }
.nl-subs-header-stat strong { display: block; font-size: 22px; font-weight: 700; color: #2f66e0; }
.nl-subs-header-stat span { font-size: 12px; color: #8a93a5; }

.nl-subs-result { padding: 0 0 6px; transition: opacity .15s; }
.nl-subs-result.is-loading { opacity: .45; pointer-events: none; }

.nl-subs-count { padding: 0 22px 10px; font-size: 12.5px; color: #8a93a5; }

.nl-subs-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nl-subs-table { width: 100%; border-collapse: collapse; min-width: 640px; }

.nl-subs-table thead th {
  padding: 10px 16px;
  background: #f7f9fc;
  border-top: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #8a93a5; text-align: left; white-space: nowrap;
}
.nl-subs-table thead th:first-child { padding-left: 22px; }
.nl-subs-table thead th:last-child  { padding-right: 22px; }

.nl-subs-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f2f4f8;
  font-size: 13.5px; color: #1b2333; vertical-align: middle;
}
.nl-subs-table tbody td:first-child { padding-left: 22px; }
.nl-subs-table tbody td:last-child  { padding-right: 22px; }
.nl-subs-table tbody tr:last-child td { border-bottom: none; }
.nl-subs-table tbody tr:hover td { background: #fafbfe; }

.nl-subs-td-email span {
  display: block; max-width: 260px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #2f66e0; font-weight: 500;
}
.nl-subs-td-date { white-space: nowrap; color: #5b6478; }
.nl-subs-dash { color: #c3c9d4; }

.nl-subs-user { display: inline-flex; align-items: center; gap: 8px; color: #2f66e0; font-weight: 500; }
.nl-subs-user img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.nl-subs-user span, .nl-subs-user-plain {
  max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nl-subs-user:hover, .nl-subs-user:focus { color: #2453bd; text-decoration: none; }
.nl-subs-user:hover span { text-decoration: underline; }
.nl-subs-user-plain { color: #1b2333; }

.nl-subs-badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .3px;
}
.nl-subs-badge-active { background: #e8f5e9; color: #2e7d32; }
.nl-subs-badge-unsub  { background: #f1f3f7; color: #6b7280; }

.nl-subs-th-actions { width: 130px; text-align: right; }
.nl-subs-td-actions { width: 130px; text-align: right; white-space: nowrap; }

.nl-subs-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; margin-left: 6px;
  border: 1px solid #e2e6ee; border-radius: 6px; background: #fff;
  color: #4b5468; font-size: 12px; font-weight: 600; cursor: pointer;
}
.nl-subs-action-btn:hover { border-color: #2f66e0; color: #2f66e0; }
.nl-subs-action-btn.nl-subs-danger:hover { border-color: #cf1322; color: #cf1322; }

.nl-subs-modal-note { margin: 0; font-size: 12.5px; color: #8a93a5; line-height: 1.5; }

.nl-subs-empty { text-align: center; padding: 44px 20px; color: #9aa3b5; }
.nl-subs-empty svg { display: block; margin: 0 auto 14px; opacity: .4; }
.nl-subs-empty p { font-size: 14px; margin: 0 0 8px; color: #6b7280; }
.nl-subs-empty-hint { font-size: 12.5px; color: #9aa3b5; }

.nl-subs-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  padding: 14px 22px 6px;
}
.nl-subs-page-nums { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nl-subs-page-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-width: 34px; height: 34px; padding: 0 10px; justify-content: center;
  border: 1px solid #e2e6ee; border-radius: 8px; background: #fff;
  font-size: 13px; font-weight: 600; color: #4b5468; cursor: pointer;
}
.nl-subs-page-btn:hover:not(:disabled) { border-color: #2f66e0; color: #2f66e0; }
.nl-subs-page-btn:disabled { cursor: default; opacity: .5; }
.nl-subs-page-btn.is-current { background: #2f66e0; border-color: #2f66e0; color: #fff; opacity: 1; }
.nl-subs-page-gap { padding: 0 4px; color: #9aa3b5; }

@media (max-width: 767px) {
  .nl-subs-header { flex-wrap: wrap; }
  .nl-subs-header-stat { text-align: left; }
  .nl-subs-daterange { flex: 1 1 100%; justify-content: space-between; }
  .nl-subs-count, .nl-subs-pager { padding-left: 16px; padding-right: 16px; }
  .nl-subs-pager { justify-content: center; }
}