/* GRATA Maintenance - jednotny svetly technicky vzhlad (pismo, tlacidla, stitky, tabulky, formulare) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/static/fonts/jbmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/static/fonts/jbmono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #f3f5f9; --bg2: #ffffff; --card: #ffffff; --card2: #f7f9fc; --hi: #eef2f8;
  --border: #dde3ec; --line: #dde3ec; --border-strong: #c9d2e0;
  --text: #172033; --text2: #3a465c; --muted: #637089; --faint: #8a95a8;
  --azure: #1768d8; --blue: #1f6feb; --blue-hi: #1a5fd0; --blue-bg: #e8f0fe; --blue-line: #b9d0f8;
  --ok: #12805c; --ok-bg: #e2f4ec; --ok-line: #b5e2cf;
  --bad: #c9283e; --bad-bg: #fdeaed; --bad-line: #f3bcc5;
  --warn: #a86400; --warn-bg: #fff1d6; --warn-line: #f2d49a;
  --neutral-bg: #eceff5; --neutral-line: #d8dfea;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(23, 32, 51, .05);
}
html, body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); font-feature-settings: "cv11", "ss03"; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.005em; color: var(--text); }
a { color: var(--azure); }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
code, pre, kbd, samp, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--hi); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
pre { background: #f6f8fb; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
html, body, * { scrollbar-color: #c3ccdb var(--bg); }
*::-webkit-scrollbar-track { background: var(--bg); } *::-webkit-scrollbar-thumb { background: #c3ccdb; border-color: var(--bg); } *::-webkit-scrollbar-thumb:hover { background: #a9b5c9; }
*::-webkit-scrollbar-corner { background: var(--bg); }

/* ---------- karty ---------- */
.card, .app .card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.kpi { background: var(--card); border-color: var(--border); box-shadow: var(--shadow); border-radius: 10px; }
.kpi span { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.kpi b { color: var(--text); font-weight: 650; }
.kpi.ok b { color: var(--ok); } .kpi.bad b { color: var(--bad); }
a.kpi:hover { border-color: var(--blue); }
.stat b { font-weight: 650; } .stat.ok b { color: var(--ok); } .stat.bad b { color: var(--bad); }

/* ---------- tlacidla: jedna sada ---------- */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text2); font: 600 13px/1 var(--sans); cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { background: #f1f4fa; border-color: #b4bfd1; color: var(--text); text-decoration: none; }
.btn:active { background: #e7ecf5; }
.btn:focus-visible, .fchip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn.primary, a.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover, a.btn.primary:hover { background: var(--blue-hi); border-color: var(--blue-hi); color: #fff; filter: none; }
.btn.danger { background: #fff; border-color: var(--bad-line); color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: #e99aa7; color: #a81f33; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hi); color: var(--text); }
.btn.sm, a.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; background: #f6f7fa; }
.btn .ico { width: 15px; height: 15px; }
.range .btn.primary { background: var(--blue-bg); border-color: var(--blue-line); color: #0f4fb8; }
.range .btn.primary:hover { background: #dbe8fd; }

/* filtre a prepinace = tlacidla */
.fchip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--border-strong); background: #fff; color: var(--text2); font: 600 12.5px/1 var(--sans); cursor: pointer; }
.fchip:hover { background: #f1f4fa; color: var(--text); border-color: #b4bfd1; }
.fchip.on { background: var(--blue-bg); border-color: var(--blue-line); color: #0f4fb8; }
.seg { border-color: var(--border-strong); background: #fff; border-radius: 8px; }
.seg label { color: var(--text2); font-weight: 600; font-size: 13px; padding: 7px 18px; }
.seg input:checked + label { background: var(--blue); color: #fff; }

/* ---------- stitky: jedna sada ---------- */
.pill, .chip, .badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 600 12px/1 var(--sans);
  background: var(--neutral-bg); color: var(--text2); border: 1px solid var(--neutral-line); white-space: nowrap; margin: 0; min-width: 0; }
.pill.ok, .chip.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill.warn, .pill.warning, .chip.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill.bad, .pill.error, .pill.critical, .chip.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.pill.info, .pill.blue { background: var(--blue-bg); color: #0f4fb8; border-color: var(--blue-line); }
.secscore { height: 24px; padding: 0 12px; font-size: 13px; }
.chip { height: 26px; padding: 0 10px; }
.chip .ico { width: 14px; height: 14px; }
a.chip:hover { filter: none; background: var(--hi); text-decoration: none; }
a.chip.bad:hover { background: #fbd9de; }
/* pocitadla: plna farba */
.badge, .nbadge { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; justify-content: center; font-size: 11.5px; font-weight: 700; margin-left: 6px; border: 0; background: #d6dde9; color: #2a3550; }
.badge.warn { background: #f4b740; color: #3a2600; }
.badge.bad, .nbadge { background: #d6364b; color: #fff; }
.nbadge { margin-left: auto; }
.dot.on { background: #16a571; box-shadow: none; } .dot.off { background: var(--bad); }
dl.kv .good { color: var(--ok); } dl.kv .badv { color: var(--bad); } dl.kv .warnv { color: var(--warn); }

/* ---------- formulare ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=search], input[type=url], select, textarea {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); font: 400 14px/1.4 var(--sans); padding: 7px 11px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], select { height: 34px; }
input::placeholder, textarea::placeholder { color: #98a3b6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 235, .16); }
label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
label.opt { color: var(--text); font-size: 14px; }
.chk { color: var(--text); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }
.switch .slider { background: #cfd6e2; border-color: #c3ccdb; }
.switch .slider::after { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked + .slider { background: var(--blue); border-color: var(--blue); }
.search .ico { color: var(--faint); }

/* ---------- tabulky ---------- */
th { background: var(--card2); color: var(--muted); font: 600 11.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 9px 12px; border-bottom: 1px solid var(--border); }
td { padding: 10px 12px; border-bottom: 1px solid #ebeff5; color: var(--text); }
.app th { padding: 9px 12px; } .app td { padding: 10px 12px; }
tr:last-child td { border-bottom: 0; }
.app tbody tr:hover td { background: #f6f8fc; }
.totalrow td { background: var(--card2); border-top: 1px solid var(--border); }
.tablewrap { border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.sitebox .tablewrap { margin: 0 0 12px; padding: 0; }
.tablewrap table { border: 0; }
.app table { font-size: 13.5px; }
table a b, td a { font-weight: 600; }
meter, meter::-webkit-meter-bar { background: #e3e8f0; }
meter::-webkit-meter-optimum-value { background: #16a571; } meter::-webkit-meter-suboptimum-value { background: #f0a020; } meter::-webkit-meter-even-less-good-value { background: #d6364b; }
meter::-moz-meter-bar { background: #16a571; } meter:-moz-meter-sub-optimum::-moz-meter-bar { background: #f0a020; } meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: #d6364b; }
.appicon.ph { background: var(--blue-bg); color: #0f4fb8; }
.alertlist li { border-bottom-color: #ebeff5; }
.innertable td { border: 0; padding: 2px 14px 2px 0; }

/* ---------- hlasenia ---------- */
.alert { background: var(--bad-bg); border: 1px solid var(--bad-line); color: #8f1c30; }
.alert.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #6d4300; }
.alert.okbox { background: var(--ok-bg); border-color: var(--ok-line); color: #0c5d41; }
.finding { background: #fff; border-color: var(--border); }
.finding.sev-critical { border-left-color: #d6364b; } .finding.sev-warning { border-left-color: #f0a020; }
.finding summary { color: var(--azure); }
.comment { border-top-color: var(--border); }

/* ---------- grafy a bloky ---------- */
.chart, .netbox { background: #fff; border-color: var(--border); border-radius: 8px; }
.chart h4 { color: var(--muted); }
.axis { stroke: #e3e8f0; } .lbl { fill: #6b7788; }
.sp-dl { stroke: #0a8fd6; } .sp-ul { stroke: #d98a00; }
.netbig .dl b { color: #0a79b8; } .netbig .ul b { color: #b87400; }
.legend { color: var(--muted); }
details.popform[open] { background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.netform, .netsec { border-top-color: var(--border); }
.termbox { background: #0d1424; border-color: #1c2b47; }
.qrbox { border: 1px solid var(--border); }

/* ---------- okna a panel akcii ---------- */
.modal-overlay { background: rgba(23, 32, 51, .45); backdrop-filter: blur(2px); }
.modal { background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(23, 32, 51, .25); border-radius: 14px; }
.modal-msg { color: var(--text); }
.act-card { background: #fff; border-color: var(--border); border-left-color: var(--blue); box-shadow: 0 8px 24px rgba(23, 32, 51, .16); }
.act-card.ok { border-left-color: #16a571; } .act-card.err { border-left-color: #d6364b; } .act-card.wait { border-left-color: #f0a020; }
.act-title { color: var(--text); } .act-text { color: var(--text2); }
.act-card.ok .act-text { color: var(--ok); } .act-card.err .act-text { color: var(--bad); }
.act-bar { background: #e3e8f0; } .act-bar i { background: var(--blue); }
.act-x, .act-host, .act-more { color: var(--muted); }
.login { background: #fff; }
footer { color: var(--muted); } footer b { color: var(--text2); }

.app .search input[type=text] { padding-left: 34px; }

/* ---------- kompaktne hlavicky, nastavenia a formulare ---------- */
.app main { padding-top: 16px; }
.app h2 { font-size: 17px; margin: 0 0 4px; }
.app h2 + p.muted, .app h2 + p.small { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; }
.app .card { padding: 12px 16px; margin-bottom: 10px; }
.app .card > h3:first-child { font-size: 14px; margin: 0 0 6px; }
.app .card > p.muted.small, .app .card > form + p.muted.small { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; }
.app .card h3 + p.muted.small { margin: 0 0 8px; }
.app h4 { margin: 12px 0 6px; font-size: 13px; }
.app .subh { margin: 14px 0 4px; }

.app .btn, .app button.btn, .app a.btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.app .btn.sm, .app a.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.app input[type=text], .app input[type=email], .app input[type=password], .app input[type=number], .app input[type=time], .app input[type=search], .app input[type=url], .app select {
  height: 30px; padding: 3px 10px; font-size: 13px; border-radius: 7px; }
.app select { padding-right: 24px; }
.app textarea { padding: 6px 10px; font-size: 13px; border-radius: 7px; }
.app label { font-size: 12px; }
.app label > input, .app label > select, .app label > textarea { margin-top: 3px; }
.fchip { height: 26px; padding: 0 10px; font-size: 12px; }
.seg label { padding: 5px 14px; font-size: 12.5px; }
.pill { height: 20px; font-size: 11.5px; padding: 0 7px; }
.chip { height: 24px; }

/* nastavenia v jednom rade: ovladace nezaberaju celu sirku */
.app .ipgrid { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin: 0; }
.app .ipgrid > label, .app .ipgrid > div { margin: 0; flex: 0 1 auto; }
.app .ipgrid label > input, .app .ipgrid label > select { width: 210px; max-width: 100%; margin-top: 3px; }
.app .ipgrid label > input[type=number], .app .ipgrid label > input[type=time] { width: 120px; }
.app .ipgrid label > input[type=checkbox] { width: auto; }
.app .ipgrid label > textarea { width: 100%; }
.app .ipgrid .wide { flex: 1 1 100%; }
.app .ipgrid > div { font-size: 12px; line-height: 1.6; color: var(--muted); }
.app .ipgrid > div .chk { margin-right: 10px; }
.app .ipgrid > div .chk, .app .ipgrid > label.opt { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--text); font-size: 13px; }
.app .ipgrid label.opt { margin-bottom: 4px; }
.app .ipgrid .fbtns { margin: 0; }
.app .ipgrid .wide:not(label):not(.fbtns) { flex: 1 1 100%; }
.app .webform .row2 { gap: 10px; margin: 6px 0; }

/* hlavicka zariadenia, ukazovatele, tabulky: tesnejsie */
.devhead { padding: 10px 16px; margin-bottom: 10px; }
.crumbs { margin-bottom: 2px; font-size: 12px; }
.dh-top h2 { font-size: 19px; }
.facts { margin-top: 8px; gap: 6px 20px; }
.facts dd { font-size: 13px; }
details.manage { margin-top: 8px; padding-top: 8px; }
.manage-body { padding-top: 8px; gap: 10px 24px; }
.kpis { gap: 10px; margin-bottom: 10px; }
.kpi { padding: 8px 14px; }
.kpi b { font-size: 24px; }
.toolbar { margin-bottom: 10px; gap: 8px; }
.sitebox > .site-head { padding: 8px 16px; }
.sitebox .netsec { padding: 10px 16px 2px; }
.sitebox .netsec .site-head { margin-bottom: 6px; }
.sitebox .tablewrap { margin-bottom: 8px; }
.site-head h2 { font-size: 16px; } .site-head h3 { font-size: 14px; }
.topbar { height: 48px; } .ptitle { font-size: 16px; }
.subnav { top: 48px; margin-bottom: 12px; }
.subnav a { padding: 9px 9px; font-size: 13px; }
th { padding: 7px 12px; } td { padding: 8px 12px; }
.app th { padding: 7px 12px; } .app td { padding: 8px 12px; }
.app .hwgrid, .app .charts, .app .chartgrid { gap: 10px; }
.app .kv { gap: 8px 18px; margin-top: 6px; }
.app .tabs { margin-bottom: 10px; }
.app .tabs a { padding: 7px 12px; }
.app .site-head { margin-bottom: 6px; }

.app .ipgrid label > input[type=text], .app .ipgrid label > input[type=search] { width: 270px; }
.app .ipgrid label > select { width: 250px; }

/* ---------- panel s hlavickou (jedno okno: nastavenia + vysledky) ---------- */
.app .panel { padding: 0; overflow: hidden; }
.cardhead { background: #eef3fa; border-bottom: 1px solid var(--border); padding: 10px 16px; }
.cardhead:last-child { border-bottom: 0; }
.hrow { display: flex; flex-wrap: wrap; gap: 10px 0; align-items: flex-end; }
.hrow > form { padding-right: 22px; }
.hrow > form.hsep { border-left: 1px solid var(--border-strong); padding-left: 22px; padding-right: 0; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hint b { color: var(--text2); }
.resbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-strong); }
.resbar[hidden] { display: none; }
.resbar .sum { font-size: 13px; font-weight: 500; color: var(--text); }
.app .ipgrid .srch input { width: 280px; }
.panelbody { padding: 10px 16px 4px; }
.panelbody .tablewrap { margin-bottom: 6px; }
.cardhead select, .cardhead input[type=text], .cardhead input[type=search] { background: #fff; }

/* ---------- nazov stranky s piktogramom, ikony v zalozkach ---------- */
.topbar { height: 52px; } .subnav { top: 52px; }
.ptitle { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ptico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-bg); color: var(--blue); flex: none; }
.ptico .ico { width: 18px; height: 18px; }
.pttext { overflow: hidden; text-overflow: ellipsis; }
.subnav a .ico { width: 15px; height: 15px; margin-right: 5px; color: var(--faint); flex: none; }
.subnav a:hover .ico { color: var(--text2); }
.subnav a.active .ico { color: var(--blue); }

/* konzola: dve polovice okna */
.termgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.termpane { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.termhead { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.termhead .btn { margin-left: auto; }
.termgrid .termbox { height: calc(100vh - 230px); min-height: 340px; }
.termopen { display: flex; align-items: center; justify-content: center; height: calc(100vh - 230px); min-height: 340px; border: 2px dashed var(--border-strong, var(--border)); border-radius: 12px; }
.termopen[hidden] { display: none; }
.termbox ~ .termopen { height: auto; min-height: 0; border: 0; justify-content: flex-start; }
@media (max-width: 1000px) { .termgrid { grid-template-columns: 1fr; } .termgrid .termbox, .termopen { height: 60vh; } }

/* prehľad (dashboard) */
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi small { color: var(--muted); font-size: 12px; line-height: 1.3; min-height: 16px; }
.kpi small .bad { color: var(--bad); font-style: normal; font-weight: 600; }
.kpi.warn b { color: var(--warn); }
a.kpi { color: inherit; text-decoration: none; }
a.kpi:hover { border-color: var(--border-strong); background: var(--card2); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 12px; align-items: start; }
.dashmain, .dashside { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sitebox .site-head h2 a { color: var(--text); text-decoration: none; }
.sitebox .site-head h2 a:hover { color: var(--azure); }
.sitebox .site-head .inline { display: flex; align-items: center; gap: 8px; }
.nettable td, .nettable th { white-space: nowrap; }
.nettable td:first-child { white-space: normal; }
.nettable meter { width: 64px; vertical-align: middle; }
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dhead h3 { margin: 0; font-size: 14px; }
.acute { list-style: none; margin: 0; padding: 0; }
.acute li { display: flex; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.acute li:last-child { border-bottom: 0; }
.acute .adot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--faint); }
.acute li.bad .adot { background: var(--bad); }
.acute li.warn .adot { background: #f0a020; }
.acute li.info .adot { background: var(--blue); }
.acute .atext { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.acute .atext a { color: var(--text); font-weight: 650; text-decoration: none; }
.acute .atext a:hover { color: var(--azure); }
.acute .awhere { color: var(--muted); font-size: 12px; }
.acute .allok { color: var(--ok); padding: 14px 16px; }
.acute .more { padding: 8px 16px; font-size: 12.5px; }
.trecent { border-top: 1px solid var(--border); }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.tstats > div { padding: 10px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.tstats > div:last-child { border-right: 0; }
.tstats b { font-size: 22px; line-height: 1.15; }
.tstats .bad b { color: var(--bad); }
.tstats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tbars { padding: 8px 16px 12px; display: grid; grid-template-columns: 84px 1fr 26px; gap: 6px 10px; align-items: center; font-size: 12.5px; }
.tbars h4 { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.tbars h4:first-child { margin-top: 0; }
.tbars meter { width: 100%; height: 8px; }
.tbars b { text-align: right; }
.tempty { padding: 14px 16px; margin: 0; }
@media (max-width: 1350px) { .dash { grid-template-columns: minmax(0, 1fr); } .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* prehľad v2: jedna tabuľka, štyri dlaždice */
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.four .kpi { padding: 12px 18px; }
.kpis.four .kpi b { font-size: 30px; }
.kpis.four .kpi small { font-size: 12.5px; }
.tablecard { overflow: hidden; min-width: 0; }
.tabhead { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #eef3fa; border-bottom: 1px solid var(--border); }
.tabhead h3 { margin: 0; font-size: 14px; }
.tabhead .btn { margin-left: auto; }
.tablecard .tablewrap { margin: 0; padding: 0; border: 0; border-radius: 0; }
.treetable { width: 100%; border-collapse: collapse; }
.treetable th { padding: 8px 12px; }
.treetable td { padding: 7px 12px; border-top: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.treetable td:first-child { white-space: normal; }
.treetable .siterow td { background: var(--card2); border-top: 1px solid var(--border-strong); padding-top: 9px; padding-bottom: 9px; font-weight: 650; }
.treetable .siterow td:first-child a { color: var(--text); font-size: 14.5px; text-decoration: none; }
.treetable .siterow td:first-child a:hover { color: var(--azure); }
.treetable tbody tr.siterow:first-child td { border-top: 0; }
.treetable .netrow td:first-child { padding-left: 34px; position: relative; font-weight: 500; }
.treetable .netrow td:first-child::before { content: ""; position: absolute; left: 18px; top: 50%; width: 9px; height: 1px; background: var(--border-strong); }
.treetable .netrow td:first-child::after { content: ""; position: absolute; left: 18px; top: 0; bottom: 50%; width: 1px; background: var(--border-strong); }
.treetable meter { width: 70px; vertical-align: middle; }
.treetable .pct { display: inline-block; width: 42px; margin-left: 6px; font-size: 12.5px; }
.updline { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; background: var(--card2); }
.updline .adot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--blue); }
.updline a { color: var(--text); font-weight: 650; text-decoration: none; }
.dash { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1350px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tablecard, .card.tablecard { padding: 0; }

/* prehľad v3: pozornosť a tikety v polovici šírky nad tabuľkou */
.dashtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 12px; }
.card.panel.big { display: flex; flex-direction: column; min-width: 0; }
.panel.big .cardhead { padding: 12px 18px; }
.panel.big .dhead h3 { font-size: 15px; }
.panel.big .acute li { padding: 11px 18px; gap: 12px; align-items: center; }
.panel.big .acute .atext { flex: 1; font-size: 14px; }
.panel.big .acute .adot { margin-top: 0; width: 10px; height: 10px; }
.acute .ameta { flex: none; max-width: 42%; text-align: right; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.panel.big .updline { padding: 12px 18px; font-size: 14px; align-items: center; margin-top: auto; }
.panel.big .updline .adot { margin-top: 0; width: 10px; height: 10px; }
.panel.big .tstats b { font-size: 30px; }
.panel.big .tstats > div { padding: 12px 18px; }
.panel.big .tstats span { font-size: 11px; }
.tcols { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); flex: 1; }
.tcols .tbars { padding: 14px 18px; align-content: start; border-right: 1px solid var(--border); }
.tcols .trecent { border-top: 0; }
.tempty { display: flex; flex-direction: column; gap: 4px; padding: 26px 18px; font-size: 14px; flex: 1; justify-content: center; }
.tempty b { font-size: 15px; color: var(--ok); }
@media (max-width: 1150px) { .dashtop { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .tcols { grid-template-columns: minmax(0, 1fr); } .tcols .tbars { border-right: 0; border-bottom: 1px solid var(--border); } }
.treetable meter { width: 110px; }

/* bočný panel: tmavomodrý s prechodom (modrá z loga) */
.side { background: linear-gradient(185deg, #0f3282 0%, #0a2461 48%, #07194a 100%); border-right: 0; color: #cfe0ff;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .05), 6px 0 28px rgba(7, 25, 74, .16); scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.side .brand { padding: 16px 12px 16px; margin: 0 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); gap: 12px; }
.side .brand .word b { color: #fff; letter-spacing: .04em; }
.side .brand .word small { color: #8fb4f5; }
.side .brand img { filter: drop-shadow(0 2px 8px rgba(25, 194, 255, .35)); }
.side .sgroup { color: #7ea6ee; font-size: 10.5px; letter-spacing: .14em; padding: 18px 12px 7px; }
.side .snav a { color: #d3e2ff; padding: 9px 12px; border-radius: 9px; transition: background .12s, color .12s; }
.side .snav a .ico { color: #8fb4f5; transition: color .12s; }
.side .snav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side .snav a:hover .ico { color: #fff; }
.side .snav a.on { background: linear-gradient(90deg, rgba(25, 194, 255, .26), rgba(42, 108, 255, .34)); color: #fff; font-weight: 650;
  box-shadow: inset 3px 0 0 #19c2ff, 0 1px 0 rgba(255, 255, 255, .05); }
.side .snav a.on .ico { color: #5fdcff; }
.side .nbadge { box-shadow: 0 0 0 2px rgba(7, 25, 74, .55); }
.side .sfoot { border-top: 1px solid rgba(255, 255, 255, .12); padding: 12px 0 4px; }
.side .suser, .side .slogout { color: #bcd2fa; padding: 9px 12px; }
.side .suser:hover, .side .slogout:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side .suser .pill.ok { background: rgba(52, 211, 153, .16); color: #7ff0c2; border-color: rgba(52, 211, 153, .4); }
.side .powered { color: #7ea6ee; padding: 10px 12px 2px; }
.side .powered b { color: #d3e2ff; }

/* profil */
.profhead { display: flex; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 12px; flex-wrap: wrap; }
.avatar { flex: none; width: 58px; height: 58px; border-radius: 15px; background: linear-gradient(135deg, #19c2ff, #2a6cff); color: #fff;
  font: 700 22px/58px var(--sans); text-align: center; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(42, 108, 255, .28); }
.pid h2 { margin: 0; font-size: 21px; }
.pmeta { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pmsg { margin: 0 0 12px; padding: 10px 16px; border-radius: 8px; font-size: 13.5px; border: 1px solid; }
.pmsg.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pmsg.err { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.profgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.profcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pbody { padding: 14px 18px 18px; }
.pbody p { margin: 0 0 10px; }
.pform { display: grid; gap: 12px; max-width: 460px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.fld input { font-weight: 400; width: 100%; }
.pform .hint { margin: 0; }
.subh { margin: 14px 0 6px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.subh:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .pill { text-decoration: none; height: 24px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.plist li:last-child { border-bottom: 0; }
.plist li > a { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist li > span:last-child { flex: none; text-align: right; }
@media (max-width: 1000px) { .profgrid { grid-template-columns: minmax(0, 1fr); } .pmeta { margin-left: 0; } }
.pform { gap: 10px; }
.pform .fld { gap: 4px; }
.pform .fld input { margin: 0; }
.fld input:disabled { background: var(--hi); color: var(--muted); cursor: not-allowed; }
.plist li > span:last-child a { margin-left: 10px; }
.oscode { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text2);
  background: var(--hi); border: 1px solid var(--border); border-radius: 6px; padding: 1px 8px; cursor: help; }
.toolbar select[data-filter-site], .toolbar select[data-filter-net] { min-width: 150px; max-width: 240px; height: 30px; font-size: 13px; }
.toolbar select.active { background: var(--blue-bg); border-color: var(--blue-line); color: #0f4fb8; font-weight: 600; }

/* ---- Udrzba: hlavicka, popup okna, wizard planu ---- */
[hidden] { display: none !important; }
.mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.mhead h2 { margin: 0 0 2px; }
.mhead p { margin: 0; max-width: 640px; }
.mbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.mbtns .btn { display: inline-flex; align-items: center; gap: 6px; }
.mbtns .ico { width: 15px; height: 15px; }
details.howto { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
details.howto > summary { cursor: pointer; color: var(--azure); font-weight: 600; width: fit-content; }
details.howto p { margin: 8px 0 0; max-width: 820px; line-height: 1.55; }
.cardhead { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 6px; }
.cardhead h3 { margin: 0; font-size: 15px; }
.mplans td { vertical-align: top; }
.mplans tr.off > td { opacity: .6; }
.mplans .chip { margin: 0 4px 4px 0; }
/* akcie planu pod sebou, aby tabulka nepretekala do strany */
.mplans td.actions { width: 1%; }
.mplans .pacts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mplans .pacts form.inline { margin: 0; }
.mplans .prun { display: flex; gap: 6px; align-items: center; }
.mplans .prun select { width: auto; min-width: 0; padding-top: 4px; padding-bottom: 4px; }
.mplans .pedit { display: flex; gap: 6px; }
/* odznak bezicej udrzby v menu: modry, jemne pulzuje */
.nbadge[hidden] { display: none !important; }
.side .nbadge.run { position: relative; overflow: visible; }
.side .nbadge.run::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #60a5fa;
  animation: nring 1.8s ease-out infinite; pointer-events: none; }
@keyframes nring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.side .nbadge.run { background: #3b82f6; color: #fff; box-shadow: none; animation: none;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0 7px; font-variant-numeric: tabular-nums; }
/* priebeh behu udrzby */
.rcell { min-width: 320px; }
.rhead { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.rnow { font-weight: 600; }
.rprog { height: 6px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin: 5px 0 6px; }
.rprog i { display: block; height: 100%; width: 0; background: #2563eb; transition: width .4s; }
.rprog i.p0 { width: 0%; }
.rprog i.p5 { width: 5%; }
.rprog i.p10 { width: 10%; }
.rprog i.p15 { width: 15%; }
.rprog i.p20 { width: 20%; }
.rprog i.p25 { width: 25%; }
.rprog i.p30 { width: 30%; }
.rprog i.p35 { width: 35%; }
.rprog i.p40 { width: 40%; }
.rprog i.p45 { width: 45%; }
.rprog i.p50 { width: 50%; }
.rprog i.p55 { width: 55%; }
.rprog i.p60 { width: 60%; }
.rprog i.p65 { width: 65%; }
.rprog i.p70 { width: 70%; }
.rprog i.p75 { width: 75%; }
.rprog i.p80 { width: 80%; }
.rprog i.p85 { width: 85%; }
.rprog i.p90 { width: 90%; }
.rprog i.p95 { width: 95%; }
.rprog i.p100 { width: 100%; }
.rprog.paused i { background: #f59e0b; }
.rstep.paused { background: #fff5e3; border-color: #f3d39a; color: #92400e; font-weight: 600; }
/* bežiaci plan v zozname planov */
.plive { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #eef4ff; border: 1px solid #c9dafc; color: #1d4ed8; max-width: 300px; }
.plive .rprog { margin: 5px 0 0; }
.plive.paused { background: #fff7e8; border-color: #f3d39a; color: #92400e; }
.plive.paused .rprog i { background: #f59e0b; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2563eb; margin-right: 6px; position: relative; vertical-align: middle; }
.pdot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #60a5fa; animation: nring 1.8s ease-out infinite; }
.plive.paused .pdot { background: #f59e0b; }
.plive.paused .pdot::after { display: none; }
.rsteps { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.rstep { font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 10px; border: 1px solid #e2e8f0; color: #94a3b8; background: #fff; white-space: nowrap; }
.rstep.ok { background: #e9f7ef; border-color: #b9e4c9; color: #166534; }
.rstep.warn { background: #fff5e3; border-color: #f3d39a; color: #92400e; }
.rstep.bad { background: #fdecec; border-color: #f3b8b8; color: #991b1b; }
.rstep.cur { background: #e8f0fe; border-color: #8fb0f3; color: #1d4ed8; font-weight: 600; animation: rpulse 1.6s ease-in-out infinite; }
@keyframes rpulse { 50% { box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); } }
.btn.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }

dialog.dlg { border: 0; padding: 0; border-radius: 14px; background: #fff; color: var(--text); width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 32px); box-shadow: 0 24px 60px rgba(23, 32, 51, .28); overflow: hidden; }
dialog.dlg.dlg-wide { width: min(780px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(23, 32, 51, .45); backdrop-filter: blur(2px); }
dialog.dlg[open] { display: flex; flex-direction: column; }
dialog.dlg > form, dialog.dlg > .dform { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; max-height: calc(100vh - 32px); }
.dhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--border); }
.dhead h3 { margin: 0; font-size: 16px; }
.dclose { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 6px; }
.dclose:hover { color: var(--text); background: var(--hi); }
.dbody { padding: 14px 18px; overflow: auto; min-height: 300px; flex: 1 1 auto; }
.dbody h4 { margin: 14px 0 8px; font-size: 13.5px; }
.dbody h4:first-child { margin-top: 0; }
.dfoot { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--border); background: var(--card2); }
.dfoot .grow { flex: 1; }
.wizerr { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 10px; }
.dgrid label { display: block; }
.dgrid .span2 { grid-column: 1 / -1; }
.dgrid input, .dgrid select { width: 100%; }

.wsteps { list-style: none; display: flex; gap: 0; margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--card2); }
.wsteps li { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); cursor: pointer; position: relative; padding-right: 8px; }
.wsteps li + li::before { content: ""; position: absolute; left: -10px; top: 50%; width: 14px; border-top: 1px solid var(--border-strong); }
.wsteps li i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); font-size: 11.5px; font-weight: 700; background: #fff; flex: 0 0 auto; }
.wsteps li.on { color: var(--text); font-weight: 650; }
.wsteps li.on i { background: var(--blue); border-color: var(--blue); color: #fff; }
.wsteps li.done { color: var(--text2); }
.wsteps li.done i { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }

.optcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.optcards.one { grid-template-columns: 1fr; }
.optcard { position: relative; display: block; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px 10px 38px; cursor: pointer; background: #fff; margin: 0; }
.optcard:hover { border-color: #9db6e6; background: #fafcff; }
.optcard input { position: absolute; left: 12px; top: 13px; margin: 0; width: 16px; height: 16px; }
.optcard .oc-t { display: block; font-weight: 650; font-size: 13px; color: var(--text); }
.optcard .oc-d { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.optcard:has(input:checked) { border-color: var(--blue); background: var(--blue-bg); }
.deferbox { display: flex; gap: 14px; margin-top: 10px; }
.deferbox input { width: 100px; }

.trow { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.trow .grow { flex: 1; min-width: 200px; }
.trow .grow input { width: 100%; }
.trow input[type=search] { width: 220px; }
.tcount { margin-left: auto; }
.targets { border: 1px solid var(--border); border-radius: 10px; max-height: 330px; overflow: auto; background: #fff; }
.tgroup { padding: 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--card2); border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.trowi { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; margin: 0; font-size: 13px; }
.trowi:last-child { border-bottom: 0; }
.trowi:hover { background: #f7faff; }
.trowi input { margin: 0; width: 16px; height: 16px; }
.trowi .tt { flex: 1; min-width: 0; }
.trowi .mono-s { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.fld { margin: 0 0 14px; }
.fld > .flab { display: block; font-size: 12px; font-weight: 650; color: var(--text2); margin-bottom: 6px; }
.fld label.opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin: 0 0 6px; }
.daychips { display: flex; gap: 6px; flex-wrap: wrap; }
.dchip { margin: 0; cursor: pointer; }
.dchip input { position: absolute; opacity: 0; pointer-events: none; }
.dchip span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); font-weight: 650; font-size: 13px; background: #fff; color: var(--text2); }
.dchip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.dchip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.timerow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.timerow input[type=time] { width: 120px; }
.timerow input[type=number] { width: 120px; }

.wsum { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 13px; }
.wsum dt { color: var(--muted); font-weight: 600; }
.wsum dd { margin: 0; color: var(--text); }
.sumchips { display: flex; flex-wrap: wrap; gap: 5px; }
.wwarns { display: grid; gap: 6px; margin-bottom: 12px; }
.wwarn { border-radius: 8px; padding: 8px 12px; font-size: 12.5px; border: 1px solid var(--blue-line); background: var(--blue-bg); color: #0f4fb8; }
.wwarn.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.wwarn.bad { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }

@media (max-width: 640px) {
  .optcards { grid-template-columns: 1fr; }
  .wsteps li span { display: none; }
  .dgrid { grid-template-columns: 1fr; }
  .wsum { grid-template-columns: 1fr; }
}
#dlg-wiz .dbody { height: min(540px, calc(100vh - 215px)); min-height: 0; }
.timerow .arrow { align-self: flex-end; padding-bottom: 6px; }

/* nastroje udrzby (wizard krok 1-2, vysledky behov) */
.tgrp{margin:14px 0 6px;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#8a94a6)}
.toolpresets{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:4px}
.tcfg{border:1px solid var(--line,#26324a);border-radius:10px;padding:12px 14px;margin:0 0 12px}
.tcfg-h{font-weight:600;margin-bottom:8px}
.tcfg .opt{display:flex;margin:6px 0}
.tnum{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:.85rem}
.tnum input,.tnum select{max-width:340px}
.toolres{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}

/* zdravie zariadeni */
.hsum{display:flex;gap:6px;flex-wrap:wrap}
.hlth td{vertical-align:top}
.hhist{display:inline-flex;gap:3px;align-items:center}
.hd{display:inline-block;width:9px;height:9px;border-radius:50%;background:#c4ccda}
.hd.ok{background:#16a571}.hd.warn{background:#f4b740}.hd.bad{background:#d6364b}.hd.info{background:#6b9bd8}

/* detail zariadenia: skupiny zalozok, suhrn, zdravie, casova os */
.dh-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; position: relative; }
.amenu { position: relative; }
.amenu > summary { list-style: none; cursor: pointer; }
.amenu > summary::-webkit-details-marker { display: none; }
.amenu-body { position: absolute; right: 0; top: 38px; width: 360px; max-width: 92vw; background: var(--card); border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, .18); padding: 6px; z-index: 30; }
.amenu .mg { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 10px 4px; }
.amenu .mi { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font-weight: 500; }
.amenu .mi:hover { background: var(--hi); }
.amenu .mi .pill { margin-left: auto; }
.amenu .mrow { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; }
.gtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 0; }
.gtab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; font-weight: 600; color: var(--text2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gtab:hover { color: var(--text); background: var(--hi); border-radius: 8px 8px 0 0; text-decoration: none; }
.gtab.active { color: var(--azure); border-bottom-color: var(--blue); }
.gtab .ico { width: 16px; height: 16px; }
.gsub { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.schip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 16px; background: #fff;
  color: var(--text2); font-weight: 600; font-size: 13px; text-decoration: none; }
.schip:hover { background: var(--hi); text-decoration: none; color: var(--text); }
.schip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.layerline { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; }
.roline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: var(--blue-bg); border: 1px solid var(--blue-line); border-radius: 10px; padding: 10px 14px; color: #0f4fb8; font-weight: 500; margin-bottom: 14px; }
.roline .btn { margin-left: auto; }
.devbody .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.devbody .kpi { padding: 12px 16px; }
.devbody .kpi b { display: block; font-size: 22px; margin-top: 2px; }
.devbody .bad-text { color: var(--bad); }
.devbody .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.devbody .pad { padding: 12px 16px; margin: 0; }
.devbody ul.alertlist.pad { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.devbody .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; padding: 14px 16px; }
.devbody .tile { display: flex; flex-direction: column; gap: 4px; background: var(--card2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; color: var(--text); text-decoration: none; }
.devbody .tile:hover { border-color: var(--blue); background: #fff; text-decoration: none; }
.hdots { display: inline-flex; gap: 3px; align-items: center; height: 20px; }
.hd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c4ccda; }
.hd.ok { background: #16a571; } .hd.warning { background: #e9a21b; } .hd.error { background: #d6364b; }
.hlth td { vertical-align: top; }
.tlbar { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 14px; }
.tlbar .gsub { margin: 0; }
.tlrow { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid #eef1f6; align-items: flex-start; }
.tlwhen { flex: 0 0 120px; padding-top: 2px; }
.tltype { flex: 0 0 120px; }
.tltext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tlwho { flex: 0 0 120px; text-align: right; }
@media (max-width: 720px) { .tlrow { flex-wrap: wrap; } .tlwho { text-align: left; flex: 1 0 100%; } .amenu-body { right: auto; left: 0; } }
.hlth { table-layout: fixed; }
.hlth th:nth-child(1) { width: 30%; } .hlth th:nth-child(2) { width: 22%; } .hlth th:nth-child(3) { width: 12%; } .hlth th:nth-child(4) { width: 12%; }
.devbody .grid2 { align-items: start; }

/* popis a komentare tiketov (starsie tmave pozadie z style.css prebite svetlym) */
pre.steps { background: #f6f8fb; color: var(--text); border-color: var(--border); border-radius: 8px; }

/* ľavý panel: väčší a výraznejší */
:root { --side-w: 264px; }
.side .brand { padding: 16px 16px 14px; gap: 14px; }
.side .brand img { width: 42px; height: 42px; }
.side .brand .word b { font-size: 21px; letter-spacing: .05em; }
.side .brand .word small { font-size: 11px; letter-spacing: .3em; color: #a9c6ff; }
.side .snav { padding: 0 8px; gap: 3px; }
.side .sgroup { color: #a9c6ff; font-size: 12px; font-weight: 700; letter-spacing: .16em; padding: 16px 12px 6px; }
.side .snav a { font-size: 15.5px; font-weight: 550; padding: 9px 14px; gap: 14px; border-radius: 11px; color: #e4eeff; }
.side .snav a .ico { width: 21px; height: 21px; color: #a9c6ff; }
.side .snav a.on { font-weight: 700; background: linear-gradient(90deg, rgba(25, 194, 255, .38), rgba(42, 108, 255, .5)); box-shadow: inset 4px 0 0 #19c2ff, 0 2px 10px rgba(7, 25, 74, .35); }
.side .snav a.on .ico { color: #7fe6ff; }
.side .nbadge { min-width: 24px; height: 22px; font-size: 12.5px; border-radius: 11px; }
.side .sfoot { padding: 8px 8px 4px; }
.side .suser, .side .slogout { font-size: 14.5px; padding: 8px 14px; border-radius: 10px; color: #d3e2ff; }
.side .suser .ico, .side .slogout .ico { width: 20px; height: 20px; }
.side .powered { font-size: 12.5px; padding: 12px 14px 4px; }

/* akceptovane rizika a filter stavu */
.exform { display: flex; flex-direction: column; gap: 8px; min-width: 280px; padding: 8px 0; }
.exform label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text2); font-weight: 600; }
.exform textarea, .exform input[type=text] { width: 100%; }
.schip .hcnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: rgba(23, 32, 51, .09); font-size: 12px; text-align: center; font-weight: 700; }
.schip.on .hcnt { background: rgba(255, 255, 255, .28); }
.zfilter { margin: 0 0 14px; }

.amenu form.mform { margin: 0; }
.amenu .mibtn { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.amenu .mi.muted { color: var(--muted); cursor: default; }
.roline form.inline { margin-left: auto; }

/* ---- pridavacie formulare v popup okne (modal.js) ---- */
.addbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pagehead h2 { margin: 0; }
dialog.dlg-add .dbody { min-height: 0; }
.dbody-add .exform, .dbody-add .ipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.dbody-add form.inline { display: grid; gap: 10px; }
.dbody-add label { display: block; font-size: 13px; }
.dbody-add input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), .dbody-add select, .dbody-add textarea { width: 100% !important; box-sizing: border-box; margin-top: 4px; }
.dbody-add .wide, .dbody-add .exform > .muted, .dbody-add .exform > div, .dbody-add .ipgrid > div { grid-column: 1 / -1; }
.dbody-add .exform > div:last-child, .dbody-add .ipgrid > div:last-child { text-align: right; }
.dbody-add > p.muted { margin: 12px 0 0; }
@media (max-width: 720px) {
  dialog.dlg-add { width: 100vw; max-width: 100vw; margin: auto 0 0 0; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .dbody-add .exform, .dbody-add .ipgrid { grid-template-columns: 1fr; }
  .addbar { justify-content: stretch; }
  .addbar .btn { width: 100%; }
}
.dbody-add input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), .dbody-add select, .dbody-add textarea {
  padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.dbody-add textarea { resize: vertical; }
.dbody-add input:focus, .dbody-add select:focus, .dbody-add textarea:focus { outline: 2px solid var(--accent, #2563eb); outline-offset: 0; }
@media (max-width: 720px) {
  dialog.dlg.dlg-add { width: 100vw; max-width: 100vw; margin: auto 0 0 0; }
}
dialog.dlg-add { white-space: normal; }

/* ---- detail zariadenia: bocna navigacia podsekcii, textove filtre, zbalene historie ---- */
.dlayout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.dlayout.solo { grid-template-columns: minmax(0, 1fr); }
.dlayout .devbody { min-width: 0; }
.dsub { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.dsub .snlabel { font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.dsub a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text2); font-weight: 600; text-decoration: none; }
.dsub a:hover { background: var(--hi); color: var(--text); }
.dsub a.on { background: var(--blue-bg); color: #0f4fb8; box-shadow: inset 3px 0 0 var(--blue); }
.fstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 0 0 10px; font-size: 13px; }
.fstrip .flab { color: var(--muted); font-weight: 600; }
.fstrip a { color: var(--text2); text-decoration: none; padding: 3px 0; border-bottom: 2px solid transparent; font-weight: 600; }
.fstrip a:hover { color: var(--text); }
.fstrip a.on { color: var(--blue); border-bottom-color: var(--blue); }
.fstrip .hcnt { margin-left: 4px; color: var(--muted); font-weight: 500; }
.tlbar { display: flex; flex-wrap: wrap; gap: 4px 28px; }
details.cmdlog > summary, details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; }
details.cmdlog > summary::-webkit-details-marker, details.fold > summary::-webkit-details-marker { display: none; }
details.cmdlog > summary::before, details.fold > summary::before { content: "▸"; color: var(--muted); font-size: 12px; }
details.cmdlog[open] > summary::before, details.fold[open] > summary::before { content: "▾"; }
details.cmdlog > summary h3 { margin: 0; }
details.cmdlog[open] > summary { margin-bottom: 10px; }
details.fold > summary { font-weight: 700; font-size: 14px; padding: 6px 0; }
@media (max-width: 900px) {
  .dlayout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dsub { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding: 4px; scrollbar-width: none; background: var(--card2, #f4f6fb); }
  .dsub::-webkit-scrollbar { display: none; }
  .dsub .snlabel { display: none; }
  .dsub a { flex: none; white-space: nowrap; }
  .dsub a.on { background: #fff; box-shadow: 0 1px 3px rgba(23, 32, 51, .15); }
}

/* ---- tri urovne navigacie hore: zalozky (podciarknutie), oblasti (segmenty), filtre (text) + bublina agenta ---- */
.seg { display: flex; gap: 2px; width: fit-content; max-width: 100%; margin: 14px 0 12px; padding: 3px; background: #e6ebf4; border-radius: 10px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text2); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--text); background: rgba(255, 255, 255, .55); }
.seg a.on { background: #fff; color: #0f4fb8; box-shadow: 0 1px 3px rgba(23, 32, 51, .16); }
.dlayout.solo, .dlayout { display: block; margin-top: 0; }
.agentpop { position: relative; display: inline-block; }
.agentpop > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; }
.agentpop > summary::-webkit-details-marker { display: none; }
.agentpop .aic { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--blue); font: italic 700 10px/1 Georgia, serif; }
.agentpop .pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: -10px; width: min(400px, 84vw); padding: 12px 14px; background: #fff; border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 14px 34px rgba(23, 32, 51, .2); font-weight: 400; color: var(--text); }
.agentpop .pop::before { content: ""; position: absolute; top: -6px; left: 18px; width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong); transform: rotate(45deg); }
.agentpop .pop .kv { grid-template-columns: 1fr; gap: 8px; }

/* ikona OS + informacne bubliny: kurzor "?" ukazuje, ze polozka ma bublinu */
.osi { width: 20px; height: 20px; vertical-align: middle; }
.agentpop > summary { cursor: help; }
.agentpop > summary:hover .osi { filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); }
.agentpop.ico > summary { gap: 6px; }
.pill[title], .badge[title], .oscode[title], abbr[title], [data-tip] { cursor: help; }
.agentpop .pop { max-width: min(380px, 88vw); }
.agentpop .pop.fixed { position: fixed; }
.agentpop .pop .kv dd { word-break: break-word; }
.agentpop .pop::before { left: var(--ax, 18px); }

/* rychla bublina pre [data-tip] (prepinace, tlacidla v menu) */
[data-tip] { cursor: help; }
.tipbox { position: fixed; z-index: 200; max-width: min(320px, 86vw); padding: 9px 12px; background: #fff; color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,30,60,.18); font-size: 13px; line-height: 1.45; pointer-events: none; }

/* tiket: stav cez tlacidla, rychle akcie v zozname */
.tkact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.stbtns { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.tkrow { white-space: nowrap; }
.tkrow form, .tkrow a { display: inline-block; margin-right: 4px; }
.chip.info, .badge.info { background: #e8f1ff; color: #1d5fd0; border-color: #b9d3ff; }

/* tiket na zariadeni: jemne vystrazny vizual */
.tkwarn { background: #fff8e8; border: 1px solid #f1d58a; border-left: 5px solid #e9a817; }
.tkwarn h3 { display: flex; align-items: center; gap: 8px; }
.tkwarn h3 .ico { width: 18px; height: 18px; color: #b97a00; }
.tkline { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #f1e2b4; }
.tkline:first-of-type { border-top: 0; }
.tkmain { min-width: 0; flex: 1; }
.tkhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.tkbody { color: var(--text2); font-size: 13.5px; margin-bottom: 4px; overflow-wrap: anywhere; }
@media (max-width: 720px) { .tkline { flex-direction: column; align-items: stretch; } }
table.hlth td:last-child { white-space: normal; min-width: 240px; }
table.hlth td form.inline { display: block; margin-top: 6px; }

/* tlacidla v riadkoch a pri hodnotach: v jednom rade, rovnaka vyska */
.tkbtns { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.tkbtns form, .tkbtns a, .tkbtns .btn { margin: 0; }
.tkbtns .btn, .tkbtns form { display: inline-flex; align-items: center; }
.facts dd:has(> form.inline), td:has(> form.inline) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
td:has(> form.inline) { display: table-cell; }
td:has(> form.inline) > form.inline { display: inline-flex; margin-left: 6px; vertical-align: middle; }
.rbrow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rbrow form { margin: 0; }

/* stav tiketu: skupina tlacidiel (aj popup "Vyriesit" ako clen skupiny) */
.stbtns { display: inline-flex; flex-wrap: wrap; }
.stbtns > form { display: contents; }
.stbtns > button, .stbtns > form > button { border: 0; border-left: 1px solid var(--border); background: transparent; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; border-radius: 0; height: auto; }
.stbtns > form:first-child > button:first-child { border-left: 0; }
.stbtns > button:hover, .stbtns > form > button:hover { background: #f1f5fb; }
.stbtns > button.on, .stbtns > form > button.on { background: var(--blue); color: #fff; cursor: default; }
.kbsug h3 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.kbitem { padding: 12px 0; border-top: 1px solid var(--border); }
.kbitem:first-of-type { border-top: 0; }
.kbitem pre.steps { margin: 6px 0; }
label.chk { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.chk input { width: auto; margin: 0; }

/* BitLocker v hlavicke: stav a akcia v jednom riadku */
.blrow{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.blrow form.inl{display:inline;margin:0}
.blrow>section[data-modal],.blrow>.modal-host{display:inline-block;margin:0;padding:0;border:0;background:none}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-size:12px;color:var(--muted);text-decoration:underline;cursor:pointer}
.linkbtn:hover{color:var(--text)}

/* BitLocker v hlavicke: stav a akcia v jednom riadku */
.blrow{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.blrow form.inl{display:inline;margin:0}
.blrow>section[data-modal],.blrow>.modal-host{display:inline-block;margin:0;padding:0;border:0;background:none}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-size:12px;color:var(--muted);text-decoration:underline;cursor:pointer}
.linkbtn:hover{color:var(--text)}
.blrow{flex-wrap:nowrap;white-space:nowrap}.blrow .chip{margin:0}
.blkey { margin: 12px 0; }
.blcode { display: block; margin-top: 4px; padding: 10px 12px; font-size: 17px; letter-spacing: .06em; user-select: all; background: var(--bg-soft, #f3f5f9); border: 1px solid var(--line, #d9dee8); border-radius: 8px; word-break: break-all; }
/* AI asistencia v konzole */
.aipane { padding: 12px; }
.aibox p { margin: 6px 0 12px; }
.aihead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.aihead .btn { margin-left: auto; }
.aihow { margin: 6px 0 10px; font-size: 13px; }
.aiprompt { display: block; padding: 8px 10px; margin: 6px 0; background: var(--bg-soft, #f3f5f9); border: 1px solid var(--line, #d9dee8); border-radius: 8px; user-select: all; white-space: normal; }
.ailist { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.aiitem { border: 1px solid var(--line, #d9dee8); border-radius: 10px; padding: 10px 12px; background: var(--card, #fff); }
.aiitem.pending { border-color: var(--warn-line, #f0c36d); background: var(--warn-bg, #fff8e6); }
.aitop { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.aicmd, .aires { margin: 4px 0; padding: 8px 10px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; background: #0f1b33; color: #e6edf7; border-radius: 8px; max-height: 220px; overflow: auto; }
.aires { background: #f3f5f9; color: #1c2740; border: 1px solid var(--line, #d9dee8); }
.airow { display: flex; gap: 8px; margin-top: 8px; }
/* Konzola: rezim AI (vlavo zadanie a schvalovanie, vpravo jedna konzola) */
.site-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dh-actions form.inl { display: inline; margin: 0; }
.termgrid .aileft { display: none; }
.termgrid[data-mode="ai"] .aileft { display: flex; flex-direction: column; gap: 10px; order: -1; min-width: 0; height: calc(100vh - 230px); min-height: 340px; }
.termgrid[data-mode="ai"] .termpane[data-slot="b"] { display: none; }
.aiprompt-box { display: flex; flex-direction: column; gap: 6px; }
.aiprompt-box textarea { width: 100%; resize: vertical; }
.aileft .aipane { flex: 1; min-height: 0; overflow: auto; padding: 4px 2px; display: flex; flex-direction: column; }
.aileft .ailist { max-height: none; flex: 1; }

/* AI rozhovor v konzole */
.aichat { max-height: 260px; min-height: 60px; overflow: auto; border: 1px solid var(--border, #d6dbe6); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--card, #fff); }
.aichat:empty::before { content: "Tu sa zobrazí rozhovor s AI."; color: var(--muted, #6b7280); font-size: 12px; }
.aimsg { white-space: pre-wrap; word-break: break-word; font-size: 13px; padding: 6px 9px; border-radius: 8px; max-width: 94%; }
.aimsg.u { align-self: flex-end; background: #dbeafe; }
.aimsg.a { align-self: flex-start; background: #f1f5f9; }
.aimsg.c { align-self: flex-start; font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #fef9c3; }
.aimsg.w { align-self: flex-start; color: var(--muted, #6b7280); font-size: 12px; background: none; padding: 2px 4px; }
.aimsg.e { align-self: stretch; max-width: 100%; background: #fee2e2; color: #991b1b; }
.aiprompt-box .airow select, .aiprompt-box .airow input { max-width: 190px; }
.aibar { height: 8px; background: #dbeafe; border-radius: 4px; min-width: 2px; }

/* AI rezim: jeden rozhovor s kartami na schvalenie */
.termgrid[data-mode="ai"] .termpane[data-slot="a"] .termhead b::after { content: " · váš vlastný terminál"; font-weight: 400; color: var(--muted, #6b7280); font-size: 12px; }
.aileft .aititle { display: flex; flex-direction: column; gap: 2px; }
.aileft .aibar { margin-top: 0; align-items: center; flex-wrap: wrap; }
.aileft .aibar select, .aileft .aibar input { max-width: 200px; }
.aileft .aichat { flex: 1; min-height: 0; max-height: none; }
.aileft .aicompose { display: flex; gap: 8px; align-items: stretch; }
.aileft .aicompose textarea { flex: 1; resize: none; }
.aileft .aifoot { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.aileft .aifoot .linkbtn { padding: 0; }
.aichat .aiitem { align-self: stretch; }
.aichat .aiitem .aicmd { max-height: 160px; }
.aichat .aiitem .aires { max-height: 200px; }
.aichat .aiitem.denied, .aichat .aiitem.expired { opacity: .75; }
.aichat .aiext { align-self: stretch; font-size: 12px; color: var(--muted, #6b7280); margin-top: 4px; }
.aichat .aimsg.hint { align-self: stretch; max-width: 100%; background: none; color: var(--muted, #6b7280); font-size: 13px; }
.aileft > * { flex-shrink: 0; }
.aileft > .aichat { flex-shrink: 1; }
.aileft .aibar { min-height: 34px; }

/* AI rezim: prepinanie Chat v GRATA / Externy Claude */
.aileft [hidden], .aileft [data-pane][hidden] { display: none !important; }
.aitabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line, #d9dee8); }
.aitab { background: none; border: 0; padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted, #6b7280); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.aitab.active { color: #1f6fe5; border-bottom-color: #1f6fe5; }
.aitab .badge { margin-left: 4px; }
.aiextbox { display: flex; flex-direction: column; gap: 8px; }

/* AI rozhovor: kompaktne riadky prikazov */
.aichat .ailine { align-self: stretch; border: 1px solid var(--line, #d9dee8); border-radius: 8px; background: var(--card, #fff); }
.aichat .ailine > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.aichat .ailine > summary::-webkit-details-marker { display: none; }
.aichat .ailine > summary::after { content: "▾"; margin-left: auto; color: var(--muted, #6b7280); font-size: 11px; }
.aichat .ailine[open] > summary::after { content: "▴"; }
.aichat .aicmdline { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.aichat .aibody { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.aichat .ailine.pending { border-color: var(--warn-line, #f0c36d); background: var(--warn-bg, #fff8e6); }
.aichat .ailine.danger.pending { border-color: #e5484d; background: #fff1f1; }
.aichat .aiwarn { margin: 0; color: #b42318; font-size: 12.5px; font-weight: 600; }
.aichat .ailine.denied, .aichat .ailine.expired { opacity: .7; }
.aiauto { font-size: 12px; display: inline-flex; align-items: center; gap: 5px; cursor: help; }
.btn.danger.sm { background: #d92d20; color: #fff; border-color: #d92d20; }
.aiquick { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.pdet h4 { margin: 14px 0 4px; font-size: 13px; }
.pdet .kbhit { padding: 6px 9px; background: #f1f5f9; border-radius: 8px; margin-bottom: 6px; }
.pdbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.pdwait { padding: 8px 10px; background: #fef9c3; border-radius: 8px; margin: 6px 0; }
.termgrid[data-prob] .termpane[data-slot="b"] { display: none; }
.termgrid[data-mode="ai"] .probpane { display: none; }
.probpane { overflow: auto; max-height: calc(100vh - 190px); }
.pdrun { padding: 10px 12px; background: #eff6ff; border-radius: 8px; margin: 6px 0; }
.pdsteps { margin: 6px 0 0 18px; padding: 0; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.pdsteps li.cur::after { content: " …"; }
.pdsteps li:not(.cur) { color: var(--muted, #6b7280); }
dialog.dlg-prob::backdrop { background: rgba(23, 32, 51, .12); backdrop-filter: none; }
.pdres { padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
.pdres.ok { background: #dcfce7; border: 1px solid #86efac; }
.pdres.bad { background: #fee2e2; border: 1px solid #fca5a5; }
.pdres p { margin: 4px 0; }
.dhead .pdcost { margin-left: auto; margin-right: 12px; font-size: 12px; color: var(--muted, #6b7280); white-space: nowrap; }
.pdflow { display: flex; gap: 6px; list-style: none; margin: 10px 0 12px; padding: 0; }
.pdflow li { flex: 1; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: #f1f5f9; color: var(--muted, #6b7280); font-size: 12.5px; font-weight: 600; }
.pdflow li .n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #cbd5e1; color: #fff; display: grid; place-items: center; font-size: 11px; }
.pdflow li.done { background: #dcfce7; color: #166534; }
.pdflow li.done .n { background: #16a34a; }
.pdflow li.cur { background: #dbeafe; color: #1e40af; box-shadow: inset 0 0 0 1.5px #3b82f6; }
.pdflow li.cur .n { background: #2563eb; }
.pdst.cur { border: 1.5px solid #3b82f6; border-radius: 10px; padding: 4px 14px 12px; margin: 6px 0 12px; background: #fff; }
.pdst.cur h4 { margin-top: 10px; }
details.pdst.done { border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 8px 12px; margin: 6px 0; background: #f8fafc; }
details.pdst.done > summary { cursor: pointer; font-size: 13px; color: #166534; font-weight: 600; }
details.pdinfo { border-top: 1px solid var(--border, #e2e8f0); padding: 8px 2px; }
details.pdinfo > summary { cursor: pointer; font-size: 13px; font-weight: 650; }
@media (max-width: 640px) { .pdflow { flex-wrap: wrap; } .pdflow li { flex: 1 1 45%; } }
.pdflow li[data-go] { cursor: pointer; }
.pdflow li[data-go]:hover { filter: brightness(.96); }
.pdcosts { width: 100%; border-collapse: collapse; margin: 6px 0; }
.pdcosts th, .pdcosts td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--border, #e2e8f0); }
.pdcosts th:first-child, .pdcosts td:first-child { text-align: left; }
.pdcosts tr.tot td { border-top: 2px solid var(--border, #cbd5e1); border-bottom: 0; }
.pdclose { margin-top: 10px; padding: 10px 12px; background: #f8fafc; border-radius: 8px; }
.pdclose .opt { display: block; margin: 4px 0; }
.rt { white-space: pre-wrap; word-break: break-word; }
.rt h4.rh { margin: 12px 0 4px; font-size: 13px; color: var(--text, #172033); white-space: normal; }
.rt h4.rh:first-child { margin-top: 0; }
.rt code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #eef2f7; padding: 1px 5px; border-radius: 4px; }
.codebox { position: relative; margin: 6px 0; white-space: normal; }
.codebox pre { margin: 0; padding: 10px 84px 10px 12px; background: #0f172a; color: #e2e8f0; border-radius: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.codebox .copybtn { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 3px 8px; border: 1px solid #475569; border-radius: 6px; background: #1e293b; color: #e2e8f0; cursor: pointer; }
.codebox .copybtn:hover { background: #334155; }
.richbox { padding: 10px 12px; background: #f8fafc; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; font-size: 13px; }

/* ---- tlačiarne a zoznam zariadení (CSP povoľuje iba štýly zo súborov, nie inline) ---- */
.ticon { display: inline-flex; vertical-align: middle; }
.devtbl th.ic { width: 2rem; }
.tonerx { white-space: nowrap; margin-right: 1.4rem; }
.tonerx meter { width: 4rem; }
.tl { display: inline-block; min-width: 1.1rem; margin-right: .25rem; text-align: center; font-size: 1.05rem; font-weight: 800; }
.tl-c { color: #00aeef; } .tl-m { color: #ec008c; } .tl-y { color: #e6b800; } .tl-k { color: var(--text); }
.sw { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; vertical-align: -1px; }
.sw-c { background: #00aeef; } .sw-m { background: #ec008c; } .sw-y { background: #ffd400; } .sw-k { background: #111827; }
.sw-none { border: 1px dashed #9ca3af; }
.mt3 { margin-top: .3rem; } .mt5 { margin-top: .5rem; } .mt7 { margin-top: .7rem; } .mt9 { margin-top: .9rem; }
.mr1 { margin-right: 1rem; }
.prewrap { white-space: pre-wrap; }
.blk { display: block; }
.actrow { margin-top: .5rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.scroll14 { max-height: 14rem; overflow: auto; }
.okc { color: #15803d; } .badc { color: #b91c1c; }
.wz { list-style: none; margin: 0; padding: 0; counter-reset: wz; }
.wz > li { counter-increment: wz; border: 1px solid var(--border, #e3e7ee); border-radius: 10px; padding: .8rem 1rem; margin: .7rem 0; }
.wz h5 { margin: 0 0 .35rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.wz h5:before { content: counter(wz); display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--azure, #2563eb); color: #fff; font-size: .8rem; }
.wz .row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0; }
.wz .row input, .wz .row select { flex: 1; min-width: 9rem; margin: 0; }
.wz .row .btn { flex: none; width: auto; }
.wz .res { margin: .5rem 0; padding: .55rem .75rem; border-radius: 8px; background: rgba(127,127,127,.09); }
.wz form { margin: 0; }
.prgroup { margin-top: 10px; }
.prhead { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
.prhead .ico { width: 16px; height: 16px; }
.devtbl { table-layout: fixed; min-width: 1020px; width: 100%; }
.devtbl th:nth-child(1) { width: 46px; }
.devtbl th:nth-child(2) { width: 104px; }
.devtbl th:nth-child(3) { width: 170px; }
.prtbl td { overflow-wrap: anywhere; }
.devtbl meter { width: 54px; }
.prtbl th:nth-child(4) { width: 130px; }
.prtbl th:nth-child(5) { width: 100px; }
.prtbl th:nth-child(6) { width: 250px; }
.prtbl th:nth-child(7) { width: 120px; }
.prtbl .tonerx { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; width: 116px; margin: 1px 0; }
.prtbl .tonerx meter { width: 42px; }
.prtbl { min-width: 1140px; }
.prtbl th:nth-child(6) { width: 262px; }
.prtbl { min-width: 1020px; }
.prtbl th:nth-child(4) { width: 112px; }
.prtbl th:nth-child(5) { width: 92px; }
.prtbl th:nth-child(6) { width: 232px; }
.prtbl th:nth-child(7) { width: 104px; }
.prtbl .tonerx { width: 102px; }
.prtbl .tonerx meter { width: 34px; }
.prtbl th:nth-child(5) { width: 88px; }
.prtbl th:nth-child(7) { width: 96px; }
@media (min-width: 1500px) {
  .prtbl td { white-space: nowrap; }
  .prtbl th:nth-child(4) { width: 150px; }
  .prtbl th:nth-child(6) { width: 450px; }
  .prtbl th:nth-child(7) { width: 150px; }
  .prtbl th:nth-child(8) { width: 90px; }
}

.swbtn::before { border-color: #c3ccdb; background: radial-gradient(circle at 13px 50%, #fff 10px, transparent 11px) no-repeat, #cfd6e2; }

/* ulohy (karta Ulohy v Navrhoch a ulohach) */
.task-row{display:flex;gap:.7rem;align-items:flex-start;padding:.55rem 0;border-top:1px solid var(--line, rgba(255,255,255,.08))}
.task-row:first-of-type{border-top:none}
.task-row.done{opacity:.6}
.task-row .task-body{flex:1;min-width:0}
.task-row .strike{text-decoration:line-through}
.chk{width:20px;height:20px;border-radius:5px;border:1.5px solid var(--line, rgba(255,255,255,.25));background:transparent;cursor:pointer;flex:none;margin-top:2px;padding:0;display:flex;align-items:center;justify-content:center;color:#8be5bc}
.chk.on{background:#12402f;border-color:#12402f}
.del{background:transparent;border:none;cursor:pointer;color:var(--muted,#8694a3);padding:2px 4px;flex:none}
.del:hover{color:#ffb3bd}
.del svg{width:16px;height:16px}
/* odznaky: obsah (cislo) vzdy presne v strede - vodorovne aj zvislo */
.badge, .nbadge { display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box;
  font-variant-numeric: tabular-nums; text-align: center; vertical-align: middle; }
.nbadge { flex: none; }

/* zoznam planov ako karty */
.plist { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.pcard { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.pcard.off { opacity: .65; }
.pcard.live { border-color: #a9c3f5; box-shadow: inset 4px 0 0 #2563eb; }
.pcard.paused { border-color: #f3d39a; box-shadow: inset 4px 0 0 #f59e0b; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-title b { font-size: 15px; }
.pc-actions { display: flex; align-items: center; gap: 6px; }
.pc-actions form.inline, .pc-btns form.inline, .pc-run form.inline { margin: 0; }
.btn.ghostdanger { color: #c62f43; }
.btn.ghostdanger:hover { background: #fdecec; border-color: #f3b8b8; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.pc-meta > div { display: flex; flex-direction: column; gap: 3px; }
.pc-wide { flex-basis: 100%; }
.pc-k { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
.pc-v { font-size: 13.5px; color: #1e293b; }
.tchip { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 9px; margin: 0 4px 4px 0; border-radius: 11px; background: #f1f5f9; border: 1px solid #e2e8f0; color: #334155; }
.pc-run { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid #eef2f7; }
.pc-live { flex: 1; min-width: 240px; color: #1d4ed8; }
.pc-live .rprog { margin: 6px 0 0; max-width: 560px; }
.pcard.paused .pc-live { color: #92400e; }
.pcard.paused .pc-live .rprog i { background: #f59e0b; }
.pcard.paused .pdot { background: #f59e0b; }
.pcard.paused .pdot::after { display: none; }
.pc-btns { display: flex; gap: 6px; }
.pc-run .prun { display: flex; align-items: center; gap: 8px; }
.pc-run .prun label { display: flex; align-items: center; gap: 6px; margin: 0; }
.pc-run .prun select { width: auto; min-width: 0; padding-top: 4px; padding-bottom: 4px; }

/* zoznam planov: riadok (summary) + detail po rozbaleni */
.plist { gap: 6px; }
.pl-head, .pl-row { display: grid; grid-template-columns: minmax(240px, 2.2fr) minmax(110px, 1fr) minmax(170px, 1.3fr) minmax(150px, 1.2fr) minmax(110px, .9fr); gap: 14px; align-items: center; }
.pl-head { padding: 0 14px 0 36px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
details.pcard { padding: 0; gap: 0; }
.pl-row { list-style: none; cursor: pointer; padding: 10px 14px 10px 36px; position: relative; border-radius: 10px; }
.pl-row::-webkit-details-marker { display: none; }
.pl-row::before { content: ""; position: absolute; left: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(-45deg); transition: transform .15s; }
details.pcard[open] > .pl-row::before { transform: rotate(45deg); margin-top: -6px; }
.pl-row:hover { background: #f8fafc; }
details.pcard[open] > .pl-row { border-bottom: 1px solid #eef2f7; border-radius: 10px 10px 0 0; }
.pl-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-t, .pl-when, .pl-last { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-last { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-state { display: flex; flex-direction: column; gap: 5px; }
.pl-state .rprog { display: block; margin: 0; max-width: 180px; }
.pl-live { color: #1d4ed8; font-weight: 600; font-size: 13px; }
.pcard.paused .pl-live { color: #92400e; }
.pcard.paused .pl-state .rprog i { background: #f59e0b; }
.pl-next { font-size: 13px; }
.pc-body { padding: 12px 14px 14px 36px; display: flex; flex-direction: column; gap: 12px; }
.pc-top { align-items: flex-start; }
@media (max-width: 900px) {
  .pl-head { display: none; }
  .pl-row { grid-template-columns: 1fr 1fr; }
  .pl-name { grid-column: 1 / -1; }
}

/* filter planov */
.cardhead .pfbar { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pfbar label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: #64748b; font-weight: 600; }
.pfbar select { width: auto; min-width: 140px; padding-top: 4px; padding-bottom: 4px; }
details.pcard[hidden] { display: none; }

/* behy v detaile planu */
.pc-runs { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid #eef2f7; }
.pc-rh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-runs .tablewrap { border: 1px solid #e2e8f0; border-radius: 8px; }
.rtable td { vertical-align: top; }
.rtable .rhost { font-weight: 600; white-space: nowrap; }
details.older > summary, details.older-w > summary { cursor: pointer; padding: 4px 0; }
details.older { margin-top: 2px; }
details.older-w { margin: 4px 0 4px 14px; }
details.older-w .tablewrap { margin-top: 6px; }
details.otherruns > summary { list-style: none; cursor: pointer; }
details.otherruns > summary::-webkit-details-marker { display: none; }
details.otherruns > summary h3::before { content: "▸ "; color: #94a3b8; }
details.otherruns[open] > summary h3::before { content: "▾ "; }

/* problemy: informativne (zbalene) */
details.probinfo > summary { list-style: none; cursor: pointer; }
details.probinfo > summary::-webkit-details-marker { display: none; }
details.probinfo > summary h3::before { content: "▸ "; color: #94a3b8; }
details.probinfo[open] > summary h3::before { content: "▾ "; }

/* zmena zavaznosti problemu */
.sevform { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; padding: 10px; width: 290px; max-width: 100%;
  border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; white-space: normal; }
.sevopts { display: flex; gap: 4px; }
.sevopt { flex: 1; margin: 0; cursor: pointer; position: relative; }
.sevopt input { position: absolute; opacity: 0; pointer-events: none; }
.sevopt span { display: block; text-align: center; padding: 5px 4px; border: 1px solid #d5dde8; border-radius: 6px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: #475569; }
.sevopt input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 1px; }
.sevopt.critical input:checked + span { background: #fdecec; border-color: #d6364b; color: #991b1b; }
.sevopt.warning input:checked + span { background: #fff5e3; border-color: #f4b740; color: #92400e; }
.sevopt.info input:checked + span { background: #e8f1ff; border-color: #2563eb; color: #1d4ed8; }
.sevform input[type=text] { width: 100%; padding: 5px 8px; font-size: 13px; }
.sevbtns { display: flex; gap: 6px; flex-wrap: wrap; }
/* tlacidlo ako odkaz (rovnake ako rozbalovacie riadky v akciach problemu) */
.linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0; }
.linkbtn::before { content: "+"; display: inline-block; width: 1em; margin-right: .25em; text-align: center; font-weight: 700; }
.linkbtn:hover { text-decoration: underline; }

/* problemy: ikonky akcii 2x2 + formulare pod nimi */
td.pacell { width: 1%; white-space: normal; }
.pabtns { display: grid; grid-template-columns: repeat(2, 34px); gap: 6px; }
.pabtns form.inline { margin: 0; }
.ibtn { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; position: relative;
  border: 1px solid #d5dde8; border-radius: 8px; background: #fff; color: #475569; cursor: pointer; }
.ibtn svg { width: 17px; height: 17px; }
.ibtn:hover { background: #f1f5f9; border-color: #a9c3f5; color: #1d4ed8; }
.ibtn.on { background: #e8f0fe; border-color: #2563eb; color: #1d4ed8; }
.ibtn.mark::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.papanel > summary { display: none; }
.papanel[open] { margin-top: 8px; }
.papanel > form { width: 270px; max-width: 100%; box-sizing: border-box; margin: 0; padding: 10px; border: 1px solid #a9c3f5; border-radius: 8px;
  background: #f8fafc; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.papanel > form.inline { flex-direction: row; align-items: center; }
.papanel > form.inline input[type=number] { flex: 1; min-width: 0; width: auto; padding: 4px 8px; }
.papanel .exform label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; color: #475569; }
.papanel .exform textarea, .papanel .exform input { width: 100%; box-sizing: border-box; padding: 5px 8px; font-size: 13px; }
.papanel .exform .btn { align-self: flex-start; }
/* problemy: farebne ikonky akcii (jemne) */
.pabtns form .ibtn { background: #eef4ff; border-color: #c9dafc; color: #2563eb; }
.pabtns form .ibtn:hover { background: #dfeafe; border-color: #93b4f5; color: #1d4ed8; }
.ibtn[data-pa="link"] { background: #f2effd; border-color: #d9d1f8; color: #6d4fd8; }
.ibtn[data-pa="link"]:hover, .ibtn[data-pa="link"].on { background: #e7e1fb; border-color: #b7a8f1; color: #5b3cc9; }
.ibtn[data-pa="sev"] { background: #fff6e8; border-color: #f6dfb3; color: #c27a06; }
.ibtn[data-pa="sev"]:hover, .ibtn[data-pa="sev"].on { background: #ffedcf; border-color: #f0c674; color: #a96500; }
.ibtn[data-pa="risk"] { background: #ebf8f1; border-color: #c4e9d4; color: #1c8a55; }
.ibtn[data-pa="risk"]:hover, .ibtn[data-pa="risk"].on { background: #dbf2e5; border-color: #93d5b0; color: #157346; }
.ibtn.on { box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.papanel[data-pa-panel="link"] > form { border-color: #d9d1f8; background: #faf8ff; }
.papanel[data-pa-panel="sev"] > form { border-color: #f6dfb3; background: #fffbf3; }
.papanel[data-pa-panel="risk"] > form { border-color: #c4e9d4; background: #f6fcf8; }

/* upozornenia (kanal udalosti) */
.evcard { padding: 6px 0; }
.evday { padding: 12px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
.evrow { display: grid; grid-template-columns: 34px 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid #f1f5f9; }
.evrow.unack { background: #fbfdff; box-shadow: inset 3px 0 0 #2563eb; }
.evrow.unack.sev-bad { box-shadow: inset 3px 0 0 #d6364b; }
.evrow.unack.sev-warn { box-shadow: inset 3px 0 0 #f4b740; }
.evrow.unack.sev-ok { box-shadow: inset 3px 0 0 #1c8a55; }
.evrow:not(.unack) .evtitle { font-weight: 500; color: #475569; }
.evico { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.evico svg { width: 16px; height: 16px; }
.evico.cat-ticket { background: #eef4ff; color: #2563eb; }
.evico.cat-maint { background: #f2effd; color: #6d4fd8; }
.evico.cat-device { background: #ebf8f1; color: #1c8a55; }
.sev-bad .evico { background: #fdecec; color: #c62f43; }
.sev-warn .evico { background: #fff6e8; color: #c27a06; }
.evtime { font-size: 12.5px; color: #64748b; font-variant-numeric: tabular-nums; }
.evtitle { font-weight: 600; }
.evtitle a { color: inherit; }
.evtitle a:hover { color: #1d4ed8; }
.evmain { min-width: 0; }
.evack { text-align: right; white-space: nowrap; }
.evack form.inline { margin: 0; }
.evby { font-size: 12.5px; color: #1c8a55; font-weight: 600; }
.evempty { padding: 16px; }
@media (max-width: 700px) { .evrow { grid-template-columns: 30px 1fr; } .evtime { display: none; } .evack { grid-column: 2; text-align: left; } }

/* problemy v menu: dve cisla (kriticke cervene, varovania oranzove) */
.nbadges { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.nbadges .nbadge { margin-left: 0; }
.nbadge.warn { background: #f4b740; color: #3a2600; }

/* zariadenia: filter typu a prepinac zobrazenia */
.toolbar2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -4px 0 12px; }
.kchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb2-l { font-size: 12px; font-weight: 700; color: #64748b; margin-right: 2px; }
.kchip, .vbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid #d5dde8; background: #fff; color: #94a3b8; font-size: 13px; font-weight: 600; }
.kchip svg, .vbtn svg { width: 16px; height: 16px; }
.kchip b { font-size: 11.5px; padding: 0 6px; line-height: 18px; border-radius: 9px; background: #f1f5f9; color: #94a3b8; }
.kchip:hover, .vbtn:hover { border-color: #a9c3f5; }
.kchip.on { background: #eef4ff; border-color: #93b4f5; color: #1d4ed8; }
.kchip.on b { background: #2563eb; color: #fff; }
.vtoggle { display: inline-flex; border: 1px solid #d5dde8; border-radius: 9px; padding: 2px; background: #fff; gap: 2px; }
.vbtn { border: 0; height: 28px; color: #64748b; }
.vbtn.on { background: #2563eb; color: #fff; }
[data-devview][hidden], [data-kgrp][hidden], [data-flatgrp][hidden] { display: none !important; }
.devview-flat .tablecard { margin-bottom: 14px; }
.flatloc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
/* tlaciarne: sirsi model a IP (dlhe nazvy modelov sa uz neprekryvaju s IP adresou) */
.prtbl { min-width: 1180px; }
.prtbl th:nth-child(4) { width: 230px; }
.prtbl th:nth-child(5) { width: 140px; }
.prtbl td:nth-child(4), .prtbl td:nth-child(5) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 14px; }
@media (max-width: 760px) { .prtbl { min-width: 0; } .prtbl td:nth-child(4), .prtbl td:nth-child(5) { white-space: normal; } }
/* zoznam: stlpce podla obsahu - stlpec sa rozsiri, ak potrebuje viac miesta (jedna tabulka, netreba zarovnavat medzi sietami) */
.devview-flat .devtbl { table-layout: auto; min-width: 0; }
.devview-flat .devtbl th { width: auto !important; white-space: nowrap; }
.devview-flat .devtbl th.ic, .devview-flat .devtbl td:first-child { width: 40px !important; }
.devview-flat .devtbl td { white-space: nowrap; }
.devview-flat .prtbl td:nth-child(4), .devview-flat .prtbl td:nth-child(5), .devview-flat .flatloc { overflow: visible; text-overflow: clip; }
.devview-flat .prtbl .tonerx { width: auto; }
@media (max-width: 760px) { .devview-flat .devtbl td { white-space: normal; } }
.dform .avmode { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 4px; max-width: 320px; font-weight: 600; font-size: 13px; }
/* nazov antivirusu (ESET, Defender) */
.avtag { display: inline-block; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 9px; background: #ebf8f1; color: #157346; border: 1px solid #c4e9d4; vertical-align: middle; white-space: nowrap; }

/* hierarchia zariadeni: lokalita > siet > skupina zariadeni */
.sitebox .netsec > .site-head { background: #f1f5f9; border-radius: 8px; padding: 7px 12px; margin: 0 0 8px; }
.sitebox .netsec > .site-head h3 { font-weight: 700; }
.devgrp { margin: 0 0 10px 14px; padding-left: 12px; border-left: 2px solid #cbd5e1; }
.grphead { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; padding: 0 2px 5px; }
.grphead .muted { font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.sitebox .devgrp .tablewrap { margin-bottom: 0; }

/* jemnejsie tlacidla typov zariadeni */
.kchip { background: #fff; border-color: #e5eaf2; color: #5b6b82; font-weight: 600; }
.kchip b { background: transparent; color: #9aa7ba; font-weight: 600; padding: 0 2px; }
.kchip:hover { border-color: #cfdcf3; background: #f8faff; }
.kchip.on { background: #f5f8fe; border-color: #cfdcf3; color: #3b5ba5; }
.kchip.on b { background: transparent; color: #6b84bd; }
.kchip:not(.on) { opacity: .75; }

/* zoznam upozorneni (uloziska) */
.card ul.plain{list-style:none;margin:0;padding:0}
.card ul.plain li{padding:6px 0;border-bottom:1px solid var(--line,#e5e7eb)}
.card ul.plain li:last-child{border-bottom:0}

/* adresarova struktura zdielanych priecinkov */
.treebox{margin:6px 0;padding:6px 0;border-bottom:1px solid var(--line,#e5e7eb)}
.treebox summary{cursor:pointer}
ul.tree{list-style:none;margin:4px 0 0;padding-left:18px;border-left:1px solid var(--line,#e5e7eb)}
ul.tree.treeroot{margin-left:6px}
ul.tree li{padding:2px 0}
.tnode{font-weight:500}

/* ---- vyber priecinka zo stromu (zbalitelny) a vyber v popupe ---- */
.pickbox { max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; background: #fff; margin-top: 8px; font-size: 13.5px; }
.pickbox summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 6px; font-weight: 400; color: var(--text); }
.pickbox summary::-webkit-details-marker { display: none; }
.pickbox details > summary::before { content: "\25B8"; font-size: 12px; width: 14px; flex: none; text-align: center; color: var(--muted); transition: transform .12s; }
.pickbox details[open] > summary::before { transform: rotate(90deg); }
.pickbox summary:hover { background: var(--hi); }
.pickbox .pkshare { margin-bottom: 4px; }
.pickbox .pkshare > summary { font-weight: 700; padding: 5px 4px; }
ul.pick { list-style: none; margin: 0 0 0 11px; padding: 0 0 0 10px; border-left: 1px solid var(--border); }
ul.pick li { margin: 0; }
ul.pick li > label.pk { margin-left: 20px; }
ul.pick summary > label.pk { margin-left: 0; }
.pick label.pk, .dbody-add .pick label.pk, .exform .pick label.pk { display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap !important; width: auto !important; white-space: normal; align-items: center; gap: 6px; margin: 0; padding: 3px 6px; border-radius: 6px; font-size: 13.5px; font-weight: 400 !important; color: var(--text); cursor: pointer; }
.pick label.pk input[type=radio] { width: 14px !important; height: 14px !important; min-width: 14px; margin: 0 !important; padding: 0; flex: none; }
.pick label.pk:hover { background: var(--hi); }
.pick label.pk:has(input:checked) { font-weight: 600 !important; color: var(--blue); background: var(--blue-bg); }
.pick label.pk:has(input:disabled) { color: var(--muted); cursor: default; }
.ndfilter { width: 100% !important; box-sizing: border-box; }
.dbody-add select, .ndbox select { height: 36px; padding-top: 0; padding-bottom: 0; line-height: 1.2; }

/* zakazany prepinac: stlmeny, kurzor "nedostupne" (predtym vyzeral rovnako ako aktivny) */
.switch input:disabled + .slider { opacity: .4; }
.switch input:disabled ~ span { opacity: .6; }
.switch:has(input:disabled) { cursor: not-allowed; }
.ndwhy { margin-top: 4px; max-width: 260px; }
