/* Klientská zóna 2.0 – vzhled A: tmavé boční menu, světlá pracovní plocha, Poppins, původní logo. */
@import url('fonts/fonts.css');

:root {
	--navy: #000025;
	--navy2: #0f0f3d;
	--magenta: #c621cc;
	--magenta-d: #a8189f;
	--plum: #7f0b85;
	--paper: #f9f9f7;
	--white: #ffffff;
	--ink: #14132b;
	--muted: #5f5d78;
	--line: #e6e4ee;
	--line2: #eeedf3;
	--soft: #f4f3f8;
	--pink-soft: #fdf5fd;
	--pink-line: #efc4f1;
	--ok: #1d7444;
	--ok-soft: #dcf2e4;
	--warn: #7a4800;
	--warn-soft: #fdecc8;
	--red: #97121a;
	--red-soft: #fde0e1;
	--violet: #5f1690;
	--violet-soft: #efe0fb;
	--r: 10px;
	--r-lg: 14px;
	--font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body.zone { margin: 0; overflow-x: hidden; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); }
a { color: var(--plum); }
a:hover { color: var(--magenta); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.ml-auto { margin-left: auto; }

/* ---------- Rozvržení: menu + obsah ---------- */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 248px; width: 248px; background: var(--navy); color: #d9d7f0; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { display: block; margin: 0 0 22px 6px; }
.side .logo img { width: 132px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r); color: #cfcde8; text-decoration: none; font-size: 14px; }
.nav:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav.on { background: rgba(198,33,204,.2); color: #fff; box-shadow: inset 3px 0 0 var(--magenta); }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav span.l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt { margin-left: auto; background: var(--magenta); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 9px; }
.who { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 10px; align-items: center; font-size: 13px; }
.who .n { color: #fff; display: block; }
.who .r { font-size: 12px; color: #a9a7cc; }
.who a { color: #a9a7cc; font-size: 12px; }
.who a:hover { color: #fff; }
.main { flex: 1 1 auto; min-width: 0; padding: 28px 36px 56px; display: flex; flex-direction: column; gap: 20px; }
.main.narrow { max-width: 1240px; }
.mhead { display: none; }
.tabbar { display: none; }

/* ---------- Hlavička stránky ---------- */
.phead { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.phead .t { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.crumb { font-size: 12.5px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--plum); }
.sub { font-size: 14px; color: var(--muted); }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; background: var(--magenta); color: #fff; font: 600 14px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--magenta-d); color: #fff; }
.btn.ghost { background: #fff; color: var(--plum); border-color: #e4c7e6; }
.btn.ghost:hover { border-color: var(--magenta); color: var(--magenta-d); }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #155c35; }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c4c7; }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn[disabled] { background: #d9d6e6; color: #6b6985; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--plum); cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--magenta); }
form.inline { display: inline; margin: 0; }

/* ---------- Karty, štítky ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.pad-s { padding: 10px; }
.card .ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; line-height: 1.3; }
.chip.wait { background: var(--warn-soft); color: var(--warn); }
.chip.go { background: var(--violet-soft); color: var(--violet); }
.chip.done { background: var(--ok-soft); color: #1a6a3e; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.mute { background: #eeedf3; color: #4f4d68; }
.chip.cms { background: var(--navy); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.chip.cms::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 2px rgba(198,33,204,.3); }
.webbox { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--soft); }
.webbox .row { gap: 8px; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--plum); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.av.us { background: #2a2a6e; }
.av.s { width: 28px; height: 28px; font-size: 11px; }
.av.l { width: 44px; height: 44px; font-size: 14px; }
.bar { display: flex; gap: 4px; min-width: 120px; }
.bar i { flex: 1; height: 6px; border-radius: 3px; background: #e9e7f1; }
.bar i.d { background: var(--plum); }
.bar i.a { background: var(--magenta); }
.empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border: 1px dashed #d8d5e6; border-radius: var(--r-lg); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Mřížky ---------- */
.g-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }
.g-auto > *, .g-2 > *, .g-kpi > * { min-width: 0; }
.g-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.g-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.span-all { grid-column: 1 / -1; }
.split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.split > .aside { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 4px; }
.split > .body { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .detail { flex: 1 1 300px; max-width: 380px; }

/* ---------- KPI ---------- */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--magenta); color: var(--ink); }
.kpi.hot { background: #fdf3fd; border-color: var(--pink-line); }
.kpi.alert { background: #fdf1f1; border-color: #f3c9cb; }
.kpi .n { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi.hot .n { color: var(--plum); }
.kpi.alert .n { color: var(--red); }
.kpi .l { font-size: 13px; color: var(--muted); }

/* ---------- Seznamy řádků ---------- */
.prow { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(170px, 1.4fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line2); text-decoration: none; color: var(--ink); }
.prow:first-of-type { border-top: 0; }
a.prow:hover { color: var(--ink); background: #fbfafd; }
.lrow { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); align-items: flex-start; }
.lrow:first-of-type { border-top: 0; }
.lrow .tx { display: flex; flex-direction: column; min-width: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--magenta); }
.dot.approved, .dot.contract { background: var(--ok); }
.dot.returned { background: var(--red); }
.dot.document, .dot.brief { background: #c27a00; }
.date { width: 48px; text-align: center; display: flex; flex-direction: column; background: var(--soft); border-radius: var(--r); padding: 6px 0; flex: none; }
.date b { font-size: 18px; line-height: 1.1; font-weight: 600; }
.date span { font-size: 11px; color: var(--muted); }

/* ---------- Tabulky ---------- */
.tbox { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
table.t .strong { font-weight: 600; color: var(--ink); text-decoration: none; }
table.t tr.off td { opacity: .55; }

/* ---------- Filtry, záložky ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font: 500 13px var(--font); color: var(--ink); text-decoration: none; }
.filter:hover { border-color: var(--magenta); color: var(--ink); }
.filter.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter b { font-weight: 600; opacity: .65; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { padding: 0 14px; color: var(--muted); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--magenta); }
.tab b { font-weight: 600; font-size: 11px; background: #eeedf3; color: #4f4d68; padding: 1px 7px; border-radius: 9px; }
.tab b.hot { background: var(--magenta); color: #fff; }
.search { min-height: 44px; width: 280px; max-width: 100%; border: 1px solid #d9d6e6; border-radius: var(--r); padding: 0 14px; font: 14px var(--font); background: #fff; color: var(--ink); }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.sl { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 14px; }
.sl:hover { background: var(--soft); color: var(--ink); }
.sl.on { background: #fff; box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--magenta); font-weight: 600; }
.sl .meta { font-size: 12.5px; color: var(--muted); font-weight: 400; display: block; }

/* ---------- Ukazatel fází ---------- */
.steps { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; flex: 1; min-width: 96px; position: relative; }
.step::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: #e4e2ee; }
.step:first-child::before { display: none; }
.step.d::before, .step.a::before { background: var(--plum); }
.step .c { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; border: 2px solid #d8d5e6; background: #fff; color: var(--muted); position: relative; z-index: 1; }
.step.d .c { background: var(--plum); border-color: var(--plum); color: #fff; }
.step.a .c { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 0 5px #f6d3f7; }
.step.r .c { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.step .n { font-size: 13px; font-weight: 600; }
.step .s { font-size: 12px; color: var(--muted); }
.step.a .s { color: var(--magenta-d); font-weight: 500; }
.phase { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line2); }
.phase:first-of-type { border-top: 0; }
.pnum { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--soft); color: var(--muted); }
.pnum.approved { background: var(--violet-soft); color: var(--violet); }
.pnum.cur { background: var(--magenta); color: #fff; }
.pnum.returned { background: var(--red-soft); color: var(--red); }

/* ---------- Úloha / schválení ---------- */
.task { background: var(--navy); color: #fff; border-radius: 18px; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background-image: radial-gradient(50% 120% at 100% 0%, rgba(198,33,204,.4), transparent 70%); }
.task .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #f0a8f3; }
.task h2 { font-size: 22px; }
.task p { font-size: 14px; line-height: 1.6; color: #d9d7f0; max-width: 620px; }
.approve { border: 1.5px solid var(--pink-line); background: var(--pink-soft); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.approve.ok { border-color: #bfe5cd; background: #f1faf4; }
.approve.ret { border-color: #f3c9cb; background: #fdf6f6; }
.points { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.points li .n { width: 24px; height: 24px; border-radius: 7px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.points li.done .n { background: var(--ok-soft); color: #1a6a3e; }
.att { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; background: var(--soft); border-radius: 8px; padding: 4px 10px; color: #4f4d68; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.att:hover { color: var(--plum); }

/* ---------- Formuláře ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field .row-between > label, .lbl { font-size: 13px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); }
.inp, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=date], .field input[type=number], .field select, .field textarea {
	min-height: 44px; width: 100%; border: 1px solid #d9d6e6; border-radius: var(--r); padding: 0 14px; font: 14px var(--font); background: #fff; color: var(--ink);
}
.field textarea { padding: 10px 14px; min-height: 90px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--magenta); outline-offset: 1px; border-color: var(--magenta); }
/* Výběr souborů: bez JS aspoň nastylované tlačítko prohlížeče, s JS vlastní .filepick (zone.js) */
input[type=file] { font: 13px var(--font); color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid #e4c7e6; background: #fff; color: var(--plum); font: 600 13px var(--font); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--magenta); color: var(--magenta-d); }
.filepick { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.filepick > input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.filepick .fp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid #e4c7e6; background: #fff; color: var(--plum); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.filepick .fp-btn svg { width: 18px; height: 18px; flex: none; }
.filepick:hover .fp-btn { border-color: var(--magenta); color: var(--magenta-d); }
.filepick > input[type=file]:focus-visible + .fp-btn { outline: 2px solid var(--magenta); outline-offset: 2px; }
.filepick .fp-name { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.filepick.has .fp-name { color: var(--ink); font-weight: 500; }
.filepick .fp-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filepick .fp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; font-size: 12.5px; background: var(--violet-soft); color: var(--violet); border-radius: 20px; padding: 4px 10px; }
.filepick .fp-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filepick .fp-chip small { opacity: .7; flex: none; }
.drop .filepick { justify-content: center; }
.js .drop .chosen { display: none; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--magenta); flex: none; }
.form-errors { margin: 0; padding: 10px 14px; list-style: none; background: var(--red-soft); color: var(--red); border-radius: var(--r); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }
.drop { border: 2px dashed #d8c1e0; border-radius: var(--r-lg); padding: 18px; text-align: center; color: var(--muted); font-size: 14px; background: #fdfbfe; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.drop.over { border-color: var(--magenta); background: var(--pink-soft); }
details.more > summary { cursor: pointer; color: var(--plum); font-weight: 500; font-size: 14px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; font-weight: 600; }
details.more[open] > summary::before { content: "–"; }
details.more[open] > summary { margin-bottom: 12px; }

/* ---------- Soubory ---------- */
.file { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; color: var(--ink); }
.file:hover { background: #fbfafd; border-color: var(--line2); color: var(--ink); }
.file.on { background: var(--pink-soft); border-color: var(--pink-line); }
.ext { width: 44px; height: 52px; border-radius: 8px; display: grid; place-items: end center; padding-bottom: 6px; font-size: 10px; font-weight: 700; color: #fff; background: #2a2a6e; }
.ext.PDF { background: #a3141c; }
.ext.JPG, .ext.JPEG, .ext.PNG, .ext.WEBP, .ext.GIF, .ext.HEIC, .ext.SVG { background: #2a6fdb; }
.ext.ZIP, .ext.RAR, .ext.7Z { background: #6b5b18; }
.ext.XLS, .ext.XLSX, .ext.CSV { background: #1d7444; }
.preview { height: 200px; border-radius: var(--r); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .ph { width: 100%; height: 100%; background: linear-gradient(135deg, #000025 0 46%, #c621cc 46% 58%, #f3d7f4 58%); display: flex; align-items: flex-end; padding: 10px; color: #fff; font-size: 12px; font-weight: 600; }

/* ---------- Zprávy ---------- */
.chat { background: var(--soft); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 420px; }
.msg { display: flex; gap: 12px; align-items: flex-start; max-width: 680px; }
.msg.me { flex-direction: row-reverse; align-self: flex-end; }
.bub { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bub .txt { white-space: pre-line; overflow-wrap: anywhere; }
.msg.me .bub { background: var(--violet-soft); border-color: #e0c8f5; }
.chat .composer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Upozornění ---------- */
.flash { padding: 12px 16px; border-radius: var(--r); font-size: 14px; background: var(--ok-soft); color: #1a5c37; border: 1px solid #bfe5cd; }
.flash.warning, .flash.error { background: #fff4e0; color: var(--warn); border-color: #f2d9a6; }
.opt { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 500 12.5px var(--font); color: #4f4d68; cursor: pointer; }
.opt:hover { border-color: var(--magenta); }
.opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.prefrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line2); }
.web { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.web i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.web i.off { background: #a3141c; }
.web i.unk { background: #b5b3c8; }
.al { display: inline-flex; gap: 4px; }
.al span { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: #eeedf3; color: #6b6985; }
.al span.s { background: var(--ok-soft); color: #1a6a3e; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.mailframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #ebe9f2; }
.webpin { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.webpin.done { opacity: .65; }
.webpin__shot { flex: 0 0 220px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.webpin__shot img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.webpin:target { background: var(--soft); border-radius: var(--r); }
.webpin__thread { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--line); }
.webpin__comment { padding: 6px 10px; border-radius: var(--r); background: var(--soft); }
.webpin__comment.client { background: transparent; border: 1px solid var(--line); }
.webpin__reply summary { cursor: pointer; list-style: none; display: inline-block; }
.webpin__reply summary::-webkit-details-marker { display: none; }
.webpin__reply textarea { width: 100%; max-width: 560px; }
@media (max-width: 640px) { .webpin { flex-direction: column; } .webpin__shot { flex-basis: auto; width: 100%; } }
.langlink { color: inherit; opacity: .6; text-decoration: none; font-weight: 600; }
.langlink.on, .langlink:hover { opacity: 1; text-decoration: underline; }
.perfbox { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: #eef8f1; border: 1px solid #cfe9d8; }
.perfbox--prumer { background: #fff7e8; border-color: #f1dcae; }
.perfbox--pomale { background: #fdeeee; border-color: #f2c9c9; }
.perfbox ul { margin: 2px 0 0; padding-left: 18px; }
.mailtpl { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.mailtpl-list { padding: 10px; gap: 0; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.mailtpl-list h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 8px 4px; }
.mailtpl-list h3:first-child { margin-top: 2px; }
.mailtpl-list a { display: flex; flex-direction: column; gap: 1px; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.mailtpl-list a:hover { background: var(--soft, #f4f3f8); }
.mailtpl-list a.on { background: var(--navy); color: #fff; }
.mailtpl-list a.on .muted { color: rgba(255, 255, 255, .7); }
.mailtpl-frame .mailframe { height: 780px; }
.mailtpl-frame.mobile { display: flex; justify-content: center; background: #ebe9f2; border-radius: var(--r-lg); padding: 18px 0; }
.mailtpl-frame.mobile .mailframe { width: 390px; height: 760px; border: 8px solid #1d1b2b; border-radius: 30px; }
@media (max-width: 900px) {
	.mailtpl { grid-template-columns: 1fr; }
	.mailtpl-list { position: static; max-height: 260px; }
	.mailtpl-frame.mobile .mailframe { width: 100%; max-width: 390px; }
}

/* ---------- Přihlášení ---------- */
body.zone.auth { background: var(--navy); }
.authwrap { min-height: 100vh; background: radial-gradient(60% 50% at 100% 0%, rgba(198,33,204,.35), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(127,11,133,.45), transparent 70%), var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 16px; }
.authwrap .logo img { width: 190px; height: auto; display: block; }
.authcard { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.authcard h1 { font-size: 24px; }
.authwrap .foot { font-size: 13px; color: #a9a7cc; }
.pwmeter { display: flex; gap: 4px; }
.pwmeter i { flex: 1; height: 5px; border-radius: 3px; background: #e9e7f1; }
.pwmeter.s1 i:nth-child(-n+1), .pwmeter.s2 i:nth-child(-n+2) { background: #c27a00; }
.pwmeter.s3 i:nth-child(-n+3), .pwmeter.s4 i { background: var(--ok); }
.pwbox { position: relative; }
.pwbox input { padding-right: 70px !important; }
.pwbox button { position: absolute; right: 6px; top: 6px; height: 34px; min-width: 56px; border: 0; background: var(--soft); border-radius: 8px; font: 500 12px var(--font); color: #4f4d68; cursor: pointer; }

/* ---------- Chybová stránka ---------- */
.err404 { text-align: center; }
.err404 .big { font-size: 96px; font-weight: 700; line-height: 1; color: #f0a8f3; }
.err404 h1 { color: #fff; font-size: 28px; }
.err404 p { color: #cfcde8; max-width: 520px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
	.shell { display: block; }
	.side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .2s ease; height: auto; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
	body.menu-open .side { transform: none; }
	body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,37,.5); z-index: 40; }
	.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
	.mhead img { width: 86px; height: auto; display: block; }
	.mhead button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
	.main { padding: 20px 16px 96px; }
	.g-2, .g-auto { grid-template-columns: minmax(0, 1fr); }
	.g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.kpi { padding: 12px 14px; }
	.kpi .n { font-size: 22px; }
	.phead > .btn, .phead > form { width: 100%; }
	.phead .search { width: 100%; }
	.card .ch { align-items: flex-start; }
	.span-all { grid-column: auto; }
	.split > .aside, .split > .detail { max-width: none; }
	.tabbar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
	.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; font-size: 11px; color: var(--muted); text-decoration: none; position: relative; }
	.tabbar a svg { width: 22px; height: 22px; }
	.tabbar a.on { color: var(--magenta-d); font-weight: 600; }
	.tabbar a .cnt { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; }
	.task { padding: 22px 20px; }
	h1 { font-size: 22px; }
	.prow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .side, .mhead, .tabbar { display: none !important; } .main { padding: 0; } }
@media (max-width: 600px) {
	.step { min-width: 74px; }
	.step .n { font-size: 12px; }
	.step .s { font-size: 11px; }
}

/* Modální okna (potvrzení, výběr stavu fáze) */
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }
.js .nojs-only { display: none !important; }
dialog.zmodal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); width: 520px; color: var(--ink); font-family: var(--font); }
dialog.zmodal--sm { width: 420px; }
dialog.zmodal::backdrop { background: rgba(0, 0, 37, .45); backdrop-filter: blur(3px); }
dialog.zmodal[open] { animation: zmodal-in .18s ease-out; }
@keyframes zmodal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.zmodal__box { background: var(--white); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 37, .25); padding: 26px 26px 22px; }
.zmodal__box h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.zmodal__box > p { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.zmodal__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft); color: var(--magenta); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.zmodal.is-danger .zmodal__icon { background: var(--red-soft); color: var(--red); }
.zmodal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-solid:hover { background: #7a0e15; color: #fff; }

/* Tlačítko „Změnit stav“ u fáze */
.statusbtn { align-items: center; gap: 6px; background: #fff; border: 1px solid #e4c7e6; color: var(--plum); border-radius: 20px; padding: 5px 12px; font: 500 12.5px var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.statusbtn:hover { border-color: var(--magenta); background: var(--pink-soft); color: var(--magenta-d); }
.statusbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* Výběr stavu: karty s barevnou tečkou */
.stpick { display: grid; gap: 8px; margin-top: 16px; }
.stpick__opt { --c: #8a88a3; --s: #eeedf3; position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.stpick__opt.st-go { --c: var(--violet); --s: var(--violet-soft); }
.stpick__opt.st-done { --c: var(--ok); --s: var(--ok-soft); }
.stpick__opt.st-red { --c: var(--red); --s: var(--red-soft); }
.stpick__opt.st-wait { --c: var(--warn); --s: var(--warn-soft); }
.stpick__opt[data-st=review] { --c: var(--magenta); --s: var(--pink-soft); }
.stpick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.stpick__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--s); }
.stpick__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stpick__txt b { font-size: 14px; font-weight: 600; }
.stpick__txt small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.stpick__now { display: none; margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--soft); color: var(--muted); }
.stpick__opt:hover { border-color: var(--c); background: var(--s); }
.stpick__opt:has(input:checked) { border-color: var(--c); background: var(--s); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.stpick__opt:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 2px; }
.stpick__opt.is-current { cursor: default; opacity: .6; background: var(--soft); border-style: dashed; }
.stpick__opt.is-current:hover { border-color: var(--line); }
.stpick__opt.is-current .stpick__now { display: inline-block; }
@media (max-width: 600px) {
	.zmodal__box { padding: 20px 18px 18px; }
	.zmodal__actions .btn { flex: 1; }
}

/* ===== Rozvoj 10/2026: hledání, interní karty, úkoly, nástěnka, náhled s připomínkami, předání, požadavky ===== */
.red { color: var(--red) !important; }
.lbl { font-size: 13px; font-weight: 600; }
.tabbar button { display: none; }
@media (max-width: 900px) {
	.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; font: 11px var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; }
	.tabbar button svg { width: 22px; height: 22px; }
	.sidesearch kbd { display: none; }
}

/* Hledání */
.sidesearch { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 0 14px; padding: 0 12px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #c9c6e6; font: 13.5px var(--font); cursor: pointer; text-align: left; }
.sidesearch:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidesearch span { flex: 1; }
.sidesearch kbd { font: 600 10.5px var(--font); padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.12); color: #d9d7f0; }
dialog.zsearch { width: 640px; margin-top: 10vh; }
.zsearch .zmodal__box { padding: 14px; }
.zsearch__field { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--muted); }
.zsearch__field:focus-within { border-color: var(--magenta); }
.zsearch__field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 16px var(--font); padding: 12px 0; background: transparent; color: var(--ink); }
.zsearch__results { max-height: 56vh; overflow-y: auto; margin-top: 8px; }
.zsearch__results a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.zsearch__results a small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zsearch__results a.on, .zsearch__results a:hover { background: var(--pink-soft); }
.zsearch__group { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.zsearch__hint { margin: 8px 4px 0; }

/* Interní karty (klient je nevidí) */
.card.internal { background: #fbfaf6; border-color: #ece6d4; }
.note { padding: 10px 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.note.pinned { border-color: #e9cf8f; background: #fffaf0; }

/* Úkoly */
.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.card h2 + .task-row, .ch + .task-row { border-top: 0; }
.task-row .tx { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; font-size: 14px; }
.task-row.done .tx > span:first-child { text-decoration: line-through; color: var(--muted); }
.tickbtn { width: 22px; height: 22px; min-height: 0; border-radius: 7px; border: 1.5px solid #c9c4d8; background: #fff; cursor: pointer; padding: 0; margin-top: 1px; position: relative; flex: none; }
.tickbtn:hover { border-color: var(--ok); background: var(--ok-soft); }
.tickbtn.on { background: var(--ok); border-color: var(--ok); }
.tickbtn.on::after, .tickbtn:hover::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tickbtn:hover:not(.on)::after { border-color: var(--ok); }

/* Šablony odpovědí ve zprávách */
.snippets { gap: 6px; }
.snippets .opt { min-height: 30px; font-size: 12px; }

/* Nástěnka fází */
.board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board__col { background: var(--soft); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; border: 2px dashed transparent; transition: border-color .15s, background .15s; }
.board__col.over { border-color: var(--magenta); background: var(--pink-soft); }
.board__head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.board__head b { flex: 1; }
.board__head .stpick__dot { width: 10px; height: 10px; --c: #8a88a3; --s: #eeedf3; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--s); }
.board__head .st-go { --c: var(--violet); --s: var(--violet-soft); }
.board__head .st-done { --c: var(--ok); --s: var(--ok-soft); }
.board__head .st-red { --c: var(--red); --s: var(--red-soft); }
.board__head [data-st=review] { --c: var(--magenta); --s: var(--pink-soft); }
.board__hint { margin: -4px 0 2px 18px; }
.board__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,37,.04); }
.board__card[draggable=false] { cursor: default; opacity: .85; }
.board__card.dragging { opacity: .4; }
.board__card:hover { border-color: #d8c1e0; }
.board__title { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.board__title:hover { color: var(--magenta-d); }
.board__phase { font-size: 13px; }
.board__phase b { font-size: 11px; color: var(--muted); margin-right: 4px; }
.board__btn { align-self: flex-start; }
.board__empty { text-align: center; padding: 12px 0; }

/* Náhled s připomínkami */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.review__stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.review__page { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: crosshair; box-shadow: 0 2px 10px rgba(0,0,37,.06); }
.review__page > img, .review__page > canvas { display: block; width: 100%; height: auto; border-radius: 8px; }
.review__loading { padding: 60px 0; text-align: center; }
.review__side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--magenta); color: #fff; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,37,.3); font: 700 12px var(--font); display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 2; }
.pin.done { background: var(--ok); opacity: .75; }
.pin.ghost { background: var(--navy); pointer-events: none; }
.pin.hl { outline: 3px solid rgba(198,33,204,.35); outline-offset: 2px; z-index: 3; }
.pinform-holder { position: absolute; z-index: 5; width: min(320px, 90%); margin-top: 18px; transform: translateX(-8%); }
.pinform { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: 0 12px 30px rgba(0,0,37,.18); display: flex; flex-direction: column; gap: 8px; cursor: default; }
.pinform textarea { min-height: 70px; resize: vertical; }
.pinlist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pinitem { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .15s, background .15s; }
.pinitem .row-between { flex-wrap: nowrap; justify-content: flex-start; }
.pinitem:hover, .pinitem.hl { border-color: var(--magenta); background: var(--pink-soft); }
.pinitem.done { opacity: .65; }
.pinitem.done p { text-decoration: line-through; }
.pinnum { width: 22px; height: 22px; border-radius: 50%; background: var(--magenta); color: #fff; font: 700 11px var(--font); display: grid; place-items: center; flex: none; }
.pinitem.done .pinnum { background: var(--ok); }
@media (max-width: 1000px) { .review { grid-template-columns: minmax(0, 1fr); } .review__side { position: static; max-height: none; } }

/* Požadavky */
.reqsteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.reqsteps li { flex: 1; min-width: 90px; text-align: center; font-size: 12.5px; font-weight: 500; padding: 8px 6px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.reqsteps li.done { background: var(--violet-soft); color: var(--violet); }
.reqsteps li.cur { background: var(--magenta); color: #fff; }
.reqsteps li.rej { background: #eeedf3; color: #4f4d68; }
.pillopt { position: relative; }
.pillopt input { position: absolute; opacity: 0; }
.pillopt span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line); font-size: 13.5px; cursor: pointer; }
.pillopt input:checked + span { border-color: var(--magenta); background: var(--pink-soft); color: var(--magenta-d); font-weight: 600; }
.pillopt input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
tr.rowlink:hover td { background: #fbfafd; }

/* Předání projektu a hodnocení */
.handover { display: flex; flex-direction: column; gap: 18px; }
.handover__hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background-image: radial-gradient(50% 140% at 100% 0%, rgba(198,33,204,.45), transparent 70%); }
.handover__hero h2 { font-size: 22px; margin: 0; }
.handover__hero p { color: #d9d7f0; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 32px; line-height: 1; color: #dcd8e6; cursor: pointer; transition: color .1s, transform .1s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f2a91c; }
.stars label:hover { transform: scale(1.1); }
.stars input:focus-visible + label { outline: 2px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
.stars-ro { color: #f2a91c; letter-spacing: 1px; }
.stars-ro span { color: #dcd8e6; }

/* Přehled webu */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta-d); }
.task .eyebrow { color: #f0a8f3; }
.report h3 { font-size: 15px; margin: 6px 0 8px; }

/* Kalendář a kopírování */
.calbox { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.calbox h2 { display: flex; align-items: center; gap: 8px; }
.copyrow { display: flex; gap: 8px; }
.copyrow .inp { flex: 1; min-width: 0; font-size: 12.5px; background: var(--soft); }

/* QR platba */
.qrbox { text-align: center; }
.qrbox img { display: block; margin: 12px auto; border: 1px solid var(--line); border-radius: 10px; max-width: 100%; height: auto; }
.qrbox .dl { text-align: left; margin-top: 8px; }

/* ===== Zobrazit jako (náhled očima klienta / projektového manažera) ===== */
.pvbar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 18px; background: var(--navy); color: #fff; background-image: linear-gradient(90deg, rgba(198,33,204,.38), transparent 65%); box-shadow: 0 4px 18px rgba(0,0,37,.25); }
.pvbar__eye { width: 30px; height: 30px; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; flex: none; }
.pvbar__eye svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; }
.pvbar__t { flex: 1; min-width: 220px; font-size: 13.5px; line-height: 1.4; }
.pvbar__t b { font-weight: 600; }
.pvbar__t small { display: block; color: #c9c6e6; font-size: 12px; }
.pvbar__a { display: flex; flex-wrap: wrap; gap: 6px; }
.pvbtn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: #fff; color: var(--navy); font: 600 12.5px var(--font); cursor: pointer; text-decoration: none; }
.pvbtn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.pvbtn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.pvmobile .pvbtn.ghost { color: var(--plum); border-color: #e4c7e6; }
.in-frame .pvbar { display: none; }
body[data-preview] .side { top: 0; }
dialog.pvmobile { width: auto; max-width: calc(100vw - 32px); }
.pvmobile__box { background: #fff; border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.pvmobile__head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.pvphone { width: 406px; max-width: 100%; border-radius: 36px; padding: 8px; background: #14132b; box-shadow: 0 20px 50px rgba(0,0,37,.35); }
.pvphone iframe { display: block; width: 390px; max-width: 100%; height: min(760px, 72vh); border: 0; border-radius: 28px; background: #fff; }

/* menu Zobrazit jako… u projektu */
.pvmenu { position: relative; }
.pvmenu > summary { list-style: none; cursor: pointer; }
.pvmenu > summary::-webkit-details-marker { display: none; }
.pvmenu__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 340px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 44px rgba(0,0,37,.18); padding: 8px; }
.pvmenu__g { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 3px; }
.pvmenu__o { margin: 0; }
.pvmenu__o button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.pvmenu__o button:hover, .pvmenu__o button:focus-visible { background: var(--pink-soft); }
.pvmenu__tx { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.pvmenu__tx small { color: var(--muted); font-size: 11.5px; }
.pvpick { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pvpick:first-of-type { border-top: 0; }
.pvpick .tx { display: flex; flex-direction: column; min-width: 0; }
.pvpick.on { background: var(--pink-soft); border-radius: var(--r); padding-inline: 10px; }
@media (max-width: 900px) { .pvbar { position: relative; } .pvbar__t { min-width: 0; } .pvmenu__list { right: auto; left: 0; } }

/* ===== Průvodce po prvním přihlášení ===== */
dialog.onb { width: 480px; }
.onb .zmodal__box { padding: 28px 28px 22px; }
.onb__steps { display: flex; gap: 6px; margin-bottom: 18px; }
.onb__steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.onb__steps i.on { background: var(--magenta); }
.onb__step { display: flex; flex-direction: column; gap: 10px; }
.onb__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--pink-soft); color: var(--magenta-d); display: grid; place-items: center; }
.onb__step h2 { font-size: 20px; margin: 4px 0 0; }
.onb__step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.onb .zmodal__actions { justify-content: space-between; }

/* ===== Vystavení faktury, ekonomika, vytížení ===== */
.invitems { display: flex; flex-direction: column; gap: 6px; }
.invitems__head, .invitems__row { display: grid; grid-template-columns: minmax(0, 3fr) 90px 70px 130px 110px; gap: 8px; align-items: center; }
.invitems__head { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.invitems__row .inp { min-height: 38px; padding: 0 10px; }
.invitems__row[hidden] { display: none; }
.invitems .r { text-align: right; }
.invitems__sum { font-size: 15px; }
.qitems .invitems__row { align-items: start; }
.qitems__t { display: grid; gap: 4px; min-width: 0; }
.qitems .sub-inp { min-height: 30px; padding: 0 10px; font-size: 13px; border: 1px dashed var(--line); border-radius: var(--r-sm, 8px); background: transparent; color: var(--ink); font-family: inherit; }
.qitems .sub-inp:focus { border-style: solid; outline: 2px solid var(--pink-line); outline-offset: 0; }
.qitems [data-line] { padding-top: 10px; }
/* Cenová nabídka – detail */
.quote-doc { display: flex; flex-direction: column; gap: 14px; }
.quote-doc__intro { font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 68ch; }
.quote-items td { vertical-align: top; }
.quote-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin: 4px 0 0 auto; min-width: min(100%, 320px); font-size: 14px; }
.quote-sum dt { color: var(--muted); text-align: right; }
.quote-sum dd { margin: 0; text-align: right; }
.quote-sum .big { font-size: 18px; font-weight: 700; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); }
.quote-phases { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.quote-phases li { display: grid; gap: 1px; }
.quote-reject summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.quote-reject[open] summary { margin-bottom: 10px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.quote-jump, .q-unit-m { display: none; }
@media (max-width: 760px) {
	.quote-jump { display: inline-flex; align-self: flex-start; margin: -6px 0 16px; }
	.quote-items .q-unit { display: none; }
	.quote-items .q-unit-m { display: block; }
	.quote-items { min-width: 0 !important; }
	.quote-items th, .quote-items td { padding-left: 8px; padding-right: 8px; }
	.quote-items th:first-child, .quote-items td:first-child { padding-left: 12px; }
	.quote-items th:last-child, .quote-items td:last-child { padding-right: 12px; }
}
@media (max-width: 720px) { .qitems .invitems__head { display: none; } .qitems .invitems__row { grid-template-columns: 1fr 1fr; } .qitems__t { grid-column: 1 / -1; } }
.invitems__sum b { font-size: 18px; }
@media (max-width: 760px) {
	.invitems__head { display: none; }
	.invitems__row { grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
	.invitems__row .inp:first-child { grid-column: 1 / -1; }
}
.econ td.bad { color: var(--red); font-weight: 600; }
.econ td.good { color: var(--ok); font-weight: 600; }
.meter { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; background: var(--violet); }
.meter i.over { background: var(--red); }
.meter i.warn { background: #d99a1c; }
/* AI pomocník pro tým */
.ai-tools { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ai-out { flex-basis: 100%; white-space: pre-line; font-size: 14px; line-height: 1.55; padding: 12px 14px; border-radius: var(--r-md, 10px); background: var(--soft); border: 1px dashed var(--line); }
.ai-out.bad { color: var(--red); border-color: currentColor; }

/* Tabulky jako karty na mobilu (Projekty): každý řádek = karta, buňky s popiskem z data-label */
table.t-projects { min-width: 900px; }
.tc-only { display: none; }
@media (max-width: 760px) {
	.tbox:has(> table.t-cards) { overflow: visible; border: 0; background: none; box-shadow: none; }
	table.t-cards, table.t-projects { min-width: 0; }
	table.t-cards thead { display: none; }
	table.t-cards, table.t-cards tbody { display: block; }
	table.t-cards tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 16px; margin-bottom: 12px;
		background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; }
	table.t-cards td { display: block; padding: 0; border: 0; min-width: 0; }
	table.t-cards td:empty { display: none; }
	table.t-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
	table.t-cards td.tc-head, table.t-cards td.tc-wide { grid-column: 1 / -1; }
	table.t-cards td.tc-head { padding-bottom: 8px; border-bottom: 1px solid var(--line2); }
	table.t-cards td.tc-head .strong { font-size: 16px; }
	table.t-cards .nowrap { white-space: normal; }
	.tc-only { display: inline; }
}

/* Záložky projektu na mobilu: jeden posuvný řádek (prstem do strany), aktivní záložka se vycentruje (zone.js), okraje doznívají */
@media (max-width: 760px) {
	.tabs { position: relative; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; gap: 6px;
		border-bottom: 0; padding: 2px 0 10px; margin: 0 -16px; padding-inline: 16px;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
	.tabs::-webkit-scrollbar { display: none; }
	.tab { flex: 0 0 auto; scroll-snap-align: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; }
	.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
	.tab.on b { background: rgba(255, 255, 255, .18); color: #fff; }
}
