/*
 * «Прайс → Скелет для сайта» (cp) по макетам pen.dev «cp · Скелет · …»: Поломки (список и карточка), Решения,
 * Модели сайта, Связи, Проверка данных, Экспорт и Импорт Excel. Классы sk-*, цвета — var(--ive-*).
 */
.sk { --sk-show: #189858; --sk-noprice: #F2A93B; --sk-hide: #E5484D; --sk-other: #3B5BDB; --sk-off: #E4E4E8; --sk-radius: 16px;
    display: flex; flex-direction: column; gap: 16px; color: var(--ive-ink); font-size: 14px; }
.dark .sk { --sk-off: #34343B; --sk-other: #6E8BF5; }
.sk button { font: inherit; cursor: pointer; }
.sk svg { flex: none; }
.sk [x-cloak] { display: none !important; }
.sk-spacer { flex: 1 1 auto; }
.sk-muted { color: var(--ive-ink-3); }
.sk-bad-text { color: var(--ive-bad-text); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sk-bad-text svg { width: 15px; height: 15px; }
.sk-empty { padding: 32px 16px; text-align: center; color: var(--ive-ink-3); }

/* Вкладки скелета: «таблетки» с иконкой и счётчиком */
.sk-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sk-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ive-ink); white-space: nowrap; }
.sk-tab:hover { background: var(--ive-bg); }
.sk-tab__icon { width: 16px; height: 16px; color: var(--ive-ink-2); }
.sk-tab__count { font-size: 12px; font-weight: 600; color: var(--ive-ink-3); }
.sk-tab.is-alert .sk-tab__icon { color: var(--ive-pink); }
.sk-tab.is-on { background: var(--ive-ink); color: var(--ive-bg); }
.sk-tab.is-on .sk-tab__icon, .sk-tab.is-on .sk-tab__count { color: var(--ive-bg); opacity: .85; }
.sk-saved { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ive-ink-2); }
.sk-saved svg { width: 16px; height: 16px; color: var(--ive-green); }

/* Общие элементы */
.sk-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: transparent; color: var(--ive-ink-3); }
.sk-search svg { width: 16px; height: 16px; }
.sk-search input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font-size: 14px; color: var(--ive-ink); outline: none; box-shadow: none; }
.sk-search input::placeholder { color: var(--ive-ink-3); }
.sk-search--inline { background: var(--ive-bg); border: 1px solid var(--ive-line); width: 220px; height: 36px; }
.sk-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--ive-line); background: var(--ive-bg); font-size: 13px; font-weight: 600; color: var(--ive-ink); white-space: nowrap; }
.sk-filter svg { width: 15px; height: 15px; color: var(--ive-ink-2); }
.sk-filter:hover { background: var(--ive-bg-2); }
.sk-filter.is-on { background: var(--ive-ink); border-color: var(--ive-ink); color: var(--ive-bg); }
.sk-filter.is-on svg { color: var(--ive-bg); }
.sk-filter--bad svg { color: var(--ive-absent); }
.sk-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--ive-bg); border: 1px solid var(--ive-line); font-size: 12px; font-weight: 600; color: var(--ive-ink); white-space: nowrap; }
.sk-chip svg { width: 12px; height: 12px; }
.sk-chip--pink { background: var(--ive-pink-soft); border-color: transparent; color: var(--ive-pink); }
.sk-chip--bad { background: var(--ive-bad-soft); border-color: transparent; color: var(--ive-bad-text); }
.sk-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sk-chipbtn { height: 30px; padding: 0 11px; border-radius: 9px; border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--ive-ink); }
.sk-chipbtn:hover { background: var(--ive-bg); }
.sk-chipbtn.is-on { background: var(--ive-ink); color: var(--ive-bg); }
.sk-btn, .sk-btn-light, .sk-btn-dark, .sk-btn-pink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 10px; font-size: 13px !important; font-weight: 700; white-space: nowrap; border: 1px solid var(--ive-line); background: var(--ive-bg); color: var(--ive-ink); }
.sk-btn svg, .sk-btn-light svg, .sk-btn-dark svg, .sk-btn-pink svg { width: 15px; height: 15px; }
.sk-btn:hover, .sk-btn-light:hover { background: var(--ive-bg-2); }
.sk-btn-dark, .fi-btn.sk-btn-dark { background: var(--ive-ink) !important; border-color: var(--ive-ink) !important; color: var(--ive-bg) !important; }
.fi-btn.sk-btn-dark .fi-icon { color: var(--ive-bg) !important; }
.sk-btn-pink { background: var(--ive-pink); border-color: var(--ive-pink); color: #fff; cursor: pointer; }
.sk-btn-pink:hover { background: var(--ive-pink-dark); }
.sk-btn-pink:disabled { background: var(--ive-ink-3); border-color: var(--ive-ink-3); cursor: not-allowed; }
.sk-btn-lg { height: 44px; padding: 0 20px; font-size: 14px !important; border-radius: 12px; }
.sk-linkbtn { border: 0; background: none; padding: 0; margin-left: 10px; color: var(--ive-pink); font-weight: 700; }
.sk-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-checkbox { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ive-ink-2); }
.sk-info { display: flex; gap: 10px; align-items: flex-start; padding: 0 4px; font-size: 13px; color: var(--ive-ink-2); }
.sk-info svg { width: 18px; height: 18px; margin-top: 1px; }
.sk-info p { margin: 0; }
.sk-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ive-late-soft); color: var(--ive-warn-text); font-size: 14px; }
.sk-banner b { font-weight: 700; }
.sk-banner__icon { width: 20px; height: 20px; color: var(--ive-late); }
.sk-dd { position: relative; }
.sk-dd__menu { position: absolute; right: 0; top: 38px; z-index: 20; min-width: 200px; padding: 8px; border-radius: 12px; background: var(--ive-bg); border: 1px solid var(--ive-line); box-shadow: 0 12px 32px rgba(20, 20, 24, .12); }
.sk-dd__menu label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 13px; border-radius: 8px; cursor: pointer; }
.sk-dd__menu label:hover { background: var(--ive-bg-2); }

