/* Sprava e-shopu: svetly dashboard s bocnim menu, karty a tabulky.
   Pisma jsou soucasti panelu (CSP font-src 'self'): Inter text, IBM Plex Mono logy a kody. Zadne inline styly (CSP). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.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: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-ext-400-normal.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-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.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: "Inter"; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-ext-500-normal.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-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.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: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-ext-600-normal.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-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.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: "Inter"; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-ext-700-normal.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: "Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.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: "Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.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: "Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.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: "Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-ext-500-normal.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; }

:root {
	color-scheme: light;
	--bg: #f8f9fa;
	--surface: #ffffff;
	--subtle: #f8f9fa;
	--ink: #1d2630;
	--ink-2: #3e4853;
	--muted: #5b6b79;
	--faint: #8996a4;
	--line: #e7eaee;
	--line-soft: #f1f3f5;
	--hover: #f8fafc;
	--primary: #4680ff;
	--primary-dark: #3166e0;
	--primary-soft: #edf3ff;
	--ok: #2ca87f;
	--ok-soft: #e9f6f1;
	--warn: #e58a00;
	--warn-soft: #fdf3e3;
	--bad: #dc2626;
	--bad-soft: #fdeded;
	--violet: #7265e6;
	--radius: 12px;
	--radius-sm: 8px;
	--side-w: 264px;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
code { font-family: var(--mono); font-size: 12.5px; background: var(--line-soft); padding: 1px 6px; border-radius: 5px; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.ico { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* ---- bocni menu ---- */
.side { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--side-w); display: flex; flex-direction: column; background: var(--surface); border-right: 1px dashed var(--line); }
.brand { display: flex; align-items: baseline; gap: .28em; height: 74px; padding: 0 26px; padding-top: 28px; flex: none; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.025em; }
.brand > span:first-child { font-weight: 400; color: var(--muted); }
.brand:hover { color: var(--ink); }
/* tecka na konci nazvu = stav serveru (zelena: odpovida, cervena: nehlasi aktualni udaje) */
.brand-dot { width: 6px; height: 6px; border-radius: 50%; align-self: baseline; margin-left: -1px; }
.brand-dot-ok { background: var(--ok); }
.brand-dot-bad { background: var(--bad); }
.sidenav { flex: 1; overflow-y: auto; padding: 4px 14px 16px; }
.sidenav-title { margin: 18px 10px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sidenav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; margin-bottom: 2px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; transition: background .15s ease, color .15s ease; }
.sidenav a .ico { color: var(--faint); transition: color .15s ease; }
.sidenav a:hover { background: var(--hover); color: var(--ink); }
.sidenav a:hover .ico { color: var(--muted); }
.sidenav a.is-on { background: var(--primary-soft); color: var(--primary); }
.sidenav a.is-on .ico { color: var(--primary); }
.side-foot { display: flex; align-items: center; gap: 12px; margin: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--subtle); font-weight: 600; font-size: 13px; }
.side-host { display: flex; flex-direction: column; min-width: 0; }
.side-host small { font-weight: 400; color: var(--muted); font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }
.dot-ok { background: var(--ok); }
.dot-bad { background: var(--bad); }
.side-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(29, 38, 48, .35); }

