/* zInkasuj.cz – světlý vzhled */
:root {
  --brand: #0068ff; --brand-hover: #0057d6; --brand-weak: #0068ff26; --brand-soft: #e8f0ff;
  --navy: #171d4d; --navy-80: #40466e;
  --bg: #ebeef5; --elevated: #f7f8fb; --fill: #fff;
  --text-strong: #171d4d; --text: #565d6b; --text-weak: #565d6bcc;
  --stroke: #cdd2de; --stroke-strong: #97a1b2; --stroke-weak: #171d4d1f;
  --pos: #29b000; --pos-weak: #29b00024; --neg: #e8313b; --neg-weak: #e8313b24; --warn: #f88410; --warn-strong: #d46a00; --warn-weak: #f869101a;
  --r-tiny: 4px; --r-mini: 6px; --r-small: 8px; --r-regular: 12px;
  --shadow-low: 0 1px 1px 0 #00000012, 0 2px 10px 0 #00000012;
  --shadow-med: 0 7px 12px 0 #00000012, 0 2px 7px 0 #00000012;
  --top-h: 60px; --toolbar-h: 56px; --max-w: 1500px;
  --accent: var(--brand); --accent-soft: var(--brand-soft); --accent-ink: var(--brand-hover); --panel: var(--fill); --line: var(--stroke); --line-2: #eef0f5; --ink: var(--text-strong); --muted: var(--text); --danger: var(--neg);
}
html { color-scheme: light; background: var(--bg); }
body.pro { background: var(--bg); color: var(--text); font-family: Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; letter-spacing: .02em; padding-top: calc(var(--top-h) + var(--toolbar-h)); }
body.pro a { color: var(--brand); text-decoration: none; }
body.pro a:hover { color: var(--brand-hover); }
body.pro b, body.pro strong, body.pro h1, body.pro h2, body.pro h3 { color: var(--text-strong); }
.text-accent { color: var(--brand) !important; }
.text-muted { color: var(--text-weak) !important; }