/* Белая панель */
.sk-card-panel { position: relative; background: var(--ive-bg); border: 1px solid var(--ive-line); border-radius: var(--sk-radius); min-width: 0; }
.sk-card-panel__head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; flex-wrap: wrap; }
.sk-card-panel__head > b { font-size: 15px; font-weight: 800; }
.sk-card-panel__foot { padding: 14px; font-size: 13px; color: var(--ive-ink-3); border-top: 1px solid var(--ive-line); }
.sk-panel-box { background: var(--ive-bg); border: 1px solid var(--ive-line); border-radius: var(--sk-radius); min-width: 0; }
.sk-scroll-x { overflow-x: auto; }

/* Поломки: категории слева, список справа */
.sk-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.sk-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.sk-side__label { margin: 14px 0 6px; font-size: 12px; font-weight: 700; color: var(--ive-ink-3); }
.sk-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--ive-ink); }
.sk-cat small { font-size: 12px; font-weight: 600; color: var(--ive-ink-3); }
.sk-cat:hover { background: var(--ive-bg); }
.sk-cat.is-on { background: var(--ive-pink-soft); color: var(--ive-pink); }
.sk-cat--more { font-weight: 600; color: var(--ive-ink-2); }

.sk-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.sk-list th { padding: 10px 10px; text-align: left; font-size: 12px; font-weight: 700; color: var(--ive-ink-3); border-top: 1px solid var(--ive-line); border-bottom: 1px solid var(--ive-line); white-space: nowrap; }
.sk-list td { padding: 11px 10px; border-bottom: 1px solid var(--ive-line); vertical-align: middle; }
.sk-list tbody tr { cursor: pointer; }
.sk-list tbody tr:hover td { background: var(--ive-bg-2); }
.sk-list tbody tr.is-sel td { background: var(--ive-pink-soft); }
.sk-list tbody tr.is-off .sk-list__name { color: var(--ive-ink-3); }
.sk-list__check { width: 36px; padding-left: 14px !important; }
.sk-list__check input { width: 18px; height: 18px; border-radius: 5px; }
.sk-list__narrow { width: 56px; text-align: center !important; }
.sk-list__num { width: 90px; text-align: right !important; }
.sk-list__num a { font-weight: 700; color: var(--ive-ink); }
.sk-list__name { display: block; font-weight: 700; }
.sk-list__slug { display: block; margin-top: 2px; font-size: 12px; color: var(--ive-ink-3); }
.sk-list__where { font-size: 13px; color: var(--ive-ink-2); max-width: 260px; }
.sk-list__price { white-space: nowrap; font-weight: 600; }
.sk-list__price small { display: block; font-size: 12px; }
.sk-sol { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.sk-sol svg { width: 15px; height: 15px; color: var(--ive-ink-2); }
.sk-sol--name { border: 0; background: none; padding: 0; text-align: left; color: var(--ive-ink); }
.sk-switch { position: relative; width: 36px; height: 22px; border-radius: 999px; border: 0; background: var(--ive-line); transition: background .15s; vertical-align: middle; }
.sk-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sk-switch.is-on { background: var(--ive-green); }
.sk-switch.is-on::after { transform: translateX(14px); }
.sk-switch:disabled { opacity: .6; cursor: default; }
.sk-chev svg, .sk-warn-icon svg { width: 18px; height: 18px; }
.sk-chev { color: var(--ive-ink-3); }
.sk-warn-icon { color: var(--ive-late); }

/* Панель действий над выделенным (поломки, связи) */
.sk-bulk { position: sticky; bottom: 16px; z-index: 30; margin: 12px auto; width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--ive-ink); color: var(--ive-bg); box-shadow: 0 16px 40px rgba(20, 20, 24, .28); font-size: 13px; }
.sk-matrix-wrap .sk-bulk[style*="top"] { position: absolute; margin: 0; }
.sk-bulk > b { margin-right: 12px; font-weight: 700; }
.sk-bulk button, .sk-bulk__select { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .1); color: inherit; font-size: 13px; font-weight: 600; }
.sk-bulk button svg { width: 15px; height: 15px; }
.sk-bulk button:hover, .sk-bulk__select:hover { background: rgba(255, 255, 255, .18); }
.sk-bulk__select { max-width: 190px; padding-right: 26px; background-color: rgba(255, 255, 255, .1); }
.sk-bulk__select option { color: var(--ive-ink); background: var(--ive-bg); }
.sk-bulk__x { background: transparent !important; }
.sk-bulk__msg { font-size: 12px; opacity: .75; }

