/* Импорт переменных и компонентов */
@import url('variables.css');
@import url('components.css');
@import url('layouts.css');
@import url('reports-specific.css');

/* Специфичные стили для отчетов */
body {
    background-color: var(--c-bg-body) !important;
    font-family: var(--font-ui);
}

/* Layout */
.admin-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    align-items: stretch;
    background-color: #42464E;
}

/* Sidebar */
.sidebar {
    width: 320px;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    font-family: sans-serif;
    background: #42464E;
    color: white;
}

.white-sidebar {
    width: 320px;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh; /* фактическая высота окна (учитывает панели браузера) */
    display: flex;
    flex-direction: column;
    z-index: 1000;
    font-family: sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

/* Common Sidebar Elements */
.sidebar .profile,
.sidebar .menu-content {
    display: flex;
    align-items: center;
}

.sidebar .profile {
    margin-bottom: 10px;
}

.sidebar .avatar {
    background: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.sidebar .username {
    font-weight: bold;
}

.sidebar a,
.sidebar button {
    font-family: Inter, sans-serif;
    font-weight: 600;
    display: block;
    width: 100%;
    color: white;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
    transition: background var(--trans-fast);
    text-decoration: none;
    opacity: 0.9;
}

.sidebar a:hover,
.sidebar button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.15s;
    border-radius: 10px;
}

/* Scrollable Areas */
#sourceList {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scroll-behavior: smooth;
    max-height: calc(100vh - 240px);
    width: 100%;
    box-sizing: border-box;
}

#sourceList::-webkit-scrollbar {
    width: 6px;
}

#sourceList::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

#sourceList::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Menu Elements */
.menu-content {
    gap: 8px;
}

.menu-content svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
}

