/* Miorre Live Chat: wp-admin styles */
.moh-a { max-width: 1280px; margin: 22px 20px 40px 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a; }
.moh-a *, .moh-a *::before, .moh-a *::after { box-sizing: border-box; }
.moh-a-hero { display: flex; gap: 18px; align-items: center; padding: 24px 28px; border-radius: 18px; background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #4c1d95); color: #fff; }
.moh-a-hero h1 { margin: 0 0 6px; padding: 0; color: #fff; font-size: 25px; font-weight: 800; }
.moh-a-hero p { margin: 0; color: #c7d2fe; font-size: 14px; line-height: 1.55; max-width: 720px; }
.moh-a-hero .ico { flex: 0 0 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-size: 25px; }
.moh-a-tabs { display: flex; gap: 8px; margin-top: 16px; }
.moh-a-tabs a { padding: 10px 18px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; color: #475569; font-weight: 700; font-size: 14px; text-decoration: none; }
.moh-a-tabs a:hover { border-color: #a78bfa; color: #5b21b6; }
.moh-a-tabs a.is-on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.moh-a-foot { margin: 22px 0 0; text-align: center; color: #94a3b8; font-size: 12px; }

/* cards / form */
.moh-a-cols { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; margin-top: 18px; }
.moh-a-main { display: grid; gap: 18px; }
.moh-a-card { padding: 22px 26px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; }
.moh-a-card h2 { margin: 0 0 4px; padding: 0; font-size: 18px; }
.moh-a-help { margin: 0 0 16px; color: #64748b; font-size: 13.5px; line-height: 1.6; }
.moh-a-hint { margin: 8px 0 0; color: #64748b; font-size: 12.5px; line-height: 1.55; }
.moh-a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
.moh-a-row { min-width: 0; }
.moh-a-main label.l { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #475569; }
.moh-a-main input[type=text], .moh-a-main input[type=number], .moh-a-main input[type=password], .moh-a-filters input[type=search], .moh-a-main select, .moh-a-reply textarea {
    width: 100%; max-width: none; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; min-height: 40px; box-shadow: none; background: #fff;
}
.moh-a-main input:focus, .moh-a-main select:focus, .moh-a-filters input:focus, .moh-a-reply textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); outline: 0; }
.moh-a-checks { display: grid; gap: 10px; margin-top: 8px; }
.moh-a-check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.moh-a-color { display: flex; align-items: center; gap: 12px; }
.moh-a-color input[type=color] { width: 46px; height: 40px; padding: 2px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; }
.moh-a-range { display: flex; align-items: center; gap: 12px; }
.moh-a-range input { flex: 1; }
.moh-a-range output { min-width: 48px; text-align: right; font-weight: 700; font-size: 13px; color: #5b21b6; }
.moh-a-more { margin-top: 14px; } .moh-a-more summary { cursor: pointer; font-weight: 700; color: #5b21b6; margin-bottom: 10px; }
.moh-a-table { width: 100%; border-collapse: collapse; }
.moh-a-table th { padding: 8px 10px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom: 1px solid #e2e8f0; }
.moh-a-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.moh-a-steps { margin: 0 0 14px; padding-left: 20px; color: #475569; font-size: 13.5px; line-height: 1.8; }
.moh-a-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.moh-a-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.moh-a-btn:hover { background: #6d28d9; }
.moh-a-btn.ghost { background: #f1f5f9; color: #334155; } .moh-a-btn.ghost:hover { background: #e2e8f0; }
.moh-a-btn.danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; } .moh-a-btn.danger:hover { background: #fef2f2; }
.moh-a-msg { font-size: 13px; font-weight: 600; } .moh-a-msg.ok { color: #059669; } .moh-a-msg.bad { color: #dc2626; }
.moh-a-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: rgba(255, 255, 255, .96); border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 -6px 20px rgba(15, 23, 42, .06); }

/* live preview */
.moh-a-preview { position: sticky; top: 42px; padding: 18px; background: #e2e8f0; border-radius: 18px; border: 1px solid #cbd5e1; }
.moh-a-pvhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; } .moh-a-pvhead span { color: #64748b; font-size: 12px; }
.moh-a-stage { padding: 6px; }

/* inbox */
.moh-a-inbox { display: grid; grid-template-columns: 340px 1fr; margin-top: 18px; border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; background: #fff; min-height: 640px; }
.moh-a-side { display: flex; flex-direction: column; border-right: 1px solid #e2e8f0; min-width: 0; }
.moh-a-filters { padding: 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.moh-a-ftabs { display: flex; gap: 6px; margin-bottom: 8px; }
.moh-a-ftabs button { flex: 1; padding: 7px 6px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #475569; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.moh-a-ftabs button span { opacity: .6; font-weight: 600; } .moh-a-ftabs button.is-on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.moh-a-bulk { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12.5px; color: #475569; }
.moh-a-link { border: 0; background: none; color: #dc2626; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; } .moh-a-link:hover { text-decoration: underline; }
.moh-a-list { flex: 1; overflow-y: auto; max-height: 700px; }
.moh-a-item { display: flex; gap: 8px; width: 100%; padding: 13px 14px 13px 10px; border-bottom: 1px solid #f1f5f9; background: #fff; cursor: pointer; }
.moh-a-item:hover { background: #faf5ff; } .moh-a-item.is-active { background: #f3e8ff; } .moh-a-item.is-closed { opacity: .72; } .moh-a-item.has-new { background: #fff7f7; box-shadow: inset 3px 0 0 #ef4444; }
.moh-a-ck { display: flex; align-items: flex-start; padding-top: 2px; } .moh-a-ck input { margin: 0; }
.moh-a-im { flex: 1; min-width: 0; }
.moh-a-item .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; } .moh-a-item .t span { font-weight: 500; color: #94a3b8; font-size: 12px; white-space: nowrap; }
.moh-a-item .p { margin-top: 3px; color: #64748b; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moh-a-item .t .moh-a-new { margin-left: 6px; color: #dc2626; font-size: 11.5px; font-weight: 700; }
.moh-a-live { color: #7c3aed !important; font-style: italic; }
.moh-a-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #ede9fe; color: #5b21b6 !important; font-size: 11px; font-weight: 600; margin-left: 6px; } .moh-a-tag.closed { background: #f1f5f9; color: #64748b !important; }
.moh-a-pre { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; background: #fffbeb; color: #92400e; font-size: 13px; } .moh-a-pre div { margin-top: 3px; color: #78350f; white-space: pre-wrap; overflow-wrap: anywhere; }
.moh-a-sfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid #e2e8f0; background: #f8fafc; color: #94a3b8; font-size: 11.5px; }
.moh-a-conv { display: flex; flex-direction: column; min-width: 0; }
.moh-a-ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; }
.moh-a-ch strong { font-size: 16px; } .moh-a-chbtn { display: flex; gap: 8px; flex-shrink: 0; }
.moh-a-who { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; color: #475569; } .moh-a-who span { display: inline-flex; gap: 5px; align-items: center; } .moh-a-who b { color: #0f172a; }
.moh-a-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; max-height: 520px; min-height: 420px; }
.moh-a-m { max-width: 70%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; } .moh-a-m small { display: block; margin-top: 3px; font-size: 11px; opacity: .6; }
.moh-a-m.v { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; } .moh-a-m.a { align-self: flex-end; background: #7c3aed; color: #fff; }
.moh-a-sys { align-self: center; padding: 3px 12px; border-radius: 999px; background: #e2e8f0; color: #64748b; font-size: 12px; }
.moh-a-draft { padding: 8px 18px; border-top: 1px dashed #e2e8f0; background: #faf5ff; color: #6b21a8; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.moh-a-draft b { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #7c3aed; display: block; margin-bottom: 2px; }
.moh-a-tstat { min-height: 20px; padding: 2px 18px 0; font-size: 12px; color: #64748b; } .moh-a-tstat.ok { color: #059669; } .moh-a-tstat.bad { color: #dc2626; }
.moh-a-reply { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid #e2e8f0; align-items: flex-end; }
.moh-a-empty { padding: 40px; text-align: center; color: #94a3b8; }
#wpadminbar .moh-bar-badge { display: inline-block; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: middle; }

@media (max-width: 1100px) { .moh-a-cols { grid-template-columns: 1fr; } .moh-a-preview { position: static; } }
@media (max-width: 900px) { .moh-a-grid, .moh-a-inbox { grid-template-columns: 1fr; } .moh-a-side { border-right: 0; border-bottom: 1px solid #e2e8f0; } .moh-a-list { max-height: 260px; } }

/* presence bar, saved replies, badges */
.moh-a-presence { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 10px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.moh-a-presence .dot { width: 11px; height: 11px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 4px rgba(148, 163, 184, .2); }
.moh-a-presence .dot.on { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.moh-a-presence select { width: auto; min-width: 230px; min-height: 36px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 9px; }
.moh-a-presence .hint { color: #94a3b8; font-size: 12px; }
.moh-a-canned { display: grid; grid-template-columns: 200px 1fr auto; gap: 10px; align-items: start; margin-bottom: 10px; }
.moh-a-canned input[type=text], .moh-a-canned textarea { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; }
.moh-a-hours input[type=time] { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; }
.moh-a-tag.off { background: #fef3c7; color: #92400e !important; }
.moh-a-rate { font-size: 14px; }
.moh-a-bwho { display: block; margin: 0 0 2px; font-size: 11px; font-weight: 700; opacity: .8; }
.moh-a-m img { display: block; max-width: 240px; max-height: 240px; border-radius: 10px; }
.moh-a-m.imgm { padding: 6px; }
.moh-a-tools { display: flex; align-items: center; gap: 8px; padding: 8px 18px 0; }
.moh-a-tools select { min-height: 34px; padding: 4px 8px; border: 1px solid #cbd5e1; border-radius: 9px; max-width: 260px; font-size: 13px; }
.moh-a-attach { border: 1px solid #cbd5e1; background: #fff; border-radius: 9px; width: 36px; height: 34px; cursor: pointer; font-size: 16px; }
.moh-a-attach:hover { border-color: #7c3aed; }
@media (max-width: 900px) { .moh-a-canned { grid-template-columns: 1fr; } }

.moh-a-hero .logo { flex: 0 0 auto; background: #fff; border-radius: 16px; padding: 4px 10px; display: flex; align-items: center; }
.moh-a-hero .logo img { display: block; width: 150px; height: auto; }