/* Карточка поломки / решения (выезжает справа) */
.sk-card .fi-modal-header > div { display: flex; flex-direction: column-reverse; }
.sk-card .fi-modal-description { margin: 0 0 2px; font-size: 12px; color: var(--ive-ink-3); }
.sk-card .fi-modal-heading { font-size: 24px; font-weight: 800; }
.sk-card .fi-modal-footer { border-top: 1px solid var(--ive-line); }
.sk-card .fi-modal-footer-actions::before { content: 'Попадёт на сайт после «Опубликовать»'; margin-right: auto; align-self: center; font-size: 12px; color: var(--ive-ink-3); }
.sk-card .fi-modal-footer-actions { width: 100%; }
.sk-card .fi-sc-tabs.sk-card-tabs .fi-tabs { border-bottom: 1px solid var(--ive-line); margin-bottom: 4px; }
.sk-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.sk-note p { margin: 0; }
.sk-note__icon { width: 16px; height: 16px; margin-top: 1px; }
.sk-note--warn { background: var(--ive-late-soft); color: var(--ive-warn-text); }
.sk-note--warn .sk-note__icon { color: var(--ive-late); }
.sk-note--info { background: var(--ive-bg-2); color: var(--ive-ink-2); }
.sk-prices { padding: 14px 14px 8px; border: 1px solid var(--ive-line); border-radius: 14px; }
.sk-prices__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.sk-prices__head b { font-weight: 800; }
.sk-prices__head a { font-size: 13px; font-weight: 700; color: var(--ive-pink); }
.sk-prices__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.sk-prices__row > b { font-weight: 700; }
.sk-prices__svc { color: var(--ive-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-prices__svc.is-bad { color: var(--ive-bad-text); }
.sk-prices__sum { font-weight: 700; white-space: nowrap; }
.sk-flags .fi-fo-field { padding: 12px; border-radius: 12px; background: var(--ive-bg-2); height: 100%; }
.sk-flags .fi-sc-text { font-size: 12px; color: var(--ive-ink-3); }
.sk-shown { padding: 14px; border-radius: 14px; background: var(--ive-green-soft); color: var(--ive-green-dark); font-size: 13px; }
.sk-shown b { display: block; font-size: 14px; font-weight: 800; }
.sk-shown p { margin: 6px 0 10px; }
.sk-shown.is-bad { background: var(--ive-bad-soft); color: var(--ive-bad-text); }
.sk-shown__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-shown__chips .sk-chip { border-color: transparent; }
.sk-card-models { display: flex; flex-direction: column; gap: 14px; }
.sk-card-models h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; }
.sk-card-models__list { display: flex; flex-wrap: wrap; gap: 4px; }
.sk-mchip { padding: 3px 8px; border-radius: 8px; font-size: 12px; background: var(--ive-green-soft); color: var(--ive-green-dark); }
.sk-mchip--no_price { background: var(--ive-late-soft); color: var(--ive-warn-text); }
.sk-mchip--hidden { background: var(--ive-bad-soft); color: var(--ive-bad-text); text-decoration: line-through; }
.sk-mchip.is-other { background: var(--ive-blue-soft); color: var(--ive-blue); }
.sk-link-more { font-size: 13px; font-weight: 700; color: var(--ive-pink); }
.sk-card-history { display: flex; flex-direction: column; }
.sk-card-history__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ive-line); font-size: 13px; }
.sk-card-history__row.is-reverted span:nth-child(2) { text-decoration: line-through; color: var(--ive-ink-3); }

