/* Zpráva o činnosti (zprava2/) – společné styly stránek modulu a vykreslených bloků. */
:root { --zp-blue: #004687; --zp-bg: #f4f7f9; }
body { background: var(--zp-bg); font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #333; }

.zp-card { background: #fff; border: 0; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.zp-title { color: var(--zp-blue); font-weight: 800; }

/* Vykreslené bloky */
.zp-block { margin: 1.5rem 0; }
.zp-block-title { font-weight: 700; color: #212529; margin: 1.5rem 0 .75rem; }
.zp-text.ql-editor { padding: 0; height: auto; overflow: visible; font-size: 1rem; line-height: 1.6; }
.zp-image { text-align: center; margin: 1rem 0; }
.zp-image img { max-width: 100%; max-height: 600px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.zp-link { margin: 1rem 0; }
.zp-embed { margin: 1rem 0; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; background: #f8f9fa; }
.zp-embed iframe { width: 100%; min-height: 75vh; border: 0; display: block; }
.zp-descriptor { font-style: italic; color: #6c757d; font-size: .875rem; text-align: center; margin-top: .35rem; }

.zp-table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid #e9ecef; border-radius: 8px; background: #fff; }
.zp-table { width: 100%; border-collapse: collapse; }
.zp-table th, .zp-table td { padding: 8px 12px; border-bottom: 1px solid #e9ecef; vertical-align: middle; }
.zp-table thead th { background: #e6f2ff; color: var(--zp-blue); font-size: .8rem; text-transform: uppercase; }
.zp-table tbody tr:nth-child(even) { background: #f8f9fa; }
.zp-table tfoot td { background: #f1f5f9; font-weight: 700; border-top: 2px solid #ced4da; }
.zp-table-caption { background: #e6f2ff; color: var(--zp-blue); font-weight: 700; text-align: center; padding: 8px; }

/* Stavové štítky */
.zp-badge-draft { background: #fff3cd; color: #664d03; }
.zp-badge-published { background: #d1e7dd; color: #0a3622; }

/* Výpočty */
.zp-chart { text-align: center; margin: 1rem 0; }
.zp-chart img { max-width: 100%; height: auto; }
.zp-calc-table td, .zp-calc-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.zp-calc-notes { font-size: .85rem; color: #6c757d; margin-top: .5rem; }
.zp-rev-val { font-style: italic; color: #6f42c1; }
.zp-rev { color: #6f42c1; font-weight: 700; margin-left: 1px; }
.zp-table .zp-row-group td { background: #004687; color: #fff; font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.zp-table .zp-row-heading td { background: #fff; color: #004687; font-weight: 700; font-size: .95rem; padding-top: .9rem; border-bottom: 2px solid #004687; }
.zp-table .zp-row-sum td { background: #e6f2ff; font-weight: 700; }

/* Bloky skupin výpočtů (např. ÚS s organizacemi ve dvou sloupcích) */
.zp-groups { margin: 1rem 0; overflow-x: auto; }
.zp-g-table { width: 100%; min-width: 760px; border-collapse: collapse; margin-bottom: .75rem; font-size: .85rem; font-variant-numeric: tabular-nums; background: #fff; }
.zp-g-table td, .zp-g-table th { padding: 3px 8px; border-bottom: 1px solid #eef1f4; white-space: nowrap; }
.zp-g-table .zp-g-name { white-space: normal; }
.zp-g-table td.zp-g-gap, .zp-g-table th.zp-g-gap { border: 0; background: #fff; }
.zp-g-head td { background: #004687; color: #fff; font-weight: 700; padding: 6px 8px; border: 0; }
.zp-g-head td.zp-g-sumlabel { font-weight: 400; text-align: right !important; }
.zp-g-head td span { color: #fff !important; }
.zp-g-cont td { background: #e6f2ff; color: #004687; font-weight: 700; font-size: .75rem; text-transform: uppercase; }
.zp-g-colhead th { color: #6c757d; font-size: .7rem; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid #dee2e6; }
.zp-g-total td { background: #e6f2ff; color: #004687; font-weight: 700; padding: 6px 8px; }
.zp-g-total td.zp-g-sumlabel { text-align: right !important; }
.zp-calc-caption { font-weight: 700; color: #004687; margin: 1rem 0 .25rem; }
.zp-calc-table.zp-calc-compact { font-size: .8rem; }
.zp-table.zp-calc-compact thead th { white-space: normal; vertical-align: bottom; text-transform: none; }
.zp-calc-split { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.zp-calc-split > .zp-table-wrap { flex: 1 1 340px; min-width: 0; }
.zp-calc-split .zp-table th, .zp-calc-split .zp-table td { padding: 4px 8px; }
.zp-calc-subcaption { font-size: .8rem; color: #6c757d; font-style: italic; margin: -.15rem 0 .25rem; }
.zp-calc-used { color: #b02a37; }
.zp-calc-unused { color: #146c43; }

/* Tabulky od ÚS – komentáře územních svazů pod souhrnnou tabulkou */
.zp-ust-comments { margin-top: 12px; }
.zp-ust-comment { margin-bottom: 10px; page-break-inside: avoid; }
.zp-ust-comment-us { font-weight: 700; color: var(--zp-blue); }
