/* Ceļteka · Gids — vadības panelis. Papildina gids.css (mainīgie, galvene, pogas). */

body.admin { background:var(--bg); }
.admin-main { max-width:1240px; margin:0 auto; padding:14px 14px 60px; }
.adm-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:6px 0 14px; }
.adm-head h1 { flex:1; min-width:200px; font-size:20px; margin:0; }
.adm-sub { color:var(--muted); font-size:13px; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.row3 { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
@media (max-width:760px) { .row2, .row3 { grid-template-columns:1fr; } }

select, input[type=number], input[type=email], input[type=url], input[type=date] {
  width:100%; padding:9px 11px; font:inherit; font-size:15px; color:var(--text);
  background:var(--bg); border:1px solid var(--line); border-radius:10px;
}
input:focus, select:focus, textarea:focus { outline:2px solid var(--accent); outline-offset:1px; }
.inline { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.inline label { margin:0; text-transform:none; font-size:13.5px; letter-spacing:0; color:var(--text); font-weight:500; }
.mini { padding:6px 10px; font-size:13px; border-radius:8px; }
.danger { color:var(--bad); border-color:color-mix(in srgb, var(--bad) 40%, var(--line)); }
.danger:hover { background:color-mix(in srgb, var(--bad) 10%, transparent); border-color:var(--bad); }

/* ── Maršrutu saraksts ── */
.rtable { width:100%; border-collapse:collapse; font-size:14.5px; }
.rtable th { text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.03em;
             color:var(--muted); padding:8px; border-bottom:1px solid var(--line); }
.rtable td { padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.rtable tr:hover td { background:var(--bg); }
.rtable a { font-weight:600; text-decoration:none; }
.st { display:inline-block; padding:2px 9px; border-radius:999px; font-size:12px; font-weight:650; }
.st.published { background:var(--good-bg); color:var(--good-fg); }
.st.draft { background:var(--warn-bg); color:var(--warn-fg); }
.st.hidden { background:var(--line); color:var(--muted); }
.num { text-align:right; font-variant-numeric:tabular-nums; }

/* ── Redaktora sadaļas ── */
.secs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:0 0 16px; overflow-x:auto; }
.secs button { padding:10px 14px; font:inherit; font-size:14.5px; background:none; border:0;
               border-bottom:2px solid transparent; color:var(--muted); white-space:nowrap; cursor:pointer; }
.secs button[aria-selected=true] { color:var(--accent); border-bottom-color:var(--accent); font-weight:650; }
.lang-tabs { display:flex; gap:5px; flex-wrap:wrap; margin:0 0 10px; }
.lang-tabs button { padding:5px 11px; font:inherit; font-size:13px; border-radius:999px;
                    border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; }
.lang-tabs button[aria-selected=true] { background:var(--accent); color:var(--accent-w); border-color:var(--accent); font-weight:650; }
.lang-tabs button .dot { color:var(--muted); font-size:10px; margin-left:4px; }
.lang-tabs button[aria-selected=true] .dot { color:var(--accent-w); }

/* ── Karte un punkti ── */
.editgrid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr); gap:14px; align-items:start; }
@media (max-width:960px) { .editgrid { grid-template-columns:1fr; } }
.tools { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.tools button[aria-pressed=true] { background:var(--accent); color:var(--accent-w); border-color:var(--accent); }
.emap { height:min(66vh, 560px); border-radius:var(--radius); border:1px solid var(--line); z-index:1; }
.vertex { width:11px; height:11px; margin:-5px 0 0 -5px; border-radius:50%; background:#fff;
          border:2px solid var(--accent); box-shadow:0 1px 3px rgba(0,0,0,.4); cursor:grab; }
.emap.routing { cursor:progress; }
.emap.routing .vertex { opacity:.45; cursor:progress; }
.plist { display:flex; flex-direction:column; gap:6px; }
.prow { display:flex; align-items:center; gap:8px; padding:8px 10px; background:var(--card);
        border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.prow:hover { border-color:var(--accent); }
.prow.sel { border-color:var(--accent); background:var(--good-bg); }
.prow .n { flex:none; width:24px; height:24px; border-radius:50%; background:var(--accent); color:var(--accent-w);
           display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:700; }
.prow .t { flex:1; min-width:0; font-size:14.5px; }
.prow .t small { display:block; color:var(--muted); font-size:12px; }
.prow .ic { flex:none; color:var(--muted); font-size:12px; display:flex; gap:4px; }
.prow .ic b { color:var(--good-fg); }
.arrows { display:flex; flex-direction:column; gap:2px; }
.arrows button { width:22px; height:16px; padding:0; font-size:10px; line-height:1;
                 border:1px solid var(--line); background:var(--card); border-radius:5px; color:var(--muted); cursor:pointer; }

.panel { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px; }
.panel h3 { margin-top:0; }
.gal { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.gal .it { position:relative; width:92px; }
.gal img { width:92px; height:70px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.gal .x { position:absolute; top:2px; right:2px; width:22px; height:22px; border-radius:50%; border:0;
          background:rgba(0,0,0,.6); color:#fff; font-size:12px; line-height:1; cursor:pointer; }
.gal .cap { width:92px; font-size:11px; padding:3px 5px; margin-top:3px; }
.aud { display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line);
       border-radius:10px; margin:6px 0; font-size:13.5px; }
.aud audio { height:32px; max-width:190px; }
.aud .lg { flex:none; font-weight:700; color:var(--accent); min-width:26px; }
.aud .sz { color:var(--muted); font-size:12px; }
.upl { margin:6px 0; font-size:13px; color:var(--muted); }
.upl .bar { height:6px; background:var(--line); border-radius:4px; overflow:hidden; margin-top:4px; }
.upl .bar i { display:block; height:100%; width:0; background:var(--accent); transition:width .2s; }
.drop { border:1px dashed var(--line); border-radius:10px; padding:12px; text-align:center; color:var(--muted);
        font-size:13.5px; cursor:pointer; }
.drop:hover, .drop.over { border-color:var(--accent); color:var(--accent); }

/* ── QR ── */
.qrgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.qrcard { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:12px; text-align:center; }
.qrcard svg { width:100%; height:auto; max-width:190px; background:#fff; border-radius:6px; }
.qrcard b { display:block; margin:8px 0 2px; font-size:14px; }
.qrcard .u { font-size:12px; color:var(--muted); word-break:break-all; }
.qrcard .acts { display:flex; gap:5px; justify-content:center; margin-top:8px; flex-wrap:wrap; }

/* ── Statistika ── */
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-bottom:16px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:11px 13px; }
.kpi b { display:block; font-size:24px; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.kpi span { font-size:12.5px; color:var(--muted); }
.bars { display:flex; align-items:flex-end; gap:2px; height:120px; margin:10px 0 6px; }
.bars .b { flex:1; min-width:3px; background:var(--accent); border-radius:2px 2px 0 0; opacity:.85; position:relative; }
.bars .b:hover { opacity:1; }
.bars .b span { display:none; }
.axis { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); }
.grid7 { display:grid; grid-template-columns:34px repeat(24, 1fr); gap:2px; font-size:10px; color:var(--muted); }
.grid7 i { display:block; height:14px; border-radius:3px; background:var(--line); }
.legend { display:flex; gap:10px; flex-wrap:wrap; font-size:12.5px; color:var(--muted); margin-top:6px; }
.mini-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.mini-table th, .mini-table td { padding:6px 8px; border-bottom:1px solid var(--line); text-align:left; }
.mini-table th { font-size:11px; text-transform:uppercase; color:var(--muted); letter-spacing:.03em; }

.msg { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); z-index:900; padding:11px 16px;
       border-radius:11px; background:var(--text); color:var(--bg); font-size:14px; box-shadow:var(--shadow); }
.msg.bad { background:var(--bad); color:#fff; }