/* Решения: сетка «решение × устройство» и выбор строки прайса */
.sk-sol-grid td { padding: 10px; }
.sk-sol-grid tbody tr { cursor: default; }
.sk-sol-grid tbody tr.is-off .sk-sol--name b { color: var(--ive-ink-3); }
.sk-sol-cell { min-width: 140px; max-width: 200px; }
.sk-svc { display: inline-flex; align-items: flex-start; gap: 5px; border: 0; background: none; padding: 2px 0; text-align: left; font-size: 12px; line-height: 1.3; color: var(--ive-ink); }
.sk-svc svg { width: 13px; height: 13px; margin-top: 2px; color: var(--ive-green); }
.sk-svc:hover span { text-decoration: underline; }
.sk-svc.is-broken, .sk-svc.is-broken svg { color: var(--ive-bad-text); }
.sk-svc:disabled { cursor: default; }
.sk-pop { position: absolute; z-index: 40; width: 310px; padding: 8px; border-radius: 14px; background: var(--ive-bg); border: 1px solid var(--ive-line); box-shadow: 0 18px 44px rgba(20, 20, 24, .16); }
.sk-pop .sk-search { background: var(--ive-bg-2); height: 36px; }
.sk-pop__list { max-height: 280px; overflow: auto; margin: 6px 0; }
.sk-pop__item { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 13px; color: var(--ive-ink); }
.sk-pop__item small { font-size: 12px; color: var(--ive-ink-2); white-space: nowrap; }
.sk-pop__item:hover { background: var(--ive-bg-2); }
.sk-pop__item.is-on { background: var(--ive-pink-soft); font-weight: 700; }
.sk-pop__empty { padding: 10px; font-size: 13px; }
.sk-pop__foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px 2px; border-top: 1px solid var(--ive-line); font-size: 13px; font-weight: 700; }
.sk-pop__new { color: var(--ive-pink); }
.sk-pop__unlink { border: 0; background: none; padding: 0; color: var(--ive-bad-text); font-weight: 700; }

