/* Správa Zajeco (app.zajeco.cz) — the same white style as the client screen (varianta C, portal.css tokens).
   Only what the administration adds: header label + nav, company cards with project rows, the "Správa" strip,
   account boxes. No inline styles (CSP). */

/* ---------- sign-in, invitation ---------- */
.zs-mezi { text-align: center; margin: 4px 0; font-size: 14px; }
.zs-druhe { background: var(--ink); box-shadow: none; }
.zs-druhe:hover { background: var(--ink-2); }
.zs-h2 { font-size: 18px; margin-top: 10px; }
.zs-tajemstvi { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; letter-spacing: .06em; background: var(--g-bg); border-radius: var(--r-in); padding: 12px 14px; margin: 0; overflow-wrap: anywhere; }
.zs-kody { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; }
.zs-kody li { background: var(--g-bg); border-radius: 8px; padding: 6px 10px; }
/* QR code for the code from the app (drawn by spolecne.js › qrKod from the server's path). */
.zs-qr-misto { margin: 4px 0 0; }
.zs-qr { display: block; width: 188px; height: 188px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 10, 10, .06); }

/* ---------- header ---------- */
body.zs-telo { background: var(--g-bg); }
.zs-top .zp-top-in { gap: 12px; }
.zs-stitek { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-strong); background: var(--acc-bg); border-radius: 999px; padding: 3px 10px; }
.zs-nav { display: flex; gap: 2px; margin-left: 12px; }
.zs-nav a { color: var(--tx-3); font-weight: 700; text-decoration: none; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.zs-nav a:hover { color: var(--ink); background: var(--g-bg); }
.zs-nav a[aria-current="page"] { color: var(--ink); background: var(--g-bg); }
.zs-wrap { display: grid; gap: 16px; align-content: start; }
.zs-wrap > .zp-chyba { margin: 0; }

/* ---------- page heading ---------- */
.zs-hlava { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zs-hlava h1 { font-size: clamp(26px, 4vw, 32px); }
.zs-hlava p { margin: 0; color: var(--tx-3); font-size: 13.5px; font-weight: 600; }
.zs-zpet { color: var(--tx-3); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.zs-zpet:hover { color: var(--ink); }

/* ---------- company card with project rows ---------- */
.zs-firma { background: var(--paper); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 20px; display: grid; gap: 12px; }
.zs-firma-hlava { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zs-firma-hlava a { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.zs-firma-hlava a:hover { color: var(--acc-strong); }
.zs-firma-hlava small { color: var(--tx-3); font-weight: 600; font-size: 13px; }
.zs-projekty { display: grid; gap: 8px; }
.zs-projekt { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 1.6fr) minmax(150px, auto); gap: 8px 22px; align-items: center; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; background: var(--paper); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.zs-projekt:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-1px); }
.zs-projekt .t b { display: block; font-size: 15.5px; line-height: 1.3; }
.zs-projekt .t small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.zs-projekt .t .zp-pill { margin-top: 6px; }
.zs-postup { display: flex; align-items: center; gap: 10px; }
.zs-postup b { font-family: var(--head); font-size: 17px; min-width: 48px; }
.zs-postup .zp-bar { flex: 1; min-width: 80px; }
.zs-ted { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
.zs-ted li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-right: 7px; vertical-align: 1px; }
.zs-ted small { color: var(--tx-3); font-weight: 600; }
.zs-znacky { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.zs-znacky time { color: var(--tx-3); font-size: 12.5px; font-weight: 600; flex-basis: 100%; text-align: right; }
.zs-nove { background: var(--acc); color: #fff; }
.zs-prazdna { color: var(--tx-3); font-size: 14px; margin: 0; }

/* ---------- company detail ---------- */
.zs-sloupce { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.zs-box { background: var(--paper); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 20px; display: grid; gap: 10px; }
.zs-box h2 { font-size: 18px; }
.zs-lide { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.zs-lide li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; }
.zs-lide b { overflow-wrap: anywhere; }
.zs-lide small { color: var(--tx-3); font-weight: 600; grid-column: 1; overflow-wrap: anywhere; }

/* ---------- project detail: the "Správa" strip + the client's screen ---------- */
.zs-projekt-telo .zp-wrap { max-width: 1160px; }
.zs-pruh { background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13.5px; }
.zs-pruh b.zs-stitek { font-family: var(--body); }
.zs-pruh span { color: var(--tx-3); font-weight: 600; }
.zs-pruh span strong { color: var(--ink); font-weight: 700; }
.zs-pruh a { font-weight: 700; }
.zs-klient { background: var(--paper); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.zs-klient-pruh { margin: 0; padding: 10px 22px; background: var(--g-bg); color: var(--tx-3); font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--line); }

/* ---------- account ---------- */
.zs-ucet { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.zs-box form { display: grid; gap: 12px; }
.zs-box .zp-btn { justify-self: start; }
.zs-stav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.zs-odkaz-pozvanky { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--g-bg); border-radius: var(--r-in); padding: 10px 12px; margin: 0; overflow-wrap: anywhere; user-select: all; }
.zs-box select { font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 48px; background: var(--paper); color: var(--ink); }
.zs-info { margin: 0; padding: 10px 14px; border-radius: var(--r-in); background: var(--acc-bg); color: var(--acc-strong); font-size: 14px; font-weight: 700; }

/* ---------- krok 4: changes and messages from the administration (role spravce) ---------- */
.zs-zapis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.zs-box-siroky { grid-column: 1 / -1; }
.zs-formular { display: grid; gap: 12px; }
.zs-radek { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.zs-formular select, .zs-formular input:not([type="file"]), .zs-formular textarea { font: inherit; font-size: 16px; font-weight: 500; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 48px; background: var(--paper); color: var(--ink); width: 100%; }
.zs-formular textarea { resize: vertical; min-height: 96px; }
.zs-formular input[type="file"] { font: inherit; font-size: 14px; max-width: 100%; }
.zs-formular input[type="date"] { min-width: 0; }
.zs-formular :is(select, input, textarea):focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: transparent; }
.zs-zmeny { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.zs-zmeny li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: baseline; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.zs-zmeny li small { grid-column: 2 / -1; color: var(--tx-3); font-weight: 600; overflow-wrap: anywhere; }
.zs-akce { grid-column: 1 / -1; display: flex; gap: 16px; }
.zs-akce .zp-odkaz { min-height: 44px; }

/* Reply to one item of the client + reminder state (added under the client's items, role 'spravce' only). */
.zs-na { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--acc-bg); color: var(--acc-strong); border-radius: var(--r-in); padding: 6px 12px; font-size: 13.5px; font-weight: 700; }
.zs-na span { flex: 1 1 220px; overflow-wrap: anywhere; }
.zs-na .zp-odkaz { padding: 4px 0; }
.zs-ovladani { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 6px; }
.zs-ovladani .zp-odkaz { padding: 4px 0; font-size: 13px; }
.zs-stav-pole { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--tx-3); }
.zs-stav-pripominky { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; min-height: 32px; }
.zs-stav-pripominky:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.zs-ulozeno { font-size: 12.5px; font-weight: 700; color: var(--ok); }
.zs-ulozeno.chyba { color: var(--bad); }
@media (pointer: coarse) { .zs-ovladani .zp-odkaz, .zs-stav-pripominky { min-height: 44px; } }

@media (max-width: 860px) {
  .zs-zapis { grid-template-columns: minmax(0, 1fr); }
  .zs-zmeny li { grid-template-columns: auto 1fr; }
  .zs-projekt { grid-template-columns: 1fr; }
  .zs-znacky { justify-content: flex-start; }
  .zs-znacky time { text-align: left; }
  .zs-sloupce { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .zs-nav { margin-left: 0; }
  .zs-stitek { display: none; }
  .zs-top .zp-top-in { flex-wrap: wrap; }
}
