/* SWLARC Club Management v2.13 — Newsletter Workspace Cleanup */

html.sw-newsletters213 {
  --sw213-navy:#0d2242;
  --sw213-blue:#123f64;
  --sw213-blue-2:#174f78;
  --sw213-orange:#f58a1f;
  --sw213-line:#d7e0e8;
  --sw213-soft:#f4f7f9;
  --sw213-text:#17212b;
  --sw213-muted:#6d7c8b;
  --sw213-good:#207345;
  --sw213-warn:#a56800;
  --sw213-danger:#a33232;
}

html.sw-newsletters213 .sw213-build-newsletter {
  min-height:36px!important;
  padding:0 14px!important;
  border:1px solid var(--sw213-orange)!important;
  border-radius:2px!important;
  background:var(--sw213-orange)!important;
  color:#fff!important;
  font-weight:800!important;
  box-shadow:none!important;
  cursor:pointer!important;
}

html.sw-newsletters213 .sw213-build-newsletter:hover { filter:brightness(.97); }

html.sw-newsletters213 .sw213-studio-tab {
  min-height:42px!important;
  padding:0 15px!important;
  border-radius:0!important;
  font-weight:700!important;
}

html.sw-newsletters213 .sw213-metric-card {
  border-radius:0!important;
  box-shadow:none!important;
}

html.sw-newsletters213 .sw213-campaign-list {
  display:block!important;
  width:100%!important;
  max-width:none!important;
}

#swNewsletterToolbar213 {
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(260px,2fr) minmax(160px,.8fr) auto;
  gap:9px;
  align-items:end;
  width:100%;
  margin:12px 0 8px;
  padding:11px 12px;
  background:#fff;
  border:1px solid var(--sw213-line);
  border-left:4px solid var(--sw213-blue-2);
  box-sizing:border-box;
}

#swNewsletterToolbar213 * { box-sizing:border-box; }

#swNewsletterToolbar213 .sw213-toolbar-copy > span,
#swNewsletterToolbar213 label > span {
  display:block;
  margin-bottom:4px;
  color:var(--sw213-muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

#swNewsletterToolbar213 .sw213-toolbar-copy > span { color:#21608f; }

#swNewsletterToolbar213 .sw213-toolbar-copy strong {
  display:block;
  color:var(--sw213-text);
  font-size:15px;
}

#swNewsletterToolbar213 .sw213-toolbar-copy small {
  display:block;
  margin-top:2px;
  color:var(--sw213-muted);
  font-size:9px;
}

#swNewsletterToolbar213 input,
#swNewsletterToolbar213 select {
  width:100%;
  min-height:34px;
  padding:6px 8px;
  border:1px solid #b7c5d1;
  border-radius:0;
  background:#fff;
  color:var(--sw213-text);
  font:inherit;
}

#swNewsletterToolbar213 > button {
  min-height:34px;
  padding:0 11px;
  border:1px solid #b7c5d1;
  border-radius:0;
  background:#fff;
  color:#183a58;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

html.sw-newsletters213 .sw213-campaign-card {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0 0 10px!important;
  padding:14px 16px!important;
  border:1px solid var(--sw213-line)!important;
  border-top:3px solid var(--sw213-navy)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 5px 15px rgba(13,34,66,.04)!important;
  box-sizing:border-box!important;
}

html.sw-newsletters213 .sw213-campaign-card[hidden] { display:none!important; }

html.sw-newsletters213 .sw213-status-badge,
html.sw-newsletters213 .sw213-audience-badge,
html.sw-newsletters213 .sw213-recipient-badge {
  display:inline-flex!important;
  align-items:center;
  min-height:22px;
  padding:2px 7px!important;
  border:1px solid #cbd6df!important;
  border-radius:2px!important;
  background:#eef2f5!important;
  color:#384b5d!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
  text-transform:uppercase!important;
}

html.sw-newsletters213 .sw213-status-sent,
html.sw-newsletters213 .sw213-status-completed,
html.sw-newsletters213 .sw213-status-delivered {
  border-color:#bbdcc9!important;
  background:#e5f5eb!important;
  color:var(--sw213-good)!important;
}

html.sw-newsletters213 .sw213-status-draft,
html.sw-newsletters213 .sw213-status-prepared,
html.sw-newsletters213 .sw213-status-queued,
html.sw-newsletters213 .sw213-status-scheduled,
html.sw-newsletters213 .sw213-status-sending {
  border-color:#e6d4a6!important;
  background:#fff3d7!important;
  color:var(--sw213-warn)!important;
}

html.sw-newsletters213 .sw213-status-failed {
  border-color:#e3bcbc!important;
  background:#fce7e7!important;
  color:var(--sw213-danger)!important;
}

html.sw-newsletters213 .sw213-actions-row {
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin-top:10px!important;
}

html.sw-newsletters213 .sw213-action {
  min-height:30px!important;
  padding:0 10px!important;
  border-radius:2px!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:10px!important;
  font-weight:700!important;
  cursor:pointer!important;
}

html.sw-newsletters213 .sw213-secondary {
  border:1px solid #b8c6d1!important;
  background:#fff!important;
  color:#173a59!important;
}

html.sw-newsletters213 .sw213-primary {
  border:1px solid var(--sw213-blue-2)!important;
  background:var(--sw213-blue-2)!important;
  color:#fff!important;
}

html.sw-newsletters213 .sw213-send-now {
  border:1px solid var(--sw213-orange)!important;
  background:var(--sw213-orange)!important;
  color:#fff!important;
}

html.sw-newsletters213 .sw213-danger {
  border:1px solid #d7abab!important;
  background:#fff!important;
  color:var(--sw213-danger)!important;
}

html.sw-newsletters213 .sw213-more {
  min-width:32px!important;
  padding:0 7px!important;
  border:1px solid #b8c6d1!important;
  background:#fff!important;
  color:#173a59!important;
}

html.sw-newsletters213 .sw213-action:hover { filter:brightness(.97); }

html.sw-newsletters213 .sw213-api-meta {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:10px;
  padding:8px 9px;
  background:var(--sw213-soft);
  border:1px solid #e0e6eb;
}

html.sw-newsletters213 .sw213-api-meta > span {
  display:inline-flex;
  gap:5px;
  align-items:center;
  min-height:23px;
  padding:2px 7px;
  border-right:1px solid #d6dee5;
  color:#516273;
  font-size:9px;
}

html.sw-newsletters213 .sw213-api-meta > span:last-child { border-right:0; }
html.sw-newsletters213 .sw213-api-meta b { color:#26394c; font-weight:800; }
html.sw-newsletters213 .sw213-api-meta .failed { color:var(--sw213-danger); }

@media(max-width:900px) {
  #swNewsletterToolbar213 { grid-template-columns:1fr 1fr; }
}

@media(max-width:640px) {
  #swNewsletterToolbar213 { grid-template-columns:1fr; }

  html.sw-newsletters213 .sw213-campaign-card { padding:12px!important; }

  html.sw-newsletters213 .sw213-actions-row { align-items:stretch!important; }

  html.sw-newsletters213 .sw213-action { flex:1 1 45%; }

  html.sw-newsletters213 .sw213-api-meta { flex-direction:column; }

  html.sw-newsletters213 .sw213-api-meta > span {
    border-right:0;
    border-bottom:1px solid #d6dee5;
  }

  html.sw-newsletters213 .sw213-api-meta > span:last-child { border-bottom:0; }
}