/* ---------- horní lišta ---------- */
.mph-top { position: fixed; inset: 0 0 auto 0; height: var(--top-h); background: var(--navy); z-index: 1040; display: flex; justify-content: center; padding: 0 28px; }
.mph-top-inner { display: flex; align-items: center; width: 100%; max-width: var(--max-w); height: 100%; gap: 6px; }
.mph-logo { display: flex; align-items: center; gap: 9px; color: #fff !important; font-size: 18px; font-weight: 500; margin-right: 18px; white-space: nowrap; }
.mph-logo-full { height: 48px; width: auto; display: block; margin: 0 4px 0 -4px; }
@media (max-width: 991.98px) { .mph-logo-full { height: 40px; } }
.mph-logo-img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px #ffffff26; }
.mph-logo-text { font-weight: 700; letter-spacing: .01em; }
.mph-logo-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.mph-burger { display: none; background: none; border: 0; color: #fff; font-size: 24px; padding: 0 6px; }
.mph-menu { display: flex; align-items: stretch; height: 100%; flex: 1; }
.mph-menu-dd { display: flex; }
.mph-menu-item { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 15px; background: transparent; border: 0; color: #fff !important; font-size: 14px; white-space: nowrap; }
.mph-menu-item > i:first-child { font-size: 20px; opacity: .95; }
.mph-menu-item:hover, .mph-menu-item.show { background: #ffffff12; }
.mph-menu-item.active { background: #ffffff1a; box-shadow: inset 0 -3px 0 var(--brand); }
.mph-caret { font-size: 11px; opacity: .8; }
.mph-menu-mobile-extra { display: none; }
.mph-drop { margin-top: 0 !important; padding: 5px 0; border: 1px solid var(--stroke); border-radius: var(--r-mini); box-shadow: var(--shadow-low); min-width: 230px; }
.mph-drop .dropdown-item { padding: 9px 18px; color: var(--text-strong); font-size: 14px; }
.mph-drop .dropdown-item:hover { background: #171d4d12; color: var(--text-strong); }
.mph-drop .dropdown-item.active, .mph-drop .dropdown-item:active { background: var(--brand-weak); color: var(--text-strong); font-weight: 500; }
.mph-top-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mph-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-mini); border: 0; background: transparent; color: #fff !important; font-size: 20px; }
.mph-icon-btn:hover, .mph-icon-btn.show { background: #ffffff12; }
.mph-account { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-mini); background: transparent; color: #fff; text-align: left; }
.mph-account:hover, .mph-account.show { background: #ffffff12; }
.mph-account > i:first-child { font-size: 20px; }
.mph-account-text { display: flex; flex-direction: column; line-height: 1.15; max-width: 210px; }
.mph-account-text span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mph-account-text small { font-size: 12px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- nástrojová lišta ---------- */
.mph-toolbar { position: fixed; top: var(--top-h); left: 0; right: 0; height: var(--toolbar-h); background: var(--elevated); box-shadow: var(--shadow-low); z-index: 1030; display: flex; justify-content: center; padding: 0 28px; }
.mph-toolbar-inner { display: flex; align-items: center; gap: 12px; width: 100%; max-width: var(--max-w); }
.mph-title { font-size: 20px; font-weight: 500; color: var(--text-strong); margin: 0; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.pro-toolbar .btn, .pro-toolbar form .btn { height: 40px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-mini); font-size: 14px; font-weight: 500; padding: 0 12px; white-space: nowrap; }
.pro-toolbar .btn-outline-secondary, .pro-toolbar .btn-outline-danger, .pro-toolbar .btn-outline-accent { border: 0; background: transparent; color: var(--text-strong); }
.pro-toolbar .btn-outline-secondary:hover, .pro-toolbar .btn-outline-accent:hover, .pro-toolbar .btn-outline-secondary.show { background: #171d4d12; color: var(--text-strong); }
.pro-toolbar .btn-outline-danger { color: var(--neg); }
.pro-toolbar .btn-outline-danger:hover { background: var(--neg-weak); color: var(--neg); }
.pro-toolbar .btn i { font-size: 18px; }

/* ---------- obsah ---------- */
.mph-content { max-width: calc(var(--max-w) + 56px); margin: 0 auto; padding: 22px 28px 60px; }
.pro-head { display: none; }

/* tlačítka */
.btn { border-radius: var(--r-mini); font-weight: 500; }
.btn-accent { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.btn-accent:hover, .btn-accent:focus, .btn-accent:active { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; color: #fff !important; }
.btn-outline-accent { border-color: var(--brand); color: var(--brand) !important; background: #fff; }
.btn-outline-accent:hover { background: var(--brand-soft); color: var(--brand) !important; }
.btn-outline-secondary { border-color: var(--stroke); color: var(--text-strong); background: #fff; }
.btn-outline-secondary:hover { background: #171d4d0d; border-color: var(--stroke-strong); color: var(--text-strong); }
.btn-secondary { background: var(--navy); border-color: var(--navy); }
.btn-sm { padding: .3rem .75rem; font-size: 13.5px; }

/* formuláře */
body.pro .form-label { font-size: 12.5px; color: var(--text); margin-bottom: 3px; font-weight: 400; }
body.pro .form-control, body.pro .form-select { border: 1px solid var(--stroke); border-radius: var(--r-mini); color: var(--text-strong); font-weight: 500; background-color: var(--fill); min-height: 40px; font-size: 14px; }
body.pro .form-control-sm, body.pro .form-select-sm { min-height: 40px; padding: 6px 12px; font-size: 14px; border-radius: var(--r-mini); }
body.pro .form-select-sm { padding-right: 32px; }
body.pro .form-control:focus, body.pro .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
body.pro .form-control[readonly] { background: var(--elevated); }
body.pro .input-group-sm > .btn { min-height: 40px; }
body.pro textarea.form-control { min-height: 64px; }
body.pro .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
body.pro .form-switch .form-check-input { width: 2.4em; height: 1.3em; }
body.pro .form-check-label { color: var(--text-strong); }

/* karty a plochy */
.pro-card, .card.pro-card { background: var(--fill); border: 0; border-radius: var(--r-regular); box-shadow: var(--shadow-low); }
.pro-card .card-body { padding: 18px 20px; }
.pro-card .card-footer { background: transparent; border-top: 1px solid var(--stroke-weak); padding: 12px 20px; }
.pro-card-head { display: flex; align-items: center; gap: 8px; background: transparent !important; border-bottom: 1px solid var(--stroke-weak) !important; padding: 12px 20px; min-height: 52px; }
.pro-card-head b { font-size: 16px; font-weight: 500; }
.pro-card-head .nav-tabs { border: 0; margin-bottom: -13px !important; }
.pro-card-head .nav-link { color: var(--text); border: 0; border-bottom: 3px solid transparent; padding: 10px 14px 12px; font-size: 14px; }
.pro-card-head .nav-link:hover { color: var(--text-strong); }
.pro-card-head .nav-link.active { color: var(--text-strong); background: transparent; border-bottom-color: var(--brand); font-weight: 500; }
.mph-info { background: var(--elevated); border-radius: var(--r-small); padding: 12px 16px; color: var(--text); }

/* filtr nad seznamem */
.pro-filter { background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); padding: 12px 16px; margin-bottom: 14px; }
.pro-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pro-filter-ext { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--stroke-weak); }
.pro-search { position: relative; flex: 1 1 280px; }
.pro-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-weak); }
.pro-search input { width: 100%; min-height: 40px; border: 1px solid var(--stroke); border-radius: var(--r-mini); padding: 6px 12px 6px 36px; background: var(--fill); color: var(--text-strong); font-weight: 500; }
.pro-search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }

/* tabulky (gridy) */
.pro-grid-wrap { background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); overflow-x: auto; }
.pro-grid { margin: 0; --bs-table-bg: transparent; color: var(--text-strong); font-size: 14px; }
.pro-grid thead th { font-size: 12.5px; font-weight: 500; color: var(--text); background: var(--fill); border-bottom: 1px solid var(--stroke); padding: 14px 10px; white-space: nowrap; }
.pro-grid td { padding: 12px 10px; vertical-align: middle; border-bottom: 1px solid var(--stroke-weak); color: var(--text-strong); }
.pro-grid tbody tr:hover td { background: #0068ff0a; }
.pro-grid tfoot td { background: var(--elevated); border: 0; padding: 12px; }
.pro-grid a.fw-semibold { color: var(--brand); font-weight: 500 !important; }
.pro-grid .chk { width: 40px; }
.pro-grid .acts { width: 1%; }
.row-overdue td:first-child { box-shadow: inset 4px 0 0 var(--neg); }
.ib { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-mini); color: var(--text-strong); border: 0; background: none; text-decoration: none; font-size: 16px; }
.ib:hover { background: #171d4d12; color: var(--brand); }
.pro-bulk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--brand-soft); border-radius: var(--r-small); padding: 8px 12px; margin-bottom: 12px; color: var(--text-strong); }
.pro-bulk span { margin-right: 8px; }
.pro-pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; color: var(--text); font-size: 13px; }
.pro-pager .page-link { color: var(--text-strong); border-radius: var(--r-mini) !important; margin: 0 2px; border: 1px solid var(--stroke); }
.pro-pager .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pro-empty { text-align: center; padding: 56px 20px; color: var(--text); background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); }
.pro-empty i { font-size: 40px; display: block; margin-bottom: 8px; color: var(--stroke-strong); }

/* stavy */
.pstate { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pstate-uhrazena { background: var(--pos-weak); color: #1f7a00; }
.pstate-castecne { background: var(--warn-weak); color: var(--warn-strong); }
.pstate-neuhrazena { background: #171d4d0f; color: var(--text); }
.pstate-po_splatnosti { background: var(--neg-weak); color: #c4161f; }
.pstate-preplacena, .pstate-vyuctovano { background: var(--brand-weak); color: var(--brand-hover); }
.sstate { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: #171d4d0f; color: var(--text); }
.sstate-vyrizena { background: var(--pos-weak); color: #1f7a00; }
.sstate-castecne { background: var(--warn-weak); color: var(--warn-strong); }
.sstate-odmitnuta { background: var(--neg-weak); color: #c4161f; }
.sstate-odeslana { background: var(--brand-weak); color: var(--brand-hover); }
.sstate-trvaly { background: #6f42c120; color: #5b2fa8; }
.type-chip { font-size: 12px; padding: 2px 8px; border-radius: var(--r-tiny); background: #171d4d0f; color: var(--text); white-space: nowrap; }
.type-opravny, .type-vydej, .type-vyber { background: var(--warn-weak); color: var(--warn-strong); }
.type-prijem, .type-vklad { background: var(--pos-weak); color: #1f7a00; }
.badge.text-bg-light { background: #171d4d12 !important; color: var(--text-strong) !important; }

/* detail dokladu */
.items-table { font-size: 14px; color: var(--text-strong); }
.items-table thead th { font-size: 12.5px; font-weight: 500; color: var(--text); background: var(--fill); border-bottom: 1px solid var(--stroke); padding: 10px 6px; white-space: nowrap; text-transform: none; }
.items-table td { padding: 6px 4px; vertical-align: top; border-bottom: 1px solid var(--stroke-weak); }
.items-table td .form-control, .items-table td .form-select { min-height: 36px; padding: 5px 8px; font-size: 14px; }
.items-table .row-fixed td { background: var(--elevated); }
.items-table [data-out=total] { padding-top: 14px; }
.totals-box { background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); padding: 14px 20px; }
.totals-box > div { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.totals-box span { color: var(--text); }
.totals-box .grand { border-top: 1px solid var(--stroke-weak); margin-top: 8px; padding-top: 10px; font-size: 20px; }
.totals-box .grand b { color: var(--text-strong); font-weight: 700; }
.vat-recap { background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); overflow: hidden; font-size: 13.5px; --bs-table-bg: transparent; }
.vat-recap th { font-weight: 500; color: var(--text); font-size: 12.5px; }
.qr-img { border: 1px solid var(--stroke-weak); border-radius: var(--r-small); padding: 4px; background: #fff; }
.suggest-box { display: none; position: absolute; z-index: 1050; left: 0; right: 0; top: 100%; margin-top: 2px; background: var(--fill); border: 1px solid var(--stroke); border-radius: var(--r-regular); box-shadow: var(--shadow-low); max-height: 300px; overflow-y: auto; padding: 4px 0; }
.suggest-box.show { display: block; }
.suggest-box a { display: block; padding: 8px 14px; color: var(--text-strong) !important; }
.suggest-box a:hover { background: #171d4d0d; }
.suggest-box small { color: var(--text-weak); }
.suggest-empty { padding: 10px 14px; color: var(--text); font-size: 13px; }
.quick-add { background: var(--elevated); border-radius: 0 0 var(--r-regular) var(--r-regular); border-top: 1px solid var(--stroke-weak) !important; }
.quick-add .suggest-box { top: auto; bottom: 100%; max-width: 560px; }
.pick-table tbody tr { cursor: pointer; }
.pick-table tbody tr:hover td { background: #0068ff0a; }
.modal-content { border: 0; border-radius: var(--r-regular); box-shadow: var(--shadow-med); }
.modal-header { border-bottom: 1px solid var(--stroke-weak); }
.modal-footer { border-top: 1px solid var(--stroke-weak); }
.dropdown-menu { border: 1px solid var(--stroke); border-radius: var(--r-mini); box-shadow: var(--shadow-low); }
.dropdown-item { color: var(--text-strong); }
.dropdown-item:hover { background: #171d4d0d; }
.alert { border: 0; border-radius: var(--r-small); box-shadow: var(--shadow-low); }
.alert-success { background: #eaf8e4; color: #1f5c00; }
.alert-danger { background: #fde8e9; color: #9c121a; }
.alert-warning { background: #fff3e6; color: #8a4500; }
.alert-info { background: var(--brand-soft); color: #0b3a8c; }

/* informační plocha */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.dash-card { min-width: 0; background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); padding: 18px 20px; }
.dash-card h3 { font-size: 16px; font-weight: 500; color: var(--text-strong); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-card h3 a { font-size: 13px; font-weight: 400; }
.dash-big { font-size: 26px; font-weight: 700; color: var(--text-strong); }
.dash-sub { color: var(--text); font-size: 13px; }
.dash-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.dash-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--stroke-weak); color: var(--text-strong); }
.dash-list li:last-child { border: 0; }
.quick-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.quick-tiles a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); color: var(--text-strong) !important; text-align: center; font-size: 13.5px; }
.quick-tiles a i { font-size: 26px; color: var(--brand); }
.quick-tiles a:hover { box-shadow: var(--shadow-med); color: var(--brand) !important; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.bars .bar > div { display: flex; gap: 2px; align-items: flex-end; width: 100%; height: 100%; justify-content: center; }
.bars .bar span.in { background: var(--brand); width: 42%; border-radius: 3px 3px 0 0; min-height: 1px; }
.bars .bar span.out { background: var(--warn); width: 42%; border-radius: 3px 3px 0 0; min-height: 1px; }
.bars .bar small { font-size: 11px; color: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.legend i[style*="f59e0b"] { background: var(--warn) !important; }
.meter { height: 6px; background: #171d4d12; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.meter span { display: block; height: 100%; background: var(--brand); }

/* nastavení – modrý seznam sekcí vlevo */
.settings-nav { background: var(--brand); border-radius: var(--r-regular); padding: 8px !important; }
.settings-nav .pro-nav-section { color: #ffffffb3; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 12px 4px; }
.settings-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r-mini); color: #fff !important; font-size: 14px; }
.settings-nav a:hover { background: #ffffff1f; }
.settings-nav a.active { background: #fff; color: var(--text-strong) !important; font-weight: 500; }
.col-lg-3 > .pro-card:has(.settings-nav) { background: transparent; box-shadow: none; }

/* webdoklad */
body.webdoc { padding-top: var(--top-h); }
body.webdoc .pro-top { position: fixed; inset: 0 0 auto 0; height: var(--top-h); background: var(--navy); display: flex; align-items: center; padding: 0 24px; z-index: 10; }
body.webdoc .pro-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 500; }
body.webdoc .pro-logo-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; color: #fff; }
body.webdoc .btn-mode { border: 1px solid #ffffff59; color: #fff !important; }
.webdoc-main { max-width: 980px; margin: 0 auto; padding: 28px 16px 48px; }

.pro-backdrop { display: none; }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1280px) {
  .mph-menu-item { padding: 0 10px; }
  .mph-menu-item > i:first-child { display: none; }
  .mph-account-text { display: none; }
  .pro-toolbar .btn span { display: none; }
}
@media (max-width: 991.98px) {
  :root { --top-h: 50px; }
  .mph-top, .mph-toolbar { padding: 0 14px; }
  .mph-burger { display: block; }
  .mph-logo { margin-right: 6px; }
  .mph-menu { display: none; position: fixed; top: var(--top-h); left: 0; right: 0; bottom: 0; background: var(--navy); flex-direction: column; overflow-y: auto; border-top: 1px solid #ffffff33; padding-bottom: 30px; }
  body.nav-open .mph-menu { display: flex; }
  .mph-menu-dd { flex-direction: column; }
  .mph-menu-item { height: 52px; padding: 0 20px; width: 100%; }
  .mph-menu-item > i:first-child { display: inline; }
  .mph-menu .dropdown-menu { position: static !important; transform: none !important; background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 30px; }
  .mph-menu .dropdown-item { color: #fffc; }
  .mph-menu .dropdown-item.active, .mph-menu .dropdown-item:hover { background: #ffffff1a; color: #fff; }
  .mph-menu-mobile-extra { display: block; border-top: 1px solid #ffffff33; margin-top: 8px; }
  .mph-toolbar-inner { gap: 6px; overflow-x: auto; }
  .mph-title { font-size: 17px; }
  .mph-content { padding: 16px 16px 48px; }
}
@media (max-width: 575.98px) {
  .mph-top, .mph-toolbar { padding: 0 8px; }
  .mph-top-inner { gap: 2px; min-width: 0; }
  .mph-logo { margin-right: 0; min-width: 0; flex-shrink: 1; }
  .mph-logo-full { height: 32px; max-width: 42vw; object-fit: contain; object-position: left center; }
  .mph-icon-btn { width: 36px; height: 36px; font-size: 19px; }
  .mph-account { padding: 0 6px; gap: 4px; }
  .mph-account .mph-caret { display: none; }
  .mph-top-right { gap: 0; flex-shrink: 0; }
  .items-table { min-width: 760px; }
  .pro-toolbar { overflow-x: auto; }
  .mph-title { max-width: 45vw; }
}

/* přihlašovací stránka */
body.zk-auth { padding-top: 0; min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #dce9ff 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e2f7e6 0, transparent 55%), var(--bg); }
.zk-auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.zk-auth-card { width: 100%; max-width: 420px; background: var(--fill); border-radius: 16px; box-shadow: var(--shadow-med); padding: 36px 34px 30px; }
.zk-auth-logo { display: block; height: 56px; width: auto; margin: 0 auto 26px; }
.zk-auth-card .form-control { min-height: 46px; }
.zk-auth-card .btn-accent { min-height: 46px; font-size: 15px; }
.zk-auth-foot { margin-top: 20px; color: var(--text-weak); font-size: 13px; }

/* ---------- právní dokumenty ---------- */
.zk-legal { background: var(--bg); padding-top: 0 !important; }
.zk-legal-head { background: var(--navy); padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.zk-legal-head img { height: 40px; }
.zk-legal-head a { color: #fff !important; }
.zk-legal-main { max-width: 860px; margin: 28px auto 60px; background: var(--fill); border-radius: var(--r-regular); box-shadow: var(--shadow-low); padding: 36px 44px; line-height: 1.6; }
.zk-legal-main h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.zk-legal-main h2 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.zk-legal-main table { width: 100%; font-size: 13px; margin: 10px 0; border-collapse: collapse; }
.zk-legal-main th, .zk-legal-main td { border: 1px solid var(--stroke); padding: 6px 8px; vertical-align: top; }
.zk-legal-main th { background: var(--elevated); color: var(--text-strong); }
.zk-legal-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 18px; }
@media (max-width: 640px) { .zk-legal-main { margin: 0; border-radius: 0; padding: 22px 16px; } }

/* ---------- oprávnění uživatelů ---------- */
.zk-perms { display: grid; gap: 8px; }
.zk-perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-small); background: var(--elevated); }
.zk-perm-row .btn-group { flex-shrink: 0; }
@media (max-width: 767.98px) { .zk-perm-row { flex-direction: column; align-items: stretch; } .zk-perm-row .btn-group { width: 100%; } .zk-perm-row .btn-group .btn { flex: 1; font-size: 12px; } }

/* ---------- předplatné ---------- */
.zk-sub-state { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-regular); background: var(--brand-soft); border: 1px solid var(--brand-weak); }
.zk-sub-trial { background: #fff7ec; border-color: #f8841055; }
.zk-sub-expired, .zk-sub-ended { background: var(--neg-weak); border-color: #e8313b44; }
.zk-sub-free, .zk-sub-active { background: var(--pos-weak); border-color: #29b00044; }
.zk-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.zk-pay-card { border: 1px solid var(--stroke); border-radius: var(--r-regular); padding: 16px; text-align: center; background: var(--fill); }
.zk-pay-years { font-weight: 500; color: var(--text-strong); }
.zk-pay-price { font-size: 22px; font-weight: 700; color: var(--text-strong); margin: 2px 0 8px; }
.zk-pay-qr svg { width: 140px; height: 140px; }

/* ---------- nápověda ---------- */
.zk-help { width: 420px !important; max-width: 100vw; }
.zk-help .offcanvas-header { border-bottom: 1px solid var(--line-2); }
.zk-help-search { position: relative; }
.zk-help-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-weak); }
.zk-help-search input { padding-left: 36px; height: 42px; border-radius: var(--r-small); }
.zk-help-docsearch { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 9px 12px; border-radius: var(--r-small); background: var(--brand-soft); font-size: 13px; }
.zk-help-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-weak); margin: 14px 0 4px; font-weight: 500; }
.zk-help-item { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: 9px 4px; text-align: left; color: var(--text-strong); font-size: 14px; }
.zk-help-item:hover { color: var(--brand); background: var(--elevated); }
.zk-help-item i { color: var(--text-weak); font-size: 12px; }
.zk-help-article { font-size: 14px; line-height: 1.55; }
.zk-help-article ol, .zk-help-article ul { padding-left: 20px; }
.zk-help-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.zk-help-details { border-bottom: 1px solid var(--line-2); padding: 8px 0; }
.zk-help-details summary { cursor: pointer; color: var(--text-strong); font-weight: 500; }

/* ---------- průvodce ---------- */
.zk-tour { position: fixed; inset: 0; z-index: 2000; }
.zk-tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px #0b1030a6, 0 0 0 3px var(--brand); transition: all .25s ease; pointer-events: none; }
.zk-tour-pop { position: fixed; background: #fff; border-radius: var(--r-regular); box-shadow: var(--shadow-med); padding: 16px 18px 12px; transition: top .25s, left .25s; }
.zk-tour-pop h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--text-strong); }
.zk-tour-pop p { font-size: 13.5px; margin: 0 0 12px; }
.zk-tour-count { font-size: 11px; color: var(--text-weak); margin-bottom: 2px; }
.zk-tour-btns { display: flex; justify-content: flex-end; gap: 6px; }
.zk-tour-skip { margin-right: auto; padding-left: 0; }

/* ---------- žádost o přístup ---------- */
.zk-request-form { position: relative; }
.dash-wide { grid-column: span 2; }
@media (max-width: 700px) { .dash-wide { grid-column: auto; } }

/* ---------- barevné motivy a tarify ---------- */
.zk-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.zk-theme { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--stroke); border-radius: var(--r-small); cursor: pointer; background: var(--fill); }
.zk-theme input { position: absolute; opacity: 0; pointer-events: none; }
.zk-theme.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-weak); }
.zk-theme.is-disabled { opacity: .55; cursor: not-allowed; }
.zk-theme-sw { display: flex; height: 26px; border-radius: 6px; overflow: hidden; }
.zk-theme-sw span:first-child { flex: 3; } .zk-theme-sw span:last-child { flex: 1; }
.zk-plans-table { font-size: 13px; text-align: center; }
.zk-plans-table th:first-child { text-align: left; font-weight: 400; color: var(--text); }
.zk-plans-table thead th { color: var(--text-strong); font-weight: 700; }
.zk-plans-table .is-current { background: var(--brand-soft); }
