/* Admin panel (php/admin/). The root has classes "blog settings admin", so it uses the settings page's layout,
   tabs and cards (css/settings.css) and the blog's buttons, badges and pager (css/blog.css). */

.adm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.adm-panel-head .set-panel-title { margin-bottom: 0; }
.adm-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.adm-toolbar input[type=search] { flex: 1 1 220px; max-width: 360px; }
.adm-select { width: auto; min-width: 130px; cursor: pointer; }
.adm-count { color: var(--blog-muted); font-size: 12px; margin-bottom: 6px; }
.adm-muted { color: var(--blog-muted); }
.adm-empty { margin: 0; padding: 6px 0; }
.adm-mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .03em; }
.adm-inline { display: flex; gap: 8px; max-width: 460px; }
.adm-inline .form-control { flex: 1 1 auto; min-width: 0; }
.adm-inline .btn { flex: 0 0 auto; }
.adm-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-more { display: inline-block; margin-top: 8px; cursor: pointer; font-weight: bold; }
.adm-filter-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 6px 4px 12px; border-radius: 999px;
    background: rgba(0, 0, 0, .62); color: var(--blog-accent); font-weight: bold; font-size: 12px;
}
.adm-filter-chip a { color: #fff; cursor: pointer; padding: 0 4px; }

.blog-badge + .blog-badge { margin-left: 4px; }
.adm-badge-ban { background: #3a0000; color: #ff8a8a; }
.adm-badge-gone { background: #2a2a2e; color: #c3c3c9; }

/* ---------- Overview ---------- */

.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.adm-stat {
    display: flex; flex-direction: column; padding: 12px 14px; border-radius: 6px;
    background: rgba(0, 0, 0, .62); color: #cbc3c3; border: 1px solid transparent;
    transition: border-color .15s ease, background-color .15s ease;
}
a.adm-stat { cursor: pointer; }
a.adm-stat:hover, a.adm-stat:focus { text-decoration: none; border-color: var(--blog-accent); color: #fff; }
.adm-stat b { font-size: 26px; line-height: 1.1; color: var(--blog-accent); font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif; }
.adm-stat span { font-weight: bold; }
.adm-stat small { color: #9fa6b3; font-size: 11px; }
.adm-levels { margin: 0; padding-left: 18px; }
.adm-levels li { margin: 3px 0; }

/* ---------- User / post rows ---------- */

.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin-bottom: 6px; border-radius: 6px;
    background: var(--blog-card); border: 1px solid rgba(255, 255, 255, .18);
    transition: background-color .15s ease;
}
.adm-row[data-action] { cursor: pointer; }
.adm-row[data-action]:hover { background: var(--blog-card-hover); }
.adm-avatar { flex: 0 0 36px; width: 36px; height: 36px; font-size: 15px; }
.adm-row-main { flex: 1 1 auto; min-width: 0; }
.adm-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.adm-name { font-weight: bold; color: #1e1e1e; cursor: pointer; }
a.adm-name:hover { color: #000; }
.adm-row-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--blog-muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.adm-row-side { display: flex; flex-direction: column; align-items: flex-end; color: var(--blog-muted); font-size: 12px; white-space: nowrap; }
.adm-row-go { color: var(--blog-muted); }
.adm-posts .adm-row { flex-wrap: wrap; }
.adm-pager { margin-top: 10px; }

/* ---------- One user ---------- */

.adm-user .blog-back { display: inline-block; margin-bottom: 10px; cursor: pointer; }
.adm-user .set-profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.adm-user .set-profile-name .blog-badge { font-family: inherit; font-size: 11px; }
.adm-status { margin: 8px 0 0; font-weight: bold; }
.adm-status i { margin-right: 4px; }
.adm-status-ban { color: #8a1c1c; }
.adm-status-mute { color: #7a5400; }

.adm-sanction {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 10px 0; border-top: 1px solid var(--blog-line);
}
.set-card-title + .adm-sanction { border-top: 0; padding-top: 4px; }
.adm-sanction-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-sanction-form input[type=text] { width: 240px; }

/* ---------- Comments ---------- */

.adm-comments { list-style: none; margin: 0; padding: 0; }
.adm-comment { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--blog-line); }
.adm-comment:first-child { border-top: 0; padding-top: 0; }
.adm-comment-main { flex: 1 1 auto; min-width: 0; }
.adm-comment-head { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 13px; align-items: baseline; }
.adm-post-link { font-weight: bold; cursor: pointer; }
.adm-comment-body {
    margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.adm-icon-btn { flex: 0 0 auto; align-self: flex-start; padding: 4px 8px; border-radius: 4px; cursor: pointer; color: var(--blog-muted); }
.adm-icon-btn.adm-danger:hover { background: #8a1c1c; color: #fff; }

/* ---------- Log ---------- */

.adm-log { list-style: none; margin: 0; padding: 0; }
.adm-log-row { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--blog-line); font-size: 13px; }
.adm-log-row:first-child { border-top: 0; padding-top: 0; }
.adm-log-when { flex: 0 0 90px; color: var(--blog-muted); white-space: nowrap; }
.adm-log-what { min-width: 0; overflow-wrap: anywhere; }
.adm-log-details { display: block; color: var(--blog-muted); font-size: 12px; }

@media (max-width: 760px) {
    .adm-row-side { display: none; }
    .adm-sanction-form, .adm-sanction-form input[type=text] { width: 100%; }
    .adm-inline { flex-wrap: wrap; }
    .adm-log-row { flex-direction: column; gap: 0; }
    .adm-log-when { flex-basis: auto; }
    .adm-posts .adm-buttons { width: 100%; }
}
