/* MTA Cloud admin — additions on top of the Sarh theme (ui/theme.css). Colors come from its tokens only. */

/* brand */
.mc-brand { display: flex; align-items: center; gap: 12px; }
.mc-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--s-gold-500); flex: none; }
.mc-brand .s-brand-name, .mc-brand .s-brand-sub { display: block; }
.mc-nav-count { margin-inline-start: auto; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--s-danger); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

/* top bar user */
.mc-user { display: flex; align-items: center; gap: 10px; }
.mc-user > span:nth-child(2) { display: grid; line-height: 1.3; }
.mc-user small { color: var(--s-text-muted); font-size: 12px; }
.mc-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s-navy-800); color: #fff; font-weight: 800; }

/* login */
.mc-auth { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; background: var(--s-navy-900); padding: 16px; }
.mc-auth-card { width: min(420px, 100%); background: var(--s-surface); border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.mc-auth-brand { display: flex; align-items: center; gap: 12px; margin-block-end: 18px; }
.mc-auth-brand .mc-mark { background: var(--s-navy-800); }
.mc-auth-brand b { display: block; font-size: 20px; color: var(--s-navy-800); }
.mc-auth-brand small { color: var(--s-text-muted); font-size: 12.5px; }
.mc-auth-title { font-size: 20px; margin-block-end: 4px; }
.mc-auth-sub { margin: 0 0 16px; color: var(--s-text-muted); font-size: 13px; }
.mc-auth-foot { color: #8EA2C3; font-size: 12px; margin: 0; }
.mc-wide { width: 100%; justify-content: center; margin-top: 6px; }

/* dashboard */
.mc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-block-end: 16px; }
@media (max-width: 1200px) { .mc-kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.mc-kpi { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: var(--s-radius); padding: 14px 16px; box-shadow: var(--s-shadow); text-decoration: none; color: inherit; display: block; }
.mc-kpi:hover { border-color: var(--s-border-strong); }
.mc-kpi small { display: block; color: var(--s-text-muted); font-weight: 700; font-size: 12.5px; }
.mc-kpi b { display: block; font-size: 24px; margin-top: 4px; color: var(--s-text); }
.mc-kpi span { font-size: 12px; color: var(--s-text-muted); }
.mc-kpi .meter { height: 6px; border-radius: 3px; background: var(--s-border); margin-top: 8px; overflow: hidden; }
.mc-kpi .meter i { display: block; height: 100%; border-radius: 3px; }
.mc-dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-block-end: 16px; }
@media (max-width: 1100px) { .mc-dash { grid-template-columns: 1fr; } }
.ring text { font-family: var(--s-font-num); }
.ring .pct { fill: var(--s-text); font-weight: 800; }
.ring .sub { fill: var(--s-text-muted); font-weight: 700; }
.mc-health { display: flex; gap: 22px; align-items: center; padding: 18px; flex-wrap: wrap; }
.mc-health dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 16px; font-size: 13px; }
.mc-health dt { color: var(--s-text-muted); } .mc-health dd { margin: 0; font-weight: 700; }
.mc-bars { display: grid; gap: 9px; padding: 16px 18px; }
.mc-bar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 13px; }
.mc-bar-row .bar { height: 8px; border-radius: 4px; background: var(--s-border); position: relative; overflow: hidden; }
.mc-bar-row .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; }
.mc-bar-row b { text-align: end; }
.mc-list { list-style: none; margin: 0; padding: 0; }
.mc-list li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--s-border); }
.mc-list li:last-child { border-bottom: 0; }
.mc-list .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; }
.mc-list .s1 { background: var(--s-info); } .mc-list .s2 { background: var(--s-warning); } .mc-list .s3 { background: var(--s-danger); }
.mc-list b { display: block; font-size: 14px; }
.mc-list small { color: var(--s-text-muted); font-size: 12.5px; }
.mc-list .grow { flex: 1; min-width: 0; }