/* Модели: дерево и карточка */
.sk-split--models { grid-template-columns: 300px minmax(0, 1fr); }
.sk-tree { padding: 10px; position: sticky; top: 16px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; }
.sk-tree__top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sk-tree__top .sk-search { flex: 1; }
.sk-tree__list { overflow: auto; }
.sk-node { display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px calc(4px + var(--depth) * 16px); border-radius: 9px; font-size: 13px; }
.sk-node:hover { background: var(--ive-bg-2); }
.sk-node.is-on { background: var(--ive-pink-soft); }
.sk-node.is-on .sk-node__name { color: var(--ive-pink); }
.sk-node.is-off .sk-node__name { color: var(--ive-ink-3); }
.sk-node.is-section .sk-node__name { font-weight: 700; }
.sk-node__name { flex: 1; min-width: 0; border: 0; background: none; padding: 5px 0; text-align: left; color: var(--ive-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-node small { font-size: 12px; color: var(--ive-ink-3); }
.sk-node__caret { border: 0; background: none; padding: 2px; color: var(--ive-ink-2); display: inline-flex; }
.sk-node__caret svg { width: 14px; height: 14px; transition: transform .12s; }
.sk-node__caret.is-open svg { transform: rotate(90deg); }
.sk-node__grip { display: inline-flex; color: var(--ive-ink-3); cursor: grab; }
.sk-node__grip svg { width: 14px; height: 14px; }
.sk-node__warn { color: var(--ive-late); display: inline-flex; }
.sk-node__warn svg { width: 15px; height: 15px; }
.sk-model { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.sk-model__head { display: flex; align-items: center; gap: 14px; }
.sk-model__head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.sk-model__head p { margin: 2px 0 0; font-size: 13px; }
.sk-model__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ive-bg-2); display: grid; place-items: center; color: var(--ive-ink-3); }
.sk-model__icon svg { width: 24px; height: 24px; }
.sk-model fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sk-model__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sk-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ive-ink-2); }
.sk-field input, .sk-field select, .sk-field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ive-line); background: var(--ive-bg); font-size: 14px; font-weight: 500; color: var(--ive-ink); }
.sk-field input:focus, .sk-field select:focus, .sk-field textarea:focus { border-color: var(--ive-pink); outline: none; box-shadow: none; }
.sk-input-icon { position: relative; display: block; }
.sk-input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ive-ink-3); pointer-events: none; }
.sk-input-icon input, .sk-input-icon select { padding-left: 34px; }
.sk-pricebox { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ive-green-soft); color: var(--ive-green-dark); }
.sk-pricebox__icon { width: 20px; height: 20px; }
.sk-pricebox b { display: block; font-size: 14px; font-weight: 800; }
.sk-pricebox small { display: block; margin-top: 2px; font-size: 12px; }
.sk-pricebox.is-bad { background: var(--ive-bad-soft); color: var(--ive-bad-text); }
.sk-model__flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sk-flag { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sk-flag b { display: block; font-size: 13px; font-weight: 700; }
.sk-flag small { display: block; font-size: 12px; color: var(--ive-ink-3); }
.sk-switch-input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 36px; height: 22px; border-radius: 999px; background: var(--ive-line); border: 0; cursor: pointer; transition: background .15s; }
.sk-switch-input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sk-switch-input:checked { background: var(--ive-green); }
.sk-switch-input:checked::after { transform: translateX(14px); }
.sk-switch-input:focus { outline: none; box-shadow: none; }
.sk-model__texts { display: flex; flex-direction: column; gap: 12px; }
.sk-model__texts h3 { margin: 4px 0 0; font-size: 15px; font-weight: 800; color: var(--ive-ink); }
.sk-model__foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ive-line); font-size: 12px; }

