/* Super Admin: Notification & Reminder Messages */
.mt-tabs{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.mt-tab{border:1px solid var(--ads-line);background:#fff;color:var(--ads-ink-2);border-radius:999px;padding:3px 12px;font-size:12px;cursor:pointer}
.mt-tab.active{background:var(--ads-green);border-color:var(--ads-green);color:#fff}
.mt-search{margin-left:auto;height:var(--ads-ctl-h);border:1px solid var(--ads-line);border-radius:var(--ads-r);padding:0 10px;font-size:12px;min-width:200px}
.mt-list{display:flex;flex-direction:column;gap:8px}
.mt-group{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ads-muted);margin:10px 2px 0}
.mt-card{background:#fff;border:1px solid var(--ads-line);border-radius:var(--ads-r-lg);padding:10px 12px;box-shadow:var(--ads-shadow)}
.mt-card.mt-custom{border-left:3px solid var(--ads-green)}
.mt-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mt-label{font-weight:600;font-size:13px;color:var(--ads-ink)}
.mt-badge{font-size:10.5px;padding:1px 7px;border-radius:999px;background:var(--ads-line-2);color:var(--ads-muted)}
.mt-badge.custom{background:var(--ads-green-tint);color:var(--ads-green-d)}
.mt-badge.rem{background:#fff4e0;color:#b45309}
.mt-when{font-size:11.5px;color:var(--ads-muted);margin:2px 0 6px}
.mt-row{display:grid;grid-template-columns:1fr;gap:6px}
.mt-row label{font-size:11px;color:var(--ads-muted);display:block;margin-bottom:2px}
.mt-title,.mt-body{width:100%;box-sizing:border-box;border:1px solid var(--ads-line);border-radius:var(--ads-r);padding:6px 8px;font:inherit;font-size:12.5px}
.mt-body{min-height:56px;resize:vertical}
.mt-vars{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.mt-var{border:1px dashed #94a3b8;background:#f8fafc;border-radius:6px;padding:1px 7px;font-size:11px;font-family:ui-monospace,Consolas,monospace;cursor:pointer}
.mt-var:hover{background:var(--ads-green-tint);border-color:var(--ads-green)}
.mt-preview{background:var(--ads-line-2);border-radius:var(--ads-r);padding:6px 8px;font-size:12px;color:var(--ads-ink-2);margin-top:6px}
.mt-preview b{display:block;font-size:11.5px;color:var(--ads-ink)}
.mt-actions{display:flex;gap:6px;align-items:center;margin-top:8px}
.mt-actions .mt-meta{margin-left:auto;font-size:11px;color:var(--ads-faint)}
.mt-err{color:#b91c1c;font-size:11.5px;margin-top:4px}
.mt-empty{padding:20px;text-align:center;color:var(--ads-muted)}

/* per-message on/off switch (Super Admin) */
.mt-switch{margin-left:auto;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:11.5px;color:var(--ads-muted);user-select:none}
.mt-switch input{position:absolute;opacity:0;width:0;height:0}
.mt-slider{position:relative;width:30px;height:16px;border-radius:999px;background:#cbd5e1;transition:background .15s}
.mt-slider::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .15s}
.mt-switch input:checked + .mt-slider{background:var(--ads-green)}
.mt-switch input:checked + .mt-slider::after{transform:translateX(14px)}
.mt-switch input:focus-visible + .mt-slider{outline:2px solid var(--ads-green-d);outline-offset:2px}
.mt-switch input:disabled + .mt-slider{opacity:.55}
.mt-badge.off{background:#fee2e2;color:#b91c1c}
.mt-card.mt-off{border-color:#fecaca}
.mt-off-note{font-size:11.5px;color:#b91c1c;margin:0 0 6px}
html[data-theme="dark"] .mt-off-note{color:#f87171}
html[data-theme="dark"] .mt-badge.off{background:#451a1a;color:#fca5a5}
html[data-theme="dark"] .mt-slider{background:#475569}