/* tenant page */
.mc-head-actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block-end: 16px; }
@media (max-width: 1100px) { .mc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mc-fact { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: var(--s-radius); padding: 12px 16px; }
.mc-fact small { display: block; color: var(--s-text-muted); font-size: 12.5px; font-weight: 700; }
.mc-fact b { display: block; font-size: 16px; margin-top: 3px; }
.mc-fact span { font-size: 12px; color: var(--s-text-muted); }
.mc-secret { display: flex; gap: 8px; align-items: center; }
.mc-secret .s-input { flex: 1; font-family: Consolas, "Cascadia Mono", monospace; font-size: 14px; }
.mc-code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 26px; font-weight: 800; color: var(--s-navy-800); direction: ltr; unicode-bidi: isolate; }
.mc-keys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .mc-keys { grid-template-columns: 1fr; } }
.mc-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mc-qr > svg { width: 170px; height: 170px; border: 1px solid var(--s-border); border-radius: 10px; padding: 6px; background: #fff; }
.mc-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.mc-cmd { display: block; background: var(--s-navy-900); color: #DCE5F3; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; text-align: left; direction: ltr; font-family: Consolas, "Cascadia Mono", monospace; }
.mc-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .mc-modules { grid-template-columns: 1fr; } }
.mc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; }
.mc-dot.ok { background: var(--s-success); } .mc-dot.warn { background: var(--s-warning); } .mc-dot.bad { background: var(--s-danger); } .mc-dot.off { background: #B8C2D1; }
.mc-progress { height: 6px; border-radius: 3px; background: var(--s-border); overflow: hidden; min-width: 90px; }
.mc-progress i { display: block; height: 100%; background: var(--s-blue-600); }
.mc-cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; }
@media (max-width: 900px) { .mc-cols-2 { grid-template-columns: 1fr; } }
.mc-actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }


/* ── Promotion platform ── */
.pf-preview { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 6px; border-top: 1px dashed var(--s-border); }
.pf-logo { display: flex; gap: 12px; align-items: center; }
.pf-logo img, .pf-logo-empty { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--s-border); background: #F5F7FA; flex: none; }
.pf-logo-empty { display: grid; place-items: center; color: var(--s-text-muted); }
.pf-logo > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-feature { border: 1px solid var(--s-border); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.pf-image { height: 150px; border: 1px dashed var(--s-border-strong); border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #F5F7FA; }
.pf-image img { width: 100%; height: 100%; object-fit: cover; }
.pf-image .pf-logo-empty { border: 0; background: transparent; }
.pf-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-block-end: 14px; }
.pf-banner { flex: none; width: 300px; height: 100px; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--s-border); padding: 0; cursor: pointer; background: var(--s-navy-800); font: inherit; }
.pf-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-banner span { position: absolute; inset-inline: 0; bottom: 0; padding: 6px 10px; background: rgba(8, 20, 45, .72); color: #fff; font-weight: 700; font-size: 13px; text-align: start; }
.pf-review { display: grid; gap: 8px; }
.pf-review p { margin: 0; line-height: 1.8; }
.pf-stars { display: flex; gap: 2px; color: var(--s-border-strong); }
.pf-stars .on { color: var(--s-gold-500); fill: var(--s-gold-500); }
.pf-complaint { white-space: pre-wrap; line-height: 1.9; background: #F7F9FC; border: 1px solid var(--s-border); border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; }
textarea.s-input.pf-page { height: 340px; padding-block: 10px; line-height: 1.9; resize: vertical; }
.pf-list { display: grid; gap: 4px; border-top: 1px dashed var(--s-border); padding-top: 8px; }
.pf-list > div { display: flex; justify-content: space-between; align-items: center; }
.pf-faq { display: grid; }
.pf-faq-row { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--s-border); }
.pf-faq-row.on { background: var(--s-gold-100); }
.pf-faq-text { flex: 1; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.pf-faq-text span { color: var(--s-text-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-faq-tools { display: flex; gap: 4px; flex: none; }
tr.muted td { opacity: .55; }
