/* ---------- Настройки: уведомления (K1OvH), короткие ссылки (ajRoF) ---------- */
.ns-cols { grid-template-columns: minmax(0, 1fr) 360px; }
.ns-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.ns .ive-seg { background: var(--ive-bg-2); }
.ns-select { position: relative; display: inline-flex; }
.ns-select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--ive-line); border-radius: 10px; background: var(--ive-bg); color: var(--ive-ink); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 34px 8px 12px; cursor: pointer; }
.ns-select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--ive-ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.ns-select--wide { display: flex; }
.ns-select--wide select { width: 100%; border: 0; background: var(--ive-bg-2); font-weight: 500; padding: 10px 34px 10px 12px; }

.ns-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ns-table thead th { background: var(--ive-bg-2); padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--ive-ink-3); text-align: left; }
.ns-table thead th:first-child { border-radius: 10px 0 0 10px; }
.ns-table thead th:last-child { border-radius: 0 10px 10px 0; }
.ns-table .ns-group th { padding: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ive-ink-3); text-align: left; }
.ns-row { cursor: pointer; }
.ns-row td { padding: 7px 10px; border-bottom: 1px solid var(--ive-line); vertical-align: middle; color: var(--ive-ink); }
.ns-row:hover td { background: var(--ive-bg-2); }
.ns-row.is-picked td { background: var(--ive-pink-soft); border-bottom-color: transparent; }
.ns-row.is-picked td:first-child { border-radius: 10px 0 0 10px; }
.ns-row.is-picked td:last-child { border-radius: 0 10px 10px 0; }
.ns-row td b { display: block; font-weight: 600; }
.ns-row td small, .ns-rcp small { display: block; margin-top: 2px; font-size: 12px; color: var(--ive-ink-3); }
.ns-rcp { width: 196px; font-weight: 500; }
.ns-c { width: 92px; text-align: center !important; }
.ns-table thead th:last-child, .ns-row td:last-child { width: 48px; }
.ns-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ive-bg-2); color: var(--ive-ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ns-pill--warn { background: var(--ive-late-soft); color: var(--ive-warn-text); }
.ns-pill--ok { background: var(--ive-green-soft); color: var(--ive-green-dark); }
.ns-hint { display: flex; align-items: flex-start; gap: 8px; margin: 12px 10px 0; font-size: 12px; color: var(--ive-ink-3); }
.ns-hint .fi-icon, .ns-info .fi-icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* Переключатели: кнопка в строке и чекбокс в панели */
.ns-switch, .ns-check { appearance: none; -webkit-appearance: none; position: relative; display: inline-block; width: 38px; height: 22px; flex: none; border: 0; border-radius: 999px; background: #D5D8DE; cursor: pointer; padding: 0; margin: 0; vertical-align: middle; transition: background .15s; }
.ns-switch::after, .ns-check::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ns-switch.is-on, .ns-check:checked { background: var(--ive-pink); }
.ns-switch.is-on::after, .ns-check:checked::after { transform: translateX(16px); }
.ns-switch.is-locked, .ns-check:disabled { opacity: .4; cursor: not-allowed; }
.dark .ns-switch:not(.is-on), .dark .ns-check:not(:checked) { background: #3A3A42; }

/* Правая панель */
.ns-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.ns-side__head { display: flex; justify-content: space-between; gap: 10px; }
.ns-side__head .ive-panel__title { line-height: 1.25; }
.ns-side__head small { display: block; margin-top: 4px; font-size: 12px; color: var(--ive-ink-3); word-break: break-all; }
.ns-kv { margin: 0; display: flex; flex-direction: column; }
.ns-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ive-line); font-size: 13px; }
.ns-kv dt { color: var(--ive-ink-2); }
.ns-kv dd { margin: 0; font-weight: 600; color: var(--ive-ink); text-align: right; }
.ns-label { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--ive-ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ns-field { display: flex; flex-direction: column; gap: 8px; }
.ns-field .ns-label { margin: 0; text-transform: none; letter-spacing: 0; }
.ns-field small, .ns-sw-row small { font-size: 12px; color: var(--ive-ink-3); }
.ns-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.ns-sw-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ns-sw-row b { font-size: 13px; font-weight: 600; color: var(--ive-ink); }
.ns-sw-row.is-disabled { cursor: default; }
.ns-info { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--ive-blue-soft); color: var(--ive-blue); font-size: 12px; font-weight: 500; line-height: 1.4; }
.ns-info .fi-icon { width: 16px; height: 16px; }
.ns-reset { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ive-ink-2); }
.ns-side__btns { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.ns-side__btns > * { flex: 1; }
.ns-side__btns .fi-btn { width: 100%; justify-content: center; border-radius: 10px; min-height: 41px; font-size: 13px; font-weight: 600; box-shadow: none; }
.ns-side__btns .ive-btn { border-radius: 10px; font-size: 13px; }

@media (max-width: 1100px) {
  .ns-cols { grid-template-columns: minmax(0, 1fr); }
  .ns-side { position: static; }
}
.ns-side__btns .fi-btn .fi-btn-label, .ns-side__btns .fi-btn { white-space: nowrap; }
.ns-side__btns .fi-btn:not(.fi-color-primary) { background: var(--ive-bg); border: 1px solid var(--ive-line); color: var(--ive-ink); }
.ns-side__btns .fi-btn:not(.fi-color-primary):hover { background: var(--ive-bg-2); }
.ns > .ns-bar .ive-seg { background: var(--ive-bg); }

/* ---------- Короткие ссылки (ajRoF): таблица + панель справа ---------- */
.sl-cols > .fi-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) 360px !important; gap: 18px !important; align-items: start; }
.sl-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.sl-side__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sl-side__head .ive-panel__title { word-break: break-all; }
.sl-x { border: 0; background: none; padding: 2px; color: var(--ive-ink-3); }
.sl-x .fi-icon { width: 18px; height: 18px; }
.sl-qr { display: flex; gap: 14px; align-items: center; }
.sl-qr img { flex: none; width: 120px; height: 120px; border-radius: 12px; background: #fff; padding: 6px; border: 1px solid var(--ive-line); }
.sl-qr__btns { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sl-qr__btns .ive-btn { padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.sl-qr__btns .ive-btn .fi-icon { width: 15px; height: 15px; color: var(--ive-ink-2); }
.sl-qr__btns .sl-copy { background: var(--ive-bg-2); border-color: var(--ive-bg-2); }
.sl-form .fi-sc { gap: 12px !important; }
.sl-form .fi-fo-field-label-content { font-size: 12px; font-weight: 700; color: var(--ive-ink-3); }
.sl-chart { display: flex; flex-direction: column; gap: 8px; }
.sl-chart__head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.sl-chart__head span { font-weight: 700; color: var(--ive-ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sl-chart__head b { font-weight: 700; color: var(--ive-ink); }
.sl-chart small { font-size: 12px; color: var(--ive-ink-3); }
.sl-bars { height: 70px; display: flex; align-items: flex-end; gap: 3px; }
.sl-bars i { flex: 1; min-width: 0; background: var(--ive-pink); border-radius: 2px; }
.sl-bars i.is-zero { background: var(--ive-line); }
.sl-side__btns { display: flex; gap: 10px; padding-top: 4px; }
.sl-side__btns .ive-btn { border-radius: 10px; font-size: 13px; }
@media (max-width: 1100px) {
  .sl-cols > .fi-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .sl-side { position: static; }
}
.sl-cols .fi-ta-header-cell, .sl-cols .fi-ta-cell { padding-left: 8px !important; padding-right: 8px !important; }
.sl-cols .fi-ta-header-cell:first-child, .sl-cols .fi-ta-cell:first-child { padding-left: 16px !important; }
.sl-cols .fi-ta-header-cell:last-child, .sl-cols .fi-ta-cell:last-child { padding-right: 16px !important; width: 1%; }

/* Короткие ссылки: счётчики и журнал действий в карточке (макет ajRoF) */
.sl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sl-stats > div { background: var(--ive-bg-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sl-stats span { font-size: 12px; font-weight: 700; color: var(--ive-ink-3); }
.sl-stats b { font-size: 18px; font-weight: 800; color: var(--ive-ink); }
.sl-log { display: flex; flex-direction: column; gap: 8px; }
.sl-hist { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.sl-hist__row { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--ive-line); }
.sl-hist__row:last-child { border-bottom: 0; padding-bottom: 0; }
.sl-hist__row small { font-size: 12px; font-weight: 600; color: var(--ive-ink-3); }
.sl-hist__row span { font-size: 13px; line-height: 1.35; color: var(--ive-ink); overflow-wrap: anywhere; }
.sl-hist__empty { margin: 0; font-size: 13px; color: var(--ive-ink-3); }
.sl-addr { display: flex; flex-direction: column; gap: 4px; background: var(--ive-bg-2); border-radius: 12px; padding: 10px 12px; }
.sl-addr span { font-size: 12px; font-weight: 700; color: var(--ive-ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sl-addr b { font-size: 13px; font-weight: 600; color: var(--ive-ink); overflow-wrap: anywhere; }
.sl-addr small { font-size: 12px; color: var(--ive-ink-3); }
