/* IZI Expert — кабинет клиента: раздел «Расчёт ЗП» (этап 4а ТЗ «Расчёт ЗП», п. 10). Классы — только zp- и hnav-. */

:root {
    --zp-primary: #074783;
    --zp-primary-2: #0a5aa3;
    --zp-primary-soft: #e8f0f8;
    --zp-accent: #F77350;
    --zp-accent-soft: #fff1ec;
    --zp-ok: #188038;
    --zp-ok-soft: #e6f4ea;
    --zp-warn: #b45309;
    --zp-warn-ink: #92400e;
    --zp-warn-soft: #fff8e6;
    --zp-warn-line: #f5cf73;
    --zp-err: #d93025;
    --zp-err-soft: #fce8e6;
    --zp-ink: #1f2328;
    --zp-ink-2: #3c4043;
    --zp-muted: #5f6368;
    --zp-faint: #80868b;
    --zp-line: #dadce0;
    --zp-line-2: #e8eaed;
    --zp-bg: #f6f7f9;
    --zp-card: #ffffff;
    --zp-hover: #f1f3f4;
    --zp-r: 10px;
    --zp-r-sm: 6px;
    --zp-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    --zp-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.18);
}

/* ---------- навигация в шапке кабинета ---------- */
.header-nav {
    display: flex;
    gap: 4px;
    height: 42px;
    align-items: stretch;
    border-top: 1px solid var(--border-light, #e8eaed);
    margin: 0 -16px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.hnav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--zp-muted);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.hnav-btn:hover { color: var(--zp-ink); }
.hnav-btn.active { color: var(--zp-primary); border-bottom-color: var(--zp-primary); }
.hnav-btn .zp-ic { flex-shrink: 0; }
.hnav-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--zp-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hnav-badge.need { background: #f2b330; color: #3d2a00; }
.header-nav [hidden] { display: none !important; }
.header-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--zp-line);
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font: inherit;
    font-size: 12px;
    color: var(--zp-primary);
    cursor: pointer;
    white-space: nowrap;
}
.header-switch:hover { background: var(--zp-primary-soft); }

/* ---------- каркас раздела ---------- */
.zp-ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.zp { max-width: 1060px; margin: 0 auto; padding: 14px 12px 40px; width: 100%; color: var(--zp-ink); }
.zp *, .zp *::before, .zp *::after { box-sizing: border-box; }
.zp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.zp-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.zp-title h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 0; color: var(--zp-ink); }
.zp-role { font-size: 12px; color: var(--zp-muted); font-weight: 500; white-space: nowrap; }
.zp-month { display: inline-flex; align-items: center; gap: 2px; background: var(--zp-card); border: 1px solid var(--zp-line); border-radius: 8px; padding: 2px; }
.zp-month b { min-width: 128px; text-align: center; font-size: 14px; font-weight: 600; padding: 0 4px; }
.zp-month select { border: none; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--zp-ink); padding: 6px 2px; cursor: pointer; text-align: center; min-width: 128px; }
.zp-month select:focus { outline: 2px solid var(--zp-primary-soft); border-radius: 6px; }
.zp-iconbtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; border-radius: 6px; color: var(--zp-ink-2); cursor: pointer; }
.zp-iconbtn:hover:not(:disabled) { background: var(--zp-hover); color: var(--zp-primary); }
.zp-iconbtn:disabled { opacity: 0.35; cursor: default; }