/* ---- horni lista a obsah ---- */
.shell { margin-left: var(--side-w); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; height: 74px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: var(--bg); }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: var(--line-soft); color: var(--ink-2); cursor: pointer; transition: background .15s ease, color .15s ease; }
.iconbtn:hover { background: var(--primary-soft); color: var(--primary); }
.side-toggle { display: none; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-user form { margin: 0; }
.topbar-name { font-weight: 600; }
.topbar-account { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.topbar-account:hover { color: var(--primary); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink-2); background: var(--line-soft); border: 1px solid var(--line); }
.page { padding: 8px 32px 56px; max-width: 1480px; }
.is-app .page > * + * { margin-top: 24px; }

/* ---- hlavicka stranky ---- */
.crumbs { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.is-app .page > .crumbs + .pagehead { margin-top: 0; }
h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h1 code { font-size: 18px; font-weight: 500; }
.h2 { margin: 32px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.is-app .page > .h2 + * { margin-top: 12px; }
.sub { display: block; margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.pagehead-actions { display: flex; gap: 8px; margin: 0; }
.note { margin: 0; color: var(--muted); font-size: 13px; max-width: 80ch; }
.empty { color: var(--muted); text-align: center; padding: 32px 12px; margin: 0; }

/* ---- uvodni pruh prehledu ---- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 36px; border-radius: var(--radius); color: #fff; background: #3d6ff0; }
.hero-warn { background: #c97800; }
.hero-bad { background: #c42222; }
.hero-text { max-width: 620px; }
.hero-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 500; opacity: .85; }
.hero h1 { font-size: 28px; color: #fff; margin-bottom: 8px; }
.hero p { margin: 0; opacity: .92; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
/* e-shopy v uvodnim pruhu: ikona, provoz a tecka se stavem */
.fleet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 8px; flex: none; width: min(420px, 45%); }
.fleet a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s ease; }
.fleet a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.fleet .shop-ico { grid-row: span 2; border-color: #fff; }
.fleet strong { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.fleet span:not(.shop-ico) { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.fleet strong::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7be0b9; }
.fleet-warn strong::after { background: #ffd27a; }
.fleet-bad strong::after { background: #ffb4b4; }
.fleet-more a { display: flex; justify-content: center; font-size: 13px; }

/* ---- karty s cisly ---- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kpi { display: block; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s ease; }
.kpi:hover { color: var(--ink); border-color: #cdd5df; }
.kpi-head { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.kpi-ico { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--line-soft); color: var(--ink-2); }
.minibars { fill: var(--primary); }
.kpi-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--subtle); }
.kpi-num { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.kpi-num strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi-num small { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.minibars, .segbar { width: 96px; height: 32px; flex: none; }
.minibars rect:nth-last-child(n+4) { opacity: .45; }
.seg-ok { fill: var(--ok); }
.seg-warn { fill: var(--warn); }
.seg-bad { fill: var(--bad); }
.lvl-ok { color: var(--ok) !important; }
.lvl-warn { color: var(--warn) !important; }
.lvl-bad { color: var(--bad) !important; }

/* ---- karty ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card-link { font-size: 13px; font-weight: 500; }
.card-body { padding: 20px 24px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.grid-main > .card { margin: 0; }
.pill { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }

/* graf zateze: osa Y vlevo (HTML, SVG se roztahuje), osa casu pod grafem */
.area-wrap { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; }
.area-wrap .area { grid-column: 2; grid-row: 1; }
.area-y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 0 8px 0 0; font-size: 11.5px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.area-y span { line-height: 1; transform: translateY(-2px); }
.area-wrap .area-axis { grid-column: 2; }
.area { display: block; width: 100%; height: 260px; }
.area-grid { stroke: var(--line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.area-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.area-fill { stroke: none; }
.area-line.area-0 { stroke: var(--primary); }
.area-fill.area-0 { fill: rgba(70, 128, 255, .12); }
.area-line.area-1 { stroke: var(--ok); }
.area-fill.area-1 { fill: rgba(44, 168, 127, .07); }
.area-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.legend-0::before { background: var(--primary); }
.legend-1::before { background: var(--ok); }

/* zalohy v karte */
.statline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.statline span { color: var(--muted); }
.statline strong { font-size: 15px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.checklist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.checklist li.is-ok::before { background: var(--ok); }
.checklist li.is-warn::before { background: var(--warn); }
.checklist li.is-bad::before { background: var(--bad); }
.checklist span { flex: 1; font-weight: 500; }
.checklist em { font-style: normal; color: var(--muted); font-size: 13px; }

/* seznam veci k reseni */
.issues { list-style: none; margin: 0; padding: 0; }
.issue { display: flex; gap: 14px; align-items: flex-start; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); }
.issue:last-child { border-bottom: 0; }
.issue-ico { flex: none; display: grid; padding-top: 2px; }
.issue-bad .issue-ico { color: var(--bad); }
.issue-warn .issue-ico { color: var(--warn); }
.issue-text { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.issue-text small { color: var(--muted); font-size: 12.5px; }
.allgood { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ok-soft); color: #1d7a5b; font-weight: 500; }

/* ---- upozorneni ---- */
.notice { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; }
.notice-bad { background: var(--bad-soft); color: #b42318; border: 1px solid #f9caca; }
.notice strong { display: block; }
.notice-warn { background: var(--warn-soft); color: #8a5300; border: 1px solid #f5d9a8; margin-bottom: 16px; }
.notice p { margin: 4px 0 0; }
.notice details { margin-top: 8px; }
.notice summary { cursor: pointer; }
.notice details code { display: block; margin-top: 6px; padding: 8px 10px; white-space: pre-wrap; word-break: break-all; }
.alerts { display: grid; gap: 10px; }
.alert { margin: 0; padding: 12px 16px 12px 44px; border-radius: var(--radius-sm); font-size: 13.5px; position: relative; }
.alert::before { content: "!"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.alert-bad { background: var(--bad-soft); color: #b42318; }
.alert-bad::before { background: var(--bad); }
.alert-warn { background: var(--warn-soft); color: #9a5b00; }
.alert-warn::before { background: var(--warn); }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); }
.alert-info::before { content: "i"; background: var(--primary); }
.alert-ok { background: var(--ok-soft); color: #1d7a5b; }
.alert-ok::before { content: "\2713"; background: var(--ok); }

/* ---- nastrojova lista nad tabulkou ---- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; transition: all .15s ease; }
.chip span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--line-soft); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.chip:hover { border-color: #cdd5df; }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.is-on span { background: rgba(255, 255, 255, .22); color: #fff; }
.search { height: 40px; width: 300px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: 400 13.5px var(--sans); color: var(--ink); }
.search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---- tabulky ---- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-flush { border: 0; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 12px 20px; background: var(--subtle); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover td { background: var(--hover); }
.table-compact td { padding: 10px 20px; }
/* tabulka e-shopu ma hodne sloupcu: uzsi mezery, at se vejde bez posouvani */
#shops th, #shops td { padding-left: 14px; padding-right: 14px; }
#shops th:first-child, #shops td:first-child { padding-left: 20px; }
#shops th:last-child, #shops td:last-child { padding-right: 20px; }
.rowlink { font-weight: 600; color: var(--ink); }
.rowlink:hover { color: var(--primary); }
.table .sub { margin: 0; }
.table .desc { color: var(--ink-2); max-width: 520px; }
.shopcell { display: flex; align-items: center; gap: 12px; }
/* ikona e-shopu: ramecek v jeho barve (eshopy.css), bez barvy sedy */
.shop-ico { width: 32px; height: 32px; flex: none; border-radius: 8px; border: 2px solid var(--shop, var(--line)); background: #fff; object-fit: cover; box-sizing: border-box; }
.shop-ico-letter { display: inline-grid; place-items: center; background: var(--shop, var(--line-soft)); color: var(--shop-ink, var(--ink-2)); font-weight: 700; font-size: 14px; }
h1 .shop-ico { width: 36px; height: 36px; }
.color-input { width: 64px; min-height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }

/* vyber verze */
.table-select td { cursor: pointer; }
.col-pick { width: 48px; padding-right: 0 !important; }
.col-pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.table-select label { cursor: pointer; }
.table-select tr.is-current td { background: var(--subtle); }
.table-select tr:has(input:checked) td { background: var(--primary-soft); }

/* ---- stav a stitky ---- */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status-running::before, .status-job-done::before, .status-ok::before { background: var(--ok); }
.status-exited::before, .status-nebezi::before, .status-job-failed::before, .status-job-rejected::before, .status-bad::before { background: var(--bad); }
.status-exited, .status-nebezi, .status-job-failed, .status-job-rejected, .status-bad { color: var(--bad); }
.status-restarting::before, .status-job-running::before, .status-job-queued::before, .status-warn::before { background: var(--warn); }
.status-warn { color: var(--warn); }
.status-job-running::before { animation: pulse 1.2s ease-in-out infinite; }
h1 .status { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 12px; background: var(--ok-soft); color: #1d7a5b; }
@keyframes pulse { 50% { opacity: .3; } }
a.status:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: #1d7a5b; }
.badge-warn { background: var(--warn-soft); color: #9a5b00; }
.badge-bad { background: var(--bad-soft); color: #b42318; }
a.badge:hover { filter: brightness(.97); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 500; }
.tag-info { background: var(--primary-soft); color: var(--primary); }
.tag-ok { background: var(--ok-soft); color: #1d7a5b; }
.tag-muted { background: var(--line-soft); color: var(--ink-2); }

/* ---- tlacitka a formulare ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: var(--hover); border-color: #cdd5df; color: var(--ink); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--primary); font-weight: 600; }
.btn-light:hover { background: rgba(255, 255, 255, .9); color: var(--primary-dark); }
.hero-warn .btn-light { color: var(--warn); }
.hero-bad .btn-light { color: var(--bad); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn-block { width: 100%; height: 44px; font-size: 14px; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.formfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.formfoot .note { margin: 0; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { min-height: 42px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 14px var(--sans); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { padding: 10px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input.otp { font-family: var(--mono); font-size: 18px; letter-spacing: .3em; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-weight: 400; }
.hint { color: var(--muted); font-weight: 400; }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.radio { display: flex; align-items: baseline; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.radio input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; flex: none; transform: translateY(2px); }
.radio .muted { font-weight: 400; }
.form-wide { max-width: 760px; }
.form-delete { max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.inline-field { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.select { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: 400 13.5px var(--sans); color: var(--ink); }
.toolbar .btn { height: 38px; }
form.toolbar { justify-content: flex-start; }

/* formulare a obsah v bilem boxu */
.panel-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 680px; }
.panel-box p { margin: 0 0 12px; }
.form-narrow { max-width: 440px; margin-top: 18px; }
.formrow { display: flex; gap: 8px; justify-content: flex-end; }
form.form-wide, form.form-delete { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* ---- prihlaseni ---- */
.is-login { background: var(--bg); }
.is-login .page { min-height: 100vh; display: grid; place-items: center; padding: 24px; max-width: none; }
.login { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.login-brand { margin: 0 0 32px; font-weight: 700; font-size: 17px; letter-spacing: -.025em; color: var(--ink); }
.login-brand span { font-weight: 400; color: var(--muted); }
.login h1 { margin-bottom: 24px; }
.login h1 + .lead { margin-top: -18px; }
.login .lead { margin: 0 0 24px; color: var(--muted); }
.login-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#passkey-error { margin-bottom: 16px; }
.login-alt { display: flex; flex-direction: column; gap: 4px; align-items: center; margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* kod z aplikace: sest policek, mezera uprostred (kod se cte po trojicich jako v aplikaci) */
.otp-boxes { display: flex; gap: 8px; justify-content: space-between; margin: 0; padding: 0; border: 0; min-width: 0; }
.otp-box { width: 100%; min-width: 0; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-align: center; font: 600 24px/1 var(--sans); font-variant-numeric: tabular-nums; caret-color: var(--primary); transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; }
.otp-box:nth-of-type(3) { margin-right: 10px; }
.otp-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.otp-box.is-filled { background: var(--subtle); border-color: #cbd3dd; }
.otp-boxes.is-sending .otp-box { border-color: var(--primary); }

/* ---- prubeh ulohy ---- */
.steps { list-style: none; display: flex; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--muted); font-weight: 500; border-right: 1px solid var(--line-soft); }
.steps li:last-child { border-right: 0; }
.steps li::before { counter-increment: step; content: counter(step); width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--line-soft); color: var(--muted); }
.steps li.is-active { color: var(--primary); }
.steps li.is-active::before { background: var(--primary-soft); color: var(--primary); animation: pulse 1.2s ease-in-out infinite; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { content: "✓"; background: var(--ok); color: #fff; }
.steps li.is-failed { color: var(--bad); }
.steps li.is-failed::before { content: "×"; background: var(--bad); color: #fff; }
.log { margin: 0; background: #141b24; color: #dfe5ec; border-radius: var(--radius); padding: 20px; min-height: 140px; max-height: 60vh; overflow: auto; font: 12.5px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- server: karty s mericim ---- */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.metric h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.metric-ico { width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--line-soft); color: var(--ink-2); }
.metric-value { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric-value span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.metric-na { color: var(--muted); }
.metric-sub { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.metric-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 500; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.bar { height: 8px; margin-top: 12px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.bar-warn span { background: var(--warn); }
.bar-bad span { background: var(--bad); }
.bar .w0 { width: 0%; } .bar .w5 { width: 5%; } .bar .w10 { width: 10%; } .bar .w15 { width: 15%; } .bar .w20 { width: 20%; } .bar .w25 { width: 25%; } .bar .w30 { width: 30%; } .bar .w35 { width: 35%; } .bar .w40 { width: 40%; } .bar .w45 { width: 45%; } .bar .w50 { width: 50%; } .bar .w55 { width: 55%; } .bar .w60 { width: 60%; } .bar .w65 { width: 65%; } .bar .w70 { width: 70%; } .bar .w75 { width: 75%; } .bar .w80 { width: 80%; } .bar .w85 { width: 85%; } .bar .w90 { width: 90%; } .bar .w95 { width: 95%; } .bar .w100 { width: 100%; }
.spark { display: block; width: 100%; height: 60px; margin-top: 14px; }
.spark-line { fill: none; stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgba(70, 128, 255, .1); stroke: none; }
.spark-empty { font: 12px var(--sans); fill: var(--faint); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.is-bad { color: var(--bad); font-weight: 600; }

/* ---- zalozky, pocty ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; transition: color .15s ease; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.count { min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 11.5px; font-weight: 600; line-height: 20px; text-align: center; color: #fff; background: var(--warn); }
.count-bad { background: var(--bad); }
details.out { margin-top: 4px; }
details.out summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
details.out pre { margin: 6px 0 0; padding: 10px 12px; max-width: 560px; overflow-x: auto; background: var(--line-soft); border-radius: var(--radius-sm); font: 12px/1.5 var(--mono); white-space: pre-wrap; }

/* hromadne aktualizace */
.table tr.group th { padding: 10px 20px; background: var(--primary-soft); font-size: 12px; color: var(--primary); text-align: left; }
.table tbody tr.group:hover th { background: var(--primary-soft); }

/* ---- uzsi displeje: menu se vysouva ---- */
/* navstevnost */
.traffic-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.seg a { padding: 7px 14px; color: var(--muted); font-weight: 500; font-size: 13px; border-left: 1px solid var(--line); }
.seg a:first-child { border-left: 0; }
.seg a:hover { color: var(--ink); }
.seg a.is-on { background: var(--primary-soft); color: var(--primary); }
.online { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); }
.traffic-cell { display: block; color: var(--ink); }
.traffic-cell .sub { display: block; }
.online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.bars rect { fill: var(--primary); }
.share-table .share-label { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-table .bar { height: 4px; margin-top: 6px; }
.traffic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.traffic-grid > .card { margin: 0; }
.kpis + .card, .card + .traffic-grid, .traffic-grid + .card { margin-top: 24px; }
div.kpi:hover { border-color: var(--line); }

@media (max-width: 1200px) {
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-main { grid-template-columns: minmax(0, 1fr); }
	.traffic-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
	.side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
	body.side-open .side { transform: none; box-shadow: 0 0 40px rgba(29, 38, 48, .25); }
	.shell { margin-left: 0; }
	.side-toggle { display: inline-grid; }
}
@media (max-width: 760px) {
	.topbar { padding: 0 16px; height: 64px; }
	.page { padding: 4px 16px 40px; }
	.topbar-name { display: none; }
	.kpis { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.hero { padding: 26px 22px; flex-direction: column; align-items: stretch; }
	.fleet { width: 100%; }
	.hero h1 { font-size: 22px; }
	.pagehead { flex-direction: column; align-items: flex-start; }
	.pagehead-actions { flex-wrap: wrap; }
	.search { width: 100%; }
	.card-head, .card-body, .issue { padding-left: 16px; padding-right: 16px; }
	#shops th:nth-child(4), #shops td:nth-child(4), #shops th:nth-child(7), #shops td:nth-child(7) { display: none; }
	.steps { flex-direction: column; }
	.steps li { border-right: 0; border-bottom: 1px solid var(--line-soft); }
	.login { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
a.chip { text-decoration: none; }
.btn-small { height: 30px; padding: 0 10px; font-size: 12.5px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.input-short { width: 56px; }
.input-mono { font-family: var(--mono); }
