/* ============================================================
   INBXIFY — Newsletters Tab
   newsletters-tab-v1.0.1.css
   Mounts into: #newsletters-mount on TITLES-ADMIN page
   Brand: teal #1A3A3A, gold #C4A35A, cream #FAF9F5
   Typography: DM Sans (UI), DM Mono (labels/meta)
   ============================================================ */

/* ── Container ── */
.nl-tab-root {
  width: 100%;
  padding: 16px 0 32px;
}

/* ── Header ── */
.nl-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 10px;
  border-bottom: 2px solid #1a3a3a;
  margin-bottom: 14px;
}

.nl-tab-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nl-tab-icon {
  width: 28px;
  height: 28px;
  background: #1a3a3a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4a35a;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nl-tab-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1a3a3a;
  margin: 0;
  line-height: 1.2;
}

.nl-tab-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #8a8a7a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── Card list ── */
.nl-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Individual card ── */
.nl-card {
  background: #fff;
  border: 1.5px solid #e8e4d8;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease;
  cursor: pointer;
}

.nl-card:hover {
  border-color: #c4a35a;
}

/* ── Card header ── */
.nl-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #faf9f5;
  border-bottom: 1px solid #e8e4d8;
}

.nl-card-issue {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #1a3a3a;
  min-width: 70px;
  flex-shrink: 0;
}

.nl-card-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #8a8a7a;
}

.nl-card-spacer {
  flex: 1;
}

/* ── Status pills ── */
.nl-pill {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.nl-pill-live {
  background: #e8f5e9;
  color: #27ae60;
}

.nl-pill-sent {
  background: #e8f5e9;
  color: #27ae60;
}

.nl-pill-rtp {
  background: #fff8e1;
  color: #e8a030;
}

.nl-pill-building {
  background: #e6f1fb;
  color: #185fa5;
}

.nl-pill-draft {
  background: #f1efe8;
  color: #888780;
}

/* ── Card body grid ── */
.nl-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

/* ── Section blocks ── */
.nl-section {
  padding: 10px 14px;
}

.nl-section + .nl-section {
  border-left: 1px solid #f0ede4;
}

.nl-section-full {
  grid-column: 1 / -1;
  padding: 10px 14px;
  border-top: 1px solid #f0ede4;
}

/* Row 2 border top */
.nl-section-row2 {
  border-top: 1px solid #f0ede4;
}

/* ── Section label ── */
.nl-sec-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a7a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.nl-dot-fa  { background: #2d6a4f; }
.nl-dot-ts  { background: #7b2d8b; }
.nl-dot-tf  { background: #b8860b; }
.nl-dot-ba  { background: #c4a35a; }
.nl-dot-ev  { background: #1a5276; }

/* ── Article rows (FA/TS) ── */
.nl-art-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.nl-art-info {
  min-width: 0;
  flex: 1;
}

.nl-art-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1a3a3a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nl-art-customer {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: #5a6a5a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Empty slot placeholder ── */
.nl-empty-slot {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: #c8c4b8;
  font-style: italic;
  padding: 3px 0;
}

/* ── The Find section ── */
.nl-tf-type {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #b8860b;
  margin-bottom: 3px;
}

.nl-tf-customer {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  color: #1a3a3a;
  padding: 1px 0;
}

.nl-tf-customer::before {
  content: "\00B7";
  color: #c4a35a;
  margin-right: 4px;
  font-weight: 700;
}

/* ── Banner Ad grid ── */
.nl-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nl-ba-thumb {
  width: 100%;
  height: 32px;
  border-radius: 2px;
  background: #f0ede4;
  border: 1px solid #e8e4d8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-ba-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nl-ba-thumb-empty {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  color: #c8c4b8;
}

/* ── Event rows ── */
.nl-ev-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.nl-ev-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #1a3a3a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* ── Card footer ── */
.nl-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fdfcf8;
  border-top: 1px solid #f0ede4;
}

.nl-perf {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: #8a8a7a;
  display: flex;
  gap: 14px;
}

.nl-perf-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nl-perf-val {
  color: #1a3a3a;
  font-weight: 600;
}

/* ── Show More button ── */
.nl-show-more-wrap {
  text-align: center;
  padding: 14px 0 4px;
}

.nl-show-more-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 3px;
  border: 1.5px solid #e8e4d8;
  background: transparent;
  color: #1a3a3a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nl-show-more-btn:hover {
  border-color: #c4a35a;
  color: #c4a35a;
}

/* ── Empty state ── */
.nl-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8a8a7a;
}

.nl-empty-state-icon {
  font-size: 32px;
  opacity: 0.4;
  margin-bottom: 8px;
}

.nl-empty-state-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}
