/* Новые стили для современного интерфейса в стиле ClassBox */
:root {
  --primary: #7868e6;
  --primary-light: #9d93f1;
  --primary-dark: #5245c0;
  --secondary: #b8b5ff;
  --accent: #6c6ce5;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --dark: #222831;
  --text-primary: #333;
  --text-secondary: #555;
  --text-muted: #96a0b5;
  --background: #f5f7fa;
  --white: #ffffff;
  --card-bg: #ffffff;
  --card-border: #f0f0f0;
  --border-light: #edf2f7;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Основные стили */
body {
  font-family: var(--font-primary);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1280px;
  padding: 0 1.25rem;
}

/* Стили шапки */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 0.5rem;
}

.header-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.header-brand:hover {
  transform: translateY(-1px);
  color: var(--primary-dark);
}

.header-brand:active {
  transform: translateY(1px);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 0.75rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(120, 104, 230, 0.3);
  transition: all 0.3s ease;
}

.header-brand:hover .brand-logo {
  transform: rotate(5deg);
  box-shadow: 0 5px 12px rgba(120, 104, 230, 0.4);
}

.brand-logo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-brand:hover .brand-logo::after {
  opacity: 1;
}

.brand-logo i {
  font-size: 1.5rem;
  z-index: 1;
}

.brand-tagline {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 0.75rem;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.header-brand:hover .brand-tagline {
  opacity: 1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.user-menu:hover {
  background-color: var(--border-light);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
  color: var(--dark);
}

.user-role {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  background-color: var(--secondary);
  color: var(--primary);
  margin-left: 0.5rem;
}

/* Навигация */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.navbar-nav {
  display: flex;
  gap: 0.5rem;
}

.navbar-light .navbar-toggler {
  border-color: transparent;
  padding: 0.25rem 0.5rem;
}

.navbar-light .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28120, 104, 230, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link i, 
.nav-link svg {
  font-size: 1.1rem;
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(120, 104, 230, 0.04);
}

.nav-link.active {
  color: var(--primary);
  background-color: rgba(120, 104, 230, 0.08);
}

/* Основное содержимое */
.main-content {
  padding: 1.5rem 0;
}

/* Карточки */
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn i, .btn svg {
  font-size: 1.1em;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-outline-secondary {
  border-color: var(--border-light);
  color: var(--text-secondary);
  background-color: transparent;
}

.btn-outline-secondary:hover {
  background-color: var(--border-light);
  color: var(--dark);
}

.btn-success {
  background-color: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background-color: #2bbf8a;
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #e05c5c;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon.btn-lg {
  width: 42px;
  height: 42px;
}

.btn-rounded {
  border-radius: 50px;
}

/* Стили для рейтинга надежности */
.rating-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.rating-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--white);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  border: 3px solid transparent;
}

.rating-circle:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5f7fd, #e8eaf9);
  z-index: 0;
}

.rating-circle .inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.rating-score {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.rating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

.rating-high .rating-score {
  color: var(--success);
}

.rating-medium .rating-score {
  color: var(--warning);
}

.rating-low .rating-score {
  color: var(--danger);
}

/* Добавляем стили для классов high/medium/low-reliability */
.high-reliability .rating-score {
  color: var(--success);
}

.medium-reliability .rating-score {
  color: var(--warning);
}

.low-reliability .rating-score {
  color: var(--danger);
}

/* Добавляем цветную обводку для круга рейтинга */
.high-reliability {
  border: 3px solid var(--success);
}

.medium-reliability {
  border: 3px solid var(--warning);
}

.low-reliability {
  border: 3px solid var(--danger);
}

/* Стили для карточек статистики */
.stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stat-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
}

.stat-value .unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.stat-icon {
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-icon.primary {
  background-color: rgba(120, 104, 230, 0.1);
  color: var(--primary);
}

.stat-icon.success {
  background-color: rgba(52, 211, 153, 0.1);
  color: var(--success);
}

.stat-icon.warning {
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--warning);
}

.stat-icon.danger {
  background-color: rgba(248, 113, 113, 0.1);
  color: var(--danger);
}

/* Индикаторы диаграмм */
.chart-wrapper {
  height: 250px;
  margin-top: 1rem;
}

.chart-legends {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.chart-legend-color.primary {
  background-color: var(--primary);
}

.chart-legend-color.success {
  background-color: var(--success);
}

.chart-legend-color.danger {
  background-color: var(--danger);
}

/* Стили для таблиц */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 0.875rem 1.25rem;
  text-align: left;
  background-color: rgba(245, 247, 250, 0.5);
}

