/* Netix Zoom SMS — plain, readable dashboard styling. */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f6f8; color: #1c2733; }
a { color: #0f766e; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #10243b; color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar .brand { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.topbar .brand span { color: #2dd4bf; }
.topbar nav a { color: #cbd5e1; margin-right: 14px; font-size: 14px; }
.topbar nav a:hover { color: #fff; }
.topbar .spacer { flex: 1; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.dry { background: #fef3c7; color: #92400e; }
.badge.live { background: #dcfce7; color: #166534; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.badge.info { background: #dbeafe; color: #1e40af; }
.badge.muted { background: #e2e8f0; color: #475569; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { background: #f8fafc; font-size: 12px; text-transform: uppercase; color: #64748b; }
tr:hover td { background: #f8fafc; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.btn { display: inline-block; padding: 8px 16px; border: 0; border-radius: 6px; background: #0f766e; color: #fff; font-size: 14px; cursor: pointer; }
.btn:hover { background: #0d5c56; color: #fff; text-decoration: none; }
.btn.secondary { background: #e2e8f0; color: #1c2733; }
.btn.danger { background: #b91c1c; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.flash.ok { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.muted { color: #64748b; font-size: 13px; }
.msg { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; max-width: 75%; }
.msg.out { background: #e0f2f1; margin-left: auto; }
.msg.in { background: #fff; }
.msg .meta { font-size: 12px; color: #64748b; margin-top: 4px; }
.login-wrap { max-width: 380px; margin: 80px auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 28px; }
.login-wrap h1 { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.progress { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress > div { height: 100%; background: #0f766e; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ---- Wave 2: professional SaaS dashboard + shared help system ---- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-head h1 { margin: 0; font-size: 24px; }
.dash-sub { color: #64748b; font-size: 14px; margin: 2px 0 14px; }
.card-head, .section-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-head h2, .section-head h2 { margin: 0; }
.card-head { margin-bottom: 10px; }
.card-head .spacer, .section-head .spacer { flex: 1; }
.section-head { margin: 22px 0 10px; }
.section-head h2 { font-size: 17px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #0f766e; }
/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-top: 3px solid #0f766e; border-radius: 10px; padding: 14px 16px 12px; box-shadow: 0 1px 2px rgba(16,36,59,.05); }
.stat-card.navy { border-top-color: #10243b; }
.stat-card.gold { border-top-color: #d97706; }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stat-card .num { font-size: 30px; font-weight: 800; color: #10243b; line-height: 1.1; }
.stat-card .lbl { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.stat-card .sub { font-size: 12px; color: #64748b; margin-top: 6px; }
.stat-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.stat-bar > div { height: 100%; background: #0f766e; }
.stat-bar.navy > div { background: #10243b; }
.spark-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 8px; }
.spark-bars span { flex: 1; background: #0f766e; border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.spark-bars span:hover { opacity: 1; }
/* Per-number cards */
.num-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.num-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; background: #f8fafc; }
.num-card .num-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.num-card .num-card-head strong { font-size: 15px; color: #10243b; }
.num-card .phone { color: #64748b; font-size: 13px; }
.num-card .big { font-size: 24px; font-weight: 800; color: #10243b; margin-top: 8px; }
.num-card .big small { font-size: 13px; font-weight: 600; color: #64748b; }
.num-card .meta-line { font-size: 13px; color: #475569; margin-top: 4px; }
/* Recent activity feed */
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.feed-item:last-child { border-bottom: 0; }
.feed-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #10243b; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.feed-avatar.teal { background: #0f766e; }
.feed-body { min-width: 0; }
.feed-body .feed-name { font-weight: 700; font-size: 14px; }
.feed-body .feed-text { font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.feed-body .feed-meta { font-size: 12px; color: #64748b; margin-top: 3px; }
.conv-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.conv-row:last-child { border-bottom: 0; }
.conv-row .conv-main { flex: 1; min-width: 0; }
/* Help buttons + modal */
.help-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; border-radius: 50%; border: 1.5px solid #0f766e; background: #fff; color: #0f766e; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; padding: 0; vertical-align: middle; }
.help-btn:hover { background: #0f766e; color: #fff; }
.help-btn:focus-visible { outline: 2px solid #10243b; outline-offset: 2px; }
h1 .help-btn { width: 22px; height: 22px; font-size: 13px; }
.help-modal-overlay { position: fixed; inset: 0; background: rgba(16,36,59,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.help-modal-overlay[hidden] { display: none; }
.help-modal { background: #fff; border-radius: 12px; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 22px 24px; box-shadow: 0 12px 40px rgba(16,36,59,.35); position: relative; }
.help-modal h3 { margin: 0 34px 4px 0; font-size: 18px; color: #10243b; }
.help-modal .help-kicker { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #0f766e; margin-bottom: 6px; }
.help-modal ol { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.help-modal ol li { margin-bottom: 8px; }
.help-modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; font-size: 18px; line-height: 1; cursor: pointer; }
.help-modal-close:hover { background: #e2e8f0; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .activity-grid { grid-template-columns: 1fr; } }
/* ---- Netix-style polish (2026-12-06) --------------------------------- */
/* Same navy/teal palette as netixmedicalbilling.com, with premium cards,
   soft shadows, clearer hierarchy and generous spacing. Visual polish
   only — no class names, ids, or structure changed. */
body { background: #f3f5f7; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
/* Netix-style header: navy bar with a teal accent line underneath. */
.topbar { padding: 14px 24px; border-bottom: 3px solid #0f766e; box-shadow: 0 2px 10px rgba(16,36,59,.25); }
.topbar .brand { font-size: 19px; letter-spacing: .6px; }
.topbar nav a { padding: 6px 8px; border-radius: 6px; }
.topbar nav a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
/* Wider, airier page. */
.container { max-width: 1180px; padding: 26px 24px 44px; }
/* Clearer hierarchy. */
h1 { font-size: 26px; color: #10243b; }
h2 { font-size: 18px; color: #10243b; }
.dash-head { margin-bottom: 10px; }
.dash-head h1 { font-size: 28px; letter-spacing: -.2px; }
.dash-sub { font-size: 15px; margin: 4px 0 16px; }
.kicker { background: #e0f2f1; padding: 3px 10px; border-radius: 999px; }
/* Premium cards: softer, deeper shadow, rounder corners, more air. */
.card { border-color: #e6ebf0; border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(16,36,59,.06), 0 8px 24px rgba(16,36,59,.06); }
.stat-card { border-radius: 12px; border-top-width: 4px; padding: 16px 18px 14px; box-shadow: 0 1px 3px rgba(16,36,59,.06), 0 8px 24px rgba(16,36,59,.06); transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(16,36,59,.08), 0 14px 32px rgba(16,36,59,.10); }
.stat-card .num { font-size: 32px; letter-spacing: -.5px; }
.stat-card .lbl { letter-spacing: .6px; }
.num-card { border-radius: 12px; box-shadow: 0 1px 3px rgba(16,36,59,.05); transition: transform .15s ease, box-shadow .15s ease; }
.num-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16,36,59,.08); }
/* Buttons: rounder, with a soft shadow on the primary action. */
.btn { border-radius: 8px; padding: 9px 18px; box-shadow: 0 1px 3px rgba(15,118,110,.35); }
.btn:hover { background: #0b5e57; }
.btn.secondary { box-shadow: none; }
.btn.secondary:hover { background: #d3dce6; }
/* Flash messages, login card, tables: same polish. */
.flash { border-radius: 8px; }
.login-wrap { border-radius: 12px; box-shadow: 0 1px 3px rgba(16,36,59,.06), 0 12px 32px rgba(16,36,59,.10); }
th { padding: 10px 12px; }
td { padding: 10px 12px; }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
