/* Admin console (wireframe 12) and agency verification. */
.admin-shell { display: grid; grid-template-columns: 242px 1fr; min-height: 100vh; background: var(--bg); }
.admin-side { background: #1b1030; color: #cbd5e1; padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-side nav { display: grid; gap: 4px; margin-top: 18px; }
.admin-logo { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 20px/1.1 "DM Sans", sans-serif; padding: 4px 8px 8px; }
.admin-logo:hover { text-decoration: none; }
.admin-side .side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #cbd5e1; text-decoration: none; }
.admin-side .side-item::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.22); }
.admin-side .side-item:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.admin-side .side-item.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-side .side-item.soon { opacity: .5; }
.admin-out { margin-top: auto; text-align: left; padding: 10px 12px; color: #cbd5e1; }
.admin-main { min-width: 0; }
.admin-page { padding: 28px 32px 48px; max-width: 1200px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; display: grid; gap: 6px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { font: 700 32px "DM Sans", sans-serif; }
.table-panel { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: #fafbfc; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.sel td { background: var(--teal-tint); }
.admin-table .right, .credits-table .right { text-align: right; }
.admin-table select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: 500 13px Inter, sans-serif; background: #fff; }
.admin-table .mini-avatar { display: inline-grid; margin-right: 8px; vertical-align: middle; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 11px; background: #eef2f6; color: #475569; border: 0; text-decoration: none; }
.tag.good { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--gold-bg); color: var(--gold); }
.tag.bad { background: #fde8e8; color: #9b1c1c; }
.btn-tag { cursor: pointer; font-family: inherit; }
.btn-tag:disabled { opacity: .5; cursor: default; }
.btn-danger { background: #b42318; }
.btn-danger:hover { background: #912018; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.decision-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.mod-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mod-card { display: flex; gap: 14px; align-items: center; }
.mod-card .thumb, .plan-row.mod .thumb { width: 96px; height: 70px; border-radius: 12px; background-size: cover; background-position: center; flex: none; }
.mod-info { display: grid; gap: 4px; }
.mod-actions { display: flex; gap: 8px; margin-top: 4px; }
.mod-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.mod-controls .f-input { width: 260px; }
.inline-search { display: flex; gap: 8px; }
.inline-search .f-input { width: 260px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }
.credits-table .plus { color: var(--ok); }
.credits-table .minus { color: #9b1c1c; }
.reject-note { color: #9b1c1c; }
.s-rejected { background: #fde8e8; color: #9b1c1c; }

@media (max-width: 900px) {
    .admin-shell, .two-col { grid-template-columns: 1fr; }
    .admin-side { flex-direction: row; flex-wrap: wrap; }
    .admin-side nav { display: flex; flex-wrap: wrap; margin: 0; }
}
