
:root {
  /* MechanikPilot · světlý svět sparts: bílá + jedna zelená pro akce; levý panel modulů, pracovní plocha pro skenování */
  --mp-green: #16a34a;
  --mp-green-dark: #15803d;
  --mp-green-50: #ecfdf3;
  --mp-green-100: #cdeed8;
  --bg: #ffffff;
  --surface: #f5f8f6;
  --surface-2: #edf2ef;
  --border: #e1e8e4;
  --border-2: #cfd9d3;
  --text: #0f1d16;
  --text-2: #52625a;
  --text-3: #85938b;
  --amber: #b45309; --amber-bg: #fff4e0;
  --red: #c62828; --red-bg: #fdecec;
  --blue: #1d4ed8; --blue-bg: #e9f0ff;
  --violet: #6d28d9; --violet-bg: #f1ebff;
  --teal: #0f766e; --teal-bg: #e3f6f3;
  --slate: #475569; --slate-bg: #eef1f5;
  --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 12px;
  --shadow: 0 1px 2px rgba(15, 29, 22, .05), 0 6px 20px rgba(15, 29, 22, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font: 14px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--mp-green); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num, .r { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.muted { color: var(--text-3); }
.sub2 { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.ok-t, .green-t { color: var(--mp-green-dark); } .red-t { color: var(--red); } .amber-t { color: var(--amber); } .violet-t { color: var(--violet); }
.hint { color: var(--text-2); font-size: 12.5px; margin: 10px 0 0; }
.nowrap { white-space: nowrap; }

/* ---------- rozložení ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100%; }
.sidebar { background: var(--bg); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 10px 24px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--mp-green); display: grid; place-items: center; color: #fff; }
.logo .ic { width: 20px; height: 20px; stroke-width: 2; }
.logo.lg { width: 48px; height: 48px; border-radius: 14px; }
.logo.lg .ic { width: 28px; height: 28px; }
.brand b { font: 800 17px/1.1 var(--font-display); letter-spacing: -0.02em; display: block; }
.brand span { font-size: 11.5px; color: var(--text-3); }
.nav-group { margin-top: 10px; }
.nav-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 6px 12px 4px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 500; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--mp-green-50); color: var(--mp-green-dark); }
.nav-link.active .ic { color: var(--mp-green); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mp-green); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.nav-badge.red { background: var(--red); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 62px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.icon-btn.menu-btn { display: none; }
.search { position: relative; flex: 1; max-width: 560px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search input { width: 100%; height: 40px; border: 1px solid var(--border-2); border-radius: 10px; padding: 0 64px 0 38px; background: var(--surface); }
.search input:focus { background: #fff; border-color: var(--mp-green); outline: none; box-shadow: 0 0 0 3px var(--mp-green-50); }
.kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font-mono); color: var(--text-3); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 5px; background: #fff; }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); max-height: 70vh; overflow-y: auto; padding: 6px; }
.sr-g { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 8px 10px 4px; }
.sr-item, .sr-new { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.sr-item:hover, .sr-new:hover { background: var(--surface); }
.sr-sub { display: block; font-size: 12px; color: var(--text-2); margin-top: 3px; }
.sr-empty { padding: 12px; color: var(--text-2); }
.sr-new { color: var(--mp-green-dark); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.role-sel { height: 38px; border: 1px solid var(--border-2); border-radius: 10px; padding: 0 10px; background: #fff; font-weight: 500; }
.bell-wrap { position: relative; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2); background: #fff; display: grid; place-items: center; cursor: pointer; position: relative; color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }
.icon-btn.sm { width: 28px; height: 28px; border-color: transparent; }
.icon-btn.sm .ic { width: 15px; height: 15px; }
#bell-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
#notif-panel { position: absolute; right: 0; top: 46px; width: 360px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.np-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.np-item:hover { background: var(--surface); }
.np-item.unread { background: var(--mp-green-50); }
.np-t { font-weight: 600; } .np-x { grid-column: 1; font-size: 12.5px; color: var(--text-2); } .np-time { grid-row: 1; grid-column: 2; font-size: 11.5px; color: var(--text-3); }
#view { padding: 22px 24px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 1480px; width: 100%; }

/* ---------- prvky ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head .sub { margin: 4px 0 0; color: var(--text-2); max-width: 75ch; }
.page-actions, .btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-row.wrap { margin-top: 10px; }
.crumbs { color: var(--text-3); font-size: 13px; margin-bottom: -8px; }
.crumbs a { color: var(--text-2); text-decoration: none; } .crumbs a:hover { color: var(--mp-green-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-2); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; color: var(--text); }
.btn:hover { border-color: var(--text-3); background: var(--surface); }
.btn-primary { background: var(--mp-green); border-color: var(--mp-green); color: #fff; }
.btn-primary:hover { background: var(--mp-green-dark); border-color: var(--mp-green-dark); }
.btn-violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-violet:hover { background: #5b21b6; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn.block { display: flex; width: 100%; margin-top: 8px; height: 44px; }
.link { background: none; border: 0; padding: 0; color: var(--mp-green-dark); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link .ic { width: 15px; height: 15px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 18px 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 16px; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mb { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; text-decoration: none; position: relative; overflow: hidden; }
a.kpi:hover { border-color: var(--mp-green); }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.kpi.k-amber::before { background: #f59e0b; } .kpi.k-violet::before { background: var(--violet); } .kpi.k-green::before { background: var(--mp-green); } .kpi.k-red::before { background: var(--red); }
.kpi-l { color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.kpi-v { font: 800 24px/1.2 var(--font-display); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi-n { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.pill-green { background: var(--mp-green-50); color: var(--mp-green-dark); } .pill-green-dark { background: var(--mp-green-dark); color: #fff; }
.pill-amber { background: var(--amber-bg); color: var(--amber); } .pill-red { background: var(--red-bg); color: var(--red); }
.pill-blue { background: var(--blue-bg); color: var(--blue); } .pill-violet { background: var(--violet-bg); color: var(--violet); }
.pill-teal { background: var(--teal-bg); color: var(--teal); } .pill-slate { background: var(--slate-bg); color: var(--slate); } .pill-grey { background: #eef0ef; color: #6b7570; }
.spz { display: inline-flex; align-items: stretch; height: 22px; border: 1.5px solid #1b2b22; border-radius: 4px; background: #fff; font: 600 12.5px/19px var(--font-mono); letter-spacing: .04em; white-space: nowrap; overflow: hidden; vertical-align: middle; padding-right: 6px; }
.spz b { background: #1d4ed8; color: #fff; font: 700 8px/1 var(--font-body); padding: 0 3px 2px; display: flex; align-items: flex-end; margin-right: 6px; letter-spacing: 0; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; vertical-align: middle; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border-2); background: #fff; border-radius: 16px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.chip.on { background: var(--mp-green); border-color: var(--mp-green); color: #fff; }
.chip.sm { padding: 1px 7px; font-size: 11.5px; cursor: default; }
.chip-check, .chip-radio { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-2); border-radius: 16px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; background: #fff; }
.chip-check:has(input:checked), .chip-radio:has(input:checked) { background: var(--mp-green-50); border-color: var(--mp-green); color: var(--mp-green-dark); }
.chip-radio input, .chip-check input { accent-color: var(--mp-green); }
.chip-radio.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 10px; padding: 3px; background: #fff; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--mp-green-50); color: var(--mp-green-dark); }
.empty { padding: 22px; text-align: center; color: var(--text-2); background: var(--surface); border-radius: 10px; }
.empty-s { color: var(--text-3); font-size: 12.5px; padding: 8px 0; }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }
.banner .ic { flex: none; }
.banner .btn { margin-left: auto; }
.b-green { background: var(--mp-green-50); color: #14532d; border: 1px solid var(--mp-green-100); }
.b-amber { background: var(--amber-bg); color: #7c2d12; border: 1px solid #fde1b0; }
.b-red { background: var(--red-bg); color: #7f1d1d; border: 1px solid #f8c9c9; }

/* ---------- tabulky ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface); }
.tbl tr.hl td { background: #f6fbf8; }
.tbl tr.hl-amber td { background: #fffaf0; }
.tbl tr.extra td { background: #faf7ff; }
.tbl td.ell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.items td:first-child { min-width: 230px; }
.it-st { margin-top: 5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sub2.inl { display: inline; margin: 0; }
.items td.r { white-space: nowrap; }
.cell-in { width: 58px; height: 30px; border: 1px solid var(--border-2); border-radius: 7px; padding: 0 6px; text-align: right; background: #fff; font-variant-numeric: tabular-nums; }
.cell-in.w { width: 76px; }
.cell-in:focus { border-color: var(--mp-green); outline: none; }
.unit { color: var(--text-3); font-size: 11.5px; margin-left: 4px; }
.it-name { display: flex; gap: 8px; align-items: baseline; font-weight: 500; }
.it-type { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; flex: none; }
.t-prace { background: var(--blue-bg); color: var(--blue); } .t-dil { background: var(--mp-green-50); color: var(--mp-green-dark); }
.totals { margin-top: 14px; margin-left: auto; max-width: 380px; display: flex; flex-direction: column; gap: 4px; }
.totals div { display: flex; justify-content: space-between; color: var(--text-2); }
.totals .tot-big { font: 800 20px var(--font-display); color: var(--text); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.totals .tot-margin { font-size: 12.5px; color: var(--mp-green-dark); background: var(--mp-green-50); padding: 6px 10px; border-radius: 8px; }
.totals .tot-note { font-size: 12.5px; color: var(--violet); background: var(--violet-bg); padding: 6px 10px; border-radius: 8px; }
.hbar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.hbar span { display: block; height: 100%; background: var(--mp-green); border-radius: 4px; }
.perm td { text-align: center; } .perm td:first-child { text-align: left; }
.perm-c { display: inline-block; min-width: 42px; padding: 2px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.p-w { background: var(--mp-green-50); color: var(--mp-green-dark); } .p-r { background: var(--blue-bg); color: var(--blue); } .p-n { color: var(--text-3); }

/* ---------- přehled ---------- */
.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert-row { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px 9px 0; background: #fff; cursor: pointer; overflow: hidden; }
.alert-row:hover { border-color: var(--border-2); background: var(--surface); }
.alert-row .stripe { width: 4px; align-self: stretch; border-radius: 0 3px 3px 0; flex: none; }
.alert-row > span:nth-child(2) { flex: 1; min-width: 0; }
.alert-row .sub2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-row .ic { color: var(--text-3); width: 15px; }
.a-violet .stripe { background: var(--violet); } .a-amber .stripe { background: #f59e0b; } .a-blue .stripe { background: var(--blue); } .a-green .stripe { background: var(--mp-green); } .a-red .stripe { background: var(--red); } .a-slate .stripe { background: var(--slate); }
.guide { background: linear-gradient(180deg, var(--mp-green-50), #fff 60%); border-color: var(--mp-green-100); }
.guide-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.chart { width: 100%; height: auto; display: block; }
.chart .cg { stroke: var(--border); stroke-width: 1; }
.chart .cl { fill: var(--text-3); font-size: 11px; font-family: var(--font-body); }
.chart .cv { fill: var(--text); font-size: 12px; font-weight: 700; font-family: var(--font-body); }

/* ---------- zvedáky ---------- */
.lift-strip { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.ls-row { display: grid; grid-template-columns: 150px minmax(520px, 1fr); gap: 10px; align-items: center; }
.ls-name b { display: block; font-size: 13px; }
.ls-name .sub2 { font-size: 11px; }
.ls-track { position: relative; height: 46px; background: var(--surface); border-radius: 8px; }
.ls-head .ls-track { height: 18px; background: none; }
.ls-head span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--text-3); }
.ls-track i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.ls-block { position: absolute; top: 4px; bottom: 4px; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); border-radius: 6px; padding: 3px 7px; text-align: left; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.ls-block b { font: 600 11.5px var(--font-mono); white-space: nowrap; }
.ls-block span { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.ls-block:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.ls-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--red); border-radius: 1px; }
.compact .ls-row { grid-template-columns: 110px minmax(420px, 1fr); }
.compact .ls-name .sub2 { display: none; }

/* ---------- zakázky: tabule ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--surface-2); border-radius: 12px; padding: 8px; min-height: 260px; border: 2px dashed transparent; }
.kcol.over { border-color: var(--mp-green); background: var(--mp-green-50); }
.kcol-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; padding: 6px 6px 10px; }
.kcount { margin-left: auto; color: var(--text-3); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.d-slate { background: var(--slate); } .d-violet { background: var(--violet); } .d-teal { background: var(--teal); } .d-blue { background: var(--blue); } .d-green { background: var(--mp-green); } .d-green-dark { background: var(--mp-green-dark); }
.kcol-body { display: flex; flex-direction: column; gap: 8px; }
.jcard { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; cursor: grab; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 1px rgba(15, 29, 22, .04); }
.jcard:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.jcard.dragging { opacity: .5; }
.jc-top { display: flex; justify-content: space-between; align-items: center; }
.jc-no { font: 600 12px var(--font-mono); color: var(--text-3); }
.jc-car { font-weight: 600; }
.jc-cust { color: var(--text-2); font-size: 12.5px; }
.jc-flags { display: flex; gap: 4px; flex-wrap: wrap; }
.jc-flags:empty { display: none; }
.jc-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.jc-foot b { margin-left: auto; font-size: 13px; }

/* ---------- detail zakázky ---------- */
.job-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.jh-main { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.jh-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jh-title h1 { font-size: 24px; font-weight: 800; }
.jh-car { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jh-car b { font-size: 15px; }
.jh-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.jh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.jh-meta .ic { width: 15px; height: 15px; }
.complaint { margin: 0; padding: 10px 12px; background: var(--surface); border-radius: 8px; }
.jh-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.stepper { list-style: none; display: flex; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; color: var(--text-3); white-space: nowrap; border-right: 1px solid var(--border); }
.stepper li:last-child { border-right: 0; }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 12px; flex: none; }
.stepper li span .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.stepper li.done { color: var(--mp-green-dark); }
.stepper li.done span { background: var(--mp-green); color: #fff; }
.stepper li.cur { color: var(--text); font-weight: 700; background: var(--mp-green-50); }
.stepper li.cur span { background: #fff; border: 2px solid var(--mp-green); color: var(--mp-green-dark); }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; }
.dl dt { color: var(--text-3); font-size: 12.5px; }
.dl dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dl.sm { grid-template-columns: 90px 1fr; margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.tl-t { color: var(--text-3); font-size: 12px; }
.timeline.big li { grid-template-columns: 110px 1fr; padding: 12px 0; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos.sm { grid-template-columns: repeat(3, 1fr); }
.ph { aspect-ratio: 4/3; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 10.5px; text-align: center; padding: 4px; overflow: hidden; position: relative; }
.ph .ic { width: 20px; height: 20px; opacity: .85; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-0 { background: linear-gradient(135deg, #3d5249, #6b8378); } .ph-1 { background: linear-gradient(135deg, #4b4a3f, #85826b); } .ph-2 { background: linear-gradient(135deg, #2f4256, #5d7790); }
.ph.add { background: var(--surface); border: 1.5px dashed var(--border-2); color: var(--text-2); cursor: pointer; }
.mini-thread { display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 88%; padding: 8px 10px; border-radius: 12px; font-size: 13px; }
.bub span { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.bub.out { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 4px; }
.bub.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.line-item { padding: 8px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.line-item:last-child { border-bottom: 0; }
.line-item b.num { margin-left: auto; }

/* ---------- formuláře a dialogy ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 29, 22, .38); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; box-shadow: 0 24px 60px rgba(15, 29, 22, .25); display: flex; flex-direction: column; max-height: 90vh; }
.modal.wide { max-width: 900px; } .modal.xwide { max-width: 980px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 17px; }
.modal-head .icon-btn { border-color: transparent; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; background: var(--surface); border-radius: 0 0 16px 16px; }
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; flex: 1; min-width: 0; }
.fld > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.fld input, .fld select, .fld textarea, .mini-sel { border: 1px solid var(--border-2); border-radius: 9px; padding: 8px 10px; background: #fff; width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--mp-green); outline: none; box-shadow: 0 0 0 3px var(--mp-green-50); }
.fld-row { display: flex; gap: 10px; flex-wrap: wrap; }
.in-btn { display: flex; gap: 6px; }
.in-btn .btn { height: auto; }
.radio, .check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.radio input, .check input { accent-color: var(--mp-green); width: 16px; height: 16px; }
.code { font: 12px/1.5 var(--font-mono); width: 100%; border: 1px solid var(--border-2); border-radius: 9px; padding: 10px; background: var(--surface); resize: vertical; }
.mini-search { border: 1px solid var(--border-2); border-radius: 9px; padding: 7px 10px; min-width: 220px; }
.mini-search.wide { flex: 1; max-width: 420px; }
.mini-sel { width: auto; padding: 6px 8px; }
.match { border: 1px solid var(--mp-green-100); background: var(--mp-green-50); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.m-top { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.warn-line { margin-top: 8px; color: var(--amber); font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.photo-drop { border: 1.5px dashed var(--border-2); border-radius: 10px; padding: 14px; color: var(--text-2); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.sumbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sumbox div { background: var(--surface); border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; }
.sumbox span { font-size: 11.5px; color: var(--text-2); }
.sumbox b { font-size: 15px; font-variant-numeric: tabular-nums; }
.sumbox.col { grid-template-columns: 1fr 1fr; }
.pay-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--border-2); border-radius: 10px; padding: 10px; cursor: pointer; }
.pay-opt em { font-style: normal; font-size: 11.5px; color: var(--text-2); }
.pay-opt input:checked + span { border-color: var(--mp-green); background: var(--mp-green-50); }
.pay-opt input:focus-visible + span { outline: 2px solid var(--mp-green); }
.pick { display: flex; width: 100%; align-items: center; gap: 10px; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; text-align: left; }
.pick:hover { border-color: var(--mp-green); }
.pick .num { margin-left: auto; font-weight: 700; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 34px; height: 20px; border-radius: 10px; background: var(--border-2); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--mp-green); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--mp-green); outline-offset: 2px; }
.switch.sm { font-size: 12.5px; color: var(--text-2); }
.phone-note .switch { display: flex; margin: 10px 0; }

/* ---------- WhatsApp náhled, telefon ---------- */
.wa-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.wa-head { background: #075e54; color: #fff; padding: 10px 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.wa-body { background: #efeae2; padding: 14px; min-height: 160px; }
.wa-bub { background: #dcf8c6; border-radius: 10px 10px 2px 10px; padding: 8px 10px; max-width: 92%; margin-left: auto; font-size: 13px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-time { display: block; text-align: right; font-size: 10.5px; color: #5b7065; margin-top: 3px; }
.phone-wrap { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.phone { width: 330px; border: 10px solid #101a15; border-radius: 38px; background: #fff; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 29, 22, .22); flex: none; }
.phone.big { width: 380px; }
.phone-bar { background: #f1f3f2; text-align: center; font: 500 11px var(--font-mono); color: var(--text-2); padding: 9px 8px 7px; border-bottom: 1px solid var(--border); }
.phone-screen { height: 600px; overflow-y: auto; }
.phone.big .phone-screen { height: 680px; }
.phone-screen.client { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.phone-note { max-width: 340px; }
.phone-note h3 { font-size: 16px; margin-bottom: 8px; }
.phone-note p { color: var(--text-2); }
.cl-brand { display: flex; align-items: center; gap: 8px; font: 700 13px var(--font-display); color: var(--mp-green-dark); }
.logo-dot { width: 18px; height: 18px; border-radius: 6px; background: var(--mp-green); display: inline-block; flex: none; }
.logo-dot.lg { width: 40px; height: 40px; border-radius: 12px; }
.client h3 { font-size: 19px; }
.cl-car { display: flex; gap: 8px; align-items: center; font-weight: 600; flex-wrap: wrap; }
.cl-photo { display: flex; gap: 8px; align-items: center; background: linear-gradient(135deg, #3d5249, #6b8378); color: #fff; border-radius: 10px; padding: 18px 12px; font-size: 12.5px; }
.cl-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.cl-items li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cl-items em { display: block; font-style: normal; color: var(--text-3); font-size: 11.5px; }
.cl-items b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-total { display: flex; justify-content: space-between; align-items: baseline; font: 800 20px var(--font-display); }
.cl-small { font-size: 11.5px; color: var(--text-3); }
.cl-agree { display: flex; gap: 8px; font-size: 12.5px; align-items: flex-start; }
.cl-agree input { accent-color: var(--mp-green); margin-top: 2px; }
.cl-state { text-align: center; padding: 60px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cl-state .ic.big { width: 48px; height: 48px; }
.cl-state p { color: var(--text-2); }
.cl-steps { list-style: none; display: flex; padding: 0; margin: 4px 0; gap: 4px; }
.cl-steps li { flex: 1; text-align: center; font-size: 11px; color: var(--text-3); padding-top: 8px; border-top: 4px solid var(--surface-2); }
.cl-steps li.done { border-color: var(--mp-green); color: var(--mp-green-dark); }
.cl-steps li.cur { border-color: var(--mp-green); color: var(--text); font-weight: 700; }
.cl-info { background: var(--amber-bg); color: #7c2d12; border-radius: 10px; padding: 10px; font-size: 13px; display: flex; gap: 8px; }
.widget { max-width: 460px; }
.w-brand { display: flex; align-items: center; gap: 8px; font: 700 15px var(--font-display); margin-bottom: 14px; flex-wrap: wrap; }
.w-brand .sub2 { width: 100%; font-family: var(--font-body); font-weight: 400; }

/* ---------- pneuhotel, doklady ---------- */
.racks { display: flex; flex-direction: column; gap: 8px; }
.rack { display: grid; grid-template-columns: 26px repeat(10, minmax(64px, 1fr)); gap: 6px; align-items: stretch; }
.racks { overflow-x: auto; }
.rack-l { font: 800 15px var(--font-display); display: grid; place-items: center; color: var(--text-2); }
.box { height: 54px; border: 1.5px dashed var(--border-2); border-radius: 7px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; position: relative; min-width: 0; }
.box span { position: absolute; top: 2px; left: 4px; font-size: 9.5px; color: var(--text-3); }
.box b { font: 600 10.5px var(--font-mono); word-break: break-all; text-align: center; line-height: 1.1; }
.box.full { background: var(--mp-green-50); border: 1.5px solid var(--mp-green-100); }
.box.out { background: var(--blue-bg); border: 1.5px solid #bfd2ff; }
.box.low { box-shadow: inset 0 -4px 0 #f59e0b; }
.box:hover { border-color: var(--mp-green); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 12px; align-items: center; }
.page-actions .legend { margin-top: 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend i.dashed { border: 1.5px dashed var(--blue); }
.lg-full { background: var(--mp-green-50); border: 1px solid var(--mp-green-100); } .lg-out { background: var(--blue-bg); border: 1px solid #bfd2ff; } .lg-low { background: #fff; box-shadow: inset 0 -3px 0 #f59e0b; border: 1px solid var(--border-2); } .lg-free { border: 1px dashed var(--border-2); }
.label-prev { display: flex; gap: 16px; align-items: center; border: 1px solid var(--border-2); border-radius: 10px; padding: 14px; background: #fff; flex-wrap: wrap; }
.lbl-box { font: 800 26px var(--font-display); margin-bottom: 6px; }
.lbl-l { font-size: 13px; margin-top: 4px; }
.qr { display: block; border: 1px solid var(--border); border-radius: 4px; }
.a4 { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 28px 30px; box-shadow: 0 2px 10px rgba(15, 29, 22, .06); font-size: 13px; }
.a4-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--mp-green); padding-bottom: 14px; flex-wrap: wrap; }
.a4-brand { display: flex; align-items: center; gap: 8px; font: 800 18px var(--font-display); margin-bottom: 6px; }
.a4-sm { font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.a4-r { text-align: right; }
.a4-title { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.a4-no { font: 800 22px var(--font-display); margin: 2px 0 6px; }
.a4-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 0; }
.a4-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
.a4-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.a4-dates div { display: flex; flex-direction: column; }
.a4-dates span { font-size: 11px; color: var(--text-3); }
.a4-tbl { width: 100%; border-collapse: collapse; margin-top: 4px; }
.a4-tbl th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); text-align: left; border-bottom: 1px solid var(--text); padding: 6px; }
.a4-tbl td { padding: 7px 6px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.a4-tbl .r { text-align: right; }
.a4-code { display: block; font: 11px var(--font-mono); color: var(--text-3); }
.a4-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.a4-qr { display: flex; gap: 12px; align-items: flex-start; max-width: 460px; }
.a4-qr code { display: block; font: 10px/1.4 var(--font-mono); word-break: break-all; color: var(--text-2); margin-top: 6px; }
.a4-sum { min-width: 260px; display: flex; flex-direction: column; gap: 3px; }
.a4-sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.a4-total { font: 800 18px var(--font-display); border-top: 2px solid var(--text); padding-top: 6px; margin-top: 4px; }
.a4-total.sm { font-size: 15px; border-top-width: 1px; }
.a4-end { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 10px; }

/* ---------- kalendář ---------- */
.cal-card { padding: 0; overflow-x: auto; }
.cal { display: grid; grid-template-columns: 56px repeat(6, minmax(160px, 1fr)); }
.cal-dh { height: 44px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; color: var(--text-2); position: sticky; top: 0; background: #fff; }
.cal-day.today .cal-dh { color: var(--mp-green-dark); background: var(--mp-green-50); }
.cal-h { height: var(--px); font-size: 11px; color: var(--text-3); text-align: right; padding: 2px 8px 0 0; }
.cal-day { border-left: 1px solid var(--border); }
.cal-col { position: relative; }
.cal-slot { height: var(--px); border-bottom: 1px solid var(--border); }
.cal-slot:nth-child(odd) { background: #fcfdfc; }
.cal-ev { position: absolute; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 6px; padding: 3px 6px; text-align: left; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; font-size: 11.5px; }
.cal-ev b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev span { color: var(--text-2); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.dashed { background: #fff; border: 1.5px dashed var(--c); border-left-width: 3px; }
.cal-ev:hover { z-index: 2; box-shadow: var(--shadow); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 3; }

/* ---------- zprávy, nastavení ---------- */
.inbox { display: grid; grid-template-columns: 320px 1fr; padding: 0; overflow: hidden; min-height: 560px; }
.ib-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 640px; }
.ib-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: #fff; padding: 12px; cursor: pointer; align-items: center; }
.ib-item:hover { background: var(--surface); }
.ib-item.on { background: var(--mp-green-50); }
.ib-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--text-2); }
.ib-mid { min-width: 0; }
.ib-mid .sub2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ch { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.ch-wa { background: #dcf8c6; color: #075e54; } .ch-em { background: var(--slate-bg); color: var(--slate); }
.ib-conv { display: flex; flex-direction: column; min-width: 0; }
.ib-head { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ib-head .link { margin-left: auto; }
.ib-msgs { flex: 1; background: #efeae2; padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 470px; }
.ib-msgs .bub.in { background: #fff; }
.ib-comp { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.ib-comp input { flex: 1; border: 1px solid var(--border-2); border-radius: 9px; padding: 8px 10px; min-width: 0; }
.integ { display: flex; flex-direction: column; }
.integ-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.integ-row:last-child { border-bottom: 0; }
.tpl { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.sup-main { border-color: var(--mp-green-100); box-shadow: inset 0 3px 0 var(--mp-green); }

/* ---------- mechanik ---------- */
#mech-root { display: none; }
body.mech-mode .app { display: none; }
body.mech-mode #mech-root { display: block; min-height: 100%; background: linear-gradient(180deg, var(--mp-green-50), var(--surface) 40%); }
.mech-wrap { display: flex; gap: 40px; justify-content: center; align-items: flex-start; padding: 32px 16px; flex-wrap: wrap; }
.mech-intro { max-width: 360px; }
.mech-intro h1 { font-size: 28px; font-weight: 800; margin: 14px 0 8px; }
.mech-intro p { color: var(--text-2); }
.mech-intro ul { padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.phone-screen.mech { background: var(--surface); }
.m-head { display: flex; align-items: center; gap: 10px; background: var(--mp-green); color: #fff; padding: 14px; position: sticky; top: 0; z-index: 2; }
.m-head > div { flex: 1; min-width: 0; }
.m-head b { display: block; font: 700 16px var(--font-display); }
.m-head span { font-size: 12px; opacity: .9; }
.m-head .spz { color: var(--text); }
.m-sel { border: 0; border-radius: 8px; padding: 6px; font-size: 12px; max-width: 130px; }
.m-back { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.m-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.m-card { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.m-card > span { color: var(--text-2); font-size: 13px; }
.m-card .m-top { justify-content: space-between; }
.m-foot { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-3); flex-wrap: wrap; margin-top: 4px; }
.m-run { color: var(--blue); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.m-run .ic { width: 14px; height: 14px; }
.m-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.m-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-top: 6px; }
.m-complaint { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.m-complaint span { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.m-warn { background: var(--amber-bg); color: #7c2d12; border-radius: 10px; padding: 10px; font-size: 13px; display: flex; gap: 8px; }
.m-timer { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.m-timer > span { font: 700 34px var(--font-mono); font-variant-numeric: tabular-nums; }
.m-timer.on { border-color: var(--mp-green); background: var(--mp-green-50); }
.m-big { width: 100%; height: 56px; border: 0; border-radius: 12px; background: var(--mp-green); color: #fff; font: 700 17px var(--font-display); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.m-big.stop { background: #f59e0b; }
.m-task { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; }
.m-task input { width: 22px; height: 22px; accent-color: var(--mp-green); flex: none; }
.m-task span { flex: 1; }
.m-task span em { color: var(--violet); font-style: normal; font-size: 11.5px; display: block; }
.m-task > em { font-style: normal; color: var(--text-3); font-size: 12px; }
.m-task.done span { text-decoration: line-through; color: var(--text-3); }
.m-part { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.m-part em { display: block; font-style: normal; color: var(--text-3); font-size: 11.5px; }

/* ---------- oznámení ---------- */
#toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { display: flex; gap: 10px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--mp-green); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(15, 29, 22, .18); animation: tin .25s ease-out; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .35s; }
.toast-ic { color: var(--mp-green); padding-top: 1px; }
.toast-push { border-left-color: var(--blue); } .toast-push .toast-ic { color: var(--blue); }
.toast-warn { border-left-color: #f59e0b; } .toast-warn .toast-ic { color: #d97706; }
.toast-t { font-weight: 700; }
.toast-x { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.toast-src { font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } * { transition: none !important; } }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1180px) { .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  .icon-btn.menu-btn { display: grid; }
  .topbar { padding: 0 12px; gap: 8px; }
  .kbd, .top-right .btn span.lbl { display: none; }
  #view { padding: 16px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .ib-list { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--border); }
  .role-sel { max-width: 120px; }
}
@media (max-width: 560px) {
  .role-sel { max-width: 92px; padding: 0 4px; font-size: 12px; }
  .search { min-width: 0; }
  .search input { padding-right: 8px; }
  .top-right .btn-primary { padding: 0 10px; }
  .pay-opts { grid-template-columns: 1fr; }
  .a4 { padding: 16px; } .a4-parties { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 100px 1fr; }
  #notif-panel { width: 300px; right: -60px; }
}

/* ---------- vozidla, servisní knížka, servisní plán ---------- */
.veh-list { display: flex; flex-direction: column; gap: 8px; }
.veh-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: #fff; }
.veh-row:hover { border-color: var(--border-2); }
.veh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; }
.veh-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.veh-flags { display: flex; gap: 4px; flex-wrap: wrap; }
.veh-flags:empty { display: none; }
.veh-acts { display: flex; gap: 6px; flex: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--text-2); border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tab.on { color: var(--mp-green-dark); border-bottom-color: var(--mp-green); }
.book { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.book li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.book li:last-child { border-bottom: 0; }
.bk-when { display: flex; flex-direction: column; }
.bk-when span { font-size: 12px; color: var(--text-3); }
.bk-what p { margin: 4px 0; }
.bk-oil { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: var(--amber-bg); color: #7c2d12; border-radius: 8px; padding: 4px 9px; font-size: 12.5px; font-weight: 600; }
.bk-oil .ic { width: 15px; height: 15px; }
.book li.imp .bk-what p { color: var(--text-2); }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 190px 90px; gap: 12px; align-items: center; border: 1px solid var(--border); border-left: 4px solid var(--border-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.plan-row input { width: 18px; height: 18px; accent-color: var(--mp-green); }
.plan-row.st-over { border-left-color: var(--red); } .plan-row.st-soon { border-left-color: #f59e0b; } .plan-row.st-ok { border-left-color: var(--mp-green); }
.plan-main, .plan-next, .plan-cost { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plan-cost { text-align: right; }
.plan-next .pill { align-self: flex-start; }
.plan-sum { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; background: var(--mp-green-50); border: 1px solid var(--mp-green-100); border-radius: 12px; }
.plan-sum > div { display: flex; flex-direction: column; }
.plan-sum span { font-size: 12px; color: var(--text-2); }
.plan-sum b { font: 800 18px var(--font-display); }
.plan-sum .btn { margin-left: auto; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- díly dle VIN, košík ---------- */
.pb-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pb-head .sub2 { width: 100%; }
.pb-q { width: 100%; max-width: none; margin-bottom: 10px; height: 42px; }
.pcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pcat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 600; text-align: center; color: var(--text); }
.pcat .ic { width: 22px; height: 22px; color: var(--mp-green-dark); }
.pcat.on { border-color: var(--mp-green); background: var(--mp-green-50); }
.plist { display: flex; flex-direction: column; gap: 6px; }
.prow, .cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 190px 120px auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.pr-main, .pr-av, .pr-price { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pr-price { text-align: right; }
.pr-btn { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.cart-line { grid-template-columns: minmax(0, 1fr) 90px 110px 32px; margin-bottom: 6px; }
.cart-line .num { text-align: right; }
.cart-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cart-foot > div { margin-right: auto; }
.cart-btn #cart-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--mp-green); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.cart-btn #cart-count[hidden] { display: none; }
.cart-fab { display: none; }

/* ---------- příjmový protokol, zakázkový list ---------- */
.intake { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
.in-car { display: flex; flex-direction: column; gap: 8px; }
.in-car-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.car-svg { width: 100%; max-width: 230px; display: block; margin: 0 auto; }
.car-body { fill: #f3f6f4; stroke: var(--border-2); stroke-width: 2; }
.zone { fill: #fff; stroke: #9fb0a7; stroke-width: 1.2; cursor: pointer; transition: fill .12s; }
.zone:hover { fill: var(--mp-green-50); stroke: var(--mp-green); }
.zone.dm { stroke: #7c2d12; }
.car-lbl { font: 600 9px var(--font-body); fill: var(--text-3); letter-spacing: .08em; }
.dmg-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); justify-content: center; }
.dmg-legend i, .dmg-ul i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.dmg-ul { margin: 0; padding: 0; list-style: none; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.seg.fuel { display: flex; padding: 3px; }
.seg.fuel label { flex: 1; }
.seg.fuel input { position: absolute; opacity: 0; }
.seg.fuel span { display: block; text-align: center; padding: 7px 4px; border-radius: 7px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text-2); }
.seg.fuel input:checked + span { background: var(--mp-green-50); color: var(--mp-green-dark); }
.seg.fuel input:focus-visible + span { outline: 2px solid var(--mp-green); }
.sig-wrap { position: relative; border: 1.5px dashed var(--border-2); border-radius: 12px; background: #fff; }
.sig-wrap canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; }
.sig-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); pointer-events: none; font-size: 13px; }
.sig-old { position: absolute; left: 0; top: 0; width: 100%; height: 150px; object-fit: contain; pointer-events: none; }
.sig-clear { position: absolute; right: 8px; top: 8px; }
.intake-c.missing { border-color: #fde1b0; background: linear-gradient(180deg, #fffaf0, #fff 70%); }
.intake-mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.im-car .car-svg { max-width: 96px; }
.intake-mini .dl.sm { margin-top: 0; grid-template-columns: 84px 1fr; font-size: 13px; }
.fuelbar { display: inline-block; width: 54px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; vertical-align: middle; }
.fuelbar span { display: block; height: 100%; background: var(--mp-green); }
.barcode { width: 170px; height: 34px; fill: #0f1d16; display: block; margin-left: auto; margin-top: 4px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sheet-state { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.ss-car .car-svg { max-width: 110px; }
.sheet-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 18px; }
.sheet-sign > div { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-2); }
.sig-box { height: 64px; border-bottom: 1.5px solid var(--text); display: flex; align-items: flex-end; }
.sig-box img { max-height: 60px; max-width: 100%; }
.a4-round { font-size: 12px; color: var(--text-2); }

/* ---------- kalendář: nenaplánované ---------- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-items: start; }
.unplanned { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 100px); overflow-y: auto; }
.unplanned .card-head { margin-bottom: 2px; }
.uj { border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 10px; padding: 10px; background: #fff; cursor: grab; display: flex; flex-direction: column; gap: 3px; }
.uj.dragging { opacity: .5; }
.uj-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; flex-wrap: wrap; }
.uj-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; }
.uj-foot .btn { margin-left: auto; }
.cal-col.over { background: var(--mp-green-50); }
.cal-ev[data-pi] { cursor: grab; }
.emp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.emp-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.emp-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chip.on .emp-dot { box-shadow: 0 0 0 2px #fff; }

/* ---------- nápověda ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list a { color: var(--text); font-weight: 500; }
.check-list li.ok a { color: var(--text-3); text-decoration: line-through; }
.cl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; flex: none; }
.check-list li.ok .cl-dot { background: var(--mp-green); border-color: var(--mp-green); color: #fff; }
.cl-dot .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.faq { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 6px 0 0; color: var(--text-2); }

/* ---------- tisk: jen otevřený doklad ---------- */
@media print {
  body > *:not(#modal-root) { display: none !important; }
  #modal-root .overlay { position: static; background: none; padding: 0; display: block; }
  #modal-root .modal { box-shadow: none; max-height: none; max-width: none; border-radius: 0; }
  #modal-root .modal-head, #modal-root .modal-foot { display: none; }
  #modal-root .modal-body { overflow: visible; padding: 0; }
  .a4 { border: 0; box-shadow: none; padding: 0; }
}

@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } .unplanned { position: static; max-height: none; } .plan-row { grid-template-columns: 22px minmax(0, 1fr) 150px 80px; } }
@media (max-width: 760px) {
  .veh-row { flex-direction: column; align-items: stretch; }
  .veh-acts { display: grid; grid-template-columns: repeat(4, 1fr); }
  .veh-acts .btn { flex-direction: column; height: auto; padding: 8px 2px; gap: 3px; font-size: 11.5px; }
  .plan-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .plan-next { grid-column: 2; }
  .plan-cost { grid-column: 3; grid-row: 1 / span 2; }
  .plan-sum .btn { margin-left: 0; width: 100%; }
  .pcats { grid-template-columns: repeat(3, 1fr); }
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .pr-av { grid-column: 1; }
  .pr-price { grid-column: 2; grid-row: 1; }
  .pr-btn { grid-column: 1 / -1; }
  .pr-btn .btn { flex: 1; }
  .cart-line { grid-template-columns: minmax(0, 1fr) 70px auto 32px; }
  .cart-foot .mini-sel, .cart-foot .btn { flex: 1 1 100%; }
  .cart-btn { display: none; }
  .cart-fab { position: fixed; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--text); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(15, 29, 22, .3); }
  .cart-fab[hidden], body.route-job .cart-fab, body.mech-mode .cart-fab { display: none; }
  .cart-fab b { background: var(--mp-green); border-radius: 10px; padding: 0 7px; }
  .intake { grid-template-columns: 1fr; }
  .car-svg { max-width: 200px; }
  .sheet-grid, .sheet-state { grid-template-columns: 1fr; }
  .book li { grid-template-columns: 84px 1fr; }
  .jh-actions .btn .lbl { display: none; }
}
.lang-sw { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 3px; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
.lang-sw span { padding: 5px 7px; border-radius: 7px; font: 800 11.5px var(--font-display); letter-spacing: .04em; color: var(--text-3); }
.lang-sw span.on { background: var(--mp-green-50); color: var(--mp-green-dark); }
.m-head .lang-sw, .m-lang { background: rgba(255, 255, 255, .16); border-color: transparent; height: 36px; }
.m-head .lang-sw span { color: rgba(255, 255, 255, .8); }
.m-head .lang-sw span.on { background: #fff; color: var(--mp-green-dark); }
.mech-intro .lang-sw { margin-top: 10px; }
@media (max-width: 760px) { .topbar .lang-sw { display: none; } }

/* ---------- aplikace zákazníka ---------- */
.phone-screen.cust { background: var(--surface); display: flex; flex-direction: column; position: relative; }
.c-head { display: flex; align-items: center; gap: 10px; background: var(--mp-green); color: #fff; padding: 14px; position: sticky; top: 0; z-index: 3; }
.c-head > div { flex: 1; min-width: 0; }
.c-head b { display: block; font: 700 15px var(--font-display); }
.c-head > div > span { font-size: 12.5px; opacity: .92; }
.c-head .logo-dot.lg { width: 34px; height: 34px; background: #fff; border-radius: 10px; box-shadow: inset 0 0 0 7px var(--mp-green-100); }
.c-head .lang-sw { background: rgba(255, 255, 255, .16); border-color: transparent; height: 36px; }
.c-head .lang-sw span { color: rgba(255, 255, 255, .8); }
.c-head .lang-sw span.on { background: #fff; color: var(--mp-green-dark); }
.c-demo { display: none; padding: 8px 12px 0; }
.c-demo .fld { margin: 0; }
.c-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.c-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.c-car { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.c-car b { font-size: 15px; }
.c-steps { list-style: none; display: flex; margin: 0; padding: 0; gap: 4px; }
.c-steps li { flex: 1; text-align: center; font-size: 10.5px; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.c-steps li span { width: 100%; height: 5px; border-radius: 3px; background: var(--surface-2); }
.c-steps li.done span, .c-steps li.cur span { background: var(--mp-green); }
.c-steps li.cur { color: var(--text); font-weight: 700; }
.c-steps li.done { color: var(--mp-green-dark); }
.c-state { border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.c-violet { background: var(--violet-bg); color: var(--violet); } .c-blue { background: var(--blue-bg); color: var(--blue); } .c-green { background: var(--mp-green-50); color: var(--mp-green-dark); } .c-amber { background: var(--amber-bg); color: #7c2d12; } .c-slate { background: var(--slate-bg); color: var(--slate); }
.btn.c-cta { height: 52px; font-size: 15px; margin-top: 0; }
.c-paid { display: flex; gap: 6px; align-items: center; color: var(--mp-green-dark); font-weight: 700; }
.c-note { margin: 0; font-size: 12.5px; color: var(--text-2); }
.c-dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.c-dl dt { color: var(--text-3); } .c-dl dd { margin: 0; }
.c-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-top: 2px; }
.c-next { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.c-next ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.c-next li { display: flex; gap: 8px; align-items: center; }
.c-next li .ic { width: 16px; height: 16px; color: var(--mp-green-dark); }
.c-next .btn { align-self: flex-start; }
.c-contact .c-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-empty { align-items: center; text-align: center; padding: 28px 14px; }
.c-tabs { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border); padding: 6px 4px; z-index: 3; }
.c-tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-3); padding: 4px 0; min-height: 46px; cursor: pointer; }
.c-tabs button.on { color: var(--mp-green-dark); }
.c-tabs .ic { width: 22px; height: 22px; }
.c-h { font-size: 18px; margin: 2px 0; }
.c-backbtn { align-self: flex-start; border: 0; background: none; display: inline-flex; gap: 4px; align-items: center; font-weight: 600; color: var(--mp-green-dark); cursor: pointer; padding: 4px 0; }
.c-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.c-items label { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.c-items input { width: 20px; height: 20px; accent-color: var(--mp-green); }
.c-items em { display: block; font-style: normal; font-size: 12px; color: var(--text-3); }
.c-items span b { font-weight: 600; font-size: 13.5px; }
.c-items label:has(input:not(:checked)) span, .c-items label:has(input:not(:checked)) .num { opacity: .45; text-decoration: line-through; }
.btn.c-no { color: var(--red); }
.c-amount { font: 800 34px var(--font-display); text-align: center; padding: 10px 0; }
.btn.c-apple { background: #000; color: #fff; border-color: #000; }
.c-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 6px; }
.c-done p { color: var(--text-2); margin: 0; }
.c-done .ic.big, .c-empty .ic.big { width: 46px; height: 46px; }
.c-msgs { background: #efeae2; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; max-height: 420px; overflow-y: auto; }
.c-msgs .bub.in { background: #fff; }
.c-comp { display: flex; gap: 8px; }
.c-comp input { flex: 1; min-width: 0; border: 1px solid var(--border-2); border-radius: 10px; padding: 10px; }
.c-doc { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; flex-wrap: wrap; }
.c-doc > div { flex: 1; min-width: 120px; display: flex; flex-direction: column; }
.c-book { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 12px; margin: 0; }
.c-book li { grid-template-columns: 84px 1fr; }
.c-open { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.c-open .pick { margin: 0; }
.c-open .pick > span { display: flex; flex-direction: column; }
.mech-intro .c-demo-sel { margin-top: 6px; }
@media (max-width: 760px) {
  body.mech-mode .phone-screen.cust { min-height: 100dvh; }
  .c-demo { display: block; }
  .c-body { padding-bottom: 90px; }
  .c-tabs { position: fixed; left: 0; right: 0; bottom: 0; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .c-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .c-msgs { max-height: calc(100dvh - 340px); }
}

/* ---------- demo: režim dat, názory testerů ---------- */
.mode-badge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 16px; border: 1px solid var(--border-2); background: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; color: var(--text); }
.mode-badge .mb-t { font: 800 11px var(--font-display); letter-spacing: .07em; }
.mode-badge .mb-x { color: var(--text-2); }
.mb-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex: none; }
.mode-badge.shared .mb-dot, .mode-box-btn.shared .mb-dot { background: var(--mp-green); box-shadow: 0 0 0 3px var(--mp-green-100); }
.mode-badge.flash { animation: mbflash 1.2s; }
@keyframes mbflash { 0% { background: var(--mp-green-100); } 100% { background: #fff; } }
.mode-box { border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.mode-box.shared { background: var(--mp-green-50); border: 1px solid var(--mp-green-100); }
.mode-box.local { background: var(--amber-bg); border: 1px solid #fde1b0; }
.mode-box p { margin: 6px 0 0; color: var(--text-2); }
.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.plain-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.fb-btn .ic { color: #f59e0b; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.stars label { font-size: 32px; line-height: 1; color: var(--border-2); cursor: pointer; padding: 0 2px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f59e0b; }
.stars input:focus-visible + label { outline: 2px solid var(--mp-green); border-radius: 4px; }
.st-view { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.st-view i { color: var(--border-2); font-style: normal; }
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.fb-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fb-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.fb-item p { margin: 8px 0 0; white-space: pre-wrap; }
.w-h { font-size: 15px; margin: 14px 0 8px; }
.w-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.w-steps code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-family: var(--font-mono); }
.w-fb { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.w-fb .ic { width: 15px; height: 15px; color: #f59e0b; }

/* ---------- automatické zprávy ---------- */
.rules { display: flex; flex-direction: column; }
.rule { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rule:last-child { border-bottom: 0; }
.rule.off .rule-main { opacity: .5; }
.rule-main { flex: 1; min-width: 0; }
.rule-t { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); }
.rule-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; flex: none; max-width: 120px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.chn { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chn-blue { background: var(--blue-bg); color: var(--blue); } .chn-green { background: #dcf8c6; color: #075e54; } .chn-slate { background: var(--slate-bg); color: var(--slate); } .chn-violet { background: var(--violet-bg); color: var(--violet); }
.chn-arr { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.chain-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: var(--surface); }
.chain-l { font-size: 12px; font-weight: 600; color: var(--text-2); }
.calc-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-res div { border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; }
.calc-res span { font-size: 11.5px; color: var(--text-2); }
.calc-res b { font: 800 17px var(--font-display); font-variant-numeric: tabular-nums; }
.calc-res .ok { background: var(--mp-green-50); border-color: var(--mp-green-100); }
.calc-res .ok b { color: var(--mp-green-dark); }
.tick { color: var(--text-3); font-weight: 700; letter-spacing: -2px; margin-right: 3px; }
.tick.read { color: #2b9fd9; }

/* ---------- skenování SPZ, agenda, list „Více“ ---------- */
.scan-view { position: relative; height: 220px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #4a5f54, #121c17); overflow: hidden; display: grid; place-items: center; }
.scan-frame { width: 78%; height: 72px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 10px; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 12.5px; text-align: center; padding: 0 8px; }
.scan-line { position: absolute; left: 11%; right: 11%; top: 50%; height: 2px; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: scan 1.5s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
.scan-view.busy .scan-frame { border-color: #4ade80; }
.scan-view.busy .scan-line { animation-duration: .4s; }
.scan-res { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.scan-res .spz { transform: scale(1.35); transform-origin: left center; margin: 4px 0 8px; }
.daychips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.daychip { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.daychip span { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; }
.daychip b { font: 800 18px var(--font-display); }
.daychip.today span { color: var(--mp-green-dark); font-weight: 700; }
.daychip.on { background: var(--mp-green); border-color: var(--mp-green); color: #fff; }
.daychip.on span { color: #fff; }
.agenda { display: flex; flex-direction: column; gap: 8px; }
.ag-ev { display: flex; gap: 12px; text-align: left; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 12px; padding: 12px; cursor: pointer; width: 100%; }
.ag-ev.dashed { border-style: dashed; border-left-style: solid; }
.ag-t { display: flex; flex-direction: column; font: 500 12.5px var(--font-mono); color: var(--text-3); flex: none; width: 46px; }
.ag-t b { color: var(--text); font-size: 14px; }
.ag-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ag-n { font-size: 13px; color: var(--text-2); }
.ag-now { display: flex; align-items: center; gap: 8px; color: var(--red); font: 600 11.5px var(--font-mono); }
.ag-now::after { content: ''; flex: 1; height: 2px; background: var(--red); border-radius: 1px; }
.more-top { display: flex; flex-direction: column; margin-bottom: 4px; }
.mode-box-btn { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); cursor: pointer; margin-bottom: 12px; width: 100%; }
.mode-box-btn > span:last-child { display: flex; flex-direction: column; }
.more-top .btn.block { margin-top: 0; }
.more-g { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 16px 2px 8px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 80px; padding: 10px 4px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.25; text-align: center; cursor: pointer; color: var(--text); }
.more-tile .ic { width: 22px; height: 22px; color: var(--mp-green-dark); }
.more-tile.on { border-color: var(--mp-green); background: var(--mp-green-50); }
.more-tile em { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--mp-green); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.more-tile em.red { background: var(--red); }
.kchips { gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.kchip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border: 1px solid var(--border-2); border-radius: 19px; background: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer; flex: none; }
.kchip b { color: var(--text-3); font-weight: 700; }
.kchip.on { background: var(--text); color: #fff; border-color: var(--text); }
.kchip.on b { color: #cfd9d3; }

.fld input[type=checkbox], .fld input[type=radio] { width: auto; padding: 0; border: 0; box-shadow: none; }
.m-sel { color: var(--text); background: #fff; }

/* prvky jen pro telefon */
.m-logo, .scan-btn, .bnav, .m-contact, .m-step, .m-actionbar, .ib-back, .m-more, .kchips { display: none; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  input, select, textarea { font-size: 16px !important; }
  .app { display: block; }
  .sidebar { display: none; }
  .icon-btn.menu-btn, .role-sel, .mode-badge, .top-right .btn-primary { display: none !important; }
  .topbar { height: auto; min-height: 58px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; gap: 8px; }
  .m-logo { display: grid; width: 38px; height: 38px; border-radius: 11px; flex: none; text-decoration: none; }
  .search { max-width: none; }
  .search input { height: 42px; padding: 0 10px 0 36px; border-radius: 12px; }
  .kbd { display: none; }
  .top-right { gap: 6px; margin-left: 0; }
  .scan-btn { display: grid; }
  .icon-btn { width: 42px; height: 42px; border-radius: 12px; }
  .fb-btn { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
  .fb-btn .lbl { display: none; }
  .search-results { position: fixed; top: calc(60px + env(safe-area-inset-top)); left: 8px; right: 8px; max-height: calc(100dvh - 170px); z-index: 70; }
  .sr-item, .sr-new { padding: 11px 10px; }
  #notif-panel { position: fixed; left: 8px; right: 8px; width: auto; top: calc(60px + env(safe-area-inset-top)); max-height: 72dvh; overflow-y: auto; }
  #view { padding: 14px 14px calc(100px + env(safe-area-inset-bottom)); gap: 14px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; flex-wrap: nowrap; }
  .page-head > div { min-width: 0; }
  .dl dd { min-width: 0; overflow-wrap: anywhere; }
  .page-head h1 { font-size: 22px; }
  .page-head .sub { font-size: 13.5px; }
  .page-actions { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px; scrollbar-width: none; }
  .page-actions::-webkit-scrollbar, .kchips::-webkit-scrollbar, .kanban::-webkit-scrollbar { display: none; }
  .page-actions > * { flex: none; }
  .btn { height: 44px; padding: 0 15px; font-size: 14px; border-radius: 12px; }
  .btn-sm { height: 38px; font-size: 13px; }
  .link { min-height: 32px; }
  .card { padding: 14px; border-radius: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-v { font-size: 20px; }
  .grid-2, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .chip, .chip-check, .chip-radio { padding: 8px 12px; font-size: 13.5px; }
  .seg button { padding: 9px 14px; }
  .crumbs { margin-bottom: -6px; }
  .crumbs { font-size: 14px; }
  .crumbs a { font-weight: 600; color: var(--mp-green-dark); display: inline-flex; align-items: center; min-height: 32px; }
  .crumbs a:first-child::before { content: '‹'; font-size: 24px; line-height: 1; margin: -3px 6px 0 0; }
  .mini-search, .mini-search.wide { min-width: 0; width: 100%; max-width: none; height: 44px; }
  .banner { flex-wrap: wrap; }
  .alert-row { padding: 12px 10px 12px 0; }

  /* spodní lišta jako u nativních aplikací */
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bn { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; min-height: 50px; font-size: 11px; font-weight: 600; color: var(--text-3); cursor: pointer; }
  .bn .ic { width: 24px; height: 24px; }
  .bn.on { color: var(--mp-green-dark); }
  .bn.on .ic { stroke-width: 2.2; }
  .bn em { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-style: normal; display: grid; place-items: center; padding: 0 4px; }
  .bn em.dot-b { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 5px; left: calc(50% + 8px); }
  .bn-add { color: var(--mp-green-dark); }
  .bn-plus { width: 48px; height: 48px; margin-top: -20px; border-radius: 16px; background: var(--mp-green); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(22, 163, 74, .35); }
  .bn-plus .ic { width: 24px; height: 24px; stroke-width: 2.4; }
  body.route-job .bnav, body.mech-mode .bnav { display: none; }

  /* tabulky → karty */
  .tbl-wrap { overflow: visible; margin: 0; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr { display: block; width: 100%; }
  .tbl tr { position: relative; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
  .tbl tr:last-child { margin-bottom: 0; }
  .tbl td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0 !important; padding: 4px 0; text-align: right; background: none !important; }
  .tbl td::before { content: attr(data-label); color: var(--text-3); font-size: 12.5px; text-align: left; flex: none; max-width: 46%; }
  .tbl td .tdv { min-width: 0; max-width: 100%; text-align: right; overflow-wrap: anywhere; }
  .tbl td select { max-width: 100%; }
  select { max-width: 100%; }
  .tbl td:first-child { display: block; text-align: left; font-size: 15px; padding: 0 0 6px; }
  .tbl td:first-child::before, .tbl td.td-x::before, .tbl td:not([data-label])::before { display: none; }
  .tbl td:first-child .tdv { text-align: left; }
  .tbl td.td-x { position: absolute; top: 6px; right: 6px; padding: 0; }
  .tbl td.ell { max-width: none; white-space: normal; }
  .tbl tr.hl { background: #f6fbf8; } .tbl tr.hl-amber { background: #fffaf0; } .tbl tr.extra { background: #faf7ff; }
  .tbl tr.click:active { background: var(--surface); }
  .items td:first-child { min-width: 0; padding-right: 44px; }
  .cell-in { height: 40px; width: 86px; } .cell-in.w { width: 104px; }
  .totals { max-width: none; }
  .perm td { text-align: right; }

  /* detail zakázky */
  .job-head { flex-direction: column; gap: 10px; }
  .jh-main { min-width: 0; }
  .jh-title h1 { font-size: 22px; }
  .jh-car .muted { flex-basis: 100%; font-size: 12.5px; }
  .jh-meta { gap: 6px 14px; }
  .jh-actions { display: none; }
  .m-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
  .stepper { display: none; }
  .m-step { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
  .m-step > div:first-child { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .m-step span { font-size: 12.5px; color: var(--text-3); }
  .m-step b { font-size: 15px; }
  .m-actionbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .m-actionbar .btn { flex: 1 0 auto; height: 50px; font-size: 15px; }
  .dl { grid-template-columns: 110px 1fr; }
  .timeline li { grid-template-columns: 76px 1fr; }

  /* tabule zakázek: posun po sloupcích */
  .kchips { display: flex; }
  .kanban { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 6px; scroll-padding: 0 14px; scrollbar-width: none; }
  .kcol { scroll-snap-align: start; min-height: 0; }
  .jcard { padding: 12px 13px; cursor: pointer; }
  .jc-car { font-size: 15px; }

  /* zprávy: seznam → konverzace */
  .inbox { display: block; min-height: 0; }
  .ib-list { max-height: none; border: 0; }
  .ib-item { padding: 14px 12px; grid-template-columns: 42px 1fr auto; }
  .ib-av { width: 42px; height: 42px; }
  .inbox:not(.m-open) .ib-conv { display: none; }
  .inbox.m-open .ib-list { display: none; }
  .ib-back { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: var(--surface); border-radius: 10px; cursor: pointer; flex: none; }
  .ib-head { align-items: center; padding: 10px 12px; gap: 10px; flex-wrap: nowrap; }
  .ib-head .muted { display: none; }
  .ib-msgs { max-height: none; height: calc(100dvh - 360px); min-height: 300px; }
  .ib-comp { flex-wrap: wrap; }
  .ib-comp .mini-sel { flex: 1 1 100%; height: 42px; }
  .ib-comp input { height: 44px; }

  /* dialogy jako list zdola */
  .overlay { align-items: flex-end; padding: 0; }
  .modal, .modal.wide, .modal.xwide { max-width: none; border-radius: 20px 20px 0 0; max-height: 94dvh; animation: sheetup .22s ease-out; }
  @keyframes sheetup { from { transform: translateY(40px); opacity: .6; } }
  .modal-head { position: relative; padding: 22px 16px 10px; }
  .modal-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--border-2); }
  .modal-body { padding: 14px 16px; }
  .modal-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; }
  .modal-foot .btn { flex: 1 1 auto; height: 48px; }
  .fld-row { gap: 0 10px; }
  .phone, .phone.big { width: 100%; border: 1px solid var(--border); border-radius: 14px; box-shadow: none; }
  .phone-screen, .phone.big .phone-screen { height: auto; max-height: none; }
  .phone-wrap { gap: 14px; }
  .phone-note { max-width: none; }
  .pay-opts { grid-template-columns: 1fr; }
  .a4 { padding: 14px; font-size: 12px; overflow-x: auto; }
  .a4-parties { grid-template-columns: 1fr; }
  .a4-tbl th, .a4-tbl td { padding: 5px 3px; }
  .a4-sum { min-width: 0; width: 100%; }
  .a4-qr { max-width: none; }
  .calc-res b { font-size: 15px; }
  .rule-side { max-width: 92px; }
  #toast-root { left: 8px; right: 8px; top: calc(6px + env(safe-area-inset-top)); bottom: auto; max-width: none; flex-direction: column-reverse; gap: 6px; }
  .toast { padding: 10px 12px; border-radius: 14px; animation: tdown .25s ease-out; box-shadow: 0 8px 24px rgba(15, 29, 22, .22); }
  .toast-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .toast-src { display: none; }
  @keyframes tdown { from { opacity: 0; transform: translateY(-12px); } }

  /* mechanik přes celou obrazovku */
  body.mech-mode #mech-root { background: var(--surface); }
  .mech-wrap { padding: 0; display: block; }
  .mech-intro { display: none; }
  body.mech-mode .phone.big { border: 0; border-radius: 0; }
  body.mech-mode .phone-bar { display: none; }
  body.mech-mode .phone.big .phone-screen { min-height: 100dvh; }
  .m-head { padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
  .m-more { display: grid; flex: none; }
  .m-sel { max-width: 132px; height: 38px; }
  .m-card { padding: 14px; }
  .m-task, .m-part { padding: 14px 12px; }
}
@media (max-width: 380px) { .kpi-v { font-size: 18px; } .more-tile { font-size: 11.5px; } .scan-btn { display: none; } }

/* ---------- nápověda v bublinách a průvodce aplikací (tour.js) ---------- */
.mp-tip { position: fixed; z-index: 9600; max-width: 300px; padding: 9px 12px; border-radius: 10px; background: #17241e; color: #fff; font: 500 13px/1.45 var(--font, system-ui, sans-serif); box-shadow: 0 10px 28px rgba(10, 30, 20, .28); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s; }
.mp-tip.on { opacity: 1; transform: none; }
#tour-ov { position: fixed; inset: 0; z-index: 9700; }
.tour-dim { position: fixed; inset: 0; background: rgba(10, 25, 18, .55); }
.tour-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 3px #f2c200, 0 0 0 7px rgba(242, 194, 0, .25); pointer-events: none; }
.tour-b { position: fixed; z-index: 2; background: #fff; color: #17241e; border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(10, 30, 20, .35); outline: none; }
.tour-b h3 { margin: 2px 0 6px; font: 800 18px/1.25 var(--font-display, var(--font, system-ui)); }
.tour-b p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: #34443b; }
.tour-step { font: 600 12px var(--font-mono, monospace); color: #15803d; }
.tour-dots { display: flex; gap: 5px; margin: 4px 0 12px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6ddd7; }
.tour-dots i.on { background: #15803d; width: 18px; border-radius: 4px; }
.tour-btns { display: flex; gap: 8px; align-items: center; }
.tour-btns span { flex: 1; }
.tour-skip { background: transparent; border-color: transparent; color: #44544b; }
.tour-card .btn-row { align-items: center; flex-wrap: wrap; gap: 14px; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .mp-tip { transition: none; } }
@media (max-width: 600px) { .tour-b { padding: 14px; } .tour-b p { font-size: 14px; } }

/* dlouhé seznamy: tlačítko „Zobrazit dalších“ */
.cap-more{padding:10px 12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
tr.cap-more td{padding:10px 12px}

/* normočasy a stopky mechanika (normy.js) */
.m-norm { width: 100%; font-size: 13px; color: var(--text-2); }
.m-norm > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.m-norm b { color: var(--text); }
.m-norm.over > div:first-child span:last-child { color: #b45309; font-weight: 600; }
.m-norm.over .hbar span { background: #d97706; }
.nm-src { max-width: 340px; margin-left: auto; white-space: normal; }

/* upravitelný text zprávy zákazníkovi (bublina jako ve WhatsApp, ale s textarea) */
.wa-edit { display: block; width: 100%; box-sizing: border-box; min-height: 110px; border: 0; background: transparent; font: inherit; font-size: 14px; line-height: 1.4; resize: vertical; padding: 0; margin: 0; outline: none; color: inherit; }
.wa-bub:focus-within, .ob-msg-edit:focus { outline: 2px solid var(--accent, #1a7f4b); outline-offset: 1px; }
.wa-edit-hint { font-size: 12px; color: var(--muted, #667); margin-top: 4px; }
.ob-msg-edit { display: block; width: 100%; box-sizing: border-box; min-height: 84px; resize: vertical; white-space: pre-wrap; background: #f6faf7; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font: inherit; font-size: 14px; line-height: 1.4; }
@media (max-width: 600px) { .wa-edit, .ob-msg-edit { font-size: 16px; } }

/* ===== Doklady v klasickém českém stylu (ProFact-like) ===== */
.pf-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.seg.sm button { padding: 5px 10px; font-size: 12.5px; }
.a4.pf { --pf-line: #1f2a24; --pf-soft: #f3f6f4; --pf-acc: #15803d; color: #111; padding: 26px 28px; font-size: 12.5px; line-height: 1.4; position: relative; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--pf-line); flex-wrap: wrap; }
.pf-logo { display: flex; align-items: center; gap: 10px; }
.pf-logo b { font: 800 17px var(--font-display); display: block; }
.pf-logo small { color: #555; font-size: 11px; }
.pf-mark { width: 40px; height: 40px; border-radius: 9px; background: var(--pf-acc); color: #fff; display: grid; place-items: center; font: 800 15px var(--font-display); letter-spacing: .02em; flex: none; }
.pf-title { text-align: right; }
.pf-t1 { font: 800 19px var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.pf-no { font: 700 16px var(--font-display); margin-top: 2px; }
.pf-sub { font-size: 11px; color: #555; margin-top: 3px; }
.pf-dodaci .pf-sub { color: #b45309; font-weight: 700; }
.pf-banner { margin: 10px 0 0; padding: 7px 10px; border: 1px solid #99c9ad; background: #ecfdf3; border-radius: 4px; font-weight: 600; }
.pf-banner.red { border-color: #f1a5a5; background: #fef2f2; color: #b91c1c; letter-spacing: .04em; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pf-box { border: 1px solid var(--pf-line); border-radius: 3px; padding: 8px 10px; min-width: 0; }
.pf-cust { border-width: 2px; }
.pf-h { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 700; margin-bottom: 4px; }
.pf-big { font-size: 15px; }
.pf-kv { border-collapse: collapse; margin-top: 4px; width: 100%; }
.pf-kv td { padding: 1px 0; vertical-align: top; }
.pf-kv td:first-child { color: #555; width: 44%; padding-right: 8px; }
.pf-sm { font-size: 10.5px; color: #555; }
.pf-mono { font-family: var(--font-mono); font-size: 11px; }
.pf-strip { margin-top: 8px; padding: 6px 10px; background: var(--pf-soft); border-left: 3px solid var(--pf-acc); }
.pf-strip span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 700; margin-right: 8px; }
.pf-intro { margin: 12px 0 4px; }
.pf-tblw { overflow-x: auto; }
.pf-tbl { width: 100%; border-collapse: collapse; }
.pf-tbl th { background: var(--pf-soft); border-top: 1px solid var(--pf-line); border-bottom: 1px solid var(--pf-line); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 5px 6px; white-space: nowrap; }
.pf-tbl td { padding: 5px 6px; border-bottom: 1px solid #d5ddd8; font-variant-numeric: tabular-nums; vertical-align: top; }
.pf-tbl .r, .pf-rek .r { text-align: right; white-space: nowrap; }
.pf-code { display: block; font: 10.5px var(--font-mono); color: #666; }
.pf-sec td { background: #eef5f0; font-weight: 700; border-bottom: 1px solid #b9cfc1; }
.pf-bottom { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 12px; align-items: start; }
.pf-rek { border-collapse: collapse; width: 100%; font-size: 11.5px; }
.pf-rek th { font-size: 10px; text-transform: uppercase; color: #555; text-align: left; border-bottom: 1px solid var(--pf-line); padding: 3px 5px; }
.pf-rek td { padding: 3px 5px; border-bottom: 1px solid #e1e7e3; font-variant-numeric: tabular-nums; }
.pf-rek-t td { font-weight: 700; border-top: 1px solid var(--pf-line); }
.pf-qr { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.pf-r { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.pf-r-b { font-weight: 700; border-top: 1px solid #c9d3cd; padding-top: 4px; margin-top: 2px; }
.pf-pay { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--pf-line); background: var(--pf-soft); padding: 8px 10px; margin-top: 6px; }
.pf-pay span { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.pf-pay b { font: 800 19px var(--font-display); white-space: nowrap; }
.pf-paid { margin-top: 6px; text-align: center; color: #15803d; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border: 2px dashed #15803d; padding: 4px; transform: rotate(-1.5deg); }
.pf-outro { margin: 14px 0 0; }
.pf-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 14px; align-items: end; }
.pf-line { border-bottom: 1px solid var(--pf-line); height: 46px; }
.pf-stamp { display: inline-flex; flex-direction: column; gap: 1px; border: 2px solid #1e40af; color: #1e40af; border-radius: 5px; padding: 5px 9px; font-size: 9.5px; transform: rotate(-3deg); opacity: .85; max-width: 230px; }
.pf-stamp b { font-size: 11px; }
.pf-foot { margin-top: 14px; padding-top: 7px; border-top: 1px solid #c9d3cd; font-size: 10px; color: #666; }
.pf-storno .pf-tbl, .pf-storno .pf-bottom { opacity: .55; }
/* moderní vzhled */
.tpl-moderni.a4.pf { --pf-line: #d6e2da; }
.tpl-moderni .pf-top { border-bottom: 0; background: linear-gradient(90deg, #0f5132, #15803d); color: #fff; margin: -26px -28px 0; padding: 20px 28px; border-radius: 6px 6px 0 0; }
.tpl-moderni .pf-logo small, .tpl-moderni .pf-sub { color: #d1fae5; }
.tpl-moderni .pf-dodaci .pf-sub, .tpl-moderni.pf-dodaci .pf-sub { color: #fde68a; }
.tpl-moderni .pf-mark { background: #fff; color: #15803d; }
.tpl-moderni .pf-box { border: 0; background: #f6faf7; border-radius: 8px; }
.tpl-moderni .pf-cust { box-shadow: inset 3px 0 0 #15803d; }
.tpl-moderni .pf-tbl th { background: none; border-top: 0; border-bottom: 2px solid #15803d; color: #0f5132; }
.tpl-moderni .pf-pay { border: 0; background: #15803d; color: #fff; border-radius: 8px; }
/* seznam DL, výběr, export */
.w-chk { width: 34px; text-align: center; }
.w-chk input { width: 18px; height: 18px; accent-color: var(--mp-green); }
.row-dim td { opacity: .55; }
.selbar { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #ecfdf3; border: 1px solid #a7d7b9; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(15, 29, 22, .08); }
.selbar span { flex: 1; min-width: 180px; }
.warn-box { background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px; padding: 9px 11px; color: #9a3412; display: flex; gap: 8px; align-items: flex-start; }
.exp-progs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exp-prog { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; position: relative; }
.exp-prog input { position: absolute; opacity: 0; pointer-events: none; }
.exp-prog span { font-size: 12px; color: var(--text-2); }
.exp-prog.on { border-color: var(--mp-green); box-shadow: 0 0 0 2px rgba(22, 163, 74, .18); background: #f3fbf6; }
.exp-file { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; margin: 10px 0; }
.exp-file .ic { width: 26px; height: 26px; color: var(--mp-green); }
.exp-file div { display: flex; flex-direction: column; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pref-opts { display: flex; flex-direction: column; gap: 6px; }
.pref-opts .radio { display: flex; gap: 8px; align-items: center; }
textarea.code { width: 100%; font: 11.5px/1.45 var(--font-mono); }
@media (max-width: 760px) {
  .a4.pf { padding: 14px; font-size: 12px; }
  .tpl-moderni .pf-top { margin: -14px -14px 0; padding: 14px; }
  .pf-grid, .pf-bottom { grid-template-columns: 1fr; }
  .pf-title { text-align: left; }
  .exp-progs { grid-template-columns: 1fr; }
  .selbar { top: 56px; }
  .dl-tbl td.w-chk { position: absolute; top: 12px; left: 12px; padding: 0; width: auto; display: block; }
  .dl-tbl td:nth-child(2) { display: block; text-align: left; font-size: 15px; padding: 0 0 6px 30px; }
  .dl-tbl td:nth-child(2)::before { display: none; }
  .dl-tbl td:nth-child(2) .tdv { text-align: left; }
  .dl-tbl td.td-x, .dl-tbl td:last-child { position: static; display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; flex-wrap: wrap; }
  .dl-tbl td:last-child::before { display: none; }
}
@media print { .pf-tools { display: none; } .a4.pf { padding: 0; } }

.qr-miss { width: 104px; min-height: 80px; border: 1px dashed #c2410c; color: #c2410c; font-size: 10px; padding: 6px; display: grid; place-items: center; text-align: center; border-radius: 4px; }
.qr-real { display: block; flex: none; }

#bell-count[hidden] { display: none !important; }

/* forma úhrady: výběr v náhledu dokladu a výrazná částka v hotovosti na tisku */
.pf-paym { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pf-paym select { min-height: 44px; font-size: 15px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line, #c9d3cd); background: #fff; max-width: 100%; }
@media (max-width: 640px) { .pf-paym { width: 100%; } .pf-paym select { flex: 1; } }
.pf-cash { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border: 2px dashed var(--pf-line, #16a34a); }
.pf-cash span { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.pf-cash b { font: 800 19px var(--font-display); white-space: nowrap; }

/* ---------- pneuhotel (tires.js) ---------- */
.ph-racks { display: flex; flex-direction: column; gap: 8px; }
.ph-rack { display: flex; gap: 6px; align-items: stretch; }
.ph-rack .rack-l { width: 26px; flex: none; }
.ph-rack-b { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.ph-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend .ph-dot { position: static; width: 9px; height: 9px; margin-right: 5px; vertical-align: 0; }
.ph-s-w { background: #2563eb; } .ph-s-s { background: #ea580c; } .ph-s-a { background: #7c3aed; }
.ph-s { display: inline-block; padding: 0 6px; border-radius: 9px; font-size: 11.5px; line-height: 17px; color: #fff; }
.ph-s.ph-s-w { background: #2563eb; } .ph-s.ph-s-s { background: #c2410c; } .ph-s.ph-s-a { background: #6d28d9; }
.ph-chips { margin: 0 0 10px; }
.ph-chips .chip b { font-weight: 700; margin-left: 2px; }
.ph-empty { padding: 18px 4px; font-size: 13.5px; }
.ph-card-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ph-card-box { margin-left: auto; text-align: right; }
.ph-card-box span { display: block; font-size: 11px; color: var(--text-3); }
.ph-card-box b { font: 800 26px var(--font-display); }
.ph-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 14px 0 6px; }
.ph-facts dt { font-size: 11.5px; color: var(--text-3); }
.ph-facts dd { margin: 2px 0 0; font-size: 13.5px; }
.ph-h4 { margin: 16px 0 8px; font-size: 13px; }
.ph-treads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ph-tr { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fff; }
.ph-tr span { display: block; font-size: 11.5px; color: var(--text-3); }
.ph-tr b { font: 700 17px var(--font-mono); }
.ph-tr.low { border-color: #f59e0b; background: #fffbeb; }
.ph-tr.low b { color: #b45309; }
.ph-note { margin: 0; white-space: pre-wrap; font-size: 13.5px; }
.ph-hist { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 180px; overflow: auto; }
.ph-hist li { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.ph-hist li span { display: inline-block; min-width: 118px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ph-hist em { color: var(--text-3); font-style: normal; }
.ph-swap { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-bg); border: 1px solid #bfd2ff; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.5; }
.ph-swap .ic { flex: none; margin-top: 2px; }
.ph-hint { margin: -4px 0 10px; }
.ph-checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.ph-tr-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-tr-in label { display: flex; flex-direction: column; gap: 3px; }
.ph-tr-in em { font-style: normal; font-size: 11px; color: var(--text-3); }
.ph-tr-in input { width: 100%; min-width: 0; }
.ph-err { color: var(--red); font-size: 13px; min-height: 1em; margin: 8px 0 0; }
.ph-call { max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; margin-bottom: 12px; }
.ph-call .check { flex-wrap: wrap; border-bottom: 1px dashed var(--border); padding: 7px 0; }
.ph-call .check:last-child { border-bottom: 0; }
.ph-rk { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ph-rk-row { display: flex; gap: 8px; align-items: center; }
.ph-rk-row input[name=rk] { width: 70px; text-transform: uppercase; font-weight: 700; }
.ph-rk-row input[name=rn] { width: 90px; }
@media (max-width: 640px) { .ph-treads, .ph-tr-in { grid-template-columns: repeat(2, 1fr); } .ph-card-box { margin-left: 0; text-align: left; } }

/* protokol */
.ph-proto-r { display: flex; gap: 14px; align-items: flex-start; }
.ph-proto-r .qr-real { flex: none; }
.ph-proto-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0 10px; }
.ph-proto-t td:nth-child(odd) { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.ph-mt { margin-top: 16px; }
.ph-proto-p { margin: 4px 0 0; line-height: 1.55; }
.ph-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; }
.ph-sign div { border-top: 1px solid var(--text); padding-top: 5px; font-size: 11.5px; color: var(--text-2); }
.ph-sign-out { margin-top: 30px; }
/* štítky */
.ph-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ph-lbl { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--border-2); border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 12.5px; line-height: 1.35; break-inside: avoid; }
.ph-lbl-q { flex: none; }
.ph-lbl-box { font: 800 28px var(--font-display); line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.ph-lbl-box span { font: 700 14px var(--font-mono); background: #111827; color: #fff; padding: 1px 6px; border-radius: 4px; }
.ph-lbl-spz { display: block; font: 700 15px var(--font-mono); margin: 4px 0 2px; }
.ph-lbl-s { color: var(--text-3); font-size: 11px; margin-top: 2px; }
@media (max-width: 560px) { .ph-labels, .ph-proto-2 { grid-template-columns: 1fr; } }
@media print { .ph-lbl { border: 1px solid #999; } .ph-proto { box-shadow: none; border: 0; padding: 0; } }
.hint.amber-t { color: #b45309; }
@media (max-width: 760px) { .page-actions > .btn-primary { order: -1; } }
/* ---------- Sparts.cz (sparts.js) ---------- */
.sp-top { margin-bottom: 16px; align-items: start; }
.sp-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.sp-steps b { color: var(--text); }
.sp-ok { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--mp-green-50); border: 1px solid var(--mp-green-100); margin-bottom: 12px; }
.sp-ok > .ic { width: 22px; height: 22px; color: var(--mp-green-dark); flex: none; }
.sp-ok b { display: block; }
.sp-code { background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 10px; padding: 14px; margin: 10px 0; word-break: break-all; }
.sp-code code { font: 600 14px/1.5 var(--font-mono); user-select: all; }
.sp-mk { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-end; }
.sp-mk .fld { margin: 0; }
.sp-mk-in { display: inline-flex; align-items: center; gap: 6px; }
.sp-mk-in input { width: 80px; text-align: right; }
.sp-mk .hint { width: 100%; margin: 4px 0 0; }
.sp-po { padding: 12px 0; border-top: 1px solid var(--border); }
.sp-po:first-of-type { border-top: 0; padding-top: 0; }
.sp-po-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.sp-po-h .btn { margin-left: auto; }
.sp-un { border-color: #f59e0b; }
.sp-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 240px) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.sp-line .sub2 { display: block; }
.sp-wait { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 10px; background: var(--amber-bg); font-size: 13.5px; margin-top: 10px; }
.sp-wait > span:first-child .ic { width: 20px; height: 20px; }
.sp-wait b { display: block; }
.sp-teaser { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); border-color: var(--mp-green-100); background: var(--mp-green-50); }
.sp-teaser > .ic:first-child { width: 22px; height: 22px; color: var(--mp-green-dark); flex: none; }
.sp-teaser > span { flex: 1; }
.sp-teaser b { display: block; }
.sp-teaser:hover { border-color: var(--mp-green); }
.sp-cat-bar { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #0f2a1c; color: #fff; margin-bottom: 10px; }
.sp-cat-bar .ic { width: 22px; height: 22px; color: #86efac; flex: none; }
.sp-cat-bar b { display: block; }
.sp-cat-bar .sub2 { color: #c7d7cd; }
.sp-cat-list { display: grid; gap: 6px; margin-top: 10px; }
.sp-cat-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 70px 90px 130px; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.sp-cat-row:has(input:checked) { border-color: var(--mp-green); background: var(--mp-green-50); }
.sp-cat-row input { width: 18px; height: 18px; accent-color: var(--mp-green); }
.sp-cat-n b { display: block; }
.sp-cat-q { color: var(--text-2); text-align: right; }
.sp-cat-p { font-weight: 700; text-align: right; }
.sp-cat-a { font-size: 12.5px; color: var(--mp-green-dark); text-align: right; }
@media (max-width: 760px) {
  .sp-line { grid-template-columns: 1fr; }
  .sp-cat-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sp-cat-q, .sp-cat-a { display: none; }
  .sp-po-h .btn { margin-left: 0; }
  .sp-wait { width: 100%; }
}
/* příjem vozu z fotek (fotoprijem.js) */
.fp { border: 1px dashed #a7d3b4; background: #f3faf5; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.fp-row { display: flex; gap: 12px; align-items: center; }
.fp-av { width: 64px; height: 64px; flex: none; border-radius: 12px; background: #e3ede6; color: #5b7263; display: grid; place-items: center; overflow: hidden; }
.fp-av svg { width: 28px; height: 28px; }
.fp-av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.fp-btn { cursor: pointer; }
.fp-hint { margin: 0; flex-basis: 100%; }
.fp.busy .fp-btn { opacity: .55; pointer-events: none; }
.fp-msg { margin-top: 10px; padding: 9px 11px; border-radius: 9px; font-size: 13px; line-height: 1.45; }
.fp-msg.ok { background: #ecfdf3; color: #14532d; }
.fp-msg.amber { background: #fffbeb; color: #78350f; }
.fp-msg.info { background: #eff6ff; color: #1e3a8a; }
.fp-msg .btn-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.fp-msg .spz { vertical-align: middle; }
.fp-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.fp-list li > span:first-child { display: inline-block; min-width: 64px; color: #4b5b51; }
.fp-warn { color: #92400e; }
.fp-demo { margin: 6px 0 0; font-size: 12px; opacity: .8; }
.fp-spin { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fp-spin .8s linear infinite; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-filled { box-shadow: 0 0 0 2px rgba(34, 197, 94, .35) !important; background-color: #f0fdf4 !important; }
.veh-av { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; vertical-align: middle; margin-right: 6px; flex: none; }
.veh-av-lg { width: 44px; height: 44px; border-radius: 10px; margin-right: 10px; vertical-align: -10px; }
.match .veh-av { width: 40px; height: 40px; }
@media (max-width: 560px) { .fp-av { width: 52px; height: 52px; } .fp-btn { flex: 1 1 auto; justify-content: center; } }
/* vůz z QR kódu na techničáku (rsvqr.js) */
#rq [hidden], .rq-hide { display: none !important; }
.modal.rq-modal { max-width: 640px; }
.rq-cam { position: relative; background: #0f172a; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 48vh; margin: 0 auto 8px; width: 100%; }
.rq-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-frame { position: absolute; inset: 0; margin: auto; width: min(58%, 260px); aspect-ratio: 1; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(15, 23, 42, .35); pointer-events: none; opacity: 0; transition: opacity .2s; }
.rq-cam.on .rq-frame { opacity: 1; }
.rq-hint { margin: 4px 0 8px; }
.rq-hint.warn { color: #92400e; background: #fffbeb; border-radius: 8px; padding: 7px 9px; }
.rq-alt { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rq-alt label { cursor: pointer; }
.rq-man { margin: 4px 0 0; }
.rq-man input { text-transform: uppercase; }
.rq-form { margin-top: 2px; }
.rq-form .fp-msg { margin: 0 0 10px; }
.rq-form .fld-row { flex-wrap: wrap; }
.rq-form .fld-row .fld { min-width: 140px; }
.rq-form input[name=spz], .rq-form input[name=vin] { text-transform: uppercase; }
.rq-spz-hint { display: block; margin-top: 4px; color: #92400e; font-size: 12.5px; }
.rq input:placeholder-shown { text-transform: none; }
.rq-more { margin: 2px 0 8px; }
.rq-more summary { cursor: pointer; font-size: 13px; color: #475569; padding: 4px 0; }
.rq-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.rq-row .hint { margin: 0; }
.rq-btn { cursor: pointer; }
.rq-tech { margin-bottom: 14px; }
@media (max-width: 560px) {
  .rq-cam { aspect-ratio: 3 / 4; max-height: 52vh; }
  .rq-form .fld-row .fld { flex: 1 1 100%; }
  .rq-alt .btn, .rq-alt label { flex: 1 1 auto; justify-content: center; }
}
/* Import dokladů dodavatele (dodimport_ui.js) – velká tlačítka pro telefon, řádky tabulky, upozornění */
.di-pick { gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.di-big { min-height: 56px; font-size: 16px; padding: 12px 20px; cursor: pointer; }
.di-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; margin-bottom: 12px; }
.di-price { background: var(--bg, #f6f7f9); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.di-tbl td, .di-tbl th { vertical-align: middle; }
.di-sell { width: 92px; text-align: right; min-height: 38px; }
.di-chk { width: 22px; height: 22px; }
.di-used { opacity: .5; }
.di-low { background: #fdecec; }
.di-bad { color: #b42318; font-weight: 600; }
.di-sechead td { background: #eef1f6; padding-top: 10px; }
.di-service { opacity: .6; }
.di-warn .radio { display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .di-big { width: 100%; justify-content: center; }
  .di-sell { width: 78px; }
}

/* ===== ostrý provoz ===== */
body.prod .fb-btn, body.prod .scan-btn, body.prod .cart-btn, body.prod #cart-fab, body.prod .c-demo, body.prod label:has(#pay-link), body.prod #pay-link + p { display: none !important; }
#p-load { position: fixed; inset: 0; z-index: 9999; background: #f4f7f5; display: grid; place-items: center; padding: 24px; }
#p-load .pl-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 420px; }
#p-load .pl-box b { font: 800 22px var(--font-display); }
#p-load p { color: var(--text-2); margin: 0; }
#p-load.fail p { color: #9a3412; background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px; padding: 12px 14px; }
.pl-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #cfe7d8; border-top-color: var(--mp-green); animation: plspin .8s linear infinite; }
@keyframes plspin { to { transform: rotate(360deg); } }
.modal.locked .modal-head .icon-btn { display: none !important; }
.ob-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.ob-steps li { padding: 5px 10px; border-radius: 999px; background: #eef2ef; font-size: 12.5px; color: var(--text-2); }
.ob-steps li.cur { background: var(--mp-green); color: #fff; font-weight: 700; }
.ob-steps li.done { background: #dcfce7; color: #166534; }
.ob-h { font-size: 14px; margin: 14px 0 6px; }
.ob-row { display: flex; gap: 8px; margin-bottom: 6px; }
.ob-row input, .ob-row select { flex: 1; min-width: 0; }
.num-in { width: 120px; }
.cell-in { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; font: inherit; }
.cell-in:hover, .cell-in:focus { border-color: var(--border); background: #fff; }
.cell-in.sm { width: 80px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.who-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.who-btn:hover { border-color: var(--mp-green); box-shadow: 0 0 0 2px rgba(22, 163, 74, .15); }
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.mode-badge.p-ok .mb-dot { background: #16a34a; }
.mode-badge.p-busy .mb-dot { background: #f59e0b; }
.mode-badge.p-off .mb-dot { background: #dc2626; }
.mode-badge.p-ro .mb-dot { background: #94a3b8; }
#p-banner { display: flex; gap: 8px; align-items: center; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
#p-outbox { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 0; background: #128c4a; color: #fff; font: 700 14px var(--font-display, system-ui); box-shadow: 0 8px 24px rgba(15, 29, 22, .25); cursor: pointer; }
#p-outbox .ic { width: 18px; height: 18px; }
#p-outbox b { background: #fff; color: #128c4a; border-radius: 999px; min-width: 22px; padding: 1px 7px; }
#p-outbox.pulse { animation: obpulse 1.2s ease 2; }
@keyframes obpulse { 50% { transform: scale(1.08); } }
.ob-msg { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.ob-msg-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.ob-msg-t { white-space: pre-wrap; background: #f6faf7; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13.5px; }
@media (max-width: 760px) { #p-outbox { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; } .ob-row { flex-wrap: wrap; } }

.tbl .cell-in { text-align: left; }
.set-tbl td:first-child .cell-in { min-width: 150px; }
.set-tbl select.cell-in { min-width: 130px; }

/* ===== platforma: přihlášení, výběr firmy, správa, portál ===== */
#p-auth { position: fixed; inset: 0; z-index: 9998; background: linear-gradient(160deg, #eef7f1, #f7f9f8 45%, #eef2ef); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.au-box { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; box-shadow: 0 20px 50px rgba(15, 29, 22, .10); }
.au-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.au-brand b { display: block; font: 800 19px var(--font-display); }
.au-brand span { font-size: 12.5px; color: var(--text-3); }
.au-brand .lang-sw { margin-left: auto; }
.au-box h2 { font: 800 21px var(--font-display); margin: 0 0 12px; }
.au-box .fld { margin-bottom: 12px; }
.au-box input { width: 100%; }
.au-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.au-msg { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-size: 14px; }
.au-msg.ok { background: #ecfdf3; border-color: #a7d7b9; color: #166534; }
.au-foot { margin: 18px 0 0; font-size: 11.5px; color: var(--text-3); text-align: center; }
button.busy { opacity: .6; pointer-events: none; }
.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.ch-item:hover { border-color: var(--mp-green); box-shadow: 0 0 0 2px rgba(22, 163, 74, .15); }
.ch-item .ic { width: 26px; height: 26px; color: var(--mp-green); flex: none; }
.ch-item span { display: flex; flex-direction: column; }
#p-admin { position: fixed; inset: 0; z-index: 9000; background: var(--bg, #f4f7f5); overflow-y: auto; }
/* okna nad panelem správce (jinak byla pod ním – „Spustit 60 dní“, „Bez omezení“), hlášky nad vším (i nad přihlášením 9998 a načítáním 9999) */
#modal-root .overlay { z-index: 9100; }
#toast-root { z-index: 10000; }
.adm-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.adm-top b { font: 800 17px var(--font-display); }
.adm-sp { flex: 1; }
.adm-body { max-width: 1280px; margin: 0 auto; padding: 22px; }
.inv-link { background: #f6faf7; border: 1px dashed #a7d7b9; border-radius: 10px; padding: 10px 12px; margin: 10px 0; word-break: break-all; }
.inv-link code { font-size: 13px; }
.portal-wrap { min-height: 100vh; background: #eef2ef; display: flex; flex-direction: column; align-items: center; }
.portal-app.phone-screen { flex: 1; width: 100%; max-width: 560px; min-height: 100vh; height: auto; border-radius: 0; box-shadow: 0 0 40px rgba(15, 29, 22, .08); position: relative; overflow: visible; }
.portal-app .c-tabs { position: sticky; bottom: 0; }
.c-qr { display: flex; justify-content: center; margin: 12px 0; }
body.saas .scan-btn, body.saas .fb-btn { display: none !important; }
@media (max-width: 760px) { .adm-body { padding: 12px; } .adm-top { padding: 10px 12px; } }

.c-head .c-ini { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--mp-green-700, #15803d); display: grid; place-items: center; font: 800 14px/1 Manrope, system-ui, sans-serif; flex: none; }
.mech-prev { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 560px; margin: 0; padding: 8px 12px; box-sizing: border-box; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; font-size: 13px; color: var(--muted, #64748b); }
.phone-screen.mech.portal-app .m-head .m-acc { margin-left: 4px; }
.au-box .hint { margin: 0 0 14px; }
.ts-box { min-height: 65px; margin: 4px 0 12px; }
.oauth { display: grid; gap: 8px; margin: 4px 0 14px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #c9d2cb; color: #17241e; font-weight: 600; min-height: 44px; }
.oauth-btn:hover { border-color: #17241e; }
.oauth-btn svg { width: 20px; height: 20px; flex: none; }
.au-or { display: flex; align-items: center; gap: 10px; color: #6b7a71; font-size: 13px; margin: 8px 0 2px; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: #dfe5e0; }

/* mobilní aplikace a smazání účtu */
.app-inst { display: grid; gap: 4px; border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 14px; margin: 12px 0 4px; background: var(--mp-green-50); }
.app-inst span { font-size: 13px; color: var(--text-2); }
.app-inst .btn { justify-self: start; margin-top: 4px; }
.del-warn { background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0; color: #9a3412; }
.form-err { color: var(--red); font-size: 13px; min-height: 1em; margin: 6px 0 0; }
/* panel správce v2 */
.adm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 12px; }
.adm-bar .seg button { display: inline-flex; align-items: center; gap: 6px; }
.adm-q { flex: 1 1 240px; min-width: 200px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.adm-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--bg2, #eef2ef); font-size: 12px; text-align: center; }
.adm-cc { display: inline-block; padding: 1px 5px; border-radius: 4px; font: 700 10.5px/1.4 var(--font-mono, monospace); letter-spacing: .3px; vertical-align: 1px; }
.adm-cc-cz { background: #e8eefc; color: #1d4ed8; }
.adm-cc-pl { background: #fde8e8; color: #b91c1c; }
.adm-tbl td { vertical-align: top; }
.adm-pills { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.adm-new { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 10px; align-items: end; }
@media (max-width: 900px) { .adm-new { grid-template-columns: 1fr; } }

.au-tips{margin:4px 0 14px;padding-left:18px;font-size:13.5px;line-height:1.5;color:var(--muted,#44544b)}.au-tips li{margin:4px 0}

/* panel správce – statistiky */
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.adm-tabs button { border: 0; background: none; padding: 10px 14px; font: 600 14px var(--font, inherit); color: var(--muted, #44544b); border-bottom: 3px solid transparent; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.adm-tabs button.on { color: var(--text, #17241e); border-bottom-color: var(--mp-green, #15803d); }
.adm-tabs button:focus-visible { outline: 2px solid var(--mp-green, #15803d); outline-offset: -2px; }
.adm-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted, #44544b); cursor: pointer; }
.adm-busy { opacity: .55; transition: opacity .2s; }
.adm-kpis .kpi-v { display: flex; align-items: center; gap: 8px; }
.adm-live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c5cec8; }
.adm-live.on { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.adm-i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; background: var(--bg2, #eef2ef); color: var(--muted, #44544b); font: 700 11px/1 var(--font, sans-serif); cursor: help; vertical-align: 1px; }
.adm-bars { display: grid; gap: 7px; }
.adm-br { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.adm-bl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.adm-bl b { font-weight: 600; word-break: break-all; }
.adm-bt { height: 8px; border-radius: 99px; background: var(--bg2, #eef2ef); overflow: hidden; }
.adm-bt span { display: block; height: 100%; border-radius: 99px; background: var(--mp-green, #15803d); }
.adm-bv { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-chart { width: 100%; height: auto; }
.adm-chart .adm-bar-v { fill: var(--mp-green, #15803d); fill-opacity: .75; }
.adm-chart .adm-dot { fill: #f2c200; stroke: #17241e; stroke-width: 1; }
.adm-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted, #44544b); margin-top: 6px; }
.adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.adm-lg-v { background: var(--mp-green, #15803d); opacity: .75; } .adm-lg-d { background: #f2c200; border-radius: 50% !important; border: 1px solid #17241e; }
.adm-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 70px; align-items: end; }
.adm-hours div { position: relative; height: 100%; display: flex; align-items: flex-end; }
.adm-hours span { display: block; width: 100%; min-height: 2px; background: var(--mp-green, #15803d); opacity: .7; border-radius: 2px 2px 0 0; }
.adm-hours em { position: absolute; bottom: -16px; left: 0; font: 10px var(--font-mono, monospace); font-style: normal; color: var(--muted, #44544b); }
.adm-hours { margin-bottom: 18px; }
.adm-path { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; font-size: 12.5px; max-width: 520px; }
.adm-path span, .adm-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--bg2, #eef2ef); font-size: 12.5px; }
.adm-path i { font-style: normal; color: var(--muted, #44544b); }
.adm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .adm-br { grid-template-columns: minmax(0, 1fr) 70px auto; } .adm-tabs { overflow-x: auto; flex-wrap: nowrap; } .adm-tabs button { white-space: nowrap; } }

.adm-bar .seg { max-width: 100%; overflow-x: auto; }
@media (max-width: 760px) { .adm-bar .seg button { padding-left: 9px; padding-right: 9px; } .adm-site-l { display: none; } }

/* úpravy do odeslání do KSeF / EET */
.eu-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #15803d; background: #ecfdf3; border-radius: 99px; padding: 3px 10px; margin-right: 8px; }
.eu-note svg { width: 14px; height: 14px; }
.eu-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted, #44544b); margin-right: auto; cursor: help; }
.eu-lock svg { width: 15px; height: 15px; }
.eu-job { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: var(--bg2, #eef2ef); margin-top: 6px; flex-wrap: wrap; }
.eu-job span { flex: 1; min-width: 220px; }
.eu-lines input[name=ln_name] { width: 100%; min-width: 220px; }
.eu-ksef { padding: 10px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
/* přepínání panel servisu ↔ zákaznický pohled (účet s více rolemi); menu ⋯ v portálu i na počítači */
.portal-app .m-more { display: grid; flex: none; }
.c-head .c-sw { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: var(--mp-green-dark, #15803d); font: 700 13px var(--font-display, system-ui); cursor: pointer; flex: none; white-space: nowrap; }
.c-head .c-sw .ic { width: 17px; height: 17px; }
.c-head .c-sw:hover { background: var(--mp-green-50, #f0fdf4); }
.ctx-sw { white-space: nowrap; }
@media (max-width: 440px) { .c-head .c-sw { width: 36px; padding: 0; justify-content: center; } .c-head .c-sw .lbl { display: none; } }

/* předplatné: lišta nad obsahem a okno aktivace */
#bill-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #f0fdf4; border: 1px solid #86efac; color: #14532d; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
#bill-bar.lock { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
#bill-bar > span { flex: 1 1 240px; min-width: 0; }
#bill-bar .btn { white-space: nowrap; }
.bill-st { margin: 0 0 12px; }
.bill-dl dd .sub2 { margin-top: 2px; }
.bill-form { margin-top: 14px; border-top: 1px solid var(--line, #e5e7eb); padding-top: 14px; }
.bill-ok { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.4; }
.bill-ok input { margin-top: 3px; flex: none; width: 18px; height: 18px; }

/* přepínač režimů správce platformy (renderModes v saas.js): pruh nahoře nad aplikací i správou */
#mp-modes { position: fixed; top: 0; left: 0; right: 0; z-index: 8000; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #fff; font-size: 13px; overflow-x: auto; scrollbar-width: none; background: #14532d; }
#mp-modes::-webkit-scrollbar { display: none; }
#mp-modes[data-mode=admin] { background: #3b2a6b; }
.mm-l { opacity: .75; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-right: 4px; white-space: nowrap; }
.mm-b { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: inherit; white-space: nowrap; cursor: pointer; flex: none; }
.mm-b .ic { width: 16px; height: 16px; }
.mm-b em { font-style: normal; font-size: 11.5px; opacity: .75; }
button.mm-b:hover { background: rgba(255, 255, 255, .14); }
.mm-b.on { background: #fff; color: #10231a; border-color: #fff; font-weight: 700; cursor: default; }
.mm-b.on em { font-weight: 400; }
.mm-sp { flex: 1; }
.mm-u { opacity: .75; font-size: 12px; white-space: nowrap; }
body.has-modes { padding-top: 44px; overflow-anchor: none; }
body.has-modes .sidebar { top: 44px; height: calc(100vh - 44px); }
body.has-modes .topbar { top: 44px; }
body.has-modes #p-admin { top: 44px; }
@media (max-width: 760px) {
  #mp-modes { padding: 0 8px; gap: 5px; }
  .mm-l, .mm-u, .mm-b em { display: none; }
  .mm-b { padding: 0 10px; }
  .mm-b .mm-n { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
}
/* ===== Ekosystém: aplikace řidiče, katalog servisů, hodnocení ===== */
.ek-app .c-head .ek-ava { width: 38px; height: 38px; flex: none; }
.ek-ava { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ava, #15803d); box-shadow: 0 0 0 2px #fff; }
.ek-ava svg { width: 60%; height: 60%; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ek-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 2px 2px 0; }
.ek-hero h2 { margin: 0; font: 800 22px/1.15 var(--font-display, Manrope, system-ui, sans-serif); letter-spacing: -.01em; }
.ek-hero p { margin: 4px 0 0; color: var(--text-2, #44544b); font-size: 13.5px; }
.ek-hero .btn { flex: none; }
.ek-note { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.ek-note .ic { width: 22px; height: 22px; color: #b45309; flex: none; }
.ek-dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.c-tabs button { position: relative; }

/* auto: fotka nebo ilustrace v barvě auta */
.ek-ph { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--car, #2f5fb3) 22%, #fff), #eef2ef 75%); }
.ek-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ek-ph-ill { display: grid; place-items: center; }
.ek-ph-ill .ek-car { width: 72%; height: auto; filter: drop-shadow(0 8px 10px rgba(15, 29, 22, .18)); }
.ek-ph:not(.big) { aspect-ratio: 4 / 3; }
.ek-car { width: 56px; height: 28px; display: block; }
.ek-car.big { width: 100%; height: auto; }
.ek-carcard { gap: 12px; }
.ek-car-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ek-car-t > div { min-width: 0; display: flex; flex-direction: column; }
.ek-car-t .spz, .ek-cp .spz { flex: none; }
.ek-car-t b { font: 800 17px var(--font-display, Manrope, system-ui, sans-serif); }
.ek-btns { display: flex !important; flex-wrap: wrap; gap: 8px; }
.ek-btns .btn { flex: 1 1 auto; justify-content: center; }
.ek-empty { align-items: center; text-align: center; }
.ek-empty .ek-car.big { width: 60%; margin: 6px auto; }
.ek-del { color: #b91c1c; }

/* formuláře řidiče */
.ek-form { display: flex; flex-direction: column; gap: 12px; }
.ek-form .fld > span, .ek-form .fld-row .fld > span { font-weight: 600; }
.ek-row2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ek-file { cursor: pointer; }
.ek-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ek-sw { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(15, 29, 22, .18); background: var(--sw); cursor: pointer; padding: 0; }
.ek-sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mp-green, #16a34a); }
.ek-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ek-ic { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--border, #d6ddd7); border-radius: 12px; background: #fff; cursor: pointer; font: 600 11.5px/1.2 inherit; color: var(--text-2, #44544b); }
.ek-ic .ek-car { width: 100%; max-width: 64px; height: auto; }
.ek-ic.on { border-color: var(--mp-green, #16a34a); box-shadow: 0 0 0 2px rgba(22, 163, 74, .2); color: var(--mp-green-dark, #15803d); }
.ek-avapick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ek-avapick button { border: 0; background: none; padding: 3px; border-radius: 50%; cursor: pointer; }
.ek-avapick button.on { box-shadow: 0 0 0 3px var(--mp-green, #16a34a); }
.ek-me { flex-direction: row !important; align-items: center; }
.ek-me > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* katalog v aplikaci */
.ek-search { display: flex; gap: 6px; }
.ek-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--border, #d6ddd7); border-radius: 10px; font: inherit; background: #fff; }
.ek-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ek-chips span, .ek-chips button { font: 600 12px/1 inherit; padding: 6px 9px; border-radius: 999px; background: #eef4f0; color: #2b3a31; border: 1px solid transparent; }
.ek-chips button { cursor: pointer; background: #fff; border-color: var(--border, #d6ddd7); }
.ek-chips button.on { background: var(--mp-green, #16a34a); border-color: var(--mp-green, #16a34a); color: #fff; }
.ek-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
.ek-filter button { flex: none; }
.ek-skat-top { display: flex; gap: 12px; align-items: flex-start; }
.ek-skat-top > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ek-skat-top b { font: 800 16px var(--font-display, Manrope, system-ui, sans-serif); }
.ek-skat-ph { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; background: #e3f3e8; display: grid; place-items: center; }
.ek-skat-ph img { width: 100%; height: 100%; object-fit: cover; }
.ek-ini { font: 800 20px var(--font-display, Manrope, system-ui, sans-serif); color: #15803d; }
.ek-rate { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.ek-rec { color: #be123c; display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.ek-rec .ic { width: 15px; height: 15px; fill: #be123c; stroke: #be123c; }
.ek-sp { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px inherit; color: #6d28d9; }
.ek-sp .ic { width: 16px; height: 16px; }
.ek-mine { width: 100%; }
.ek-stars { display: inline-flex; gap: 1px; vertical-align: -1px; }
.ek-stars i { font-style: normal; font-size: 15px; line-height: 1; }
.ek-stars i::before { content: '★'; color: #d6dbd8; }
.ek-stars i.f::before { color: #f59e0b; }
.ek-stars i.h::before { background: linear-gradient(90deg, #f59e0b 50%, #d6dbd8 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ek-stars.sm i { font-size: 12.5px; }

/* objednání */
.ek-bk-s { gap: 4px; }
.ek-bk-s b { font: 800 17px var(--font-display, Manrope, system-ui, sans-serif); }
.ek-parts ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.ek-parts b { display: flex; gap: 6px; align-items: center; color: #6d28d9; }
.ek-parts .ic { width: 18px; height: 18px; }
.ek-carpick { display: flex; flex-direction: column; gap: 6px; }
.ek-cp { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border, #d6ddd7); border-radius: 12px; padding: 8px 10px; cursor: pointer; background: #fff; }
.ek-cp input { position: absolute; opacity: 0; pointer-events: none; }
.ek-cp > span { display: flex; flex-direction: column; }
.ek-cp.on { border-color: var(--mp-green, #16a34a); box-shadow: 0 0 0 2px rgba(22, 163, 74, .2); }
.ek-noc { font-size: 13.5px; color: var(--text-2, #44544b); }
.ek-req-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ek-req-h b { font: 800 16px var(--font-display, Manrope, system-ui, sans-serif); }
.ek-ans { background: #f6faf7; border-left: 3px solid var(--mp-green, #16a34a); padding: 8px 10px; border-radius: 0 10px 10px 0; font-size: 13.5px; }

/* portál: hodnocení a doporučení */
.ek-recbox b { display: flex; align-items: center; gap: 6px; }
.ek-recbox b .ic { width: 18px; height: 18px; fill: #be123c; stroke: #be123c; }
.ek-rv { align-items: center; }
.ek-starpick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 6px 0 12px; }
.ek-starpick input { position: absolute; opacity: 0; }
.ek-starpick span { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.ek-starpick .ic { width: 36px; height: 36px; fill: #e5e9e6; stroke: #c3cbc6; }
.ek-starpick label:has(input:checked) .ic, .ek-starpick label:has(input:checked) ~ label .ic, .ek-starpick label:hover .ic, .ek-starpick label:hover ~ label .ic { fill: #f59e0b; stroke: #d97706; }
.ek-starpick input:focus-visible + span { outline: 3px solid #f2c200; border-radius: 8px; }

/* servis: rezervace z katalogu */
.ek-kb .card-head h2 { display: flex; align-items: center; gap: 6px; }
.ek-kb .card-head .ic { width: 20px; height: 20px; color: var(--mp-green, #16a34a); }
.ek-cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .2); margin-right: 5px; vertical-align: -1px; }

/* servis: profil v katalogu */
.ek-big { font-weight: 700; }
.ek-url { display: flex; align-items: stretch; border: 1px solid var(--border, #d6ddd7); border-radius: 10px; overflow: hidden; }
.ek-url span { background: #f2f5f3; padding: 9px 10px; color: var(--text-3, #6b7a71); font-size: 13.5px; white-space: nowrap; }
.ek-url input { border: 0 !important; flex: 1; min-width: 0; border-radius: 0 !important; }
.ek-svcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.ek-pr { display: grid; grid-template-columns: 1fr 110px 120px; gap: 6px; margin-bottom: 6px; }
.ek-hours { display: flex; flex-direction: column; gap: 6px; }
.ek-hr { display: grid; grid-template-columns: 34px 110px 1fr 14px 1fr; gap: 8px; align-items: center; }
.ek-map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border, #d6ddd7); margin-top: 8px; background: #eef2ef; }
.ek-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ek-pt { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #f2f5f3; }
.ek-pt img { width: 100%; height: 100%; object-fit: cover; }
.ek-pt button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15, 29, 22, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ek-pt button .ic { width: 16px; height: 16px; stroke: #fff; }
.ek-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed #c9d3cc; cursor: pointer; color: var(--text-3, #6b7a71); font: 600 12.5px inherit; }
.ek-add .ic { width: 24px; height: 24px; }
.ek-save { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); padding: 10px 0; }
.ek-rvi { border-top: 1px solid var(--border, #e3e8e4); padding: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.ek-rvi:first-of-type { border-top: 0; }
.ek-rvi p { margin: 0; font-size: 14px; }
.ek-reply { font-size: 13px; background: #f6faf7; border-radius: 8px; padding: 6px 8px; }
.ek-q { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #d6ddd7; color: var(--text-2, #44544b); }
.ek-how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ek-pin { background: none; border: 0; }
.ek-pin svg { width: 28px; height: 36px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
@media (max-width: 640px) {
  .ek-hr { grid-template-columns: 30px 1fr 1fr 10px 1fr; }
  .ek-hr .check { font-size: 0; }
  .ek-pr { grid-template-columns: 1fr 80px 90px; }
  .ek-icons { grid-template-columns: repeat(4, 1fr); }
}
/* EET 2.0 – Pokladna a Nastavení (jen SaaS) */
.banner.b-grey { background: var(--surface-2, #f3f5f4); color: var(--text-2, #3f4b45); border: 1px solid var(--border-2, #dde3df); }
.banner + .banner { margin-top: 8px; }
.eet-tbl td:last-child { min-width: 170px; }
.eet-pok { max-width: 260px; overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; margin-top: 3px; }
.eet-err { color: var(--red); }
.pay-opts:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .pay-opts:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
.eet-unit { margin-top: 8px; }
.eet-dl { grid-template-columns: 150px 1fr; margin-bottom: 14px; }
.eet-steps { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); font-size: 13.5px; }
.eet-steps li { margin: 3px 0; }
.eet-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.eet-mode { position: relative; }
.eet-mode input { position: absolute; opacity: 0; }
.eet-mode span { display: flex; flex-direction: column; gap: 3px; height: 100%; border: 1.5px solid var(--border-2); border-radius: 10px; padding: 10px; cursor: pointer; }
.eet-mode em { font-style: normal; font-size: 11.5px; color: var(--text-2); line-height: 1.35; }
.eet-mode input:checked + span { border-color: var(--mp-green); background: var(--mp-green-50); }
.eet-mode input:focus-visible + span { outline: 2px solid var(--mp-green); }
@media (max-width: 900px) { .eet-modes { grid-template-columns: repeat(2, 1fr); } }
#eet-units .cell-in.sm { width: 110px; }
#eet-f > .btn-primary { margin-top: 6px; }
.eet-cert { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border, #e6ebe8); }
.eet-cert h3 { margin: 0 0 8px; font-size: 15px; }
.eet-cert .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
#eet-units select.cell-in, #eet-units input.cell-in { height: 32px; padding-top: 0; padding-bottom: 0; text-align: left; }
/* wersja dla rynku polskiego: faktura PL, KSeF */
.pf-pl .pf-ksef { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; }
.pf-pl .pf-ksef-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pf-pl .pf-ksef-no { font: 600 8.5px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; max-width: 120px; text-align: center; word-break: break-all; }
.pf-pl .pf-words { margin-top: 6px; text-align: right; }
.pf-pl .pf-notes { margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid #0f766e; background: #f0fdfa; font-size: 12px; display: grid; gap: 3px; }
.pf-pl .pf-tbl td:first-child, .pf-pl .pf-tbl th:first-child { width: 28px; }
.ks-mode { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 8px 0 12px; }
.ks-mode label { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; cursor: pointer; }
.ks-mode label:has(input:checked) { border-color: var(--green, #16a34a); background: #f0fdf4; }
.ks-mode b { display: block; }
.ks-mode em { font-style: normal; font-size: 12px; color: var(--muted, #64748b); }
.ks-cell { white-space: nowrap; }
.ks-no { font: 12px ui-monospace, Menlo, Consolas, monospace; }
#ksef-set .ks-try { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line, #e2e8f0); border-radius: 10px; }
#ksef-set .ks-try p { margin: 0 0 10px; font-size: .92em; }
/* skaner dowodu rejestracyjnego (kod Aztec) */
.dr-btn { margin: 0 0 10px; }
.dr-scan { margin: 0 0 12px; padding: 12px 14px; border: 1px dashed var(--line, #e2e8f0); border-radius: 10px; background: var(--bg2, #f8fafc); }
.dr-scan video { display: block; width: 100%; max-height: 46vh; object-fit: cover; border-radius: 8px; background: #0f172a; margin-bottom: 8px; }
.dr-scan textarea { width: 100%; font-size: 12px; }
.dr-scan .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
/* faktury cykliczne, umowa */
#rcf .rc-l .rc-q, #rcf .rc-l .rc-v { max-width: 110px; }
#rcf .rc-l .rc-p { max-width: 150px; }
#umf h3 { margin: 14px 0 6px; font-size: 1rem; }
#cmf select { width: 100%; }

/* wersja polska: bez przełącznika języka */
.pl-only .lang-sw, .pl-only .lang-pick { display: none !important; }
.pl-only .sp-btn, .pl-only a[href="#sparts"] { display: none !important; }
/* SK trh – styly (agent A1) */