.menu-toggle .arrow {
    float: right;
    transition: transform var(--trans-fast);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.menu-toggle.active .arrow {
    transform: rotate(90deg);
}

.label,
.label_2,
.label_3 {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    margin-left: 5px;
}

.label_3 {
    font-size: 14px !important;
    color: #121212;
}

.label {
    border-radius: 10px;
    margin-left: 5px;
}

.menu-toggle{
    border-radius: 10px;
}

.menu-content {
    margin-left: 5px;
    padding: 10px 0;
}

/* Main Content */
.admin-main {
    width: calc(100% - 320px);
    margin-left: 320px;
    padding: 20px 32px;
    background-color: #E5E7EA;
    color: #1c1e21;
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Cards & Boxes */
.dashboard-card {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    padding: 24px;
    margin-bottom: 32px;
    border-radius: var(--radius-sm);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.info-box {
    padding: 12px 16px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #D9D9D9;
    padding-top: 16px;
}

.info-box strong {
    display: block;
    font-size: 14px;
    color: #6a737d;
    margin-bottom: 4px;
}

/* Tickets */
.ticket-item {
    background: #EFEFEF;
    border: 1px solid #C5C5C5;
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 12px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.ticket-item.is-highlighted {
    /* мягкая внешняя тень вокруг карточки */
    background-color: #EFEFEF !important; /* сохраняем исходный фон */
    border-color: #B9BDC5 !important;     /* немного выделим границу */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.10);
}

.ticket-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.ticket-text {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #121212;
    margin: 0;
}



.ticket-body p {
    margin: 8px 0;
    color: #1c1e21;
}

/* Utility Classes */
.border-none {
    border-top: none;
}

.cabinet {
    background-color: #7F8189;
}

.hidden {
    display: none !important;
}

.clickable {
    border-radius: 10px;
    margin-left: 5px;
}

.submenu {
    display: none;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Styles */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: var(--c-accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar,
    .white-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        height: 100vh;
        min-height: 100vh;
        min-height: 100dvh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active,
    .white-sidebar.active {
        width: 100%;
        left: 0;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
        padding: 70px 15px 20px;
    }

    .sidebar .avatar {
        margin-left: 45px;
    }

    .form-row {
        flex-direction: column;
    }

    .half, .form-row input {
        width: 100% !important;
    }

    .search-layout {
        flex-direction: column;
        gap: 10px;
    }

    .search-title, .search-input {
        width: 100% !important;
    }

    .table-responsive {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .navigation {
        margin-left: 45px;
    }

    #limitModal > div,
    #chatModal > div,
    #visitModal > div {
        width: 90%;
        max-width: 100%;
        padding: 20px;
    }

    .menu-content {
        font-size: 14px;
    }
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

/* Typography */
.form-title {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 100%;
    margin: 15px 0;
    color: #121212;
}

/* Interactive Elements */
.source-item {
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 6px 8px;
    border-radius: 6px;
}

@media (max-width: 992px) {
    .info-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .info-boxes {
        grid-template-columns: repeat(1, 1fr);
    }
}

.source-item:hover {
    background-color: #F0F0F0;
    text-decoration: none;
}

/* Токены (если нужно): повесь на <body class="al-theme-leak"> */
.al-theme-leak { --al-text-dark:#121212; --al-text-muted:#42464E; }

/* Видимость */
.al-hidden-leak { display: none !important; }

/* Текст/типы */
.al-text-dark-leak  { color: var(--al-text-dark, #121212) !important; }
.al-text-muted-leak { color: var(--al-text-muted, #42464E) !important; }
.al-text-center-leak{ text-align: center; }
.al-fw-500-leak     { font-weight: 500; }
.al-fs-22-leak      { font-size: 22px; }
.al-fs-17-leak      { font-size: 17px; }

/* Отступы/гепы/границы */
.al-mt-16-leak { margin-top: 16px; }
.al-mb-16-leak { margin-bottom: 16px; }
.al-mb-8-leak  { margin-bottom: 8px; }
.al-mt-10-leak { margin-top: 10px; }
.al-mt-20-leak { margin-top: 20px; }
.al-pt-15-leak { padding-top: 15px; }
.al-border-top-leak { border-top: 1px solid #555; }

/* Флексы/курсор/линки/кнопки */
.al-flex-center-leak   { display: flex; align-items: center; }
.al-flex-between-leak  { display: flex; align-items: center; justify-content: space-between; }
.al-gap-12-leak        { gap: 12px; }
.al-col-gap-16-leak    { display: flex; flex-direction: column; gap: 16px; }
.al-cursor-pointer-leak{ cursor: pointer; }
.al-link-clean-leak    { text-decoration: none; }

/* Сброс кнопок (вместо инлайнов: background:none; border:none; padding:0; cursor:pointer) */
.al-btn-reset-leak { background: none; border: none; padding: 0; cursor: pointer; }

/* Инпут (замена большого inline-блока) */
.al-input-leak {
  width: 100%; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: 6px;
  margin-bottom: 20px; font-size: 14px;
}

/* универсальные утилиты для js */
.hidden { display: none !important; }
.rot-0  { transform: rotate(0deg); }
.rot--90{ transform: rotate(-90deg); }


.year-content {
    scroll-behavior: smooth;
}

.ticket-item {
    transition: background-color 0.2s ease;
}

.fssp-year-content {
    max-height: 300px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* === DF utility classes (для замены inline-стилей) === */
.df-mt-16{margin-top:16px!important;}
.df-mb-16{margin-bottom:16px!important;}
.df-mb-8{margin-bottom:8px!important;}
.df-mb-10{margin-bottom:10px!important;}
.df-mb-15{margin-bottom:15px!important;}
.df-mt-20{margin-top:20px!important;}
.df-mt-15{margin-top:15px!important;}
.df-mt-5{margin-top:5px!important;}
.df-w-100{width:100%!important;}
.df-ml-8{margin-left:8px!important;}
.df-ml-12{margin-left:12px!important;}
.df-ml-16{margin-left:16px!important;}

.df-btn-ghost-flex{background:none!important;border:none!important;cursor:pointer!important;padding:0!important;display:flex!important;align-items:center!important;}
.df-no-underline{text-decoration:none!important;}
.df-pointer{cursor:pointer!important;}
.df-fw-500{font-weight:500!important;}
.df-flex-between{display:flex!important;justify-content:space-between!important;align-items:center!important;}
.df-flex-ac{display:flex!important;align-items:center!important;}
.df-gap-12{gap:12px!important;}
.df-gap-8{gap:8px!important;}

.df-d-block{display:block!important;}
.df-d-none{display:none!important;}

.df-text-dark{color:#121212!important;}
.df-text-default{color:#121212!important;}
.df-text-secondary{color:#666!important;}
.df-text-muted{color:#999!important;}
.df-text-strong{color:#121212!important;font-weight:bold!important;}
.df-text-criminal{color:#8B0000!important;}
.df-text-orange{color:rgb(255,140,0)!important;}

.df-badge{padding:2px 6px!important;border-radius:10px!important;font-size:10px!important;font-weight:bold!important;color:#fff!important;}
.df-badge-1{padding:2px 6px!important;border-radius:12px!important;font-size:12px!important;font-weight:bold!important;color:#fff!important;}

.df-badge-blue{background:#007bff!important;}
.df-badge-orange{background:rgb(255,140,0)!important;}
.df-badge-gray{background:#666!important;}

.df-content-indent{margin-left:16px!important;}
.df-group-section{margin-bottom:8px!important;}
.df-section-sep{margin-top:10px!important;border-top:1px solid #555!important;padding-top:15px!important;}
.df-leftbar-orange{border-left:4px solid rgb(255,140,0)!important;}
.df-scroll-box{max-height:500px!important;overflow-y:auto!important;scroll-behavior:smooth!important;}

.df-input{width:100%!important;padding:10px 12px!important;border:1px solid #ccc!important;border-radius:6px!important;margin-bottom:20px!important;font-size:14px!important;}
.df-source-list{display:flex!important;flex-direction:column!important;gap:16px!important;}
.df-avatar-initial{color:#42464E!important;font-size:22px!important;text-align:center!important;}


.submenu.is-open { display: block; }
.df-fs-17{font-size:17px!important;}
.df-fs-14{font-size:14px!important;}
.df-fw-bold{font-weight: bold;}

.df-rotate-0{transform:rotate(0deg)!important;}
.df-rotate--90{transform:rotate(-90deg)!important;}

/* Базовая проверка: секции в закруглённых прямоугольниках */
.risk-list { display: flex; flex-direction: column; gap: 12px; }
.risk-list--static .risk-status { flex-basis: 100%; width: 100%; margin-left: 0; padding-left: 37px; box-sizing: border-box; }
.risk-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.risk-item .risk-icon { flex-shrink: 0; width: 22px; min-width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.risk-item .risk-icon i { font-size: 1rem; color: inherit; }
.risk-icon--ok { color: #1DB954; }
.risk-icon--ok-strong { color: #00E676; }
.risk-icon--warn { color: #FFA500; }
.risk-icon--yellow { color: #ffd900; } /* есть риск */
.risk-icon--danger { color: #FF4444; }
.risk-icon--default { color: #0080ff; } /* по умолчанию / ошибка / ошибка поиска */
.risk-icon--loading { color: #8B5CF6; }
.risk-icon--spin i { animation: risk-spin 1s linear infinite; }
@keyframes risk-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.risk-label { font-weight: 700; color: #111827; }
.risk-status { font-style: normal; color: #111827; font-weight: 600; opacity: 0.9; }
.risk-source { margin-left: auto; font-size: 0.85em; color: #6B7280; }
.risk-source a { color: #6b7280; text-decoration: none; font-weight: 500; }
.risk-source a:hover { color: #111827; text-decoration: underline; }
/* Точки (оставлены для совместимости, если JS временно создаёт) */
.risk-icon--dot { width: 8px; height: 8px; border-radius: 50%; background: #0080ff; }
.risk-icon--dot-green { width: 8px; height: 8px; border-radius: 50%; background: #1DB954; }
.risk-icon--dot-yellow { width: 8px; height: 8px; border-radius: 50%; background: #ffd900; }
.risk-icon--dot-red { width: 8px; height: 8px; border-radius: 50%; background: #FF4444; }
.risk-icon--dot-light-green { width: 8px; height: 8px; border-radius: 50%; background: #00E676; }
.risk-icon svg { width: 16px; height: 16px; display: block; }

/* Эффект подсветки для отчета после скролла */
.report-highlight {
  animation: reportHighlight 2s ease-out;
  transform: scale(1.005);
  transition: transform 0.2s ease-out;
  border-radius: 6px;
}

@keyframes reportHighlight {
  0% { background-color: rgba(59, 130, 246, 0.1); }
  100% { background-color: transparent; }
}

/* === СТИЛИ ДЛЯ СОЦИАЛЬНЫХ СЕТЕЙ И МЕССЕНДЖЕРОВ === */
.social-networks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-category {
  margin-bottom: 12px;
}

.social-category-title {
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 8px;
}

.social-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #F9FAFB;
  border-left: 3px solid #3B82F6;
  border-radius: 6px;
  transition: background 0.2s, opacity 0.3s ease-out, transform 0.3s ease-out;
  opacity: 0;
  transform: translateY(-10px);
  animation: socialItemFadeIn 0.4s ease-out forwards;
}

/* Для loading элементов - плавное появление */
.social-item[data-ok-loading],
.social-item[data-vk-loading],
.social-item[data-whatsapp-loading],
.social-item[data-telegram-loading],
.social-item[data-github-loading],
.social-item[data-flickr-loading],
.social-item[data-tumblr-loading],
.social-item[data-hudsonrock-loading],
.social-item[data-microsoft_checker-loading],
.social-item[data-wordpress-loading],
.social-item[data-mailru_reset-loading],
.social-item[data-fotostrana-loading],
.social-item[data-snapchat-loading],
.social-item[data-novotelecom-loading],
.social-item[data-eyecon-loading],
.social-item[data-numbuster-loading] {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: loadingItemFadeIn 0.3s ease-out forwards !important;
}

@keyframes loadingItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Класс для плавного исчезновения loading элементов */
.social-item.loading-fade-out {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out !important;
  pointer-events: none;
  animation: none !important; /* Отключаем animation при исчезновении */
}

.social-item:hover {
  background: #F3F4F6;
}

@keyframes socialItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.social-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.social-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.social-info {
  font-size: 12px;
  color: #6B7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: loadingFadeIn 0.3s ease-out forwards;
}

.social-loading .spinner {
  border: 2px solid #E5E7EB;
  border-top: 2px solid #3B82F6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes loadingFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.social-loading-old {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #6B7280;
}

.social-loading svg {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Компактный вид для мессенджеров */
#messengers-category .social-item {
  border-left-color: #10B981;
}

/* Компактный вид для социальных сетей */
#socials-category .social-item {
  border-left-color: #3B82F6;
}

/* Масштаб 80% через zoom (другой метод: не transform) — только десктоп */
@media (min-width: 769px) {
    .admin-main.report-default-scale {
        overflow: hidden;
        width: 125%;
        min-height: 125vh;
        box-sizing: border-box;
    }
    .admin-main.report-default-scale .report-scale-inner {
        zoom: 0.8;
        width: 100%;
        min-height: 100%;
    }
}

/* === ЗАГОЛОВКИ ФССП И КРИМИНАЛ === */
.fssp-title, .criminal-title {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 100%;
    margin: 15px 0;
    color: #121212;
}

@media (max-width: 992px) {
    .fssp-title, .criminal-title {
        font-size: 16px;
    }
}


@media (max-width: 788px) {
    .fssp-title, .criminal-title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .fssp-title, .criminal-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fssp-title, .criminal-title {
        font-size: 14px;
    }
}

/* === САЙДБАР ОТЧЕТОВ === */
.white-sidebar {
    background: var(--c-bg-surface-4);
    color: var(--c-text-main);
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    width: 320px;
    max-width: 320px;
    box-sizing: border-box;
}

.white-sidebar.active {
    transform: translateX(0);
}

/* Защита от одновременного появления сайдбаров */
.white-sidebar.hidden {
    display: none !important;
}

.sidebar.hidden {
    display: none !important;
}

/* Анимация для серого сайдбара */
.sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.white-sidebar .profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.white-sidebar .avatar {
    background: #777;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: var(--font-bold);
    color: var(--c-text-main-white);
}

.white-sidebar .username {
    font-weight: var(--font-bold);
    color: var(--c-text-main);
}

.white-sidebar a,
.white-sidebar button {
    color: var(--c-text-main);
    font-family: var(--font-inter);
    font-weight: var(--font-semibold);
    display: block;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
    transition: background var(--trans-fast);
    text-decoration: none;
    opacity: 0.9;
}

.white-sidebar a:hover,
.white-sidebar button:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 320px;
    background: var(--c-bg-body);
    min-height: 100vh;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === СЕКЦИИ ОТЧЕТОВ === */
.report-section {
    background: var(--c-bg-surface-4);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.report-section__header {
    background: var(--c-bg-surface-2);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-section__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: #121212;
    margin: 0;
}

.report-section__arrow {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #666;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--trans-normal);
}

.report-section__arrow--collapsed {
    transform: rotate(-90deg);
}

.report-section__arrow--expanded {
    transform: rotate(90deg);
}

.report-section__content {
    padding: var(--spacing-md);
}

/* === ПОДКАТЕГОРИИ === */
.subcategory-section {
    margin-bottom: var(--spacing-md);
}

.subcategory-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
    min-height: 48px;
    border: 1px solid var(--c-accent);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.subcategory-header .subcategory-label {
    font-weight: var(--font-semibold);
}

.subcategory-header .subcategory-count {
    background: var(--c-accent);
    color: white;
}

.subcategory-header--collapsed {
    background: var(--c-bg-surface-2);
    border-color: transparent;
    box-shadow: none;
}

.subcategory-header--collapsed .subcategory-label {
    color: var(--c-text-main);
    font-weight: var(--font-normal);
}

.subcategory-header--collapsed .subcategory-count {
    background: #6c757d;
    color: white;
}

.subcategory-title {
    font-weight: var(--font-semibold);
    color: #121212;
}

.subcategory-header-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.subcategory-label {
    color: #666;
    font-size: 16px;
}

.subcategory-count {
    background: #6c757d;
    color: white;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    margin-right: 8px;
}

/* === ССЫЛКИ НА ЗАПИСИ === */
.source-item {
    color: #121212;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
    padding-left: 5px;
    border-left: 2px solid var(--c-border-light);
    transition: all 0.2s ease;
    min-height: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.source-item:hover {
    color: var(--c-accent);
    border-left-color: var(--c-accent);
    transform: translateX(2px);
}

.source-item--small {
    font-size: 11px;
    margin-bottom: 2px;
}

.source-item--fssp {
    font-size: 11px;
    margin-bottom: 2px;
}

.source-item--criminal {
    font-size: 11px;
    margin-bottom: 2px;
}

/* === ТЕКСТ ВНУТРИ ССЫЛОК === */
.source-item .label_2 {
    display: inline-block;
    margin-left: 8px;
    position: relative;
    vertical-align: middle;
    line-height: 1.2;
}

.source-item .label_3 {
    display: flex;
    align-items: center;
    margin-left: 8px;
    font-size: 16px;
    line-height: 1.2;
}

.label_3 {
    font-size: 16px;
}

/* === ЗАГОЛОВКИ КАТЕГОРИЙ === */
.category-label {
    color: #121212;
    font-weight: 600;
    margin-left: 10px;
    font-size: 16px;
    flex: 1;
    min-width: 0;
}

/* === ЗАГОЛОВКИ ГРУПП === */
.group-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 3px;
    min-height: 40px;
}

.group-header-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

.group-label {
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.2;
}

.group-count {
    background: #adb5bd;
    color: white;
    padding: 1px 3px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: bold;
}

.group-arrow {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #495057;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s;
}

.group-arrow--expanded {
    transform: rotate(0deg);
}

.group-arrow--collapsed {
    transform: rotate(-90deg);
}

.subcategory-arrow {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #666;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--trans-normal);
}

.subcategory-arrow--collapsed {
    transform: rotate(-90deg);
}

.subcategory-arrow--expanded {
    transform: rotate(90deg);
}

/* Анимация стрелочек для стран */
.category-arrow {
    transition: transform 0.3s ease;
    overflow: visible;
}

.category-arrow--collapsed {
    transform: rotate(0deg);
}

.category-arrow--expanded {
    transform: rotate(90deg);
}

.subcategory-content {
    margin-left: 16px;
    margin-top: 10px;
}

/* === ГОДОВЫЕ БЛОКИ === */
.year-section {
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.year-header {
    background: var(--c-bg-surface-2);
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: var(--font-semibold);
    color: #121212;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-content {
    padding: var(--spacing-md);
}

.year-summary {
    margin-bottom: var(--spacing-md);
}

.year-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--c-border-light);
}

.year-summary-item:last-child {
    border-bottom: none;
}

.year-summary-label {
    font-weight: var(--font-medium);
    color: #121212;
}

.year-summary-value {
    color: var(--c-text-main);
}

/* === ДЕТАЛЬНЫЕ ЗАПИСИ === */
.detailed-records {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
}

.record-item {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--c-border-light);
    cursor: pointer;
    transition: background var(--trans-fast);
}

.record-item:hover {
    background: var(--c-bg-surface-2);
}

.record-item:last-child {
    border-bottom: none;
}

.record-title {
    font-weight: var(--font-semibold);
    color: #121212;
    margin-bottom: var(--spacing-xs);
}

.record-details {
    font-size: var(--text-sm);
    color: var(--c-text-dim);
}

/* === КНОПКИ РАСШИРЕНИЯ === */
.expand-button {
    background: none;
    border: none;
    color: var(--c-accent);
    cursor: pointer;
    font-size: var(--text-sm);
    text-decoration: underline;
    padding: 0;
    margin-top: var(--spacing-xs);
}

.expand-button:hover {
    color: var(--c-accent-hover);
}

/* === ССЫЛКИ В САЙДБАРЕ === */
.sidebar-link {
    color: var(--c-accent);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    display: block;
    transition: color var(--trans-fast);
}

.sidebar-link:hover {
    color: var(--c-accent-hover);
    text-decoration: underline;
}

/* === ССЫЛКИ В ОТЧЕТАХ === */
.report-link {
    text-decoration: none;
    color: #121212;
    transition: color var(--trans-fast);
}

.report-link:hover {
    color: var(--c-accent);
    text-decoration: underline;
}

/* Иконка проверки контрольных цифр ИНН в краткой сводке */
.inn-check {
    font-weight: bold;
    margin-left: 2px;
}
.inn-check--ok {
    color: #0a7c42;
}
.inn-check--err {
    color: #c0392b;
}

.sidebar-submenu {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.sidebar-submenu .sidebar-link {
    font-size: var(--text-sm);
    color: var(--c-text-dim);
}

.sidebar-submenu .sidebar-link:hover {
    color: var(--c-accent);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: var(--spacing-md);
    }
    
    .white-sidebar {
        transform: translateX(-100%);
        transition: transform var(--trans-normal);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .white-sidebar.active {
        transform: translateX(0);
    }
}

/* === АНИМАЦИИ === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--trans-normal) ease-in-out;
}

.slide-down {
    animation: slideDown var(--trans-normal) ease-in-out;
}

/* === СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ ФССП === */
.fssp-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--c-text-main-white);
    border: none;
}

.fssp-section .report-section__title {
    color: var(--c-text-main-white);
}

.fssp-section .year-header {
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-text-main-white);
}

.fssp-section .year-content {
    background: rgba(255, 255, 255, 0.05);
}

.fssp-section .year-summary-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.fssp-section .year-summary-label,
.fssp-section .year-summary-value {
    color: var(--c-text-main-white);
}

.fssp-section .record-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: var(--c-text-main-white);
}

.fssp-section .record-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fssp-section .record-title {
    color: var(--c-text-main-white);
}

.fssp-section .record-details {
    color: rgba(255, 255, 255, 0.8);
}

/* === ЦВЕТА ДЛЯ ФССП И КРИМИНАЛ В САЙДБАРЕ === */
.subcategory-header--fssp .subcategory-label {
    color: #ff8c00 !important; /* Оранжевый */
}

.subcategory-header--criminal .subcategory-label {
    color: #dc143c !important; /* Красный */
}

.subcategory-header--fssp .subcategory-count {
    background: #ff8c00 !important; /* Оранжевый фон */
    color: white !important;
}

.subcategory-header--criminal .subcategory-count {
    background: #dc143c !important; /* Красный фон */
    color: white !important;
}

/* === ИСПРАВЛЕНИЕ ВЫХОДА ТЕКСТА ЗА ГРАНИЦЫ === */
.dashboard-card,
.info-box,
.ticket-item,
.ticket-body,
.ticket-text,
.label_2,
.label_3,
p,
div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Специально для длинных строк */
.source-item,
.ticket-text {
    word-break: break-all;
    white-space: normal;
}

/* === ПЕРЕНОСЫ ДЛЯ ФССП ДАННЫХ === */
/* Краткая сводка ФССП */
.info-boxes .info-box {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.info-boxes .info-box div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
    font-size: 13px;
}

/* Иконка времени и возраст рядом с запросом (ФИО + ДР) */
.request-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    color: #000;
    background: transparent;
    opacity: 0.80;
}
.request-age-icon {
    flex-shrink: 0;
    color: #000;
    opacity: 0.80;
}

/* Специальные классы для ФССП данных */
.fssp-summary-data {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
    max-width: 100%;
}

/* Разделитель между общей суммой долга и списком сумм в краткой сводке ФССП (без лишних <br> сверху/снизу, компактный отступ) */
.fssp-debt-separator {
    display: block;
    margin: 2px 0 2px 0;
    border: none;
    border-top: 1px solid #999;
    height: 0;
    line-height: 0;
}

.fssp-detail-data {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
    margin-bottom: 8px;
    max-width: 100%;
}

.fssp-detail-data strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Детальные записи ФССП */
.ticket-body p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ticket-body strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Мобильные устройства - более агрессивный перенос */
@media (max-width: 768px) {
    .info-boxes .info-box div,
    .ticket-body p,
    .fssp-summary-data,
    .fssp-detail-data {
        word-break: break-all;
        hyphens: auto;
        line-height: 1.3;
    }
}


.wrap-normal {
    white-space: normal;           /* обычные переносы */
    word-break: normal;            /* не делим слова */
    overflow-wrap: break-word;     /* как запасной вариант — переносить ОЧЕНЬ длинные токены, чтобы не вылазили */
    hyphens: auto;                 /* можно мягко переносить длинные слова по слогам (не влияет на цифры) */
  }

  /* вариант: вообще НИКОГДА не рвём внутри слова/цифр, даём горизонтальный скролл */
  .no-inword-break {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    overflow-x: auto;
  }

/* === КНОПКА ЭКСПОРТА ОТЧЕТА === */
.df-btn-export {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.df-btn-export:hover {
    background: rgba(0, 0, 0, 0.05);
}

#export-format-menu {
    padding-left: 16px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.export-format-link {
    display: block;
    padding: 6px 8px;
    color: var(--c-text-main);
    text-decoration: none;
    border-radius: 4px;
    transition: background var(--trans-fast);
    font-size: 14px;
    font-weight: 500;
}

.export-format-link:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--c-text-main);
}

/* === СТИЛИ ДЛЯ СОЦИАЛЬНЫХ СЕТЕЙ === */
.social-networks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-category {
    margin-bottom: 20px;
}

.social-category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--c-text-main);
}

.social-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--c-bg-surface-2);
    border-radius: 8px;
    border: 1px solid var(--c-border);
}

.social-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-main);
    font-size: 24px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-bg-surface-3);
}

.social-icon i {
    font-size: 24px;
    color: var(--c-text-main);
}

.social-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
}

.social-avatar-placeholder .inner {
    line-height: 1;
}

.peer-color-1 { background: #3b82f6; }
.peer-color-2 { background: #10b981; }
.peer-color-3 { background: #f59e0b; }
.peer-color-4 { background: #ef4444; }
.peer-color-5 { background: #8b5cf6; }
.peer-color-6 { background: #14b8a6; }
.peer-color-7 { background: #f97316; }
.peer-color-8 { background: #6366f1; }

.social-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text-main);
}

.social-info {
    font-size: 13px;
    color: var(--c-text-dim);
}

.social-link {
    display: inline-block;
    margin-top: 5px;
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.social-link:hover {
    text-decoration: underline;
}

/* === АНИМАЦИЯ ПЕСОЧНЫХ ЧАСОВ === */
.social-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.hourglass-icon {
    width: 24px;
    height: 24px;
    color: var(--c-accent, #087647);
    animation: hourglass-spin 2s linear infinite;
}

@keyframes hourglass-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ EXTERNAL API === */
/* Укорачиваем сайдбары в 2 раза только для страницы external-api */
.external-api-page .white-sidebar {
    width: 160px !important;
    max-width: 160px !important;
}

.external-api-page .white-sidebar .label_2 {
    font-size: 10px !important;
}

.external-api-page .sidebar {
    width: 160px !important;
    max-width: 160px !important;
    padding: 5px !important;
}

.external-api-page .sidebar .label,
.external-api-page .sidebar .menu-content .label,
.external-api-page .sidebar .menu-toggle .label,
.external-api-page .sidebar .submenu .label,
.external-api-page .sidebar .username {
    font-size: 10px !important;
}

.external-api-page .sidebar .menu-content {
    font-size: 10px !important;
    padding: 5px 3px !important;
    gap: 4px !important;
}

.external-api-page .sidebar .menu-content svg,
.external-api-page .sidebar .icon-profile {
    width: 16px !important;
    height: 16px !important;
}

.external-api-page .sidebar a,
.external-api-page .sidebar button {
    padding: 5px 0 !important;
}

.external-api-page .sidebar .profile {
    margin-bottom: 5px !important;
}

.external-api-page .sidebar .avatar {
    width: 28px !important;
    height: 28px !important;
    margin-right: 5px !important;
}

.external-api-page .sidebar .menu-group {
    margin-bottom: 2px !important;
}

.external-api-page .sidebar .submenu {
    margin-left: 5px !important;
    padding-left: 5px !important;
}

.external-api-page .admin-main {
    width: calc(100% - 160px) !important;
    margin-left: 160px !important;
}

/* Бургер-меню для external-api страницы */
.external-api-page .mobile-menu-btn {
    display: none;
}

/* Бургер-меню для external-api страницы */
.external-api-page .mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .external-api-page .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .external-api-page .white-sidebar {
        position: fixed;
        left: -160px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .external-api-page .white-sidebar.active {
        width: 100%;
        max-width: 320px;
        left: 0;
    }
    
    .external-api-page .sidebar,
    .external-api-page .white-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .external-api-page .admin-main {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 70px 15px 20px;
    }
    
    /* Адаптация текста и элементов */
    .external-api-page .form-title {
        font-size: 20px !important;
    }
    
    .external-api-page .api-finances-title {
        font-size: 18px !important;
    }
    
    .external-api-page .api-finances-cards {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .external-api-page .api-finance-card {
        padding: 15px;
    }
    
    .external-api-page .api-finance-label {
        font-size: 12px;
    }
    
    .external-api-page .api-finance-value {
        font-size: 18px;
    }
    
    .external-api-page .api-finance-chart-table-wrapper {
        overflow-x: auto;
    }
    
    .external-api-page .api-finance-chart-table {
        min-width: 600px;
        font-size: 12px;
    }

    .external-api-page .api-finance-chart-table th.api-fct-year {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
        text-align: center;
        box-sizing: border-box;
    }

    .external-api-page .api-finance-chart-table th.api-fct-value {
        text-align: right;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .external-api-page .api-fct-code {
        font-size: 11px;
    }
    
    .external-api-page .api-fct-description {
        font-size: 11px;
    }
    
    .external-api-page .api-fct-year {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
        text-align: center;
        box-sizing: border-box;
    }

    .external-api-page .api-fct-value {
        font-size: 11px;
        text-align: right;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .external-api-page .api-scoring-section {
        font-size: 12px;
    }
    
    .external-api-page .api-scoring-title {
        font-size: 16px !important;
    }
    
    .external-api-page .api-scoring-table {
        font-size: 11px;
    }
    
    .external-api-page .api-scoring-inn-title {
        font-size: 13px;
    }
    
    .external-api-page .api-scoring-th-module,
    .external-api-page .api-scoring-th-description,
    .external-api-page .api-scoring-th-status {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .external-api-page .api-scoring-td-module {
        font-size: 11px;
    }
    
    .external-api-page .api-scoring-td-description {
        font-size: 10px;
    }
    
    .external-api-page .api-scoring-value {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .external-api-page .api-accounting-codes-table {
        font-size: 11px;
    }
    
    .external-api-page .dashboard-card {
        padding: 15px;
    }
    
    .external-api-page .result-text {
        font-size: 14px;
    }
    
    .external-api-page .result-pre {
        font-size: 11px;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .external-api-page .form-title {
        font-size: 18px !important;
    }
    
    .external-api-page .api-finances-title {
        font-size: 16px !important;
    }
    
    .external-api-page .api-finance-value {
        font-size: 16px;
    }
    
    .external-api-page .api-finance-chart-table {
        min-width: 500px;
        font-size: 11px;
    }
    
    .external-api-page .api-fct-code,
    .external-api-page .api-fct-description {
        font-size: 10px;
    }

    .external-api-page .api-fct-year {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
        text-align: center;
        box-sizing: border-box;
    }

    .external-api-page .api-fct-value {
        font-size: 10px;
        text-align: right;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .external-api-page .api-scoring-section {
        font-size: 11px;
    }
    
    .external-api-page .api-scoring-title {
        font-size: 14px !important;
    }
    
    .external-api-page .api-scoring-table {
        font-size: 10px;
    }
    
    .external-api-page .api-scoring-inn-title {
        font-size: 12px;
    }
    
    .external-api-page .api-scoring-th-module,
    .external-api-page .api-scoring-th-description,
    .external-api-page .api-scoring-th-status {
        font-size: 9px;
        padding: 5px 6px;
    }
    
    .external-api-page .api-scoring-td-module {
        font-size: 10px;
    }
    
    .external-api-page .api-scoring-td-description {
        font-size: 9px;
    }
    
    .external-api-page .api-scoring-value {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .external-api-page .api-accounting-codes-table {
        font-size: 10px;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .external-api-page .api-finances-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .external-api-page .form-title {
        font-size: 24px !important;
    }
    
    .external-api-page .api-finances-title {
        font-size: 20px !important;
    }
}

/* ========================================
   Стили для скоринга юридических лиц в отчетах
   ======================================== */

/* Стили для блока скоринга */
.api-scoring-section {
    margin-top: 16px;
}

.api-scoring-title {
    font-size: 18px;
    font-weight: 700;
    color: #121212;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.2;
}

.api-scoring-inn-group {
    background: transparent;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    padding: 0;
    margin-bottom: 16px;
    margin-top: 8px;
    box-shadow: none;
}

.api-scoring-inn-title {
    margin: 12px 0 12px 12px;
    font-size: 18px;
    font-weight: 700;
    color: #121212;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.api-scoring-table-wrapper {
    overflow-x: auto;
    border-radius: 0;
    border-top: 1px solid #e1e4e8;
    margin: 0;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.api-scoring-table-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.api-scoring-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: transparent;
}

.api-scoring-table thead {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
}

.api-scoring-th-module,
.api-scoring-th-description,
.api-scoring-th-status {
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    color: #121212;
    border-bottom: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-scoring-th-module {
    width: 25%;
    border-right: none;
}

.api-scoring-th-description {
    width: 60%;
    border-right: none;
}

.api-scoring-th-status {
    width: 15%;
    text-align: center;
}

.api-scoring-row {
    border-bottom: none;
    transition: all 0.2s ease;
}

.api-scoring-row + .api-scoring-row {
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.08);
}

.api-scoring-row:last-child {
    border-bottom: none;
}

.api-scoring-row:hover {
    transform: translateX(2px);
    box-shadow: none;
}

.api-scoring-td-module,
.api-scoring-td-description,
.api-scoring-td-status {
    padding: 8px 12px;
    vertical-align: top;
    border-right: none;
}

.api-scoring-td-module:last-child,
.api-scoring-td-description:last-child,
.api-scoring-td-status:last-child {
    border-right: none;
}

.api-scoring-td-module {
    font-weight: 600;
    color: #121212;
    font-size: 14px;
}

.api-scoring-td-description {
    color: #555;
    line-height: 1.6;
    font-size: 13px;
}

.api-scoring-td-status {
    text-align: center;
    vertical-align: middle;
}

.api-scoring-value {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
}

.api-scoring-label {
    font-weight: 500;
    color: #586069;
}

/* Цвета строк таблицы */
.api-scoring-row.scoring-white {
    background-color: #f0fdf4 !important;
    border-left: none;
}

.api-scoring-row.scoring-white:hover {
    background-color: #dcfce7;
    border-left: none;
}

.api-scoring-row.scoring-green {
    background-color: #f9fafb !important;
    border-left: none;
}

.api-scoring-row.scoring-green:hover {
    background-color: #f3f4f6;
    border-left: none;
}

.api-scoring-row.scoring-yellow {
    background-color: #fefce8 !important;
    border-left: none;
}

.api-scoring-row.scoring-yellow:hover {
    background-color: #fef9c3;
    border-left: none;
}

.api-scoring-row.scoring-red {
    background-color: #fef2f2 !important;
    border-left: none;
}

.api-scoring-row.scoring-red:hover {
    background-color: #fee2e2;
    border-left: none;
}

.api-scoring-row.scoring-black {
    background-color: #1f2937 !important;
    color: #ffffff;
    border-left: none;
}

.api-scoring-row.scoring-black:hover {
    background-color: #111827;
    border-left: none;
}

.api-scoring-row.scoring-black .api-scoring-td-module,
.api-scoring-row.scoring-black .api-scoring-td-description {
    color: #ffffff;
}

.api-scoring-row.scoring-gray {
    border-left: none;
}

.api-scoring-row.scoring-gray:hover {
    background-color: #f3f4f6;
    border-left: none;
}

/* Чередование строк для лучшей читаемости */
.api-scoring-row:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

.api-scoring-row.scoring-green:nth-child(even) {
    background-color: rgba(240, 253, 244, 0.7);
}

.api-scoring-row.scoring-yellow:nth-child(even) {
    background-color: rgba(254, 252, 232, 0.7);
}

.api-scoring-row.scoring-red:nth-child(even) {
    background-color: rgba(254, 242, 242, 0.7);
}

.api-scoring-row.scoring-gray:nth-child(even) {
    background-color: rgba(249, 250, 251, 0.7);
}

/* Более компактная мобильная версия скоринга */
@media (max-width: 600px) {
    .api-scoring-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .api-scoring-inn-title {
        font-size: 13px;
        padding: 8px 10px;
        margin: 10px 0 8px 10px;
        border-left-width: 3px;
    }

    .api-scoring-table {
        font-size: 11px;
    }

    .api-scoring-th-module,
    .api-scoring-th-description,
    .api-scoring-th-status {
        font-size: 10px;
        padding: 6px 8px;
        letter-spacing: 0.2px;
    }

    .api-scoring-td-module {
        font-size: 11px;
    }

    .api-scoring-td-description {
        font-size: 11px;
        line-height: 1.3;
    }

    .api-scoring-td-module,
    .api-scoring-td-description,
    .api-scoring-td-status {
        padding: 6px 8px;
    }

    .api-scoring-value {
        font-size: 9px;
        padding: 3px 6px;
        white-space: nowrap;
    }
}

/* Цвета скоринга */
.scoring-white {
    background-color: #dafbe1;
    color: #1a7f37;
    border: none;
}

.scoring-green {
    background-color: #f6f8fa;
    color: #6a737d;
    border: none;
}

.scoring-yellow {
    background-color: #fff8c5;
    color: #9a6700;
    border: none;
}

.scoring-red {
    background-color: #ffebe9;
    color: #cf222e;
    border: none;
}

.scoring-black {
    background-color: #24292e;
    color: #ffffff;
    border: none;
}

.scoring-gray {
    background-color: #f6f8fa;
    color: #6a737d;
    border: none;
}

/* === REAL ESTATE REPORT === */
.real-estate-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 16px;
}

.real-estate-meta-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px 24px;
    font-size: 14px;
    color: #121212;
}

.real-estate-meta-label {
    font-size: 14px;
    font-weight: 600;
}

.real-estate-meta-description {
    font-size: 14px;
    font-weight: 600;
}

.real-estate-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.real-estate-status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #121212;
}

.real-estate-status-icon--green {
    color: #1a7f37;
}

.real-estate-status-icon--yellow {
    color: #9a6700;
}

.real-estate-status-text {
    font-weight: 600;
    color: #121212;
    margin-top: 6px;
}

.real-estate-section-note {
    color: #6a737d;
    font-size: 13px;
}

.real-estate-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.real-estate-details-table td {
    padding: 10px 12px;
    border: 1px solid #e1e4e8;
    vertical-align: top;
}

.real-estate-details-table td:first-child {
    width: 35%;
    font-weight: 600;
    color: #121212;
}

.real-estate-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.real-estate-list-item {
    border-left: 2px solid #e1e4e8;
    padding-left: 14px;
}

.real-estate-list-item-title {
    font-weight: 700;
    color: #121212;
}

.real-estate-list-item-row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.real-estate-list-item-label {
    min-width: 140px;
    font-weight: 600;
    font-size: 14px;
}

.real-estate-list-item-description {
    font-weight: 600;
    font-size: 14px;
}

.real-estate-object {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    background: #f8f9fb;
}

.real-estate-object:first-of-type {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid #e1e4e8;
}


/* === СТИЛИ ДЛЯ ЮРИДИЧЕСКИХ ЛИЦ В ОТЧЕТАХ === */
.legal-entity-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .real-estate-list-item-label {
        font-size: 10px;
    }
    .real-estate-list-item-description {
        font-size: 10px;
    }
    .real-estate-meta-label {
        font-size: 10px;
        font-weight: 600;
        min-width: 140px;
    }
    .real-estate-meta-description {
        font-size: 10px;
        font-weight: 600;
    }
}

/* ========================================
   Стили для форматированного контента API (перенесено из cabinet.css)
   ======================================== */

/* Стили для форматированного контента API */
.api-formatted-content {
    background: #ffffff;
    border-radius: 6px;
    border: none;
    line-height: 1.8;
    font-size: 14px;
    color: #24292e;
    white-space: normal;
    word-wrap: break-word;
}

.api-formatted-content .api-block {
    margin: 8px 0;
    padding-left: 16px;
    border-left: 3px solid #e1e4e8;
}

/* Убираем двойную границу у вложенных блоков */
.api-formatted-content .api-block .api-block {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
}

.api-formatted-content .api-link {
    color: #0366d6;
    text-decoration: none;
    border-bottom: 1px solid #0366d6;
}

.api-formatted-content .api-link:hover {
    color: #005cc5;
    border-bottom-color: #005cc5;
}

.api-formatted-content .api-tab {
    display: inline-block;
    width: 2em;
}

.api-formatted-content strong {
    font-weight: 600;
    color: #0366d6;
}

.api-formatted-content em {
    font-style: italic;
}

.api-formatted-content u {
    text-decoration: underline;
}

.api-formatted-content .api-text-size-11 {
    font-size: 11px;
}

.api-formatted-content .api-text-size-12 {
    font-size: 12px;
}

.api-formatted-content .api-text-size-13 {
    font-size: 13px;
}

.api-formatted-content .api-text-size-14 {
    font-size: 14px;
}

.api-formatted-content .api-text-size-15 {
    font-size: 15px;
}

.api-formatted-content .api-text-size-16 {
    font-size: 16px;
}

.api-formatted-content .api-normalize {
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

.api-formatted-content .api-align-center {
    text-align: center;
}

.api-formatted-content .api-align-left {
    text-align: left;
}

.api-formatted-content .api-align-right {
    text-align: right;
}

.api-formatted-content .api-align-justified {
    text-align: justify;
}

.api-formatted-content .api-additional-information {
    margin: 12px 0;
    padding: 8px 12px;
    background: #f8f9fb;
    border-left: 3px solid #e1e4e8;
}

.api-formatted-content .api-internal-link {
    color: #0366d6;
    text-decoration: underline;
}

.api-formatted-content .api-internal-table {
    margin: 12px 0;
    overflow-x: auto;
}

.api-formatted-content .api-internal-table-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.api-formatted-content .api-internal-table-table th,
.api-formatted-content .api-internal-table-table td {
    border: 1px solid #e1e4e8;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    min-width: 140px;
    width: auto;
    word-break: break-word;
    white-space: normal;
}

/* Стили для финансовых данных */
.api-finances-section {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border: none;
}

.api-finances-title {
    font-size: 24px;
    font-weight: 700;
    color: #121212;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e1e4e8;
}

.api-finances-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.api-finance-card {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.api-finance-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.api-finance-label {
    font-size: 14px;
    color: #6a737d;
    margin-bottom: 12px;
    font-weight: 500;
}

.api-finance-value {
    font-size: 24px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 8px;
    line-height: 1.2;
}

.api-finance-change {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.api-finance-change.positive {
    color: #1a7f37;
}

.api-finance-change.negative {
    color: #cf222e;
}

/* Фильтры для графиков */
.api-finances-chart-filters {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.api-finances-chart-filters-title {
    font-size: 14px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 12px;
}

.api-finances-chart-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.api-finance-chart-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #121212;
}

.api-finance-chart-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #3B82F6;
    flex-shrink: 0;
}

.api-finance-chart-checkbox:checked {
    accent-color: #3B82F6;
}

.api-finance-chart-filter span {
    line-height: 1.5;
}

.api-finance-chart-filter:hover {
    color: #3B82F6;
}

.api-finances-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Скрытие графиков через чекбоксы */
.api-finance-chart-container.hidden {
    display: none !important;
}

/* Стили для графиков с множественными линиями */
.api-finance-chart-section {
    margin-top: 40px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-finance-chart-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #121212;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e1e4e8;
}

.api-finance-chart-wrapper {
    margin-bottom: 24px;
    height: 400px;
    position: relative;
}

.api-finance-multi-chart {
    width: 100% !important;
    height: 400px !important;
    max-height: 400px !important;
}

/* Стили для таблицы с чекбоксами */
.api-finance-chart-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    position: relative;
}

.api-finance-chart-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.api-finance-chart-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.api-finance-chart-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.api-finance-chart-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.api-finance-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
    min-width: 800px;
}

.api-finance-chart-table thead {
    background: #f6f8fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.api-finance-chart-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #121212;
    border-bottom: 2px solid #e1e4e8;
    white-space: nowrap;
    background: #f6f8fa;
}

.api-finance-chart-table th.api-fct-year {
    text-align: center;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    box-sizing: border-box;
}

.api-finance-chart-table th.api-fct-value {
    text-align: right;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
}

.api-finance-chart-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e1e4e8;
    color: #121212;
}


.api-finance-chart-table tbody tr:hover {
    background: #f6f8fa;
}

.api-fct-checkbox {
    width: 50px;
    text-align: center;
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 5;
}

.api-finance-chart-table thead th.api-fct-checkbox {
    background: #f6f8fa;
    z-index: 11;
}

.api-finance-chart-table tbody tr:hover .api-fct-checkbox {
    background: #f6f8fa;
}

.api-fct-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3B82F6;
}

.api-fct-code {
    min-width: 90px;
    max-width: 90px;
    font-weight: 600;
    color: #3B82F6;
    position: sticky;
    left: 50px;
    background: #ffffff;
    z-index: 5;
}

.api-finance-chart-table thead th.api-fct-code {
    background: #f6f8fa;
    z-index: 11;
}

.api-finance-chart-table tbody tr:hover .api-fct-code {
    background: #f6f8fa;
}

.api-fct-description {
    min-width: 300px;
    max-width: 400px;
}

.api-fct-year {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    text-align: center;
    box-sizing: border-box;
}

.api-fct-value {
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
}

/* Выделение выбранных строк */
.api-fct-row.selected {
    opacity: 1;
}

.api-fct-row.selected:hover {
    opacity: 0.9;
}

.api-fct-row:hover {
    opacity: 0.8;
}

.api-fct-row[data-color] {
    transition: opacity 0.2s ease;
}

.api-finance-chart-container {
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 450px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.api-finance-chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #121212;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e4e8;
    flex-shrink: 0;
}

.api-finance-chart {
    height: 350px !important;
    max-height: 350px !important;
    width: 100% !important;
    flex: 1;
    position: relative;
}

/* Стили для таблицы бухгалтерских кодов */
.api-accounting-codes-section {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border: none;
}

.api-accounting-codes-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    background: #ffffff;
}

.api-accounting-codes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.api-accounting-codes-table thead {
    background: #f6f8fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.api-accounting-codes-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #121212;
    border-bottom: 2px solid #e1e4e8;
    white-space: nowrap;
}

.api-accounting-codes-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e1e4e8;
    color: #121212;
}

.api-accounting-codes-table tbody tr:hover {
    background: #f6f8fa;
}

.api-ac-code {
    min-width: 80px;
    font-weight: 600;
    color: #3B82F6;
}

.api-ac-description {
    min-width: 300px;
    max-width: 400px;
}

.api-ac-year {
    min-width: 120px;
    text-align: right;
}

.api-ac-value {
    text-align: right;
    white-space: nowrap;
}

/* Стили для tooltip графиков */
.chart-tooltip {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    font-family: var(--font-inter);
    min-width: 300px;
    display: none;
}

.chart-tooltip-visible {
    opacity: 1 !important;
    display: block !important;
}

.chart-tooltip-title {
    font-size: 13px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e4e8;
}

.chart-tooltip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.chart-tooltip-row {
    border-bottom: 1px solid #f1f3f5;
}

.chart-tooltip-row:last-child {
    border-bottom: none;
}

.chart-tooltip-code {
    padding: 6px 8px;
    text-align: left;
    font-weight: 600;
    color: #3B82F6;
    white-space: nowrap;
}

/* Цвета для кодов в tooltip */
.chart-tooltip-color-3B82F6 { color: #3B82F6 !important; }
.chart-tooltip-color-F59E0B { color: #F59E0B !important; }
.chart-tooltip-color-8B5CF6 { color: #8B5CF6 !important; }
.chart-tooltip-color-FCD34D { color: #FCD34D !important; }
.chart-tooltip-color-10B981 { color: #10B981 !important; }
.chart-tooltip-color-EF4444 { color: #EF4444 !important; }
.chart-tooltip-color-06B6D4 { color: #06B6D4 !important; }
.chart-tooltip-color-EC4899 { color: #EC4899 !important; }

.chart-tooltip-description {
    padding: 6px 8px;
    text-align: left;
    color: #6a737d;
    max-width: 200px;
}

.chart-tooltip-value {
    padding: 6px 8px;
    text-align: right;
    font-weight: 500;
    color: #121212;
    white-space: nowrap;
}

/* Адаптивность для графиков */
@media (max-width: 768px) {
    .api-finance-chart-container {
        padding: 16px;
        height: 350px;
        max-height: 350px;
    }
    
    .api-finance-chart {
        height: 280px !important;
        max-height: 280px !important;
    }
    
    .api-finances-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .api-accounting-codes-table {
        font-size: 12px;
    }
    
    .api-accounting-codes-table th,
    .api-accounting-codes-table td {
        padding: 8px 10px;
    }
    
    .api-ac-description {
        min-width: 200px;
        max-width: 250px;
    }
    
    .api-ac-year {
        min-width: 100px;
    }
}

@media (min-width: 1200px) {
    .api-finance-chart-container {
        height: 500px;
        max-height: 500px;
    }
    
    .api-finance-chart {
        height: 420px !important;
        max-height: 420px !important;
    }
}

/* Стили для result-text */
.result-text {
    margin-top: 8px;
}

.result-pre {
    white-space: pre-wrap;
    font-family: var(--font-mono);
    line-height: 1.5;
    margin: 0;
}

/* Стили для родительских и дочерних строк */
.api-fct-top-level-parent {
    font-weight: 700;
    background-color: #f8f9fa;
}

.api-fct-middle-level-parent {
    font-weight: 600;
}

.api-fct-middle-level-parent .api-fct-code,
.api-fct-middle-level-parent .api-fct-description {
    padding-left: 20px;
}

.api-fct-parent-row {
    font-weight: 600;
}

.api-fct-child-row {
    display: table-row;
}

.api-fct-child-row.d-none {
    display: none !important;
}

.api-fct-toggle {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
    gap: 4px;
}

.api-fct-toggle:hover {
    text-decoration: none;
    color: inherit;
}

.api-fct-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
    line-height: 1;
    color: #666;
}

.api-fct-parent-row.collapsed .api-fct-arrow {
    transform: rotate(-90deg);
}

.ps-20 {
    padding-left: 20px;
}

.fw-medium {
    font-weight: 600;
}

/* Стили для SVG иконок */
.svg-icon-inline {
    margin-right: 8px;
    vertical-align: middle;
}

/* Стили для судебных дел */
.legal-cases-section {
    margin-top: 20px;
}

.legal-cases-section .form-title {
    margin-bottom: 15px;
}

.legal-case-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
}

.legal-case-item:last-child {
    margin-bottom: 0;
}

.legal-case-item strong {
    color: #333;
}

.legal-case-item p {
    margin-bottom: 5px;
}

.legal-case-item .case-link {
    color: #007bff;
    text-decoration: none;
}

.legal-case-item .case-link:hover {
    text-decoration: underline;
}

.legal-case-participants {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.legal-case-participants p {
    margin-bottom: 3px;
}

.legal-case-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.legal-case-summary p {
    margin-bottom: 5px;
}

.legal-case-summary strong {
    color: #000;
}

/* Стили для фильтров арбитражных дел */
.legal-cases-filters {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.legal-cases-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.legal-cases-filters-row:last-of-type {
    margin-bottom: 0;
}

.legal-cases-filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legal-cases-filter-item--wide {
    grid-column: span 2;
}

.legal-cases-filter-item label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.legal-cases-filter-item .df-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.legal-cases-filter-item .df-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.legal-cases-filters-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    gap: 15px;
}

.legal-cases-count {
    font-weight: 500;
    color: #333;
    flex-grow: 1;
    text-align: center;
}

.df-btn-link {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
}

.df-btn-link:hover {
    color: #0056b3;
}

.df-btn-ghost {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.df-btn-ghost:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

.df-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стили для пагинации арбитражных дел */
.legal-cases-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.df-btn-pagination {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.df-btn-pagination:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.df-btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.df-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.df-btn-pagination-number {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.df-btn-pagination-number:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.df-btn-pagination-number.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 600;
}

.df-pagination-dots {
    padding: 0 5px;
    color: #666;
}

@media (max-width: 768px) {
    .legal-cases-filters-row {
        grid-template-columns: 1fr;
    }
    
    .legal-cases-filter-item--wide {
        grid-column: span 1;
    }
    
    .legal-cases-filters-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .legal-cases-count {
        text-align: left;
    }
    
    .legal-cases-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .df-pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.complex-map-only-active-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2f3545;
    cursor: pointer;
    user-select: none;
}
.complex-map-only-active-label input.complex-map-only-active {
    margin: 0;
    cursor: pointer;
}

.complex-map-body {
    border-top: 1px solid #eef1f5;
    padding-top: 12px;
}

.complex-map-widget {
    display: block;
    width: 100%;
}

.complex-map-frame {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f9ff;
    position: relative;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.complex-map-frame.is-dragging {
    cursor: grabbing;
}

.complex-map-frame.is-fullscreen {
    position: fixed;
    inset: 20px;
    width: auto;
    height: auto;
    z-index: 1001;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.35);
    background: #ffffff;
}

.complex-map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
}

.complex-map-canvas {
    min-width: 2000px;
    min-height: 1500px;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    --map-x: 0;
    --map-y: 0;
    --map-scale: 1;
    transform: translate(calc(var(--map-x) * 1px), calc(var(--map-y) * 1px)) scale(var(--map-scale));
}

/* DIV-based map container */
.complex-map-container {
    width: 100%;
    height: 100%;
    min-width: 2000px;
    min-height: 1500px;
    position: relative;
}

.map-nodes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* SVG-based edges */
.map-edges-layer {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.map-edge-path {
    transition: opacity 0.2s ease, stroke-width 0.2s ease;
    pointer-events: none;
}

.map-edge-hit-area {
    pointer-events: stroke;
    cursor: pointer;
}

.map-edge-path.highlighted {
    opacity: 1 !important;
}

/* Иконка на линии */
.map-edge-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.map-edges-layer:hover .map-edge-icon,
.map-edge-icon:hover {
    opacity: 1;
}

.map-edge-icon circle {
    transition: transform 0.2s ease;
}

.map-edge-icon:hover circle {
    transform-origin: 10px 10px;
    transform: scale(1.1);
}

/* Тултип для линии */
.map-edge-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-edge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

/* Подсветка узлов при наведении на линию (как при наведении на сам узел) */
.map-node-group.map-node-highlighted .map-node {
    box-shadow: 0 4px 12px rgba(0, 201, 120, 0.4);
    border-width: 3px;
}

/* DIV-based nodes */
.map-node-group {
    position: absolute;
    cursor: pointer;
    pointer-events: auto !important;
    transition: filter 0.2s ease;
    left: var(--node-left, 0);
    top: var(--node-top, 0);
    width: var(--node-width, 180px);
    height: var(--node-height, 45px);
    z-index: 10;
}

.map-node-group.highlighted {
    filter: drop-shadow(0 0 8px rgba(0, 201, 120, 0.6));
}

.map-node {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 2px solid #00c978;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    padding: 4px 8px;
}

.map-node-group:hover .map-node {
    box-shadow: 0 4px 12px rgba(0, 201, 120, 0.4);
    border-width: 3px;
}

.map-node--main {
    border-width: 3px;
    border-color: #00c978;
    background: #f0fff7;
}

.map-node--company {
    border-color: #00c978;
    border-radius: 20px;
}

.map-node--person {
    border-color: #9b59b6;
    background: #faf5ff;
    border-radius: 4px;
}

/* ИП: ширина под текст, центрирование по горизонтали */
.map-node-group--employer {
    width: max-content;
    min-width: 60px;
    left: var(--node-center-x, 0);
    transform: translateX(-50%);
}
.map-node-group--employer .map-node {
    width: 100%;
}
.map-node--employer {
    border-color: #e67e22;
    background: #fef9f3;
    border-radius: 4px;
}

.map-node--address {
    border-color: #7f8c8d;
    background: #f5f6f7;
    border-radius: 8px;
}

.map-node--address .map-node-text {
    color: #6c757d;
}

/* Node text */
.map-node-text {
    font-size: 11px;
    font-weight: 500;
    color: #2f3545;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.map-node-text--main {
    font-size: 13px;
    font-weight: 600;
    color: #1a1f36;
}

.map-node-text--multiline {
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.map-node-text-line {
    display: block;
}

.map-node-icon {
    font-size: 12px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Badge */
.map-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #00c978;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-badge-text {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
}

/* Inactive icon */
.map-inactive-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #f39c12;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.map-inactive-icon:hover {
    background: #e67e22;
}

.map-inactive-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* Show more button */
.map-show-more {
    position: absolute;
    background: #f0fff7;
    border: 1px solid #00c978;
    border-radius: 12px;
    padding: 6px 16px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease;
    left: var(--btn-left, 0);
    top: var(--btn-top, 0);
}

.map-show-more:hover {
    background: #e0ebff;
}

.map-show-more-text {
    font-size: 11px;
    font-weight: 500;
    color: #00c978;
}

/* Control button SVG styling - see below in .complex-map-controls section */

/* Legend styles */
.complex-map-legend {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(22, 31, 67, 0.08);
    padding: 16px;
    font-size: 13px;
    color: #2f3545;
}

.complex-map-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.complex-map-legend-row:last-child {
    margin-bottom: 0;
}

.legend-node {
    width: 42px;
    height: 18px;
    border: 2px solid #00c978;
    background: #ffffff;
    flex-shrink: 0;
}

.legend-node--rounded {
    border-radius: 12px;
}

.legend-node--sharp {
    border-radius: 4px;
    border-color: #9b59b6;
    background: #faf5ff;
}

.legend-node--address-icon {
    border-radius: 6px;
    border-color: #7f8c8d;
    background: #f5f6f7;
}

.legend-node--badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00c978;
    border: none;
}

.legend-node--inactive {
    border-style: dashed;
    border-color: #bdc3c7;
    background: #f8f9fa;
}

.legend-line {
    display: inline-block;
    width: 42px;
    height: 0;
    border-top: 2px solid #9fb8ff;
    flex-shrink: 0;
}

.legend-line--solid {
    border-top-style: solid;
}

.legend-line--director {
    border-color: #9b59b6;
    border-top-width: 2.5px;
}

.legend-line--founder {
    border-color: #27ae60;
    border-top-width: 2.5px;
}

.legend-line--affiliate {
    border-color: #3498db;
}

.legend-line--predecessor {
    border-top-style: dashed;
    border-color: #7f8c8d;
}

.legend-line--address {
    border-color: #1abc9c;
}

.legend-line--past {
    border-top-style: dashed;
    border-color: #bdc3c7;
}

.legend-line--dashed {
    border-top-style: dashed;
    border-color: #bdc3c7;
}

.complex-map-legend-title {
    font-size: 11px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 4px 0;
}

.complex-map-legend-title:first-child {
    margin-top: 0;
}

.complex-map-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.complex-map-controls .df-btn-ghost {
    width: 56px;
    height: 56px;
    padding: 0;
    font-weight: 600;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(22, 31, 67, 0.15);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.complex-map-controls .df-btn-ghost svg {
    width: 24px;
    height: 24px;
}

.complex-map-mini-legend {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(22, 31, 67, 0.12);
    padding: 12px 14px;
    font-size: 12px;
    color: #2f3545;
    display: grid;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.complex-map-mini-legend .legend-node {
    width: 34px;
    height: 16px;
}

.complex-map-mini-legend .legend-node--badge {
    width: 14px;
    height: 14px;
}

.complex-map-mini-legend .legend-line {
    width: 34px;
}

.complex-map-mini-legend .complex-map-legend-row {
    margin-bottom: 0;
}

.complex-map-mini-legend:hover {
    opacity: 0.9;
}

.complex-map-mini-legend::after {
    content: 'Нажмите, чтобы свернуть';
    display: block;
    font-size: 9px;
    color: #95a5a6;
    text-align: center;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.complex-map-mini-legend:hover::after {
    opacity: 1;
}

@media (max-width: 1200px) {
    .complex-map-frame {
        height: 520px;
    }
}

@media (max-width: 992px) {
    .complex-map-frame {
        height: 460px;
    }
}

@media (max-width: 768px) {
    .complex-map-frame {
        height: 380px;
    }
    .complex-map-controls {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    .complex-map-controls .df-btn-ghost {
        width: 44px;
        height: 44px;
    }
    .complex-map-controls .df-btn-ghost svg {
        width: 20px;
        height: 20px;
    }
    .complex-map-mini-legend {
        max-width: 220px;
        font-size: 11px;
        padding: 10px;
    }
}

@media (max-width: 520px) {
    .complex-map-frame {
        height: 300px;
    }
    .complex-map-mini-legend {
        position: static;
        margin-top: 10px;
        max-width: none;
    }
    .complex-map-frame {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .complex-map-canvas {
        min-width: 1200px;
        min-height: 900px;
    }
    .complex-map-container {
        min-width: 1200px;
        min-height: 900px;
    }
}

.complex-map-legend-show {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #00c978;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(22, 31, 67, 0.2);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #00c978;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: all !important;
}

.complex-map-legend-show.is-visible {
    display: flex;
}

.complex-map-legend-show svg {
    width: 24px;
    height: 24px;
}

.complex-map-mini-legend.is-hidden {
    display: none !important;
}

.complex-map-legend-show:hover {
    background: #00c978;
    color: #ffffff;
    transform: scale(1.1);
}

body.complex-map-fullscreen-open {
    overflow: hidden;
}

.separator {
    border-bottom: 1px solid #ccc;
    margin: 20px 0;
}

/* Индикатор возможности расширения узла */
.map-expand-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #00c978;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 201, 120, 0.4);
    transition: all 0.2s ease;
}

.map-expand-indicator::before {
    content: '+';
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.map-node-group:hover .map-expand-indicator {
    transform: translateX(-50%) scale(1.2);
    background: #2563eb;
}

/* Анимация загрузки узла */
.map-node-loading .map-node {
    animation: map-node-pulse 1.5s ease-in-out infinite;
}

.map-node-loading .map-expand-indicator {
    background: #00c978;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-node-loading .map-expand-indicator::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: map-indicator-spin 0.7s linear infinite;
}

@keyframes map-node-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes map-indicator-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Индикатор загруженных связей (галочка) */
.map-loaded-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.map-loaded-indicator::before {
    content: '';
    width: 6px;
    height: 3px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translateY(-1px);
}

/* Курсор для узлов с возможностью расширения */
.map-node-group:not(.map-node-loaded) .map-node--company,
.map-node-group:not(.map-node-loaded) .map-node--person,
.map-node-group:not(.map-node-loaded) .map-node--employer {
    cursor: pointer;
}

.map-node-group.map-node-loaded .map-node {
    cursor: default;
}

/* Техническая информация внизу отчёта */
.report-tech-info {
    margin-top: 24px;
    padding: 12px 0;
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    border-top: 1px solid #E5E7EB;
}
.report-tech-info__line {
    margin: 0;
}
.report-tech-info__line + .report-tech-info__line {
    margin-top: 2px;
}
.report-tech-info__sublist {
    margin-top: 6px;
    font-size: 0.8rem;
}
.report-tech-info__label {
    font-weight: 600;
    color: #4B5563;
}

/* ФССП: одна секция — заголовок (кликабельный) + разделитель + тело (фильтры и список). По умолчанию открыта. */
.fssp-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.fssp-section .fssp-section-header {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
}
.fssp-section .fssp-section-header .fssp-section-chevron {
    margin-left: 8px;
    color: #6b7280;
    transition: transform 0.2s ease;
}
.fssp-section.fssp-section--collapsed .fssp-section-chevron i {
    transform: rotate(-90deg);
}
.fssp-section-body {
    padding: 0 18px 16px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.fssp-section:not(.fssp-section--collapsed) .fssp-section-body {
    max-height: none;
    overflow: visible;
}
.fssp-section.fssp-section--collapsed .fssp-section-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}
.fssp-section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0 auto 16px;
    width: 100%;
}
.fssp-section .fssp-cases-block {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.fssp-section .fssp-cases-block.hidden {
    display: none;
}

/* Арбитражные суды: одна секция — заголовок (кликабельный) + разделитель + тело. По умолчанию открыта. */
.arbitration-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.arbitration-section .arbitration-section-header {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
}
.arbitration-section .arbitration-section-header .arbitration-section-chevron {
    margin-left: 8px;
    color: #6b7280;
    transition: transform 0.2s ease;
}
.arbitration-section.arbitration-section--collapsed .arbitration-section-chevron i {
    transform: rotate(-90deg);
}
.arbitration-section-body {
    padding: 0 18px 16px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.arbitration-section:not(.arbitration-section--collapsed) .arbitration-section-body {
    max-height: none;
    overflow: visible;
}
.arbitration-section.arbitration-section--collapsed .arbitration-section-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}
.arbitration-section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0 auto 16px;
    width: 100%
}
.arbitration-section .arbitration-cases-block {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.arbitration-section .arbitration-cases-block.hidden {
    display: none;
}

/* Суды общей юрисдикции (репутация): секция с двойным раскрытием, как ФССП и арбитраж */
.reputation-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.reputation-section .reputation-section-header {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
}
.reputation-section-body {
    padding: 0 18px 16px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.reputation-section:not(.reputation-section--collapsed) .reputation-section-body {
    max-height: none;
    overflow: visible;
}
.reputation-section.reputation-section--collapsed .reputation-section-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}
.reputation-section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0 auto 16px;
    width: 100%;
}
.reputation-section .reputation-cases-block {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.reputation-section .reputation-cases-block.hidden {
    display: none;
}
.reputation-cases-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.reputation-case-item {
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.reputation-case-item:last-child {
    margin-bottom: 0;
}
.reputation-case-trigger {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    cursor: pointer;
    gap: 8px;
    background: #fff;
}
.reputation-case-trigger > .reputation-case-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 2px;
}
.reputation-case-bullet--yellow {
    background: #ffd900;
}
.reputation-case-trigger:hover {
    background: #f9fafb;
}
.reputation-case-trigger-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 48px);
}
.reputation-case-trigger-col {
    min-width: 0;
    flex: 1 1 120px;
}
.reputation-case-trigger-col .rep-trigger-label {
    font-size: 15px;
    color: #6b7280;
    display: block;
    margin-bottom: 2px;
}
.reputation-case-trigger-col .rep-trigger-value {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}
.reputation-case-trigger .collapsible__icon {
    flex-shrink: 0;
    margin-left: 8px;
    color: #6b7280;
    transition: transform 0.2s ease;
}
.reputation-case-item.collapsible__item_active .collapsible__icon {
    transform: rotate(180deg);
}
.reputation-case-content {
    display: none;
    padding: 14px 14px 14px 34px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.reputation-case-item.collapsible__item_active .reputation-case-content {
    display: block;
}
.reputation-case-details {
    margin-bottom: 16px;
}
.reputation-case-details.rep-detail-table .rep-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #000;
    align-items: start;
}
.reputation-case-details.rep-detail-table .rep-detail-row:last-child {
    margin-bottom: 0;
}
.reputation-case-details .rep-detail-label {
    color: #6b7280;
}
.reputation-case-details .rep-detail-value {
    min-width: 0;
}
.reputation-parties-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 8px;
    color: #111;
}
.reputation-section .reputation-cases-block .fedresurs-summary-case-link {
    cursor: pointer;
    color: var(--c-link, #2563eb);
}
.reputation-section .reputation-cases-block .fedresurs-summary-case-link:hover {
    text-decoration: underline;
}

/* Банкротство (Федресурс): секция с раскрываемым блоком, как ФССП и арбитраж */
.fedresurs-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.fedresurs-section .fedresurs-section-header {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
}
.fedresurs-section-body {
    padding: 0 18px 16px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.fedresurs-section:not(.fedresurs-section--collapsed) .fedresurs-section-body {
    max-height: none;
    overflow: visible;
}
.fedresurs-section.fedresurs-section--collapsed .fedresurs-section-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}
.fedresurs-section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0 auto 16px;
    width: 100%;
}
.fedresurs-inner-divider {
    margin: 12px 0;
}
.fedresurs-section .fedresurs-details-block {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.fedresurs-section .fedresurs-details-block.hidden {
    display: none;
}
/* Текст в предпросмотре (сводка) — чёрный */
.fedresurs-preview-text {
    color: #111827;
}
.fedresurs-preview-text .fedresurs-summary-date,
.fedresurs-preview-text .fedresurs-summary-status {
    color: #111827;
    font-size: 16px;
    font-weight:600;
}
.fedresurs-summary-card-trigger {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    user-select: none;
}
.fedresurs-summary-card-trigger > .fedresurs-summary-bullet {
    flex-shrink: 0;
    margin-top: 2px;
}
.fedresurs-summary-card-trigger:hover {
    background: #f9fafb;
}
.fedresurs-summary-chevron {
    flex-shrink: 0;
    color: #6b7280;
}
.fedresurs-summary-chevron i {
    display: block;
    transition: transform 0.2s ease;
}
.fedresurs-summary-block {
    flex: 1;
    min-width: 0;
}
.fedresurs-full-details.hidden {
    display: none;
}
.fedresurs-summary-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px 24px;
}
.fedresurs-summary-col {
    flex: 1;
    min-width: 0;
}
.fedresurs-summary-label {
    font-size: 15px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.fedresurs-summary-date-num {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.fedresurs-summary-date-num .fedresurs-summary-date,
.fedresurs-summary-date-num .fedresurs-summary-case-link {
    display: block;
    font-size: 16px;
    font-weight:600;
}
.fedresurs-summary-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    flex-shrink: 0;
}
.fedresurs-summary-date {
    font-size: 0.875rem;
    color: #111827;
}
.fedresurs-summary-case-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
}
.fedresurs-summary-case-link:hover {
    text-decoration: underline;
}
.fedresurs-summary-status {
    font-size: 0.875rem;
    color: #111827;
}
.fedresurs-detail-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}
.fedresurs-detail-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin: 0 0 4px 0;
}
.fedresurs-detail-table .fedresurs-detail-label {
    width: 1%;
    white-space: nowrap;
    padding: 4px 12px 4px 0;
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
    vertical-align: top;
}
.fedresurs-detail-table .fedresurs-detail-value {
    padding: 4px 0;
    font-size: 15px;
    color: #111827;
    vertical-align: top;
}
.fedresurs-detail-table .fedresurs-detail-value a {
    color: #2563eb;
    text-decoration: none;
}
.fedresurs-detail-table .fedresurs-detail-value a:hover {
    text-decoration: underline;
}

/* Блоки списков ФССП и арбитража — внутри подлежащей секции в закруглённом прямоугольнике */
.fssp-cases-block,
.arbitration-cases-block {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.fssp-cases-list,
.arbitration-cases-list {
    background: #fff;
    overflow: hidden;
    margin-top: 12px;
}

.fssp-cases-block .cases-block-title,
.arbitration-cases-block .cases-block-title {
    margin-bottom: 12px;
}
.fssp-cases-block .fssp-cases-toolbar,
.arbitration-cases-block .arbitration-cases-toolbar {
    margin-bottom: 0;
}

/* Фильтр по статусу ИП (Все / Открытые / Приостановленные и прекращенные) — в стиле скрина */
.fssp-status-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-bottom: 14px;
}
.fssp-status-filter-btn {
    padding: 10px 20px;
    font-size: 1rem;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}
.fssp-status-filter-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.fssp-status-filter-btn--all.is-selected {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}
.fssp-status-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.fssp-status-filter-option:hover {
    color: #111827;
}
.fssp-status-filter-option.is-selected {
    color: #111827;
    font-weight: 600;
}
.fssp-status-filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fssp-status-filter-dot--open {
    background: #dc2626;
}
.fssp-status-filter-dot--suspended {
    background: #f59e0b;
}

/* Фильтры ФССП и арбитража: подпись сверху, селект — светлый закруглённый прямоугольник (как на скрине) */
.cases-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cases-filter-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}
.cases-filter-select,
.fssp-cases-block select,
.arbitration-cases-block select.cases-filter-select {
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    min-width: 160px;
    font-size: 0.9rem;
    color: #111827;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
.cases-filter-select:hover,
.fssp-cases-block .cases-filter-select:hover,
.arbitration-cases-block .cases-filter-select:hover {
    background-color: #eeeeee;
}
.cases-filter-select:focus,
.fssp-cases-block select:focus,
.arbitration-cases-block select.cases-filter-select:focus {
    outline: none;
    border-color: #9ca3af;
}
.fssp-cases-block .fssp-cases-pagination,
.arbitration-cases-block .arbitration-cases-pagination {
    margin-top: 12px;
}

/* Арбитражные суды в базовой проверке: коллапс и пагинация */
.arbitration-cases-block .arbitration-cases-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}
.arbitration-cases-block .link { cursor: pointer; color: var(--c-link, #2563eb); }
.arbitration-cases-block .link:hover { text-decoration: underline; }
.arbitration-case-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.arbitration-case-item:last-child { margin-bottom: 0; }
.arbitration-case-trigger {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
    user-select: none;
}
.arbitration-case-trigger:hover { background: #f9fafb; }
.arbitration-case-trigger .arbitration-case-trigger-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
    flex-shrink: 0; margin-right: 12px;
}
.arbitration-case-trigger-content { flex: 1; min-width: 0; width: 100%; display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 48px); }
.arbitration-case-trigger-col { min-width: 0; flex: 1 1 120px; }
.arbitration-case-trigger-col .arb-trigger-label { font-size: 0.75rem; color: #6b7280; display: block; margin-bottom: 2px; }
.arbitration-case-trigger-col .arb-trigger-value { color: #111827; font-weight: 600; font-size: 16px; }
.arbitration-case-trigger .collapsible__icon {
    flex-shrink: 0; margin-left: 8px; color: #6b7280; transition: transform 0.2s ease;
}
.arbitration-case-item.collapsible__item_active .collapsible__icon { transform: rotate(180deg); }
.arbitration-case-content { display: none; padding: 14px 14px 14px 34px; background: #fff; border-top: 1px solid #e5e7eb; }
.arbitration-case-item.collapsible__item_active .arbitration-case-content { display: block; }
.arbitration-case-details { margin-bottom: 16px; }
.arbitration-case-details .arb-detail-row {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 0 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #000;
  align-items: start;
}
.arbitration-case-details .arb-detail-row:last-child { margin-bottom: 0; }
.arbitration-case-details .arb-detail-label { color: #000; }
.arbitration-case-details .arb-detail-value { min-width: 0; }
.arbitration-parties-title { font-size: 1rem; font-weight: 600; margin: 12px 0 8px; color: #111; }
.arbitration-parties-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.arbitration-parties-table th { text-align: left; padding: 8px 10px; background: #f3f4f6; border: 1px solid #e5e7eb; }
.arbitration-parties-table td { padding: 8px 10px; border: 1px solid #e5e7eb; }
.arbitration-cases-pagination {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.9rem;
}
.arbitration-cases-pagination .pagination-btn {
    padding: 6px 12px; cursor: pointer; border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
}
.arbitration-cases-pagination .pagination-btn:hover:not(:disabled) { background: #f3f4f6; }
.arbitration-cases-pagination .pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.arbitration-cases-pagination .pagination-info { color: #6b7280; }

/* Заголовок блока «В базе … найдено N записей» (ФССП и арбитраж) — меньше, чем form-title */
.cases-block-title { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; }

/* ФССП в базовой проверке — те же стили, что у арбитража */
.fssp-cases-block .fssp-cases-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.fssp-cases-block .link { cursor: pointer; color: var(--c-link, #2563eb); }
.fssp-cases-block .link:hover { text-decoration: underline; }
.fssp-case-item { margin-bottom: 8px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; overflow: hidden; }
.fssp-case-item:last-child { margin-bottom: 0; }
.fssp-case-trigger { display: flex; align-items: flex-start; padding: 12px 14px; cursor: pointer; gap: 8px; background: #fff; }
.fssp-case-trigger:hover { background: #f9fafb; }
.fssp-case-trigger .fssp-case-trigger-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.fssp-case-trigger-content { flex: 1; min-width: 0; width: 100%; display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 48px); }
.fssp-case-trigger-col { min-width: 0; flex: 1 1 120px; }
.fssp-case-trigger-col .fssp-trigger-label { font-size: 15px; color: #6b7280; display: block; margin-bottom: 2px; }
.fssp-case-trigger-col .fssp-trigger-value { color: #111827; font-weight: 600; font-size: 16px; }
.fssp-case-trigger .collapsible__icon { transition: transform 0.2s; color: #6b7280; }
.fssp-case-item.collapsible__item_active .collapsible__icon { transform: rotate(180deg); }
.fssp-case-content { display: none; padding: 14px 14px 14px 34px; background: #fff; border-top: 1px solid #e5e7eb; }
.fssp-case-item.collapsible__item_active .fssp-case-content { display: block; }
.fssp-case-details {
  margin-bottom: 16px;
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.9rem;
  color: #000;
}
.fssp-case-details .fssp-detail-row { display: table-row; }
.fssp-case-details .fssp-detail-label {
    width: 1%;
    white-space: nowrap;
    padding: 4px 12px 4px 0;
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
    vertical-align: top;
}
.fssp-case-details .fssp-detail-value {
    display: table-cell;
    padding: 4px 0;
    font-size: 15px;
    color: #111827;
    vertical-align: top;
}
.fssp-cases-pagination { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fssp-cases-pagination .pagination-btn { padding: 6px 12px; cursor: pointer; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; }
.fssp-cases-pagination .pagination-btn:hover:not(:disabled) { background: #f3f4f6; }
.fssp-cases-pagination .pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fssp-cases-pagination .pagination-info { color: #6b7280; }

/* ========== Мобильная версия базовой проверки (risk-list, арбитраж, ФССП, репутация, федресурс) ========== */
@media (max-width: 768px) {
  /* Карточки базовой проверки: 1) источник, 2) иконка + заголовок, 3) значение. Порядок через order. */
  .risk-list .risk-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 14px 16px;
  }
  .risk-list .risk-item .risk-source {
    order: 1;
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 6px;
    padding-top: 0;
    font-size: 0.85em;
    color: #6b7280;
  }
  .risk-list .risk-item .risk-icon {
    order: 2;
    flex-shrink: 0;
    margin-right: 8px;
  }
  .risk-list .risk-item .risk-label {
    order: 2;
    flex: 1;
    min-width: 0;
  }
  .risk-list .risk-item .risk-status {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 0;
    font-weight: 500;
    color: #111827;
    padding-left: 0px;
  }

  /* Арбитраж: в триггере каждая колонка — отдельная строка (ключ сверху, значение снизу), разделены линией */
  .arbitration-case-trigger-content {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }
  .arbitration-case-trigger-col {
    flex: none;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .arbitration-case-trigger-col:last-of-type {
    border-bottom: none;
  }
  .arbitration-case-trigger-col .arb-trigger-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
  }
  .arbitration-case-trigger-col .arb-trigger-value {
    color: #111827;
    font-weight: 600;
    font-size: 16px;
  }

  /* Арбитраж: раскрытый блок — ключ сверху, значение снизу, как на скриншоте (таблица без вертикальных линий) */
  .arbitration-case-details .arb-detail-row {
    display: block;
    grid-template-columns: none;
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
  }
  .arbitration-case-details .arb-detail-row:last-child {
    border-bottom: none;
  }
  .arbitration-case-details .arb-detail-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 4px;
  }
  .arbitration-case-details .arb-detail-value {
    display: block;
    font-weight: 500;
    color: #111827;
    min-width: 0;
  }
  .arbitration-case-content {
    padding: 12px 14px 14px 14px;
  }

  /* ФССП: тот же паттерн — триггер по строкам, детали ключ/значение */
  .fssp-case-trigger-content {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }
  .fssp-case-trigger-col {
    flex: none;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .fssp-case-trigger-col:last-of-type {
    border-bottom: none;
  }
  .fssp-case-trigger-col .fssp-trigger-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
  }
  .fssp-case-trigger-col .fssp-trigger-value {
    color: #111827;
    font-size: 16px;
  }
  .fssp-case-details {
    display: block;
  }
  .fssp-case-details .fssp-detail-row {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .fssp-case-details .fssp-detail-row:last-child {
    border-bottom: none;
  }
  .fssp-case-details .fssp-detail-label {
    display: block;
    width: auto;
    white-space: normal;
    padding: 0 0 4px 0;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
  }
  .fssp-case-details .fssp-detail-value {
    display: block;
    padding: 0;
    font-weight: 500;
    color: #111827;
  }
  .fssp-case-content {
    padding: 12px 14px 14px 14px;
  }

  /* Репутация (суды общей юрисдикции): триггер и детали в том же стиле */
  .reputation-case-trigger-content {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }
  .reputation-case-trigger-col {
    flex: none;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .reputation-case-trigger-col:last-of-type {
    border-bottom: none;
  }
  .reputation-case-trigger-col .rep-trigger-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
  }
  .reputation-case-trigger-col .rep-trigger-value {
    color: #111827;
    font-size: 16px;
  }
  .reputation-case-details.rep-detail-table .rep-detail-row {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .reputation-case-details.rep-detail-table .rep-detail-row:last-child {
    border-bottom: none;
  }
  .reputation-case-details .rep-detail-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
  }
  .reputation-case-details .rep-detail-value {
    display: block;
    font-weight: 500;
    color: #111827;
  }
  .reputation-parties-title {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
  }

  /* Федресурс: сводка и детали — ключ сверху, значение снизу */
  .fedresurs-summary-row {
    flex-direction: column;
    gap: 0;
  }
  .fedresurs-summary-col {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .fedresurs-summary-col:last-child {
    border-bottom: none;
  }
  .fedresurs-summary-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
  }
  .fedresurs-summary-date-num,
  .fedresurs-summary-status {
    font-weight: 500;
    color: #111827;
  }
  .fedresurs-detail-table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .fedresurs-detail-table tr:last-child {
    border-bottom: none;
  }
  .fedresurs-detail-table td,
  .fedresurs-detail-table th {
    display: block;
    padding: 2px 0;
    border: none;
  }
  .fedresurs-detail-table .fedresurs-detail-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
  }
  .fedresurs-detail-table .fedresurs-detail-value {
    font-weight: 500;
    color: #111827;
  }
}
