/* Mendflow «Модерация»: общий пастельный стиль панели (js/app.js, js/help.js). */
#adminReportsView.panel { padding: 0 !important; border: 0; border-radius: 0 !important; background: transparent; box-shadow: none; }
#adminReportsView .adm-root { container-type: inline-size; display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: none; margin: 0; padding: 0; }
#adminReportsView .adm-back-bar { margin: 0; }
#adminReportsView .upf-back-btn { color: var(--ink); }
#adminReportsView .adm-main-tabs { display: flex; gap: 8px; margin: 0; padding: 0; overflow-x: auto; border: 0; background: none; box-shadow: none; scrollbar-width: none; }
#adminReportsView .adm-main-tab { flex: 0 0 auto; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: none; color: var(--ink); font-size: 14.5px; font-weight: 600; }
#adminReportsView .adm-main-tab:hover { background: var(--hover); }
#adminReportsView .adm-main-tab.is-active { background: var(--ink); box-shadow: none; color: var(--surface); }
#adminReportsView .adm-main-tab:focus-visible,
#adminReportsView .adm-tab:focus-visible,
#adminReportsView .adm-action-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#adminReportsView .adm-panel-wrap { display: flex; flex-direction: column; gap: 14px; margin: 0; }
#adminReportsView .adm-panel-wrap.is-hidden { display: none; }
#adminReportsView .adm-tabs { display: flex; gap: 20px; margin: 0; padding: 0; overflow-x: auto; border: 0; background: none; scrollbar-width: none; }
#adminReportsView .adm-tab { flex: 0 0 auto; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
#adminReportsView .adm-tab:hover { color: var(--ink); }
#adminReportsView .adm-tab.is-active { border-bottom-color: var(--ink); background: none; color: var(--ink); }

#adminReportsView .adm-search-bar { display: flex; gap: 10px; margin: 0; }
#adminReportsView .adm-search-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: none; color: var(--ink); }
#adminReportsView .adm-search-input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
#adminReportsView .adm-search-bar .primary-button { min-height: 48px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--ink); box-shadow: none; color: var(--surface); }

#adminReportsView .adm-list-wrap { padding: 8px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: none; }
#adminReportsView .adm-list { display: flex; flex-direction: column; gap: 6px; }
#adminReportsView .adm-row { min-width: 0; margin: 0; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--surface-muted, #f4f2f8); box-shadow: none; }
#adminReportsView .adm-row-line,
#adminReportsView .adm-row-comment,
#adminReportsView .adm-row-preview { overflow-wrap: anywhere; }
#adminReportsView .adm-row-comment,
#adminReportsView .adm-row-preview { border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); }
#adminReportsView .adm-status { border: 0; color: var(--pv-on-tone); }
#adminReportsView .adm-status--new { background: var(--pv-pink); }
#adminReportsView .adm-status--reviewed { background: var(--pv-orange); }
#adminReportsView .adm-status--resolved { background: var(--pv-green); }
#adminReportsView .adm-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#adminReportsView .adm-action-btn { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: none; color: var(--ink); font-weight: 600; }
#adminReportsView .adm-action-btn:hover { background: var(--hover); }
#adminReportsView .adm-action-btn--danger { background: #fde4e4; color: #b42318; }
[data-theme="dark"] #adminReportsView .adm-action-btn--danger { background: #4a1f1f; color: #fda4a4; }
#adminReportsView .adm-link-btn { color: var(--ink); font-weight: 600; text-decoration: underline; }
#adminReportsView .adm-empty { padding: 44px 24px; border: 1.5px dashed var(--pv-dash); border-radius: 18px; color: var(--ink-soft); text-align: center; }
#adminReportsView .hp-input { border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); }
#adminReportsView .hp-form { align-items: stretch; }
#adminReportsView .hp-form .primary-button { border: 0; border-radius: 18px; background: var(--ink); box-shadow: none; color: var(--surface); }
#adminReportsView .hp-msg { border: 0; border-radius: 18px; background: var(--surface); }
#adminReportsView .hp-msg--mine { background: var(--pv-lav); color: var(--pv-on-tone); }

