/* Yönetim paneli (admin.html) */
body.adm { display: block; height: auto; min-height: 100vh; min-height: 100dvh; overflow: auto; }
.adm-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adm-top .brand { display: block !important; color: var(--text); text-decoration: none; }
.adm-top .btn { margin-left: auto; text-decoration: none; color: var(--text); }
.adm-badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; letter-spacing: .3px; }
.adm-main { max-width: 1200px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 8px 16px 40px; }
.adm-gate { padding: 40px 0; text-align: center; }
.adm-gate .btn { text-decoration: none; color: var(--text); margin-top: 8px; }
.adm h3 { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.adm .stats b { font-variant-numeric: tabular-nums; }
.adm .stats small { color: var(--muted); }
.adm-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.adm-chart { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.adm-chart .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.adm-chart .head b { font-size: 14px; } .adm-chart .head span { color: var(--muted); font-size: 12px; }
.adm-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.adm-bars i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; min-height: 1px; opacity: .85; }
.adm-bars i.z { background: var(--line); }
.adm-bars i:hover { opacity: 1; }
.adm-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 4px; }
.adm-sys { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-sys span { background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; font-size: 13px; }
.adm-sys span.on::before { content: '●'; color: var(--ok); margin-right: 6px; }
.adm-sys span.off::before { content: '●'; color: var(--bad); margin-right: 6px; }
.adm-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-filter input { flex: 1 1 220px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-height: 38px; color: inherit; font: inherit; }
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; background: var(--panel); position: sticky; top: 0; }
.adm-table th, .adm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr.click { cursor: pointer; } .adm-table tbody tr.click:hover { background: var(--panel2); }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table td .sub { display: block; color: var(--muted); font-size: 12px; }
.adm-table td.wrap { white-space: normal; min-width: 160px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); margin: 1px 2px 1px 0; }
.tag.ok { border-color: #2c6b41; color: #7fe0a0; } .tag.bad { border-color: #6b2b30; color: #ff8f86; } .tag.warn { border-color: #6b5520; color: #f6cf6a; } .tag.adm { border-color: var(--accent); color: #ffb48a; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.adm-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.adm-kv div { background: var(--panel2); border-radius: 8px; padding: 8px 10px; } .adm-kv label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; } .adm-kv b { font-weight: 600; word-break: break-all; }
@media (max-width: 600px) { #admWho { display: none; } .adm-table { font-size: 13px; } }
