:root {
  --ink: #1B1E21;
  --muted: #5B6168;
  --ground: #F4F3EF;
  --card: #FFFFFF;
  --line: #E4E2DD;
  --accent: #C2410C;
  --accent-soft: #FDEBDD;
  --ok: #166534;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); min-height: 100dvh; padding-bottom: 96px; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 15px; margin: 20px 0 8px; }
a { color: var(--accent); }

.screen { max-width: 560px; margin: 0 auto; padding: 20px 16px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #D4D1CA; min-height: 44px; }

.login { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 18vh; }

.card { background: var(--card); border-radius: 18px; padding: 16px; }
.card-dark { background: var(--ink); color: #FFFFFF; }
.card-dark p { margin: 8px 0 0; line-height: 1.45; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tile { background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tile span { font-size: 12px; color: var(--muted); }
.tile strong { font-size: 20px; }

.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 16px; }
.list li { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end; background: var(--card); border-top: 1px solid var(--line);
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); }
.tabbar a, .tabbar .capture { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; font-size: 12px; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tabbar .capture span { width: 60px; height: 60px; margin-top: -30px; border-radius: 30px; background: var(--accent);
  color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 110px; margin: 0 auto; max-width: 420px;
  background: var(--ink); color: #FFFFFF; padding: 12px 16px; border-radius: 12px; text-align: center; }

.btn-wide { width: 100%; max-width: 360px; }
.error { color: #B91C1C; margin: 0; }
.hint { font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.hint:empty { display: none; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 600; }
.form label .muted { font-weight: 400; }
.form input:not([type="checkbox"]) { font: inherit; font-weight: 400; min-height: 44px; padding: 0 14px; border: 1px solid #D4D1CA;
  border-radius: 12px; background: var(--card); color: var(--ink); }
.form input[aria-invalid="true"] { border-color: #B91C1C; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.4; }
.form .check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--accent-soft);
  color: #7C2D12; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.demo-bar a { font-weight: 600; color: #7C2D12; }
.questions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.question { background: var(--card); border: 2px solid var(--accent); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.question p { margin: 0; line-height: 1.45; }
.question .options { display: flex; flex-wrap: wrap; gap: 8px; }
.question .options button { font: inherit; font-size: 14px; min-height: 44px; padding: 0 14px; border-radius: 22px;
  border: 1px solid #F5C9A8; background: var(--accent-soft); color: #7C2D12; cursor: pointer; }

.notice { background: #DCFCE7; color: var(--ok); border-radius: 12px; padding: 10px 14px; margin: 0; max-width: 360px; }
.steps { text-align: left; margin: 4px 0 8px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.steps li[data-state="done"] { color: var(--ok); }
.steps li[data-state="current"] { color: var(--ink); font-weight: 600; }

.answer { display: flex; gap: 8px; }
.answer input { flex: 1; min-width: 0; font: inherit; min-height: 44px; padding: 0 12px; border: 1px solid #D4D1CA; border-radius: 12px; }
.answer button { font: inherit; font-weight: 600; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--accent); color: #FFFFFF; }
.docs li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.doc-status { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: #EEEDE8; color: var(--muted); white-space: nowrap; }
.doc-needs_answer { background: var(--accent-soft); color: #7C2D12; font-weight: 600; }
.doc-done { background: #DCFCE7; color: var(--ok); }

.input-search { display: flex; align-items: center; min-height: 44px; border: 1px solid #D4D1CA; border-radius: 12px;
  background: var(--card); overflow: hidden; }
.input-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, .15); }
.input-search[data-invalid="true"] { border-color: #B91C1C; }
.form .input-search input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important;
  min-height: 42px; padding: 0 0 0 14px !important; outline: none; box-shadow: none; }
.input-search button { flex: none; width: 44px; height: 42px; border: 0; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.input-search button:hover { color: var(--accent); }
.input-search button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 10px; }
.input-search button[aria-busy="true"] { opacity: .5; cursor: progress; }

.sheet { border: 0; padding: 0; width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 20px 20px 0 0;
  background: var(--card); color: var(--ink); max-height: 92dvh; }
.sheet::backdrop { background: rgba(27, 30, 33, .5); }
.sheet .form { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0 0 4px; font-size: 18px; }
.capture-preview { width: 100%; max-height: 32dvh; object-fit: contain; background: var(--ground); border-radius: 12px; }
.capture-preview:not([src]) { display: none; }
.capture-file { margin: 0; font-size: 13px; }
.form select, .form textarea { font: inherit; font-weight: 400; border: 1px solid #D4D1CA; border-radius: 12px; background: var(--card);
  color: var(--ink); padding: 10px 12px; }
.form select { min-height: 44px; }
.form textarea { resize: vertical; min-height: 72px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 6px; }
.sheet-actions .btn { flex: 1; }

.capture-last { background: var(--accent-soft); color: #7C2D12; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.capture-last p { margin: 0; font-size: 14px; line-height: 1.4; }
.capture-last-actions { display: flex; gap: 8px; }
.capture-last-actions .btn { flex: 1; min-height: 40px; }

.top-actions { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid #D4D1CA; border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { color: var(--accent); border-color: #F5C9A8; }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.retake { gap: 8px; min-height: 40px; align-self: center; }

/* ---- Domů podle návrhu (artboard 1 · Domů) ---- */
body { padding-bottom: 104px; }
[data-screen="home"] { display: flex; flex-direction: column; gap: 16px; }
[data-screen="home"][hidden] { display: none !important; }
.home-head { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.home-greeting { display: flex; flex-direction: column; gap: 2px; }
.home-date { font-size: 13px; color: var(--muted); }
.home-head h1 { font-family: var(--display); font-size: 24px; font-weight: 700; }
.ai-card { background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ai-card-head { display: flex; align-items: center; gap: 10px; }
.ai-card-head > div { display: flex; flex-direction: column; }
.ai-done-badge { margin-left: auto; flex: none; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; background: #16A34A; color: #FFFFFF;
  font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.ai-card-head strong { font-size: 15px; font-weight: 600; }
.ai-card-head span:not(.ai-card-icon):not(.ai-done-badge) { font-size: 12px; color: #C9CDD2; }
.ai-card-icon { width: 36px; height: 36px; border-radius: 18px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.ai-card p { margin: 0; font-size: 16px; line-height: 1.45; }
.ai-card-btn { align-self: flex-start; background: #FFFFFF; color: var(--ink); border: 0; font: inherit; font-weight: 600; font-size: 15px;
  padding: 0 18px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.questions:empty { display: none; }
.questions { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tile { background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tile .tile-label { font-size: 12px; color: var(--muted); }
.tile .tile-value { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.tile .tile-note { font-size: 12px; color: var(--muted); }
.tile .tile-note.ok { color: var(--ok); }
.tile .tile-note.warn { color: #9A3412; }
.home-section { display: flex; flex-direction: column; gap: 8px; }
.home-section h2 { margin: 0; font-size: 15px; font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 16px; }
.feed li { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; font-size: 14px; line-height: 1.35; }
.feed li:last-child { border-bottom: 0; }
.feed .feed-icon { width: 28px; height: 28px; flex: none; border-radius: 14px; background: #DCFCE7; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.feed .feed-icon.warn { background: var(--accent-soft); color: #9A3412; }
.feed .feed-icon.busy { background: #E0E7FF; color: #3730A3; }
.feed .feed-icon.danger { background: #FEE2E2; color: #DC2626; }
.feed .feed-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.feed .feed-meta { font-size: 12px; color: var(--muted); }
.feed.docs li { align-items: center; justify-content: space-between; }
.feed .muted { color: var(--muted); }

.tabbar { padding: 8px 6px calc(22px + env(safe-area-inset-bottom)); align-items: end; }
.tabbar a, .tabbar .capture { gap: 3px; font-size: 11px; position: relative; }
.tabbar .capture { color: var(--ink); font-weight: 600; cursor: pointer; }
.tabbar .capture span { display: none; }
.tabbar .capture .capture-btn { display: flex; width: 60px; height: 60px; margin-top: -30px; border-radius: 30px; background: var(--accent);
  align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(194, 65, 12, .35); }
.tab-badge { position: absolute; top: 0; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #FFFFFF; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- avatar a nabidka uctu ---- */
.account { position: relative; }
.avatar { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--ink); color: #FFFFFF; font: inherit;
  font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.avatar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-menu { position: absolute; right: 0; top: 52px; z-index: 20; min-width: 200px; background: var(--card); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(27, 30, 33, .18); padding: 6px; display: flex; flex-direction: column; }
.account-menu[hidden] { display: none !important; }
.account-name { margin: 6px 10px 6px; font-size: 13px; color: var(--muted); }
.account-menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.account-menu button:hover { background: var(--ground); }
.ai-pill { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.16);
  color: #FFFFFF; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.ai-card p strong, .feed strong { font-weight: 700; }
.feed-action { align-self: flex-start; margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.feed-action button { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px; border-radius: 10px; cursor: pointer; }
.feed-action .primary { background: var(--accent); color: #FFFFFF; border: 0; }
.feed-action .ghost { background: transparent; color: var(--ink); border: 1px solid #D4D1CA; }
.feed.docs li { cursor: pointer; }
.feed.docs li:hover { background: #FAFAF7; }
.feed.docs .doc-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed.docs .doc-name small { font-size: 12px; color: var(--muted); }

/* ---- nahled dokladu ---- */
.doc-sheet .doc-detail { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.doc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.doc-head h2 { margin: 0; font-family: var(--display); font-size: 20px; }
.doc-head p { margin: 2px 0 0; font-size: 14px; }
.doc-image { width: 100%; max-height: 40dvh; object-fit: contain; background: var(--ground); border-radius: 12px; }
.doc-booked { border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.doc-booked.accounted { background: #DCFCE7; color: var(--ok); }
.doc-booked.proposed { background: var(--accent-soft); color: #7C2D12; }
.doc-booked.pending { background: var(--ground); color: var(--muted); }
.doc-booked.problem { background: #FEE2E2; color: #991B1B; display: block; }
.doc-booked-icon { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: #DC2626; }
.doc-rows { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.doc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.doc-rows div:last-child { border-bottom: 0; }
.doc-rows dt { font-size: 14px; color: var(--muted); }
.doc-rows dd { margin: 0; font-size: 14px; text-align: right; }
.doc-chat h3 { margin: 0 0 8px; font-size: 15px; }
.doc-chat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-chat li { max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-line; }
.doc-chat li.accountant { align-self: flex-start; background: var(--ground); border-bottom-left-radius: 4px; }
.doc-chat li.user { align-self: flex-end; background: var(--ink); color: #FFFFFF; border-bottom-right-radius: 4px; }
.doc-chat li small { display: block; margin-top: 4px; font-size: 11px; opacity: .7; }

/* ---- chat s ucetni (posledni zalozka) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-screen { padding-bottom: 170px; }
.chat-screen[hidden] { display: none !important; }
.chat-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; background: var(--ground);
  padding: 12px 0; margin: -20px 0 8px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; flex-direction: column; min-width: 0; }
.chat-who strong { font-size: 16px; }
.chat-who span { font-size: 12px; color: var(--muted); }
.ai-pill.dark { background: var(--ink); color: #FFFFFF; }
.chat-feed { display: flex; flex-direction: column; gap: 18px; }
.chat-thread { display: flex; flex-direction: column; gap: 8px; border-radius: 16px; padding: 4px; }
.chat-thread.active { background: rgba(194, 65, 12, .06); }
.chat-doc { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.chat-bubble { max-width: 85%; padding: 10px 13px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.chat-bubble.accountant { align-self: flex-start; background: var(--card); border-bottom-left-radius: 6px; }
.chat-bubble.user { align-self: flex-end; background: var(--ink); color: #FFFFFF; border-bottom-right-radius: 6px; }
.chat-bubble.question { border: 2px solid var(--accent); }
.chat-bubble, .chat-chips { scroll-margin-bottom: calc(200px + env(safe-area-inset-bottom)); } /* nad polem pro psani a listou */
.chat-bubble:focus { outline: none; }
.chat-bubble small { display: block; margin-top: 4px; font-size: 11px; opacity: .65; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chips button { font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #F5C9A8;
  background: var(--accent-soft); color: #7C2D12; cursor: pointer; }
.chat-empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.chat-composer { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 6; background: var(--card);
  border-top: 1px solid var(--line); padding: 8px 12px; margin: 0; }
.chat-composer .chat-target { margin: 0 4px 6px; font-size: 12px; color: var(--muted); }
.chat-input { display: flex; gap: 8px; align-items: center; max-width: 560px; margin: 0 auto; }
.chat-input input { flex: 1; min-width: 0; font: inherit; font-size: 15px; height: 44px; padding: 0 14px; border-radius: 22px;
  border: 1px solid #D4D1CA; background: var(--ground); color: var(--ink); }
.chat-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 23px; background: var(--accent); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-send:disabled { opacity: .5; }

.feed li.clickable { cursor: pointer; }
.feed li.clickable:hover { background: #FAFAF7; }

/* karta ucetni: bez dotazu kompaktni, s dotazem se zvetsi */
.ai-card { transition: padding .2s ease, gap .2s ease; }
.ai-card p { transition: font-size .2s ease; }
.ai-card.compact { padding: 12px 14px; gap: 6px; border-radius: 16px; }
.ai-card.compact .ai-card-icon { width: 30px; height: 30px; }
.ai-card.compact .ai-card-icon svg { width: 16px; height: 16px; }
.ai-card.compact .ai-card-head > div > span { display: none; } /* jen podtitul, jmeno zustava */
.ai-card.compact p { font-size: 14px; line-height: 1.4; color: #E6E8EA; }
.feed-link { align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px;
  font-weight: 600; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; }
.feed-link::after { content: '›'; font-size: 16px; line-height: 1; }
.feed-link:hover { text-decoration: underline; }

.chat-thread.general { background: transparent; }
.chat-bubble.typing { color: var(--muted); font-style: italic; animation: chatPulse 1.2s ease-in-out infinite; }
@keyframes chatPulse { 50% { opacity: .55; } }
.chat-target-reset { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; }

/* --- Zakazky (navrh: Zakazka) --- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; margin-bottom: 14px; }
.page-head h1 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; }
.btn-small { min-height: 44px; padding: 0 12px; gap: 6px; font-size: 14px; }
.btn-block { width: 100%; gap: 8px; min-height: 52px; border-radius: 14px; font-size: 16px; }
.empty-note { color: var(--muted); text-align: center; padding: 28px 12px; margin: 0; line-height: 1.45; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-row > label { min-width: 0; }
.input-unit input { width: 100%; box-sizing: border-box; }
.form-error { color: #B91C1C; margin: 0; font-size: 14px; }

.job-list { list-style: none; margin: 0; padding: 0 0 120px; display: flex; flex-direction: column; gap: 10px; }
.job-item { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 0; border-radius: 18px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.job-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-item-name { font-family: var(--display); font-size: 17px; font-weight: 700; }
.job-item-sub, .job-item-meta { font-size: 13px; color: var(--muted); }
.job-item-meta strong { color: var(--ink); font-weight: 600; }

.job-status { flex: none; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 4px 8px; color: #1E3A8A; background: #DBEAFE; }
.job-status.done { color: #14532D; background: #DCFCE7; }

.job-screen { padding-bottom: 190px; display: flex; flex-direction: column; gap: 14px; }
.job-head { display: flex; align-items: center; gap: 6px; padding-top: 10px; }
.job-head > .icon-btn:first-child { border: 0; background: transparent; margin-left: -10px; }
.job-head > .icon-btn:last-child { border: 0; background: transparent; margin-right: -10px; }
.job-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.job-title h1 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.job-title span { font-size: 13px; color: var(--muted); }

.job-card { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.job-budget { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.job-budget span { font-size: 14px; color: var(--muted); }
.job-budget strong { font-family: var(--display); font-size: 22px; font-weight: 700; }
.job-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--card); }
.job-bar span { min-width: 3px; }
.job-bar .material { background: #9A3412; }
.job-bar .labour { background: var(--ink); }
.job-bar .rest { background: #E4E2DD; }
.job-bar .over { background: #B91C1C; }
.job-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.job-legend div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-legend .lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.job-legend .lbl i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.job-legend .val { font-weight: 600; font-size: 15px; }
.job-legend .val.missing { font-weight: 400; color: var(--muted); font-size: 13px; }
.job-note { font-size: 13px; color: var(--muted); }
.job-note.warn { color: #B91C1C; }
.job-fill { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; background: var(--accent-soft); color: #7C2D12;
  border: 1px solid #F5C9A8; border-radius: 10px; padding: 0 14px; min-height: 44px; cursor: pointer; }

.job-docs { display: flex; flex-direction: column; gap: 8px; }
.job-docs-head { display: flex; justify-content: space-between; align-items: baseline; }
.job-docs-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.job-doc-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 16px; overflow: hidden; }
.job-doc-list:empty { display: none; }
.job-doc-list li + li { border-top: 1px solid var(--line); }
.job-doc-list button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font: inherit; font-size: 14px;
  text-align: left; color: var(--ink); background: transparent; border: 0; cursor: pointer; min-height: 56px; }
.job-doc-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.job-doc-list small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.job-doc-list .amt { font-weight: 600; white-space: nowrap; }

.job-cta { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 6; padding: 10px 16px 6px;
  background: var(--ground); }
.job-cta .btn { max-width: 528px; margin: 0 auto; display: flex; }

/* --- Nastaveni a fakturace zakazky --- */
.sheet-lead { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
.input-unit { position: relative; display: flex; }
.input-unit input { flex: 1; min-width: 0; padding-right: 52px !important; }
.input-unit i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); pointer-events: none; }
.invoice-calc { margin: 4px 0 0; background: var(--ground); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.invoice-calc:empty { display: none; }
.invoice-calc dt { color: var(--muted); }
.invoice-calc dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.invoice-calc .total { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.invoice-warn { margin: 0; background: var(--accent-soft); color: #7C2D12; border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.link-btn { font: inherit; font-weight: 600; color: #7C2D12; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 32px; }

/* --- Registrace ve třech krocích (návrh 6 · Řemeslo, 11 · Sazby a DPH) --- */
.reg-head { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.reg-head .icon-btn { border: 0; background: transparent; margin-left: -10px; }
.reg-progress-text { flex: 1; font-size: 13px; color: var(--muted); }
.reg-progress { display: flex; gap: 4px; }
.reg-progress i { width: 22px; height: 4px; border-radius: 2px; background: #D4D1CA; }
.reg-progress i.on { background: var(--accent); }
.reg-step { display: flex; flex-direction: column; gap: 10px; }
.reg-step[hidden] { display: none !important; }
.reg-title { font-family: var(--display); font-size: 26px; margin: 0 0 4px; }
.reg-lead { margin: -6px 0 2px; font-size: 13px; line-height: 1.4; }
.reg-ares { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px 12px; margin: 0; font-size: 13px; line-height: 1.4; }
.reg-ares-ok { width: 28px; height: 28px; flex: none; border-radius: 14px; background: #DCFCE7; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.trade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.trade-btn { font: inherit; font-size: 13px; font-weight: 600; min-height: 44px; border-radius: 12px; padding: 0 8px; display: flex; align-items: center; gap: 6px;
  text-align: left; cursor: pointer; background: var(--card); color: var(--ink); border: 2px solid var(--card); min-width: 0; }
.trade-btn span { overflow: hidden; text-overflow: ellipsis; }
.trade-btn svg { flex: none; }
.trade-btn[aria-pressed="true"] { background: var(--accent-soft); color: #7C2D12; border-color: var(--accent); }
.trade-btn:focus-visible, .segmented button:focus-visible, .pills button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reg-card { background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.reg-card-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.reg-card-head #reg-cards-title { flex: 1; }
.reg-card-head .muted { font-size: 12px; font-weight: 400; }
.reg-card-text { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.card-list li { display: flex; align-items: center; gap: 8px; background: var(--ground); border-radius: 10px; padding-left: 12px; min-height: 44px;
  font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.card-list li span { flex: 1; }
.card-list .icon-btn { border: 0; background: transparent; color: var(--muted); }
.card-add { display: flex; align-items: center; gap: 8px; }
.card-mask { font-size: 15px; color: var(--muted); letter-spacing: .06em; }
.form .card-add input { width: 76px; text-align: center; font-weight: 600; letter-spacing: .06em; padding: 0 8px; }
.btn-outline { margin-left: auto; min-height: 44px; padding: 0 14px; background: var(--card); color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:disabled { opacity: .5; cursor: default; }
.trade-summary { background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.trade-summary-title { font-size: 13px; color: #C9CDD2; }
.trade-summary-title strong { color: #FFFFFF; }
.trade-summary ol { margin: 0; padding: 0; list-style: none; counter-reset: helper; display: flex; flex-direction: column; gap: 6px; }
.trade-summary li { counter-increment: helper; display: flex; gap: 10px; font-size: 13px; line-height: 1.35; }
.trade-summary li::before { content: counter(helper); width: 20px; height: 20px; flex: none; border-radius: 10px; background: var(--accent);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.reg-demo { align-self: center; color: var(--accent); min-height: 44px; }

/* Editor cen: registrace krok 3 i Nastavení */
.rate-list { background: var(--card); border-radius: 16px; padding: 4px 14px; display: flex; flex-direction: column; }
.form .rate-row { flex-direction: row; align-items: center; gap: 10px; min-height: 52px; font-weight: 400; }
.rate-row + .rate-row { border-top: 1px solid var(--line); }
.rate-row > span { flex: 1; font-size: 14px; display: flex; flex-direction: column; }
.rate-row small { font-size: 12px; color: var(--muted); }
.form .rate-row input { width: 84px; min-height: 40px; padding: 0 8px; text-align: right; font-weight: 600; flex: none; }
.rate-row i { font-style: normal; font-size: 13px; color: var(--muted); width: 46px; flex: none; }
.rate-block { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rate-block legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.segmented button { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(27, 30, 33, .12); }
.rate-vat { background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rate-vat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.rate-vat .badge { font-size: 12px; font-weight: 600; color: var(--ok); background: #DCFCE7; border-radius: 8px; padding: 3px 8px; }
.rate-vat-q { margin: 0 0 6px; font-size: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { font: inherit; font-size: 13px; font-weight: 600; min-height: 40px; padding: 0 12px; border-radius: 20px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid #D4D1CA; }
.pills button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.rate-vat-hint { margin: 6px 0 0; font-size: 12px; color: #7C2D12; line-height: 1.4; }
.rate-vat-hint:empty { display: none; }
.sheet .rate-list, .sheet .rate-vat { background: var(--ground); }
.sheet .segmented button[aria-pressed="true"] { background: var(--card); }
.rate-block { margin-top: 4px; }

/* --- Demo podle řemesla (návrh 7) --- */
.screen-demo { padding: 0; }
.demo-head { background: #1E3A8A; color: #FFFFFF; padding: 20px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.demo-head-row { display: flex; align-items: center; gap: 10px; }
.demo-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; background: #FFFFFF; color: #1E3A8A; border-radius: 6px; padding: 3px 7px; }
.demo-head-text { flex: 1; font-size: 13px; color: #DBEAFE; }
.demo-head .icon-btn { border: 0; background: transparent; color: #FFFFFF; margin-right: -10px; }
.demo-head .icon-btn:hover { color: #DBEAFE; }
.demo-trades { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.demo-trades button { font: inherit; font-size: 13px; font-weight: 600; flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; cursor: pointer;
  background: transparent; color: #FFFFFF; border: 1px solid #93C5FD; }
.demo-trades button[aria-pressed="true"] { background: #FFFFFF; color: #1E3A8A; }
.demo-trades button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.demo-body { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.demo-body h2 { margin: 0 0 8px; }
.demo-job { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.demo-job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.demo-job-top > div { display: flex; flex-direction: column; gap: 2px; }
.demo-job-top h1 { font-family: var(--display); font-size: 20px; }
.demo-job-top .muted { font-size: 13px; }
.demo-job-label { font-size: 12px; color: var(--muted); }
.demo-job-state { font-size: 12px; font-weight: 600; color: #1E3A8A; background: #DBEAFE; border-radius: 8px; padding: 4px 8px; flex: none; }
.demo-job-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.demo-job-stats div { display: flex; flex-direction: column; gap: 2px; }
.demo-job-stats dt { font-size: 12px; color: var(--muted); }
.demo-job-stats dd { margin: 0; font-weight: 600; font-size: 15px; }
.demo-job-tools-label { margin: 0; font-size: 13px; color: var(--muted); }
.demo-job-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.demo-job-tools li { font-size: 13px; font-weight: 600; color: #7C2D12; background: var(--accent-soft); border-radius: 8px; padding: 6px 10px; }
.demo-tasks { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 16px; counter-reset: task; }
.demo-tasks li { counter-increment: task; display: flex; gap: 12px; padding: 12px 14px; align-items: center; font-size: 14px; line-height: 1.35; }
.demo-tasks li + li { border-top: 1px solid var(--line); }
.demo-tasks li::before { content: counter(task); width: 26px; height: 26px; flex: none; border-radius: 13px; border: 2px solid var(--accent); color: var(--accent);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.demo-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; }
.demo-register { align-self: center; color: var(--accent); min-height: 44px; text-align: center; }
.demo-bar a { flex: none; }

/* --- Pomocník malíře: výměra v zakázce, zaměření (návrh 8), nabídka (návrh 9) --- */
.job-measure { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.job-measure .job-docs-head h2 { margin: 0; }
.job-measure-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.job-measure-actions .btn { gap: 6px; background: var(--card); }
.job-measure-actions .btn:disabled { opacity: .5; cursor: default; }
.job-offer-saved { margin: 0; font-size: 13px; color: var(--ok); }
.room-form { gap: 10px; }
.room-capture { display: flex; flex-direction: column; gap: 10px; }
.room-manual { align-self: center; color: var(--accent); min-height: 44px; }
.room-photo { position: relative; border-radius: 16px; overflow: hidden; background: #2A2D31; }
.room-photo img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.room-photo-busy { position: absolute; inset: auto 10px 10px 10px; background: rgba(27, 30, 33, .85); color: #FFFFFF; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.room-result { display: flex; flex-direction: column; gap: 10px; }
.room-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ok); }
.room-status span { flex: 1; }
.room-status.low { color: #9A3412; }
.room-status .link-btn { color: var(--accent); min-height: 44px; }
.room-dims { border: 0; margin: 0; padding: 12px; background: var(--card); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.room-dims-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.room-dims .input-unit input { padding-right: 30px !important; }
.room-dims .input-unit i { right: 10px; }
.room-openings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.room-openings li { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.room-opening-type { width: 52px; font-weight: 600; }
.form .room-openings input { width: 64px; min-height: 40px; padding: 0 8px; text-align: right; }
.room-openings .icon-btn { border: 0; background: transparent; margin-left: auto; color: var(--muted); }
.room-openings-add { display: flex; gap: 8px; }
.room-options { display: flex; gap: 8px; align-items: center; }
.room-options .segmented { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.room-options .segmented button { font-size: 13px; }
.room-ceiling { font: inherit; font-size: 13px; font-weight: 600; min-height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--accent); border: 1px solid var(--accent); flex: none; }
.room-ceiling[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }
.room-ceiling:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.room-calc { background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.room-calc-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.room-calc-head strong { font-family: var(--display); font-size: 24px; }
.room-calc-sub { font-size: 12px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.room-material { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.room-material li, .room-calc-hours { display: flex; justify-content: space-between; gap: 10px; }
.room-material span, .offer-items span { display: flex; flex-direction: column; }
.room-material small, .offer-items small { font-size: 12px; color: var(--muted); }
.room-material strong, .room-calc-hours strong, .offer-items strong { white-space: nowrap; }
.room-calc-hours { color: var(--muted); }
.room-calc-hours strong { color: var(--ink); }
.room-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.room-actions .btn { min-height: 52px; border-radius: 14px; gap: 6px; }
.room-actions .btn-ghost { background: var(--card); }
.offer-badge { font-size: 12px; font-weight: 600; color: #7C2D12; background: var(--accent-soft); border-radius: 8px; padding: 4px 8px; }
.offer-rooms { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.offer-rooms li { flex: 1 0 auto; min-width: 96px; background: var(--card); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.offer-rooms span { font-size: 12px; color: var(--muted); }
.offer-rooms strong { font-size: 14px; }
.offer-card { background: var(--card); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.offer-items { list-style: none; margin: 0; padding: 0 0 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.offer-items li { display: flex; justify-content: space-between; gap: 12px; }
.offer-totals { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.offer-totals div { display: flex; justify-content: space-between; color: var(--muted); }
.offer-totals dd { margin: 0; }
.offer-totals .offer-total { color: var(--ink); align-items: baseline; font-weight: 600; }
.offer-totals .offer-total dd { font-family: var(--display); font-size: 24px; font-weight: 700; }
.offer-hours { margin: 0; font-size: 12px; }
.offer-vat { margin-top: 10px; background: var(--accent-soft); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; color: #7C2D12; }
.offer-vat-q { font-size: 14px; font-weight: 600; }
.offer-vat-opts { display: flex; flex-direction: column; gap: 6px; }
.offer-vat-opts button { font: inherit; font-size: 13px; text-align: left; min-height: 44px; padding: 6px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: transparent; color: var(--ink); border: 2px solid #F5C9A8; }
.offer-vat-opts button[aria-pressed="true"] { background: var(--card); border-color: var(--accent); }
.offer-vat-hint { font-size: 12px; line-height: 1.4; }
.offer-foot { text-align: center; margin: 6px 0 0; font-size: 12px; }
.room-screen { display: flex; flex-direction: column; gap: 10px; }
[data-screen="offer"] { padding-bottom: 230px; }
[data-screen="offer"] .job-cta .offer-foot { max-width: 528px; margin: 6px auto 0; }
.job-screen .job-measure { margin-top: 0; }

/* --- Objednávka materiálu (modul Objednávky v D+) --- */
.job-order-btn { background: var(--card); gap: 6px; }
.job-order-btn:disabled { opacity: .5; cursor: default; }
.material-order-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.material-order-row > span:first-child { display: flex; flex-direction: column; }
.material-order-row small { font-size: 12px; color: var(--muted); }
.material-order-row[data-state="sent"] small, .material-order-row[data-state="confirmed"] small, .material-order-row[data-state="invoiced"] small { color: var(--ok); }
.offer-order { align-self: center; display: block; margin: 8px auto 0; color: var(--accent); min-height: 44px; }
.material-items { border: 0; margin: 0; padding: 0; }
.material-items legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.material-items legend .muted { font-weight: 400; font-size: 12px; }
.material-items ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.material-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: var(--ground); border-radius: 12px; padding: 8px 4px 8px 12px; font-size: 14px; }
.material-name { flex: 1 1 100%; font-weight: 600; }
.material-nums { display: flex; align-items: center; gap: 6px; flex: 1; }
.form .material-nums input { width: 64px; min-height: 40px; padding: 0 8px; text-align: right; }
.material-items li .icon-btn { border: 0; background: transparent; color: var(--muted); }
.material-total { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: 14px; }
.sheet .form { max-height: 88dvh; overflow-y: auto; }

/* --- Faktura k zakázce (návrh 4) a seznam faktur --- */
.inv-form { gap: 10px; }
.inv-card { background: var(--card); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.inv-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.inv-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.inv-ico input { min-width: 0; }
.inv-items-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.inv-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inv-items li { background: var(--ground); border-radius: 12px; padding: 8px 4px 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.inv-items li > small { font-size: 12px; padding-right: 8px; }
.inv-item-top { display: flex; align-items: center; gap: 4px; }
.form .inv-item-top input { flex: 1; min-width: 0; font-weight: 600; background: var(--card); }
.inv-item-top .icon-btn { border: 0; background: transparent; color: var(--muted); flex: none; }
.inv-item-nums { display: flex; align-items: center; gap: 6px; font-size: 14px; padding-right: 8px; }
.form .inv-item-nums input { width: 62px; min-height: 40px; padding: 0 8px; text-align: right; background: var(--card); }
.form .inv-item-nums input.inv-unit { width: 52px; text-align: left; }
.inv-item-amount { margin-left: auto; white-space: nowrap; }
.inv-add { align-self: flex-start; color: var(--accent); min-height: 44px; }
.inv-card .offer-totals { padding-top: 8px; border-top: 1px solid var(--line); }
.inv-due { flex-direction: row !important; align-items: center; justify-content: space-between; }
.inv-due .input-unit { width: 110px; }
.inv-qr { margin: -4px 0 0; font-size: 12px; }
.inv-tips { list-style: none; margin: 0; padding: 12px 14px; background: var(--accent-soft); color: #7C2D12; border-radius: 14px; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.inv-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.inv-actions .btn-ghost { background: var(--card); }
.inv-list button[data-status="overdue"] small { color: #B91C1C; }
.inv-list button[data-status="paid"] small { color: var(--ok); }
.inv-list button[data-status="draft"] small { color: #9A3412; }
.inv-row > label { min-width: 0; }
.form .inv-row input { width: 100%; min-width: 0; box-sizing: border-box; }
.inv-row .input-search { min-width: 0; }

/* Vstup do pomocníka pro nabídku v Zakázkách */
.helper-card { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #FFFFFF; border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.helper-icon { width: 40px; height: 40px; flex: none; border-radius: 20px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.helper-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #C9CDD2; line-height: 1.35; }
.helper-text strong { color: #FFFFFF; font-size: 15px; }
.helper-card .btn { flex: none; }

/* Průvodce nabídkou */
.wiz-progress { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -4px 0 4px; }
.wiz-progress span:first-child { flex: 1; }
.wiz-next-info { background: var(--card); border-radius: 16px; padding: 12px 14px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.wiz-next-info strong { color: var(--ink); font-size: 14px; }
.wiz-next-info ol { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.wiz-rooms li { padding: 0; }
.wiz-rooms button { font: inherit; border: 2px solid transparent; background: transparent; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; color: var(--ink); }
.wiz-rooms li.current button { border-color: var(--accent); }
.wiz-rooms button span { font-size: 12px; color: var(--muted); }

/* Ceny materiálu z dokladů / doplnění */
.mat-source { color: var(--ok) !important; }
.mat-missing-li { display: block !important; }
.mat-missing, .mat-missing-box { display: flex; flex-direction: column; gap: 6px; background: var(--accent-soft); color: #7C2D12; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.mat-missing-box { background: transparent; padding: 0; margin-top: 10px; }
.mat-missing label { font-weight: 600; font-size: 13px; }
.mat-missing-input { display: flex; gap: 8px; }
.form .mat-missing-input input, .mat-missing-input input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #D4D1CA; border-radius: 10px; font: inherit; background: var(--card); }
.mat-missing-input .btn { background: var(--card); }
.mat-sum { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; }
.material-items li.price-missing input[placeholder="cena?"] { border-color: #C2410C; }
[data-action="offer-send"]:disabled { opacity: .5; cursor: default; }
