/* SWLARC Club Management v2.14 — Communications Studio Consistency Pass */

html.sw-comms214 {
  --sw214-navy:#0d2242;
  --sw214-blue:#174f78;
  --sw214-blue-dark:#123f64;
  --sw214-orange:#f58a1f;
  --sw214-line:#d7e0e8;
  --sw214-soft:#f4f7f9;
  --sw214-text:#17212b;
  --sw214-muted:#69798a;
  --sw214-good:#237148;
  --sw214-danger:#a13232;
}

html.sw-comms214 .sw214-action {
  min-height:31px!important;
  padding:0 10px!important;
  border-radius:2px!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:10px!important;
  font-weight:800!important;
  cursor:pointer!important;
}

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

html.sw-comms214 .sw214-secondary {
  border:1px solid #b8c6d1!important;
  background:#fff!important;
  color:#183b5a!important;
}

html.sw-comms214 .sw214-save {
  border:1px solid var(--sw214-orange)!important;
  background:var(--sw214-orange)!important;
  color:#fff!important;
}

html.sw-comms214 .sw214-danger {
  border:1px solid #d8b2b2!important;
  background:#fff!important;
  color:var(--sw214-danger)!important;
}

html.sw-comms214 .sw214-more {
  min-width:32px!important;
  padding:0 7px!important;
  border:1px solid #b8c6d1!important;
  background:#fff!important;
  color:#183b5a!important;
}

html.sw-comms214 .sw214-action:hover {
  filter:brightness(.97);
}

html.sw-comms214 .sw214-eyebrow {
  color:#21608f!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}

/* ------------------------------------------------------------------
   Templates
   ------------------------------------------------------------------ */
html.sw-comms214 .sw214-template-grid {
  align-items:stretch!important;
}

html.sw-comms214 .sw214-template-card {
  min-height:170px!important;
  padding:18px!important;
  border:1px solid var(--sw214-line)!important;
  border-top:4px solid var(--sw214-orange)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--sw214-text)!important;
  box-shadow:0 5px 16px rgba(13,34,66,.04)!important;
}

html.sw-comms214 .sw214-template-card h1,
html.sw-comms214 .sw214-template-card h2,
html.sw-comms214 .sw214-template-card h3,
html.sw-comms214 .sw214-template-card h4,
html.sw-comms214 .sw214-template-card strong,
html.sw-comms214 .sw214-template-card b {
  color:var(--sw214-navy)!important;
}

html.sw-comms214 .sw214-template-card p,
html.sw-comms214 .sw214-template-card small,
html.sw-comms214 .sw214-template-card span {
  color:var(--sw214-muted);
}

/* ------------------------------------------------------------------
   Audience Lists — fix the dark-on-dark card from the current UI.
   ------------------------------------------------------------------ */
html.sw-comms214 .sw214-audience-grid {
  display:block!important;
  width:100%!important;
}

html.sw-comms214 .sw214-audience-card {
  width:100%!important;
  min-height:190px!important;
  margin:0 0 12px!important;
  padding:20px!important;
  border:1px solid var(--sw214-line)!important;
  border-top:4px solid var(--sw214-blue)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--sw214-text)!important;
  box-shadow:0 5px 16px rgba(13,34,66,.04)!important;
}

html.sw-comms214 .sw214-audience-card *:not(button):not(input):not(select):not(option) {
  color:inherit;
}

html.sw-comms214 .sw214-audience-card h1,
html.sw-comms214 .sw214-audience-card h2,
html.sw-comms214 .sw214-audience-card h3,
html.sw-comms214 .sw214-audience-card h4,
html.sw-comms214 .sw214-audience-card strong,
html.sw-comms214 .sw214-audience-card b {
  color:var(--sw214-navy)!important;
}

html.sw-comms214 .sw214-audience-card p,
html.sw-comms214 .sw214-audience-card small {
  color:var(--sw214-muted)!important;
}

html.sw-comms214 .sw214-active-pill {
  display:inline-flex!important;
  align-items:center!important;
  min-height:22px!important;
  padding:2px 8px!important;
  border:1px solid #b8dcc7!important;
  border-radius:999px!important;
  background:#e7f6ed!important;
  color:var(--sw214-good)!important;
  font-size:9px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}

/* ------------------------------------------------------------------
   Calendar / reminders
   ------------------------------------------------------------------ */
html.sw-comms214 .sw214-calendar-panel {
  border-radius:0!important;
  border:1px solid var(--sw214-line)!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(13,34,66,.04)!important;
}

html.sw-comms214 .sw214-calendar-panel table {
  width:100%!important;
  border-collapse:collapse!important;
}

