/* Bločky: len to, čo v Kcal style.css chýba; hodnoty a tokeny podľa docs/design/handoff (Vydavky.dc.html). */

/* 1 · Doklady */
.box.doc { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; width: 100%; text-align: left; }
.box.doc.has-q { padding: 0 14.5px; }
.box.doc .store { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.box.doc .date { flex: 1; font-size: 14px; white-space: nowrap; }
.box.doc .st.q { width: 24px; height: 24px; }
.money { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money small { font-size: 14px; font-weight: 400; color: var(--muted); }
.box.doc.pending { background: none; border: 1.5px dashed var(--muted-2); color: var(--muted); }
.box.doc.pending .muted { font-size: 14px; }
.box.doc.failed > button.grow { min-height: 56px; text-align: left; }
.box.doc .ib { margin-right: -12px; }

/* 2 · Detail */
.doc-title { display: flex; align-items: flex-start; gap: 12px; }
.doc-title > button { text-align: left; min-width: 0; }
.doc-title .food-sup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.thumb64 img { width: 64px; height: 64px; }
.doc-head .box.has-q { margin-top: 4px; }
.doc-head .box.has-q > .item:first-child { border-top: 0; }
.q-head .money { margin-left: auto; }
.items { padding: 0 0 12px; }
.items > .item:last-child { border-bottom: 1px solid var(--line); }
.item.dep .item-row, .item-row.dep { color: var(--muted); }
.item-row.dep .money, .item-row.dep .money small { color: var(--muted); font-weight: 400; }
.item-row .right { text-align: right; }
.item-row > .ico { flex: none; }
.items .item-row { user-select: none; -webkit-touch-callout: none; }

/* 7 · Hromadný výber */
.bulk-head h1 { font-size: 17px; font-weight: 700; }
.bulk-sum { padding: 0 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 3 · Návrh udalostí, výber položiek */
.prop-ev + .prop-ev { margin-top: 12px; }
.prop-head { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.prop-head b { font-size: 17px; font-weight: 700; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 48px; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.check-row.muted { color: var(--muted); }
.check-row span:last-child { font-variant-numeric: tabular-nums; }

/* pätičky panelov: Zrušiť / Potvrdiť, zmazať (56 × 56) / Uložiť */
.sh-foot.two, .sh-foot.del-foot { display: flex; gap: 8px; }
.sh-foot.two > .outline { flex: 1; }
.sh-foot.two > .primary, .sh-foot.two > .attn, .sh-foot.del-foot > .primary, .sh-foot.del-foot > .attn { flex: 2; }
.btn.sq { width: 56px; padding: 0; flex: none; }
.sh-foot.pick-foot { display: flex; flex-direction: column; gap: 4px; }
.btn.new-btn { justify-content: flex-start; padding: 0 8px; font-weight: 600; }

/* 6 · Filtre */
.filters { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 8px; }
.seg.wide > button { flex: 1; }
.month-pick { display: flex; align-items: center; justify-content: space-between; }
.select { position: relative; display: flex; align-items: center; min-height: 52px; border: 1.5px solid var(--ink); border-radius: var(--r-btn); }
.select select { appearance: none; flex: 1; min-height: 48px; padding: 0 44px 0 14px; border: 0; background: none; outline: none; font-size: 16px; }
.select .ico { position: absolute; right: 12px; pointer-events: none; }
.filters .set-row, .set-row.plain { padding: 0; min-height: 52px; border: 0; }

/* 8 · Úprava položky, 10 · Úprava dokladu */
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pick-rows > * + * { border-top: 1px solid var(--line); }
.pick-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 6px 0; text-align: left; border-top: 1px solid var(--line); }
.pick-row small { font-size: 13px; color: var(--muted); }
.link-row { display: flex; align-items: center; gap: 12px; min-height: 52px; width: 100%; text-align: left; border-top: 1px solid var(--line); }
textarea.f-text { min-height: 96px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--r-btn); background: none;
  resize: vertical; font-size: 16px; }
.f-input.bad + .f-err, .f-err { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.f-err .ico { font-size: 18px; }

/* 9 · Výber kategórie */
.res-row.cat { min-height: 52px; border-top: 1px solid var(--line); }

/* 4 · Prehľady */
.reports { display: flex; flex-direction: column; gap: 12px; padding: 4px 12px 12px; }
.reports > .seg { margin-bottom: 4px; }
.rep-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 60px; padding: 0 4px 0 16px; text-align: left; }
.rep-head b { flex: 1; font-size: 17px; font-weight: 700; }
.rep-head .sum { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rep-head .ico { width: 40px; text-align: center; }
.rep-row { display: block; padding: 12px 16px; border-top: 1px solid var(--line); }
.rep-row div { display: flex; justify-content: space-between; gap: 8px; }
.rep-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rep-row.zero { color: var(--muted); }
.rep-row.zero b { font-weight: 400; }
.rep-bar { height: 4px; margin-top: 8px; background: var(--line); }
.rep-bar span { display: block; height: 100%; background: var(--ink); }
.rep-foot { margin-top: auto; }
.rep-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 0 4px;
  border-top: 1px solid var(--line); width: 100%; text-align: left; }
.rep-line.dim { font-size: 14px; color: var(--muted); }
.empty-line { padding: 16px; color: var(--muted); }

/* 12 / 14 / 17 · zoznamy nastavení */
.list .val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list .lvl1 button { font-weight: 700; min-height: 52px; }
.list .lvl2 button { padding-left: 36px; min-height: 52px; }
.list b { font-weight: 700; }
.cat-actions { display: flex; flex-direction: column; gap: 8px; padding: 16px; margin-top: auto; }
.cat-actions small { text-align: center; font-size: 13px; color: var(--muted); }
.type-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.type-btns .btn { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); font-weight: 400; }
.type-btns .btn.primary { border-color: var(--primary-bg); font-weight: 600; }
.ico-list { display: flex; flex-direction: column; }
.ico-list > div { display: flex; align-items: center; gap: 8px; min-height: 52px; border-top: 1px solid var(--line); }
.desc { color: var(--muted); font-size: 15px; white-space: pre-wrap; }

/* 5 · Kamera: Bloček | Faktúra, vodítko pre QR */
.cam-seg { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #fff; color: #000; border-color: #fff; }
.cam-seg button.on { background: #000; color: #fff; }
.qr-guide { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none; }
.qr-guide span { width: 200px; height: 200px; border: 2px dashed #fff; border-radius: 4px; }
.qr-guide small { color: #fff; opacity: .8; font-size: 13px; letter-spacing: .08em; }

#list-bar { flex: none; display: flex; flex-direction: column; gap: 8px; background: var(--page);
  padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); }
.day-label { display: inline-flex; align-items: center; }
body.cam #dock { background: #000; color: #fff; }
body.cam #dock .round { border-color: #fff; color: #fff; }
body.cam #dock .shutter { border-color: #fff !important; }
body.cam #dock .shutter span { background: #fff; }
body.cam #cam-send:disabled { border-style: dashed; opacity: .6; }

/* viac bločkov naraz: ťuk na predel = spojenie (zásah 48 px cez medzeru pásu), tmavý dock kamery */
#tray .merge { flex: none; align-self: stretch; display: flex; justify-content: center; width: 48px; margin: 0 -12px;
  padding: 0; background: none; border: 0; cursor: pointer; }
#tray .merge .divider { margin: 20px 0 24px; }
.grp .thumb button { z-index: 1; }
body.cam #dock { --ink: #fff; --card: #000; --muted: rgba(255, 255, 255, .75); --muted-2: rgba(255, 255, 255, .5); --line: #444; }
#cam-split { width: fit-content; padding: 0 14px; }
