/* saas_customer_messages_ops.css — «Ρυθμίσεις → Μηνύματα → Επιχειρησιακά». Μόνο αυτή η σελίδα. */
.cmo-tabs { display: flex; gap: 22px; border-bottom: 1px solid #E2E8F0; margin: 0 0 16px; }
.cmo-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 2px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 44px; }
.cmo-tab.on { color: #2563EB; border-bottom-color: #2563EB; }

.cmo-card { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); color: #1F2937; box-sizing: border-box; min-width: 0; }
.cmo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cmo-title { font-weight: 700; font-size: 1rem; color: #1F2937; }
.cmo-help { font-size: 0.82rem; color: #64748B; line-height: 1.5; margin: 0 0 10px; }
.cmo-label { display: block; font-size: 0.78rem; font-weight: 600; color: #475569; margin: 12px 0 6px; }
.cmo-kind-off { opacity: 0.5; }
.cmo-badge { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #DCFCE7; color: #166534; white-space: nowrap; }
.cmo-badge.off { background: #E2E8F0; color: #475569; }

/* Διακόπτης «Ενεργό» */
.cmo-switch { position: relative; width: 46px; height: 26px; border-radius: 999px; border: 0; background: #CBD5E1; cursor: pointer; flex-shrink: 0; padding: 0; }
.cmo-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: left 0.15s; }
.cmo-switch[aria-checked="true"] { background: #16A34A; }
.cmo-switch[aria-checked="true"]::after { left: 23px; }

/* Επιλογές (τρόπος, είδος χρόνου): κάτω-κάτω σε στενή οθόνη, διατηρούν ολόκληρες ετικέτες */
.cmo-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cmo-opt { background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 0.85rem;
  color: #1F2937; cursor: pointer; min-height: 40px; white-space: nowrap; }
.cmo-opt.on { border-color: #2563EB; color: #1D4ED8; box-shadow: inset 0 0 0 1px #2563EB; font-weight: 600; }
.cmo-explain { font-size: 0.8rem; color: #64748B; margin-top: 8px; line-height: 1.5; }

.cmo-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.cmo-input { border: 1px solid #CBD5E1; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 0.9rem; min-height: 40px; box-sizing: border-box; width: 110px; }
.cmo-err { font-size: 0.8rem; color: #B91C1C; margin-top: 8px; }
.cmo-timing { font-size: 0.82rem; color: #334155; margin-top: 12px; line-height: 1.5; }

/* Κείμενο (μόνο ανάγνωση) */
.cmo-preview { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 10px 12px; margin-top: 6px; font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cmo-example { font-size: 0.8rem; color: #64748B; margin-top: 6px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* Στατιστικά */
.cmo-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cmo-stat { border: 1px solid #E2E8F0; border-radius: 10px; padding: 10px 12px; }
.cmo-stat-n { font-size: 1.3rem; font-weight: 700; color: #1F2937; }
.cmo-stat-l { font-size: 0.78rem; color: #64748B; }
.cmo-kind-stat { border-top: 1px solid #E2E8F0; padding: 10px 0; }
.cmo-kind-stat:first-child { border-top: 0; }
.cmo-kind-stat-name { font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.cmo-kind-stat-line { font-size: 0.82rem; color: #475569; line-height: 1.6; }
.cmo-muted { color: #94A3B8; font-style: italic; }
.cmo-green { color: #15803D; font-weight: 600; }
.cmo-red { color: #B91C1C; font-weight: 600; }

/* Λίστα αποστολών */
.cmo-filter { margin-bottom: 10px; }
.cmo-list-row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #E2E8F0; padding: 10px 0; flex-wrap: wrap; }
.cmo-list-row:first-child { border-top: 0; }
.cmo-list-name { font-weight: 600; font-size: 0.88rem; color: #1F2937; min-width: 0; overflow-wrap: anywhere; }
.cmo-list-meta { font-size: 0.8rem; color: #64748B; }
.cmo-list-status { font-size: 0.82rem; color: #334155; }
.cmo-more { margin-top: 8px; }

/* Κουμπιά */
.cmo-btn { background: #2563EB; color: #FFFFFF; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; min-height: 40px; }
.cmo-btn:disabled { background: #CBD5E1; cursor: not-allowed; }
.cmo-btn.ghost { background: #FFFFFF; color: #1D4ED8; border: 1px solid #CBD5E1; }

/* Διάλογος μη αποθηκευμένων αλλαγών */
.cmo-dlg-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.cmo-dlg { background: #FFFFFF; border-radius: 12px; padding: 18px; max-width: 420px; width: 100%; box-sizing: border-box; }
.cmo-dlg-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: #1F2937; }
.cmo-dlg-text { font-size: 0.88rem; color: #475569; margin-bottom: 14px; line-height: 1.5; }
.cmo-dlg-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 600px) {
  .cmo-opt { white-space: normal; flex: 1 1 100%; text-align: left; }
  .cmo-input { width: 100%; }
}
