/* admin — Enterprise Dashboard (tiền tố ad-) */
.dash.admin .side { background: var(--navy); border-right: 0; }
.dash.admin .side a { color: #c7d2fe; } .dash.admin .side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash.admin .side a.on { background: var(--brand); color: #fff; }
.dash.admin .side a.brand { color: #fff; } .dash.admin .side a.brand small { color: #93a4d6; }
.dash.admin .side .bottom { border-top-color: rgba(255,255,255,.12); }
.ad-link { color: var(--brand-d); font-weight: 600; } .ad-link:hover { text-decoration: underline; }
.ad-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; }
.ad-kv div { display: grid; gap: 2px; min-width: 0; } .ad-kv span { font-size: 12px; color: var(--muted); } .ad-kv b { font-weight: 600; font-size: 14px; word-break: break-word; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.ad-rates { display: grid; gap: 18px; } .ad-rates > div { display: grid; gap: 6px; } .ad-rates span { font-size: 13px; color: var(--muted); } .ad-rates b { font-size: 26px; letter-spacing: -.02em; } .ad-rates em { font-style: normal; font-size: 12px; color: var(--muted); }
.ad-log { display: grid; gap: 8px; font-size: 13.5px; } .ad-log > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; } .ad-log > div:last-child { border: 0; }
.ad-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ad-plan { display: grid; gap: 10px; align-content: start; } .ad-plan.off { opacity: .7; background: #f8fafc; } .ad-plan h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ad-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); } .ad-price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.ad-lim { display: grid; gap: 4px; font-size: 13px; } .ad-lim div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); } .ad-lim span { color: var(--muted); }
.ad-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; } .ad-feats .check { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.ad-hist { display: grid; gap: 10px; } .ad-hist > div { display: flex; gap: 10px; align-items: flex-start; } .ad-hist i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; box-shadow: 0 0 0 3px var(--brand-50); } .ad-hist b { display: block; font-size: 13.5px; font-weight: 600; } .ad-hist em { font-style: normal; font-size: 12px; color: var(--muted); }
.ad-thread { display: grid; gap: 10px; max-height: 280px; overflow: auto; padding: 4px; }
.ad-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; background: #f1f5f9; justify-self: start; display: grid; gap: 4px; } .ad-msg.me { background: var(--brand-50); justify-self: end; } .ad-msg b { font-size: 12.5px; } .ad-msg p { font-size: 14px; } .ad-msg em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.ad-viewas { align-items: center; }
.ad-matrix td, .ad-matrix th { white-space: nowrap; } .ad-matrix input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); } .ad-matrix td:first-child { min-width: 200px; }
.ad-danger { border-color: #f5c2c2; }
.drawer h4 { font-size: 14px; margin-top: 6px; }
@media (max-width: 960px) { .ad-kv { grid-template-columns: 1fr; } .ad-feats { grid-template-columns: 1fr; } .ad-log > div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 640px) { .kpis, .kpis.six { grid-template-columns: 1fr 1fr; } .kpi { padding: 12px; gap: 10px; } .kpi b { font-size: 18px; } .two, .eq, .three-c { grid-template-columns: minmax(0, 1fr); } .ad-plans { grid-template-columns: 1fr; } .titlebar > .row { width: 100%; } }
.dash.admin .dcontent, .dash.admin .dcontent > * { min-width: 0; max-width: 100%; }
.dash.admin .card.panel { overflow: hidden; }