html.sw-comms214 .sw214-calendar-panel th {
  background:#f2f5f7!important;
  color:#5c6d7d!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}

html.sw-comms214 .sw214-calendar-panel td {
  border-top:1px solid #e7ecf0!important;
}

/* ------------------------------------------------------------------
   Automations
   ------------------------------------------------------------------ */
html.sw-comms214 .sw214-automation-card {
  border-radius:0!important;
  border-color:var(--sw214-line)!important;
  box-shadow:none!important;
}

/* ------------------------------------------------------------------
   Analytics
   ------------------------------------------------------------------ */
html.sw-comms214 .sw214-analytics-panel {
  border-radius:0!important;
  border:1px solid var(--sw214-line)!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(13,34,66,.04)!important;
}

html.sw-comms214 .sw214-analytics-panel table {
  width:100%!important;
  border-collapse:collapse!important;
}

html.sw-comms214 .sw214-analytics-panel th {
  background:#f1f4f7!important;
  color:#5b6c7c!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}

html.sw-comms214 .sw214-analytics-panel td {
  border-top:1px solid #e7ecf0!important;
}

html.sw-comms214 .sw214-analytics-table tr[hidden] {
  display:none!important;
}

html.sw-comms214 .sw214-analytics-toolbar {
  display:grid;
  grid-template-columns:minmax(260px,2fr) minmax(130px,.7fr) minmax(100px,.5fr) auto;
  gap:8px;
  align-items:end;
  margin:10px 0;
  padding:10px;
  border:1px solid var(--sw214-line);
  border-left:4px solid var(--sw214-blue);
  background:#f8fafb;
}

html.sw-comms214 .sw214-analytics-toolbar label > span {
  display:block;
  margin-bottom:4px;
  color:var(--sw214-muted);
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

html.sw-comms214 .sw214-analytics-toolbar input,
html.sw-comms214 .sw214-analytics-toolbar select {
  width:100%;
  min-height:32px;
  padding:5px 7px;
  border:1px solid #b8c6d1;
  background:#fff;
  color:var(--sw214-text);
}

html.sw-comms214 .sw214-analytics-toolbar .pager {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-height:32px;
}

html.sw-comms214 .sw214-analytics-toolbar .pager button {
  min-height:30px;
  padding:0 9px;
  border:1px solid #b8c6d1;
  background:#fff;
  color:#183b5a;
  font-weight:800;
  cursor:pointer;
}

html.sw-comms214 .sw214-analytics-toolbar .pager button:disabled {
  opacity:.45;
  cursor:default;
}

html.sw-comms214 .sw214-analytics-toolbar .pager span {
  white-space:nowrap;
  color:#5f7080;
  font-size:9px;
  font-weight:700;
}

/* ------------------------------------------------------------------
   Newsletter Builder
   ------------------------------------------------------------------ */
html.sw-comms214 .sw214-builder-modal {
  width:min(94vw,1440px)!important;
  max-width:1440px!important;
  max-height:92vh!important;
  border-radius:3px!important;
  box-shadow:0 24px 70px rgba(4,19,36,.38)!important;
}

html.sw-comms214 .sw214-builder-modal .sw214-builder-field {
  min-width:0!important;
}

html.sw-comms214 .sw214-builder-modal .sw214-builder-field input,
html.sw-comms214 .sw214-builder-modal .sw214-builder-field textarea,
html.sw-comms214 .sw214-builder-modal .sw214-builder-field select {
  width:100%!important;
  min-height:38px!important;
  height:38px!important;
  padding:7px 9px!important;
  border:1px solid #b8c6d1!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--sw214-text)!important;
  box-sizing:border-box!important;
}

html.sw-comms214 .sw214-builder-content,
html.sw-comms214 .sw214-builder-canvas,
html.sw-comms214 .sw214-builder-settings {
  border-color:var(--sw214-line)!important;
  background:#fff!important;
}

html.sw-comms214 .sw214-builder-canvas {
  background:#f7f9fb!important;
}

html.sw-comms214 .sw214-block-tool {
  min-height:38px!important;
  padding:6px 8px!important;
  border:1px solid #c1ccd6!important;
  border-radius:0!important;
  background:#fff!important;
  color:#173b5b!important;
  font-size:10px!important;
  font-weight:800!important;
  cursor:grab!important;
}

html.sw-comms214 .sw214-block-tool:hover {
  border-color:var(--sw214-blue)!important;
  background:#f0f6fa!important;
}

html.sw-comms214 .sw214-image-library {
  margin-top:12px!important;
  padding-top:10px!important;
  border-top:1px solid var(--sw214-line)!important;
}

html.sw-comms214 .sw214-empty-library {
  display:block!important;
  margin-top:8px!important;
  padding:14px 10px!important;
  border:1px dashed #c4ced7!important;
  background:#f8fafb!important;
  color:#758494!important;
  text-align:center!important;
  font-size:9px!important;
}

/* Normalize old native browser buttons inside the builder without touching
   the small canvas move/remove controls unless v2.14 explicitly marked them. */
html.sw-comms214 .sw214-builder-modal .sw214-action {
  min-height:30px!important;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media(max-width:1000px) {
  html.sw-comms214 .sw214-analytics-toolbar {
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:700px) {
  html.sw-comms214 .sw214-analytics-toolbar {
    grid-template-columns:1fr;
  }

  html.sw-comms214 .sw214-analytics-toolbar .pager {
    justify-content:flex-start;
  }

  html.sw-comms214 .sw214-template-card,
  html.sw-comms214 .sw214-audience-card {
    min-height:0!important;
  }

  html.sw-comms214 .sw214-builder-modal {
    width:98vw!important;
    max-height:96vh!important;
  }
}