/* Связи: устройства, легенда, матрица */
.sk-seg { display: inline-flex; gap: 2px; }
.sk-seg button { height: 34px; padding: 0 13px; border: 0; border-radius: 10px; background: none; font-size: 13px; font-weight: 600; color: var(--ive-ink-2); }
.sk-seg button:hover { color: var(--ive-ink); }
.sk-seg button.is-on { background: var(--ive-bg); color: var(--ive-ink); font-weight: 800; box-shadow: 0 1px 3px rgba(20, 20, 24, .1); }
.sk-select { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--ive-line); background: var(--ive-bg); font-size: 13px; font-weight: 700; }
.sk-select select { border: 0; background-color: transparent; font-size: 13px; font-weight: 700; padding: 4px 28px 4px 2px; box-shadow: none; }
.sk-warnchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--ive-late-soft); color: var(--ive-warn-text); font-size: 13px; font-weight: 700; }
.sk-warnchip svg { width: 15px; height: 15px; color: var(--ive-late); }
.sk-warnchip.is-on { box-shadow: inset 0 0 0 2px var(--ive-late); }
.sk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 12px; color: var(--ive-ink-2); }
.sk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sk-legend__hint { margin-left: auto; color: var(--ive-ink-3); }
.sk-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sk-dot--shown { background: var(--sk-show); }
.sk-dot--no_price { background: var(--sk-noprice); }
.sk-dot--hidden { background: var(--sk-hide); }
.sk-dot--other { background: var(--sk-other); }
.sk-dot--off { background: var(--sk-off); }
.sk-matrix-wrap { padding: 4px 0; }
.sk-matrix-scroll { overflow: auto; max-height: calc(100vh - 330px); }
.sk-matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; user-select: none; }
.sk-matrix th, .sk-matrix td { border-bottom: 1px solid var(--ive-line); }
.sk-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--ive-bg); padding: 12px 4px 8px; font-size: 11px; font-weight: 700; color: var(--ive-ink); text-align: center; vertical-align: bottom; min-width: 44px; max-width: 64px; line-height: 1.2; cursor: pointer; }
.sk-matrix thead th.is-hover { color: var(--ive-pink); background: var(--ive-pink-soft); }
.sk-matrix thead th.is-off { color: var(--ive-ink-3); }
.sk-matrix thead th em { font-style: normal; color: var(--ive-late); margin-left: 2px; }
.sk-matrix__corner { left: 0; z-index: 3 !important; text-align: left !important; padding-left: 14px !important; min-width: 280px; color: var(--ive-ink-3) !important; cursor: default !important; }
.sk-matrix__row { position: sticky; left: 0; z-index: 1; background: var(--ive-bg); padding: 7px 12px 7px 14px; text-align: left; min-width: 280px; max-width: 320px; cursor: pointer; border-right: 1px solid var(--ive-line); }
.sk-matrix__row b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-matrix__row small { display: block; font-size: 11px; color: var(--ive-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-matrix__row small.is-bad { color: var(--ive-bad-text); }
.sk-matrix__row.is-off b { color: var(--ive-ink-3); }
.sk-cell { padding: 0; height: 44px; text-align: center; cursor: pointer; }
.sk-cell i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: middle; background: var(--sk-off); }
.sk-cell--shown i, .sk-cell--forced i { background: var(--sk-show); }
.sk-cell--no_price i { background: var(--sk-noprice); }
.sk-cell--hidden i { background: var(--sk-hide); }
.sk-cell.is-other i { background: var(--sk-other); }
.sk-cell.is-manual i { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.sk-cell:hover { background: var(--ive-bg-2); }
.sk-cell.is-sel { background: var(--ive-blue-soft); box-shadow: inset 0 0 0 1px var(--sk-other); }

/* Проверка данных */
.sk-checks { display: flex; flex-direction: column; gap: 10px; }
.sk-check { padding: 14px 16px; border-radius: 14px; background: var(--ive-bg); border: 1px solid var(--ive-line); }
.sk-check__head { display: flex; align-items: center; gap: 14px; }
.sk-check__icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--ive-bg); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(20, 20, 24, .08); }
.sk-check__icon svg { width: 20px; height: 20px; }
.sk-check__text { flex: 1; min-width: 0; }
.sk-check__text b { font-size: 15px; font-weight: 800; }
.sk-check__text p { margin: 3px 0 0; font-size: 13px; color: var(--ive-ink-2); }
.sk-check__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sk-check__items { margin: 12px 0 0 50px; padding: 0; list-style: none; columns: 2; font-size: 13px; color: var(--ive-ink-2); }
.sk-check__items li { padding: 2px 0; break-inside: avoid; }
.sk-check--bad { background: var(--ive-bad-soft); border-color: transparent; }
.sk-check--bad .sk-check__text b, .sk-check--bad .sk-check__icon { color: var(--ive-bad-text); }
.sk-check--warn { background: var(--ive-late-soft); border-color: transparent; }
.sk-check--warn .sk-check__text b, .sk-check--warn .sk-check__icon { color: var(--ive-warn-text); }
.sk-check--info .sk-check__icon { color: var(--ive-ink-2); }
.sk-check--ok { background: var(--ive-green-soft); border-color: transparent; }
.sk-check--ok .sk-check__text b, .sk-check--ok .sk-check__icon { color: var(--ive-green-dark); }