.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(245, 247, 250, 0.5);
}

.table-hover tbody tr:hover {
  background-color: rgba(120, 104, 230, 0.04);
}

/* Стили для форм */
.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.15);
  outline: 0;
}

.form-text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  background-color: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.input-group > .form-control:not(:first-child),
.input-group > .custom-select:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-prepend {
  display: flex;
  margin-right: -1px;
}

.input-group-append {
  display: flex;
  margin-left: -1px;
}

.input-group-prepend .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-append .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Бейджи */
.badge {
  display: inline-block;
  padding: 0.3em 0.6em;
  font-size: 0.75em;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50rem;
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-success {
  background-color: var(--success);
  color: white;
}

.badge-warning {
  background-color: var(--warning);
  color: #664d03;
}

.badge-danger {
  background-color: var(--danger);
  color: white;
}

.badge-light {
  background-color: var(--border-light);
  color: var(--text-secondary);
}

/* Алерты */
.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* Футер */
footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
  color: var(--text-primary);
}

.footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(120, 104, 230, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1rem;
}

.footer-contact-info {
  color: var(--text-secondary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 2.5rem;
}

.footer-copyright {
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 0.875rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(120, 104, 230, 0.1);
  color: var(--primary);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Утилиты */
.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.text-center {
  text-align: center !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.rounded {
  border-radius: 8px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Адаптивность */
@media (max-width: 992px) {
  .header-content {
    height: 60px;
  }
  
  .brand-tagline {
    display: none;
  }
  
  .nav-link {
    padding: 0.625rem 0.875rem;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0.5rem 1rem;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .card-header, .card-body, .card-footer {
    padding: 1.25rem;
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  .rating-circle {
    width: 140px;
    height: 140px;
  }
  
  .rating-score {
    font-size: 2.5rem;
  }

  .high-reliability, .medium-reliability, .low-reliability {
    border-width: 2.5px;
  }
}

@media (max-width: 768px) {
  .header-content {
    height: 56px;
    padding: 0 1rem;
  }
  
  .header-brand {
    font-size: 1.25rem;
  }
  
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  
  .brand-logo i {
    font-size: 1.25rem;
  }
  
  .user-avatar {
    width: 34px;
    height: 34px;
  }
  
  .card-header, .card-body, .card-footer {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .table th, .table td {
    padding: 0.75rem 1rem;
  }
  
  .rating-circle {
    width: 120px;
    height: 120px;
  }
  
  .rating-score {
    font-size: 2.25rem;
  }
  
  .footer-heading {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }

  .high-reliability, .medium-reliability, .low-reliability {
    border-width: 2px;
  }
}

@media (max-width: 576px) {
  .header-content {
    height: 52px;
  }
  
  .header-brand {
    font-size: 1.125rem;
  }
  
  .header-brand img, 
  .header-brand svg {
    height: 24px;
  }
  
  .card-header, .card-body, .card-footer {
    padding: 0.875rem;
  }
  
  .btn {
    padding: 0.375rem 0.875rem;
  }
  
  .rating-circle {
    width: 100px;
    height: 100px;
  }
  
  .rating-score {
    font-size: 2rem;
  }
  
  .chart-wrapper {
    height: 200px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  .high-reliability, .medium-reliability, .low-reliability {
    border-width: 1.5px;
  }
}

/* Стили для новых карточек расширенных данных */

/* Карточка судебных дел */
#court-cases-card .badge {
  font-size: 0.875rem;
  padding: 0.4em 0.8em;
  min-width: 32px;
}

#court-cases-card .row > div {
  padding: 1rem;
}

#court-cases-card h6 {
  color: var(--dark);
  font-weight: 600;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Карточка задолженностей */
#debt-info-card .alert {
  border-left: 4px solid;
}

#debt-info-card .alert-warning {
  border-left-color: var(--warning);
}

#debt-info-card .alert-success {
  border-left-color: var(--success);
}

#debt-info-card .alert-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#debt-info-card ul {
  padding-left: 1.5rem;
}

#debt-info-card .table-sm th,
#debt-info-card .table-sm td {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Карточка финансовых показателей */
#finance-info-card .bg-light {
  background-color: rgba(120, 104, 230, 0.05) !important;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

#finance-info-card .bg-light:hover {
  background-color: rgba(120, 104, 230, 0.08) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#finance-info-card .fs-4 {
  font-size: 1.5rem;
  font-weight: 700;
}

#finance-info-card .text-primary {
  color: var(--primary) !important;
}