@media (max-width: 560px) {
  #adminReportsView .adm-search-bar { flex-direction: column; }
  #adminReportsView .adm-action-btn { min-height: 44px; }
}

/* ── Обзор: очередь, ключевые числа, графики (js/admin-overview.js) ──────── */
.adm-ov {
  --adm-s1: #2a78d6; --adm-s2: #eb6834; --adm-s3: #1baf7a; --adm-s4: #eda100; --adm-s5: #e87ba4;
  --adm-o1: #86b6ef; --adm-o2: #5598e7; --adm-o3: #256abf; --adm-o4: #104281;
  display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: opacity .15s;
}
[data-theme="dark"] .adm-ov {
  --adm-s1: #3987e5; --adm-s2: #d95926; --adm-s3: #199e70; --adm-s4: #c98500; --adm-s5: #d55181;
  --adm-o1: #184f95; --adm-o2: #256abf; --adm-o3: #3987e5; --adm-o4: #86b6ef;
}
.adm-ov.is-loading { opacity: .55; }
.adm-ov h2, .adm-ov h3, .adm-ov h4, .adm-ov p, .adm-ov dl, .adm-ov dd, .adm-ov ul { margin: 0; padding: 0; }
.adm-ov ul { list-style: none; }

.adm-ov-queue { display: flex; flex-direction: column; gap: 10px; }
.adm-ov-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.adm-ov-h2 { color: var(--ink); font-size: 18px; font-weight: 600; }
.adm-ov-hint { color: var(--ink-soft); font-size: 13.5px; }
.adm-ov-queue-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.adm-ov-queue-item { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 68px; padding: 12px 18px; border: 0; border-radius: 18px; background: var(--pv-pink); box-shadow: none; color: var(--pv-on-tone); font: inherit; text-align: left; }
button.adm-ov-queue-item { cursor: pointer; }
button.adm-ov-queue-item:hover { filter: brightness(.97); }
[data-theme="dark"] button.adm-ov-queue-item:hover { filter: brightness(1.12); }
button.adm-ov-queue-item:focus-visible, .adm-ov-period:focus-visible, .adm-ov-svg:focus-visible, .adm-ov-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-ov-queue-val { flex: 0 0 auto; min-width: 1.4ch; font-size: 26px; font-weight: 600; line-height: 1; }
.adm-ov-queue-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-ov-queue-label { font-size: 14px; font-weight: 600; line-height: 1.25; }
.adm-ov-queue-note { color: var(--pv-on-tone-soft); font-size: 12.5px; line-height: 1.25; }
.adm-ov-queue-clear { color: var(--ink-soft); font-size: 13px; line-height: 1.4; }

.adm-ov-totals-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.adm-ov-totals { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 14px 18px; border-radius: 18px; background: var(--surface); }
.adm-ov-totals > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.adm-ov-totals dd { color: var(--ink); font-size: 15px; font-weight: 600; }
.adm-ov-totals dt { color: var(--ink-soft); font-size: 13px; font-weight: 400; }

