/* ArchiBIMO: Posouzení dokumentace (archibimo-posouzeni.js). Barvy z tokenů ArchiBIMO, mimo aplikaci (prodejní web) vlastní výchozí. */
.pd-okno, .pd-samostatne { --pd-bg: var(--ardit-bg1, #fff); --pd-bg2: var(--ardit-bg2, #f8fafe); --pd-bg3: var(--ardit-bg3, #f0f4f9); --pd-text: var(--ardit-fg1, #1b2026);
  --pd-mut: var(--ardit-fg2, #575b62); --pd-linka: var(--ardit-line, #d4d9e1); --pd-akce: var(--ardit-action, #1b59b6); --pd-ok: var(--ardit-success, #1d7d3e);
  --pd-warn: var(--ardit-warning, #916a00); --pd-bad: var(--ardit-danger, #ba3630); --pd-r: 10px; color: var(--pd-text); font-family: inherit; }
.pd-okno { position: fixed; inset: 0; z-index: 9000; background: rgba(4, 12, 28, .55); display: flex; }
.pd-okno[hidden] { display: none; }
body.pd-otevreno { overflow: hidden; }
.pd-in { background: var(--pd-bg2); width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 1100px) { .pd-okno { padding: 18px; } .pd-in { border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); } }
.pd-hl { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #0b1530; color: #fff; }
.pd-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-tit b { font-size: 18px; letter-spacing: .01em; }
.pd-tit small { color: #b9c6dd; font-size: 13px; }
.pd-x { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 18px; cursor: pointer; flex: none; }
.pd-x:hover { background: rgba(255,255,255,.22); }
.pd-tabs { display: flex; gap: 4px; padding: 8px 18px 0; background: var(--pd-bg); border-bottom: 1px solid var(--pd-linka); overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--pd-mut); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: flex; align-items: baseline; gap: 6px; }
.pd-tabs button small { font-weight: 600; font-size: 12px; color: var(--pd-akce); }
.pd-tabs button[aria-selected="true"] { color: var(--pd-text); border-bottom-color: var(--pd-akce); }
.pd-telo { flex: 1; overflow: auto; padding: 18px; }
.pd-zadani { max-width: 980px; margin: 0 auto; }
.pd-zadani h2 { margin: 4px 0 6px; font-size: 24px; }
.pd-p { color: var(--pd-mut); margin: 0 0 16px; max-width: 760px; line-height: 1.5; }
.pd-projekt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--pd-akce); border-radius: 14px; background: var(--pd-bg); margin-bottom: 4px; }
.pd-projekt-i { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pd-akce); color: #fff; }
.pd-projekt-i svg { width: 24px; height: 24px; }
.pd-projekt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-projekt-t b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-projekt-t small { color: var(--pd-mut); font-size: 13px; }
.pd-projekt .btn { flex: none; }
.pd-nebo { margin: 6px 0; text-align: center; color: var(--pd-mut); font-size: 13px; }
.pd-projekt[hidden], .pd-nebo[hidden] { display: none; }
.pd-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--pd-linka); border-radius: 14px; background: var(--pd-bg); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.pd-drop:hover, .pd-drop.nad { border-color: var(--pd-akce); background: var(--pd-bg3); }
.pd-drop-i svg { width: 38px; height: 38px; color: var(--pd-akce); }
.pd-drop small { color: var(--pd-mut); }
.pd-listy { margin-top: 14px; }
.pd-listy-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.pd-listy-h small { color: var(--pd-mut); }
.pd-mriz { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pd-nah { position: relative; border: 2px solid var(--pd-linka); border-radius: 8px; background: #fff; padding: 0; cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: var(--pd-text); }
.pd-nah img { display: block; width: 100%; aspect-ratio: 1.41; object-fit: contain; background: #fff; }
.pd-nah span { display: block; font-size: 11.5px; padding: 5px 7px; background: var(--pd-bg); border-top: 1px solid var(--pd-linka); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-nah.vyb { border-color: var(--pd-akce); box-shadow: 0 0 0 2px var(--pd-akce); }
.pd-nah i { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: 12px; display: grid; place-items: center; }
.pd-pozn { width: 100%; box-sizing: border-box; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--pd-linka); border-radius: 8px; background: var(--pd-bg); color: var(--pd-text); font: inherit; resize: vertical; }
.pd-akce { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pd-akce .btn { min-height: 42px; padding: 0 18px; font-weight: 700; }
.pd-akce .btn[hidden] { display: none; }
.pd-stav { margin-top: 12px; min-height: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-stav small { color: var(--pd-mut); }
.pd-tocka { width: 16px; height: 16px; border: 3px solid var(--pd-linka); border-top-color: var(--pd-akce); border-radius: 50%; animation: pd-toc .8s linear infinite; }
@keyframes pd-toc { to { transform: rotate(360deg); } }
.pd-mini { color: var(--pd-mut); font-size: 12.5px; margin-top: 16px; }
.pd-chyba { color: var(--pd-bad); margin-left: 8px; font-size: 13px; }

/* výsledek */
.pd-vysl-lista { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.pd-mez { flex: 1; }
.pd-sum { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; background: var(--pd-bg); border: 1px solid var(--pd-linka); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.pd-sum h3 { margin: 8px 0 6px; font-size: 20px; }
.pd-sum p { margin: 0; line-height: 1.5; color: var(--pd-mut); }
.pd-hod { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12.5px; margin-right: 6px; }
.pd-hod.ok { background: #e3f4e8; color: #1d7d3e; } .pd-hod.warn { background: #fff4d6; color: #7a5800; } .pd-hod.bad { background: #fde5e3; color: #ba3630; }
.pd-stupen { font-size: 12.5px; font-weight: 700; color: var(--pd-mut); text-transform: uppercase; letter-spacing: .06em; }
.pd-silne { margin: 10px 0 0; padding-left: 18px; color: var(--pd-ok); line-height: 1.5; }
.pd-sum-b { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.pd-cislo { background: var(--pd-bg3); border-radius: 10px; padding: 10px 14px; min-width: 90px; }
.pd-cislo b { display: block; font-size: 26px; line-height: 1.1; }
.pd-cislo span { font-size: 12.5px; color: var(--pd-mut); }
.pd-skupiny { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pd-linka); background: var(--pd-bg); color: var(--pd-text); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.pd-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pd-chip.vyp { opacity: .4; }
.pd-prac { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.pd-platno-ram { background: var(--pd-bg); border: 1px solid var(--pd-linka); border-radius: 14px; overflow: hidden; position: sticky; top: 0; }
.pd-platno-hl { display: flex; gap: 8px; padding: 8px; border-bottom: 1px solid var(--pd-linka); }
.pd-platno-hl select { flex: 1; min-width: 0; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--pd-linka); background: var(--pd-bg); color: var(--pd-text); font: inherit; }
.pd-platno { overflow: auto; max-height: calc(100vh - 230px); background: #fff; }
.pd-samostatne .pd-platno { max-height: 78vh; }
.pd-list { position: relative; width: 100%; }
.pd-list.zoom { width: 260%; }
.pd-list img { display: block; width: 100%; height: auto; }
.pd-list img.pd-rozmaz { filter: blur(2px); opacity: .7; }
.pd-list svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-k { cursor: pointer; }
.pd-k circle:first-child { fill: none; stroke-width: 5; vector-effect: non-scaling-stroke; stroke-width: 3; }
.pd-k.druhy circle:first-child { stroke-dasharray: 8 6; }
.pd-k text { fill: #fff; font-weight: 800; text-anchor: middle; dominant-baseline: central; font-family: Arial, sans-serif; pointer-events: none; }
.pd-k.akt circle:first-child { stroke-width: 5; animation: pd-puls 1.2s ease-in-out 2; }
@keyframes pd-puls { 50% { stroke-opacity: .25; } }
.pd-nalezy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 180px); overflow: auto; }
.pd-samostatne .pd-nalezy { max-height: 84vh; }
.pd-n { background: var(--pd-bg); border: 1px solid var(--pd-linka); border-left: 5px solid var(--c); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.pd-n[hidden] { display: none; }
.pd-n.akt { box-shadow: 0 0 0 2px var(--c); }
.pd-n-hl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--pd-mut); margin-bottom: 4px; }
.pd-n-c { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 12px; }
.pd-n-sk { color: var(--c); text-transform: uppercase; letter-spacing: .04em; }
.pd-n.z-vazne .pd-n-z { color: var(--pd-bad); }
.pd-n-l { margin-left: auto; }
.pd-n b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.pd-n p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--pd-text); }
.pd-n q { display: block; font-size: 12.5px; color: var(--pd-mut); font-style: italic; margin-bottom: 4px; }
.pd-n-nav span { font-weight: 700; color: var(--pd-ok); }
.pd-n-pr { color: var(--pd-mut); font-size: 12px; }
.pd-zamek { border: 2px dashed var(--pd-linka); border-radius: 10px; padding: 14px; text-align: center; background: var(--pd-bg3); }
.pd-zamek p { color: var(--pd-mut); font-size: 13px; }
.pd-zamek .btn { margin-top: 6px; }

/* rozpočet */
.pd-r-celkem { font-size: 30px; font-weight: 800; color: var(--pd-text) !important; margin: 6px 0 !important; }
.pd-r-celkem span { font-size: 18px; font-weight: 500; color: var(--pd-mut); }
.pd-r-pozn { font-size: 12.5px; width: 100%; }
.pd-r-tab { width: 100%; border-collapse: collapse; background: var(--pd-bg); border: 1px solid var(--pd-linka); border-radius: 14px; overflow: hidden; font-size: 14px; }
.pd-r-tab th { text-align: left; padding: 10px 12px; background: var(--pd-bg3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--pd-mut); }
.pd-r-tab td { padding: 9px 12px; border-top: 1px solid var(--pd-linka); vertical-align: top; }
.pd-r-tab td:nth-child(n+3), .pd-r-tab th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.pd-r-tab td small { display: block; color: var(--pd-mut); font-size: 12.5px; }
.pd-r-pas { width: 30%; }
.pd-r-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--pd-bg3); margin-top: 6px; }
.pd-r-bar em { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--pd-akce) 45%, transparent); border-radius: 5px 0 0 5px; }
.pd-r-bar i { position: absolute; top: 0; bottom: 0; background: var(--pd-akce); border-radius: 5px; }
.pd-r-sezy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.pd-r-sez { background: var(--pd-bg); border: 1px solid var(--pd-linka); border-radius: 14px; padding: 14px; }
.pd-r-sez h4 { margin: 0 0 6px; }
.pd-r-sez ul { margin: 0; padding-left: 18px; line-height: 1.5; font-size: 13.5px; }

#bPosouzeni .pd-ico { width: 16px; height: 16px; flex: none; }
@media (max-width: 900px) {
  .pd-sum, .pd-prac { grid-template-columns: 1fr; }
  .pd-platno-ram { position: static; }
  .pd-platno { max-height: 62vh; }
  .pd-nalezy { max-height: none; overflow: visible; }
  .pd-r-sezy { grid-template-columns: 1fr; }
  .pd-r-pas { display: none; }
}
@media (max-width: 560px) {
  .pd-telo { padding: 12px; }
  .pd-tabs { padding: 6px 8px 0; gap: 0; }
  .pd-tabs button { padding: 10px 8px; font-size: 13px; flex: 1 1 auto; justify-content: center; }
  .pd-tabs button small { display: none; }
  .pd-hl { padding: 10px 12px; }
  .pd-tit small { display: none; }
  .pd-zadani h2 { font-size: 20px; }
  .pd-mriz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-r-celkem { font-size: 24px; }
  .pd-r-tab { font-size: 13px; }
  .pd-akce .btn { flex: 1 1 100%; }
  .pd-projekt { flex-wrap: wrap; }
  .pd-projekt .btn { flex: 1 1 100%; }
  #bPosouzeni span { display: none; }
}