#finance-info-card .text-success {
  color: var(--success) !important;
}

#finance-info-card .text-danger {
  color: var(--danger) !important;
}

/* Карточка реестра недобросовестных поставщиков */
#unscrupulous-info-card .alert {
  border-left: 4px solid;
}

#unscrupulous-info-card .alert-danger {
  border-left-color: var(--danger);
  background-color: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
}

#unscrupulous-info-card .alert-info {
  border-left-color: #0dcaf0;
  background-color: rgba(13, 202, 240, 0.1);
  border-color: rgba(13, 202, 240, 0.2);
}

#unscrupulous-info-card .alert-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

#unscrupulous-info-card .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

#unscrupulous-info-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

#unscrupulous-info-card strong {
  font-weight: 600;
  color: var(--dark);
}

/* Карточка дополнительной информации */
#additional-info-card .bg-light {
  background-color: rgba(120, 104, 230, 0.05) !important;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

#additional-info-card .bg-light:hover {
  background-color: rgba(120, 104, 230, 0.08) !important;
  transform: translateX(4px);
}

#additional-info-card .badge {
  font-size: 1rem;
  padding: 0.5em 0.8em;
  min-width: 40px;
}

#additional-info-card i {
  font-size: 1.25rem;
}

/* Стили для источников данных */
.source-status {
  padding: 1rem;
  border-radius: 8px;
  background-color: rgba(245, 247, 250, 0.5);
  transition: all 0.3s ease;
  height: 100%;
}

.source-status:hover {
  background-color: rgba(120, 104, 230, 0.05);
  transform: translateY(-2px);
}

.source-status h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.source-status .status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.source-status .status-indicator i {
  font-size: 1.125rem;
}

.source-status .status-text {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Стили для факторов рейтинга */
.factor-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.factor-bar {
  position: relative;
}

.factor-bar .progress {
  height: 28px;
  border-radius: 6px;
  background-color: rgba(245, 247, 250, 0.8);
  overflow: hidden;
}

.factor-bar .progress-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: width 0.6s ease;
}

.factor-weight {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Анимация появления карточек */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:not(.d-none) {
  animation: fadeInUp 0.4s ease-out;
}

/* Адаптивность для новых карточек */
@media (max-width: 768px) {
  #court-cases-card .row > div {
    padding: 0.75rem;
  }
  
  #finance-info-card .fs-4 {
    font-size: 1.25rem;
  }
  
  #additional-info-card .badge {
    font-size: 0.875rem;
    min-width: 32px;
  }
  
  .source-status {
    padding: 0.875rem;
  }
  
  .factor-bar .progress {
    height: 24px;
  }
}

@media (max-width: 576px) {
  #court-cases-card h6 {
    font-size: 0.95rem;
  }
  
  #finance-info-card .col-md-4 {
    margin-bottom: 0.75rem;
  }
  
  #finance-info-card .fs-4 {
    font-size: 1.125rem;
  }
  
  .source-status h6 {
    font-size: 0.875rem;
  }
  
  .factor-bar .progress {
    height: 20px;
  }
  
  .factor-bar .progress-bar {
    font-size: 0.7rem;
  }
}

/* ========== СТИЛИ ДЛЯ ТАБОВ ========== */

/* Кастомные табы */
.nav-tabs-custom {
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 2rem;
  background: var(--white);
  padding: 0;
  border-radius: 0;
}

.nav-tabs-custom .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  background: transparent;
  border-radius: 0;
  position: relative;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary-light);
  background: rgba(120, 104, 230, 0.05);
}

.nav-tabs-custom .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

.nav-tabs-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.nav-tabs-custom .nav-link i {
  font-size: 1.1em;
}