.zp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.zp-tabs::-webkit-scrollbar { height: 4px; }
.zp-tabs::-webkit-scrollbar-thumb { background: var(--zp-line); border-radius: 2px; }
.zp-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--zp-line); background: var(--zp-card); color: var(--zp-ink-2);
    font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.zp-tab:hover { border-color: #b9c3cf; color: var(--zp-ink); }
.zp-tab.on { background: var(--zp-primary); border-color: var(--zp-primary); color: #fff; }
.zp-tab.off { color: var(--zp-faint); }
.zp-tab .zp-cnt { background: var(--zp-accent); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.zp-tab.on .zp-cnt { background: #fff; color: var(--zp-primary); }

/* ---------- карточки, кнопки, поля ---------- */
.zp-card { background: var(--zp-card); border: 1px solid var(--zp-line); border-radius: var(--zp-r); box-shadow: var(--zp-shadow); margin-bottom: 12px; overflow: hidden; }
.zp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--zp-line-2); flex-wrap: wrap; }
.zp-card-h h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--zp-ink); }
.zp-card-h h2 .zp-ic { color: var(--zp-primary); }
.zp-card-h .zp-sub { font-size: 12px; color: var(--zp-muted); font-weight: 400; }
.zp-card-b { padding: 14px 16px; }
.zp-card-b.flush { padding: 0; }
.zp-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.zp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: var(--zp-r-sm); border: 1px solid var(--zp-line);
    background: var(--zp-card); color: var(--zp-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.zp-btn:hover:not(:disabled) { background: var(--zp-hover); }
.zp-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.zp-btn.primary { background: var(--zp-primary); border-color: var(--zp-primary); color: #fff; }
.zp-btn.primary:hover:not(:disabled) { background: var(--zp-primary-2); box-shadow: 0 1px 3px rgba(7, 71, 131, 0.25); }
.zp-btn.accent { background: var(--zp-accent); border-color: var(--zp-accent); color: #fff; }
.zp-btn.accent:hover:not(:disabled) { background: #e5623f; }
.zp-btn.ghost { border-color: transparent; background: transparent; color: var(--zp-primary); padding: 0 8px; }
.zp-btn.ghost:hover:not(:disabled) { background: var(--zp-primary-soft); }
.zp-btn.sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.zp-btn.danger { color: var(--zp-err); }
.zp-btn.busy { pointer-events: none; opacity: 0.7; }
.zp-btn.busy .zp-ic { animation: zpSpin 0.9s linear infinite; }
@keyframes zpSpin { to { transform: rotate(360deg); } }

.zp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; background: var(--zp-hover); color: var(--zp-ink-2); }
.zp-chip.ok { background: var(--zp-ok-soft); color: var(--zp-ok); }
.zp-chip.wait { background: var(--zp-primary-soft); color: var(--zp-primary); }
.zp-chip.need { background: var(--zp-warn-soft); color: var(--zp-warn-ink); box-shadow: inset 0 0 0 1px var(--zp-warn-line); }
.zp-chip.err { background: var(--zp-err-soft); color: var(--zp-err); }
.zp-chip.off { background: #f1f3f4; color: var(--zp-faint); }

.zp-muted { color: var(--zp-muted); }
.zp-small { font-size: 12px; }
.zp-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.zp-right { text-align: right; }
.zp-sep { height: 1px; background: var(--zp-line-2); margin: 12px 0; }

/* ---------- обзор: что нужно от клиента, этапы, итоги ---------- */
.zp-needs { display: grid; gap: 8px; margin-bottom: 12px; }
.zp-need { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--zp-r); background: var(--zp-warn-soft); border: 1px solid var(--zp-warn-line); }
.zp-need-ic { width: 36px; height: 36px; border-radius: 50%; background: #fde7b0; color: var(--zp-warn-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.zp-need-t { flex: 1; min-width: 0; }
.zp-need-t b { display: block; font-size: 14px; color: #5a3a00; }
.zp-need-t span { display: block; font-size: 12.5px; color: var(--zp-warn-ink); margin-top: 1px; }

.zp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 18px 10px 14px; }
.zp-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; background: none; border: none; font: inherit; color: inherit; cursor: pointer; }
.zp-step::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--zp-line); z-index: 0; }
.zp-step:first-child::before { display: none; }
.zp-step.done::before { background: #9fd3ae; }
.zp-step-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--zp-line); color: var(--zp-faint); }
.zp-step.done .zp-step-dot { background: var(--zp-ok); border-color: var(--zp-ok); color: #fff; }
.zp-step.current .zp-step-dot { border-color: var(--zp-primary); color: var(--zp-primary); background: var(--zp-primary-soft); }
.zp-step.need .zp-step-dot { border-color: #e9a920; background: #fdecc2; color: var(--zp-warn-ink); }
.zp-step > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.zp-step-l { font-size: 13px; font-weight: 600; color: var(--zp-ink); }
.zp-step-n { font-size: 11.5px; color: var(--zp-muted); line-height: 1.3; max-width: 150px; }
.zp-step.need .zp-step-n { color: var(--zp-warn-ink); font-weight: 600; }

.zp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.zp-kpi { background: var(--zp-card); border: 1px solid var(--zp-line); border-radius: var(--zp-r); padding: 13px 14px; box-shadow: var(--zp-shadow); min-width: 0; }
.zp-kpi span { display: block; font-size: 12px; color: var(--zp-muted); font-weight: 500; }
.zp-kpi b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.4px; margin-top: 3px; color: var(--zp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-kpi small { display: block; font-size: 11.5px; color: var(--zp-faint); margin-top: 2px; }
.zp-kpi.hero { background: linear-gradient(135deg, #074783 0%, #0b5ea8 100%); border-color: #074783; }
.zp-kpi.hero span, .zp-kpi.hero small { color: rgba(255, 255, 255, 0.8); }
.zp-kpi.hero b { color: #fff; }

.zp-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--zp-r); background: linear-gradient(135deg, #f3f8fd 0%, #eef4fb 100%); border: 1px solid #cfe0f1; margin-bottom: 12px; }
.zp-banner-ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--zp-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--zp-shadow); }
.zp-banner h3 { margin: 0 0 4px; font-size: 15px; }
.zp-banner p { margin: 0 0 10px; font-size: 13px; color: var(--zp-ink-2); }
.zp-banner ul { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--zp-ink-2); }
.zp-banner li { margin: 2px 0; }

/* ---------- подсказки ---------- */
.zp-hints { display: grid; gap: 8px; }
.zp-hint { border: 1px solid var(--zp-line); border-left: 3px solid var(--zp-primary); border-radius: var(--zp-r-sm); padding: 10px 12px; background: #fff; }
.zp-hint.rec { border-left-color: var(--zp-accent); }
.zp-hint.info { border-left-color: #9aa0a6; }
.zp-hint-h { display: flex; align-items: flex-start; gap: 8px; }
.zp-hint-h b { flex: 1; font-size: 13.5px; line-height: 1.35; }
.zp-hint-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--zp-primary); background: var(--zp-primary-soft); border-radius: 4px; padding: 1px 6px; white-space: nowrap; margin-top: 1px; }
.zp-hint.rec .zp-hint-k { color: #b4472b; background: var(--zp-accent-soft); }
.zp-hint.info .zp-hint-k { color: var(--zp-muted); background: var(--zp-hover); }
.zp-hint.check .zp-hint-k { color: var(--zp-warn-ink); background: var(--zp-warn-soft); }
.zp-hint p { margin: 4px 0 0; font-size: 13px; color: var(--zp-ink-2); line-height: 1.45; }
.zp-src-t { margin-top: 6px; background: none; border: none; padding: 0; font: inherit; font-size: 12px; color: var(--zp-primary); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.zp-srcs { margin-top: 6px; display: none; gap: 4px; flex-direction: column; }
.zp-hint.open .zp-srcs { display: flex; }
.zp-src { font-size: 12px; color: var(--zp-muted); line-height: 1.4; padding-left: 10px; border-left: 2px solid var(--zp-line-2); }
.zp-src b { color: var(--zp-ink-2); font-weight: 600; }

/* ---------- таблицы и списки ---------- */
.zp-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.zp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.zp-tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--zp-muted); background: #fafbfc; padding: 8px 12px; border-bottom: 1px solid var(--zp-line-2); white-space: nowrap; }
.zp-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--zp-line-2); vertical-align: middle; }
.zp-tbl tr:last-child td { border-bottom: none; }
.zp-tbl tbody tr:hover td { background: #fafbfd; }
.zp-tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zp-tbl tfoot td { font-weight: 700; background: #fafbfc; border-top: 1px solid var(--zp-line); }
.zp-tbl .zp-who b { display: block; font-weight: 600; }
.zp-tbl .zp-who span { display: block; font-size: 11.5px; color: var(--zp-muted); }
.zp-tbl .zp-who .zp-sur { color: var(--zp-warn-ink); white-space: normal; max-width: 260px; }
.zp-tbl tr.click { cursor: pointer; }

.zp-rows { display: flex; flex-direction: column; }
.zp-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--zp-line-2); min-width: 0; }
.zp-row:last-child { border-bottom: none; }
.zp-row.click { cursor: pointer; }
.zp-row.click:hover { background: #fafbfd; }
.zp-row-main { flex: 1; min-width: 0; }
.zp-row-main b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.zp-row-main span { display: block; font-size: 12px; color: var(--zp-muted); margin-top: 1px; }
.zp-row-side { text-align: right; flex-shrink: 0; }
.zp-row-side b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.zp-row-side span { display: block; font-size: 11.5px; color: var(--zp-muted); }
.zp-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--zp-primary-soft); color: var(--zp-primary); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }

.zp-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.zp-kv span { color: var(--zp-muted); }
.zp-kv b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- табель ---------- */
.zp-ts-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.zp-ts-state { display: flex; align-items: center; gap: 10px; }
.zp-ts-state .zp-need-ic { width: 32px; height: 32px; }
.zp-ts-state.ok .zp-need-ic { background: var(--zp-ok-soft); color: var(--zp-ok); }
.zp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--zp-muted); padding: 10px 16px; border-top: 1px solid var(--zp-line-2); }
.zp-legend i { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; border-radius: 4px; font-style: normal; font-size: 10.5px; font-weight: 700; margin-right: 4px; }
.zp-ts { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.zp-ts th, .zp-ts td { padding: 0; text-align: center; border-bottom: 1px solid var(--zp-line-2); }
.zp-ts th { font-weight: 600; font-size: 11px; color: var(--zp-muted); padding: 6px 0; background: #fafbfc; min-width: 26px; }
.zp-ts th.we { color: #c5221f; }
.zp-ts th small { display: block; font-weight: 400; font-size: 10px; }
.zp-ts td { height: 34px; min-width: 26px; }
.zp-ts .zp-ts-name { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left; padding: 6px 10px 6px 12px; min-width: 150px; max-width: 170px; border-right: 1px solid var(--zp-line-2); }
.zp-ts th.zp-ts-name { background: #fafbfc; z-index: 3; }
.zp-ts .zp-ts-name b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-ts .zp-ts-name span { display: block; font-size: 11px; color: var(--zp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.zp-ts .zp-ts-tot { position: sticky; right: 0; background: #fff; border-left: 1px solid var(--zp-line-2); min-width: 56px; padding: 0 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zp-ts th.zp-ts-tot { background: #fafbfc; }
.zp-c { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 4px; font-size: 10.5px; font-weight: 700; padding: 0 2px; }
.zp-c.c-Я { color: #3c4043; background: #f1f3f4; }
.zp-c.c-В { color: #9aa0a6; background: transparent; }
.zp-c.c-П { color: #7e3ab0; background: #f3e8fd; }
.zp-c.c-ОТ { color: #0b57d0; background: #e3edfd; }
.zp-c.c-ДО { color: #5f6368; background: #e8eaed; }
.zp-c.c-Б { color: #b06000; background: #feefc3; }
.zp-c.c-НН, .zp-c.c-ПР { color: #c5221f; background: #fce8e6; }

/* ---------- калькулятор ---------- */
.zp-calc { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 12px; align-items: start; }
.zp-seg { display: inline-flex; background: #eef1f4; border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.zp-seg button { border: none; background: transparent; border-radius: 6px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--zp-muted); cursor: pointer; white-space: nowrap; }
.zp-seg button.on { background: #fff; color: var(--zp-primary); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.zp-seg.full { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
.zp-seg.full button { white-space: normal; }
.zp-amount { position: relative; }
.zp-amount input { font-size: 24px !important; font-weight: 700; padding: 10px 52px 10px 14px !important; letter-spacing: -0.3px; }
.zp-amount em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--zp-muted); font-weight: 600; }
.zp-res-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #074783 0%, #0b5ea8 100%); color: #fff; }
.zp-res-hero span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.zp-res-hero b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.zp-res-hero small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.75); }
.zp-lines { padding: 6px 16px 10px; }
.zp-lines h4 { margin: 10px 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--zp-muted); }
.zp-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dashed var(--zp-line-2); }
.zp-line:last-child { border-bottom: none; }
.zp-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.zp-line.tot { font-weight: 700; border-bottom: none; border-top: 1px solid var(--zp-line); margin-top: 2px; padding-top: 8px; }
.zp-line.muted { color: var(--zp-muted); }
.zp-line.warn { color: var(--zp-warn-ink); }
.zp-cmp { display: grid; grid-template-columns: 1fr 1fr; }
.zp-cmp > div { padding: 12px 16px; }
.zp-cmp > div + div { border-left: 1px solid var(--zp-line-2); }
.zp-cmp h4 { margin: 0 0 6px; font-size: 13px; }
.zp-cmp .on h4 { color: var(--zp-primary); }
.zp-multi { display: grid; gap: 6px; }
.zp-multi-row { display: grid; grid-template-columns: 1fr 92px 34px; gap: 6px; align-items: center; }

/* ---------- формы и окна ---------- */
.zp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zp-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.zp-f.full { grid-column: 1 / -1; }
.zp-f > span { font-size: 12.5px; font-weight: 600; color: var(--zp-ink-2); }
.zp-f > span em { color: var(--zp-err); font-style: normal; }
.zp-f > small { font-size: 11.5px; color: var(--zp-muted); }
.zp-in, .zp-sel, .zp-ta { width: 100%; padding: 9px 11px; border: 1px solid var(--zp-line); border-radius: var(--zp-r-sm); font: inherit; font-size: 14px; background: #fff; color: var(--zp-ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.zp-in:focus, .zp-sel:focus, .zp-ta:focus { outline: none; border-color: var(--zp-primary); box-shadow: 0 0 0 3px rgba(7, 71, 131, 0.12); }
.zp-ta { min-height: 76px; resize: vertical; }
.zp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.zp-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--zp-primary); }
.zp-check small { display: block; color: var(--zp-muted); font-size: 12px; }
.zp-stepper { display: inline-flex; align-items: center; border: 1px solid var(--zp-line); border-radius: var(--zp-r-sm); overflow: hidden; }
.zp-stepper button { width: 36px; height: 36px; border: none; background: #fff; cursor: pointer; color: var(--zp-ink-2); display: flex; align-items: center; justify-content: center; }
.zp-stepper button:hover { background: var(--zp-hover); }
.zp-stepper b { min-width: 34px; text-align: center; font-size: 15px; }
.zp-files { display: flex; flex-direction: column; gap: 6px; }
.zp-drop { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #b9c3cf; border-radius: var(--zp-r-sm); padding: 12px; color: var(--zp-primary); font-size: 13px; font-weight: 600; cursor: pointer; background: #fbfcfe; text-align: center; }
.zp-drop:hover { background: var(--zp-primary-soft); border-color: var(--zp-primary); }
.zp-file { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--zp-line-2); border-radius: var(--zp-r-sm); font-size: 12.5px; background: #fafbfc; }
.zp-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zp-file small { color: var(--zp-muted); }
.zp-err { color: var(--zp-err); font-size: 13px; font-weight: 500; min-height: 0; }
.zp-err:empty { display: none; }
.zp-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--zp-r-sm); background: #f3f6fa; color: var(--zp-ink-2); font-size: 12.5px; line-height: 1.45; }
.zp-note .zp-ic { color: var(--zp-primary); margin-top: 1px; }

.zp-ov { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.42); z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 16px; animation: zpFade 0.15s ease; }
@keyframes zpFade { from { opacity: 0; } to { opacity: 1; } }
.zp-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--zp-shadow-lg); animation: zpUp 0.18s ease; }
.zp-modal.wide { max-width: 820px; }
@keyframes zpUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.zp-modal-h { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--zp-line-2); }
.zp-modal-h .zp-mi { width: 34px; height: 34px; border-radius: 10px; background: var(--zp-primary-soft); color: var(--zp-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.zp-modal-h h3 { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.zp-modal-h h3 small { display: block; font-size: 12px; font-weight: 400; color: var(--zp-muted); margin-top: 1px; }
.zp-modal-b { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.zp-modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--zp-line-2); flex-wrap: wrap; }
.zp-modal-f .zp-left { margin-right: auto; }

.zp-sheet { background: #fff; border: 1px solid var(--zp-line-2); border-radius: 8px; padding: 18px; font-size: 12.5px; line-height: 1.45; overflow-x: auto; }
.zp-sheet table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.zp-sheet th, .zp-sheet td { border: 1px solid #d3d9e1; padding: 5px 7px; }
.zp-sheet th { background: #eef3f9; text-align: left; }
.zp-sheet td.n, .zp-sheet th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zp-sheet tr.tot td { font-weight: 700; background: #fff7e0; }
.zp-sheet h4 { margin: 10px 0 2px; font-size: 13px; }

.zp-empty { text-align: center; padding: 34px 18px; color: var(--zp-muted); }
.zp-empty .zp-ic { color: #b9c3cf; margin-bottom: 8px; }
.zp-empty b { display: block; color: var(--zp-ink); font-size: 15px; margin-bottom: 4px; }
.zp-empty span { display: block; font-size: 13px; max-width: 460px; margin: 0 auto 12px; }
.zp-skel { border-radius: var(--zp-r); background: linear-gradient(90deg, #eef0f3 0%, #f7f8fa 50%, #eef0f3 100%); background-size: 200% 100%; animation: zpShimmer 1.2s ease-in-out infinite; }
@keyframes zpShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.zp-req { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--zp-line-2); }
.zp-req:last-child { border-bottom: none; }
.zp-req-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--zp-primary-soft); color: var(--zp-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.zp-req-m { flex: 1; min-width: 0; }
.zp-req-m > b { font-size: 14px; display: block; }
.zp-req-m > span { font-size: 12.5px; color: var(--zp-muted); display: block; }
.zp-req-ans { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #f3f6fa; font-size: 13px; color: var(--zp-ink-2); white-space: pre-wrap; }
.zp-req-ans b { font-size: 11.5px; color: var(--zp-muted); display: block; font-weight: 600; margin-bottom: 1px; }
.zp-req-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.zp-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; }
.zp-link { background: none; border: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--zp-primary); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.zp-link:hover { text-decoration: underline; }

.zp-menu { position: absolute; z-index: 1600; background: #fff; border: 1px solid var(--zp-line); border-radius: 10px; box-shadow: var(--zp-shadow-lg); padding: 6px; min-width: 230px; }
.zp-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: none; background: none; border-radius: 6px; font: inherit; font-size: 13.5px; color: var(--zp-ink); cursor: pointer; text-align: left; }
.zp-menu button:hover { background: var(--zp-hover); }
.zp-menu button .zp-ic { color: var(--zp-primary); }

.zp-req-bkk { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; font-size: 13px; }
.zp-req-bkk span { color: var(--zp-muted); }
.zp-req-bkk b { font-variant-numeric: tabular-nums; }

/* ---------- адаптив ---------- */
@media (max-width: 860px) {
    .zp-calc { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .zp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zp-steps { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
    .zp-step { flex-direction: row; text-align: left; align-items: center; gap: 12px; }
    .zp-step::before { display: none; }
    .zp-step-dot { width: 28px; height: 28px; }
    .zp-step > div { align-items: flex-start; }
    .zp-step-n { max-width: none; }
    .zp-hide-m { display: none !important; }
    .zp-form { grid-template-columns: 1fr; }
    .zp-ov { align-items: flex-end; padding: 0; }
    .zp-modal, .zp-modal.wide { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; }
    .zp-cmp { grid-template-columns: 1fr; }
    .zp-cmp > div + div { border-left: none; border-top: 1px solid var(--zp-line-2); }
    .zp-title h1 { font-size: 18px; }
}
@media (min-width: 721px) {
    .zp-show-m { display: none !important; }
    .zp-tabs { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 480px) {
    .zp { padding: 10px 8px 32px; }
    .zp-card-h, .zp-card-b { padding-left: 12px; padding-right: 12px; }
    .zp-row, .zp-req { padding-left: 12px; padding-right: 12px; }
    .zp-kpi b { font-size: 18px; }
    .zp-res-hero b { font-size: 20px; }
    .header-nav { margin: 0 -12px; padding: 0 8px; }
}
@media print {
    .header, .header-nav, .zp-top, .zp-tabs, .zp-actions, .notification { display: none !important; }
}