/* Импорт */
.sk-import__title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sk-import__title h2 { margin: 0; font-size: 20px; font-weight: 800; }
.sk-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ive-ink-2); }
.sk-back svg { width: 16px; height: 16px; }
.sk-steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ive-ink-3); }
.sk-steps li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sk-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.sk-steps i svg { width: 14px; height: 14px; }
.sk-steps li.is-done { color: var(--ive-ink); }
.sk-steps li.is-done i { background: var(--ive-green); color: #fff; }
.sk-steps li.is-on { color: var(--ive-ink); font-weight: 800; }
.sk-steps li.is-on i { background: var(--ive-pink); color: #fff; }
.sk-steps__sep svg { width: 14px; height: 14px; }
.sk-import__drop { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; border: 2px dashed var(--ive-line); border-radius: 18px; background: var(--ive-bg); text-align: center; }
.sk-import__drop p { max-width: 560px; margin: 0; font-size: 13px; }
.sk-import__icon { width: 40px; height: 40px; color: var(--ive-pink); }
.sk-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sk-stat { padding: 14px 14px 12px; border-radius: 14px; background: var(--ive-bg); }
.sk-stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.sk-stat span { font-size: 12px; font-weight: 600; }
.sk-stat--good { background: var(--ive-green-soft); color: var(--ive-green-dark); }
.sk-stat--bad { background: var(--ive-bad-soft); color: var(--ive-bad-text); }
.sk-stat.is-zero { color: var(--ive-ink-3); }
.sk-import__cols { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sk-import__todo { display: flex; flex-direction: column; gap: 10px; }
.sk-import__todo h3 { margin: 0; font-size: 15px; font-weight: 800; }
.sk-todo { padding: 14px; border-radius: 14px; background: var(--ive-bg); font-size: 13px; }
.sk-todo > b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }
.sk-todo > b svg { width: 18px; height: 18px; }
.sk-todo p { margin: 6px 0 10px; color: var(--ive-ink-2); overflow-wrap: anywhere; }
.sk-todo > div { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-todo ul { margin: 10px 0 0; padding-left: 18px; color: var(--ive-ink-2); }
.sk-todo .sk-btn-dark, .sk-todo .sk-btn-light { height: 30px; font-size: 12px !important; }
.sk-todo--bad { background: var(--ive-bad-soft); }
.sk-todo--bad > b { color: var(--ive-bad-text); }
.sk-todo--warn { background: var(--ive-late-soft); }
.sk-todo--warn > b { color: var(--ive-warn-text); }
.sk-todo--blue { background: var(--ive-blue-soft); }
.sk-todo--blue > b { color: var(--ive-blue); }
.sk-import__changes { min-height: 300px; }
.sk-pills { display: flex; gap: 4px; }
.sk-pills button { height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--ive-bg-2); font-size: 12px; font-weight: 700; color: var(--ive-ink); }
.sk-pills button.is-on { background: var(--ive-ink); color: var(--ive-bg); }
.sk-change-row { display: grid; grid-template-columns: 24px 130px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--ive-line); font-size: 13px; }
.sk-change-row b { display: block; font-weight: 700; }
.sk-change-row small { display: block; color: var(--ive-ink-2); overflow-wrap: anywhere; }
.sk-change-row__type { color: var(--ive-ink-3); }
.sk-change-row__icon { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; }
.sk-change-row__icon.is-new { background: var(--ive-green-soft); color: var(--ive-green); }
.sk-change-row__icon.is-upd { background: var(--ive-blue-soft); color: var(--ive-blue); }
.sk-change-row__icon.is-del { background: var(--ive-bad-soft); color: var(--ive-bad-text); }
.sk-import__foot { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--ive-bg); border: 1px solid var(--ive-line); }
.sk-import__foot p { margin: 0; max-width: 520px; font-size: 13px; color: var(--ive-ink-2); }

/* Журнал */
.sk-change { width: 100%; font-size: 13px; border-collapse: collapse; }
.sk-change th { padding: 6px 8px; text-align: left; font-weight: 600; color: var(--ive-ink-3); border-bottom: 1px solid var(--ive-line); }
.sk-change td { padding: 6px 8px; border-bottom: 1px solid var(--ive-line); vertical-align: top; }

/* Экспорт (окно) */
.sk-export-modal .fi-modal-heading { font-size: 24px; font-weight: 800; }
.sk-sheets .fi-fo-checkbox-list-option { padding: 12px 14px; border: 1px solid var(--ive-line); border-radius: 12px; }
.sk-sheets .fi-fo-checkbox-list-option-label { font-weight: 800; }
.sk-export-modal .sk-note { padding: 12px 14px; border-radius: 12px; background: var(--ive-bg-2); font-size: 12px; color: var(--ive-ink-2); }
.sk-filename { font-size: 13px; color: var(--ive-ink-2); }

@media (max-width: 1100px) {
    .sk-split, .sk-split--models, .sk-import__cols { grid-template-columns: minmax(0, 1fr); }
    .sk-side, .sk-tree { position: static; max-height: none; }
    .sk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sk-model__grid, .sk-model__flags { grid-template-columns: minmax(0, 1fr); }
    .sk-legend__hint { margin-left: 0; }
}