/* Анимация появления контента табов */
.tab-pane {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность табов */
@media (max-width: 768px) {
  .nav-tabs-custom .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .nav-tabs-custom .nav-link i {
    font-size: 1em;
  }
}

@media (max-width: 576px) {
  .nav-tabs-custom .nav-link {
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .nav-tabs-custom .nav-link i {
    display: none;
  }
}

/* ========== СТИЛИ ДЛЯ СРАВНЕНИЯ КОНТРАГЕНТОВ ========== */

/* Таблица сравнения */
.comparison-table {
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Контейнер с горизонтальной прокруткой для большого количества контрагентов */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table thead th {
  background-color: var(--background);
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.comparison-table tbody td {
  padding: 0.875rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table tbody tr:hover {
  background-color: rgba(120, 104, 230, 0.03);
}

.comparison-param-col {
  min-width: 200px;
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  left: 0;
  background-color: var(--white);
  z-index: 10;
}

.comparison-company-col {
  min-width: 180px;
  max-width: 250px;
}

/* Подсветка лучших и худших показателей */
.comparison-best {
  background-color: rgba(52, 211, 153, 0.1) !important;
  border-left: 3px solid var(--success);
  font-weight: 600;
}

.comparison-worst {
  background-color: rgba(248, 113, 113, 0.1) !important;
  border-left: 3px solid var(--danger);
}

/* Адаптивность таблицы сравнения */
@media (max-width: 992px) {
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-param-col {
    min-width: 150px;
  }
  
  .comparison-company-col {
    min-width: 140px;
  }
  
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.8rem;
  }
  
  .comparison-param-col {
    min-width: 120px;
    font-size: 0.85rem;
  }
  
  .comparison-company-col {
    min-width: 120px;
  }
  
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.625rem 0.375rem;
  }
  
  .comparison-table .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .comparison-table {
    font-size: 0.75rem;
  }
  
  .comparison-param-col {
    min-width: 100px;
    font-size: 0.8rem;
  }
  
  .comparison-company-col {
    min-width: 100px;
  }
  
  .comparison-table thead th small {
    font-size: 0.65rem;
  }
  
  .comparison-table .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Стили для формы сравнения */
.unp-input-group {
  transition: all 0.3s ease;
}

.unp-input-group:hover {
  transform: translateX(2px);
}

/* Анимация для добавления/удаления полей */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.unp-input-group {
  animation: slideInDown 0.3s ease-out;
}

/* Градиент для секции сравнения */
.bg-gradient-secondary {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* Улучшенные стили для кнопок в секции сравнения */
#add-unp-button,
#remove-unp-button {
  transition: all 0.2s ease;
}

#add-unp-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(120, 104, 230, 0.2);
}

#remove-unp-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(248, 113, 113, 0.2);
}

/* Стили для индикаторов в таблице */
.comparison-table .text-success {
  color: var(--success) !important;
}

.comparison-table .text-danger {
  color: var(--danger) !important;
}

.comparison-table .badge {
  font-weight: 600;
  padding: 0.35rem 0.65rem;
}

/* Улучшенная прокрутка таблицы на мобильных */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--background);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==================== СТИЛИ ДЛЯ ОТЗЫВОВ ==================== */

/* Карточка отзывов */
#reviews-card {
  margin-top: 1.5rem;
}

/* Статистика отзывов */
.review-statistics {
  display: flex;
  gap: 15px;
  font-size: 1.1rem;
  align-items: center;
}

.review-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.review-stat-item.recommended {
  color: var(--success);
}

.review-stat-item.not-recommended {
  color: var(--danger);
}

/* Форма добавления/редактирования отзыва */
.review-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-form .form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.review-form textarea {
  resize: vertical;
  min-height: 100px;
}

.review-form .recommendation-toggle {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.review-form .recommendation-toggle .btn {
  flex: 1;
  padding: 10px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.review-form .recommendation-toggle .btn-recommend {
  border: 2px solid var(--success);
  color: var(--success);
  background: white;
}

.review-form .recommendation-toggle .btn-recommend.active {
  background: var(--success);
  color: white;
}

.review-form .recommendation-toggle .btn-not-recommend {
  border: 2px solid var(--danger);
  color: var(--danger);
  background: white;
}

.review-form .recommendation-toggle .btn-not-recommend.active {
  background: var(--danger);
  color: white;
}

/* Список отзывов */
#reviews-list {
  margin-top: 20px;
}

.review-item {
  border-left: 3px solid var(--border-light);
  padding: 15px;
  margin-bottom: 15px;
  background: var(--background);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(2px);
}

.review-item.recommended {
  border-left-color: var(--success);
  background: linear-gradient(to right, rgba(52, 211, 153, 0.05), var(--background));
}

.review-item.not-recommended {
  border-left-color: var(--danger);
  background: linear-gradient(to right, rgba(248, 113, 113, 0.05), var(--background));
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.review-author-role {
  font-size: 12px;
  color: var(--text-muted);
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.review-badge.recommended {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
}

.review-badge.not-recommended {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
}

.review-text {
  margin: 15px 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-actions {
  display: flex;
  gap: 8px;
}

.review-actions .btn {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* Пустое состояние */
.reviews-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.reviews-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.reviews-empty p {
  margin: 0;
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .review-statistics {
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
  }
  
  .review-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .review-form .recommendation-toggle {
    flex-direction: column;
  }
} 