.adm-ov-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.adm-ov-periods { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.adm-ov-period { min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.adm-ov-period:hover { background: var(--hover); }
.adm-ov-period.is-active { background: var(--ink); color: var(--surface); }
.adm-ov-badge { padding: 5px 12px; border-radius: 999px; background: var(--pv-orange); color: var(--pv-on-tone); font-size: 12.5px; font-weight: 600; }
.adm-ov-notes { max-width: 70rem; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

.adm-ov-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.adm-ov-kpi { min-width: 0; padding: 12px 16px; border-radius: 16px; background: var(--surface); }
.adm-ov-kpi-val { color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.15; }
.adm-ov-kpi-lbl { color: var(--ink-soft); font-size: 13px; line-height: 1.25; }
.adm-ov-kpi-delta { margin-top: 4px; color: var(--ink-soft); font-size: 12px; line-height: 1.25; }

.adm-ov-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.adm-ov-card { display: flex; flex-direction: column; gap: 12px; grid-column: span 12; min-width: 0; padding: 18px 20px; border-radius: 22px; background: var(--surface); }
.adm-ov-span-4 { grid-column: span 4; }
.adm-ov-span-6 { grid-column: span 6; }
.adm-ov-span-8 { grid-column: span 8; }
.adm-ov-card-head { display: flex; flex-direction: column; gap: 2px; }
.adm-ov-card-title { color: var(--ink); font-size: 15.5px; font-weight: 600; }
.adm-ov-card-sub, .adm-ov-card-foot { color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.adm-ov-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px 24px; }
.adm-ov-column { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adm-ov-h4 { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.adm-ov .adm-ov-none { padding: 26px 12px; border: 1.5px dashed var(--pv-dash); border-radius: 14px; color: var(--ink-soft); font-size: 13.5px; text-align: center; }

.adm-ov-plot { min-width: 0; }
.adm-ov-svg { display: block; max-width: 100%; touch-action: pan-y; border-radius: 6px; }
.adm-ov-svg .adm-ov-gridline { stroke: var(--border); stroke-width: 1; }
.adm-ov-svg .adm-ov-base { stroke: var(--ink-soft); stroke-opacity: .45; stroke-width: 1; }
.adm-ov-svg .adm-ov-cross { stroke: var(--ink-soft); stroke-width: 1; pointer-events: none; }
.adm-ov-svg .adm-ov-tick { fill: var(--ink-soft); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.adm-ov-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-soft); font-size: 13px; }
.adm-ov-legend li { display: inline-flex; align-items: center; gap: 6px; }
.adm-ov-swatch { width: 10px; height: 10px; border-radius: 3px; }

.adm-ov-hbars { display: flex; flex-direction: column; gap: 8px; }
.adm-ov-hbar { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-ov-hbar-label { color: var(--ink); font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
.adm-ov-hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-ov-hbar-fill { flex: 0 1 auto; min-width: 3px; max-width: calc(100% - 76px); height: 12px; border-radius: 0 4px 4px 0; }
.adm-ov-hbar:hover .adm-ov-hbar-fill { filter: brightness(1.08); }
.adm-ov-hbar-val { flex: 0 0 auto; color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.adm-ov-seg { display: flex; gap: 2px; width: 100%; height: 28px; }
.adm-ov-seg-part { flex: 1 1 0; display: flex; align-items: center; min-width: 3px; padding-left: 8px; overflow: hidden; border-radius: 4px; color: var(--on, #fff); font-size: 13px; font-weight: 600; white-space: nowrap; }

.adm-ov-details summary { width: fit-content; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.adm-ov-table-wrap { margin-top: 8px; max-height: 260px; overflow: auto; }
.adm-ov-table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.adm-ov-table th, .adm-ov-table td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.adm-ov-table th { color: var(--ink-soft); font-weight: 500; }
.adm-ov-table th:first-child, .adm-ov-table td:first-child { text-align: left; }

.adm-ov-tip { position: fixed; z-index: 2000; max-width: 260px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(15, 12, 30, .16); color: var(--ink); font-size: 13px; pointer-events: none; }
.adm-ov-tip[hidden] { display: none; }
.adm-ov-tip-title { margin-bottom: 4px; color: var(--ink-soft); font-size: 12px; }
.adm-ov-tip-row { display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.adm-ov-tip-key { flex: 0 0 auto; width: 12px; height: 2px; border-radius: 1px; }
.adm-ov-tip-label { color: var(--ink-soft); }

@container (max-width: 980px) {
  .adm-ov-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-ov-span-4, .adm-ov-span-6 { grid-column: span 6; }
  .adm-ov-span-8 { grid-column: span 12; }
}
@container (max-width: 620px) {
  .adm-ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-ov-span-4, .adm-ov-span-6, .adm-ov-span-8 { grid-column: span 12; }
  .adm-ov-queue-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-ov-queue-item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
  .adm-ov-card { padding: 16px; border-radius: 18px; }
  .adm-ov-periods { width: 100%; }
  .adm-ov-period { flex: 1 1 0; padding: 6px 8px; }
}
