/*
 * CRM — промышленная тёмная тема
 * Только для body.crm-industrial (layout/base.html дашборда)
 */

body.crm-industrial {
	background: #0f1216 !important;
	background-image: none !important;
	color: #e6edf3;
	font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
}

/* Переопределение жёлтых акцентов из admin_custom под промышленную палитру */
body.crm-industrial .text-muted,
body.crm-industrial .text-secondary,
body.crm-industrial .form-text,
body.crm-industrial .table td:not([class*="text-"]):not([class*="badge"]),
body.crm-industrial .card-body p:not([class*="text-"]),
body.crm-industrial .card-body span:not([class*="text-"]),
body.crm-industrial .card-body div:not([class*="text-"]):not([class*="badge"]) {
	color: #8b949e !important;
}

body.crm-industrial .card-header h5,
body.crm-industrial .card-header h6,
body.crm-industrial .page-header-title h5,
body.crm-industrial .card-title,
body.crm-industrial .table th {
	color: #e6edf3 !important;
}

body.crm-industrial .wrapper {
	background: #0f1216;
}

/* Сайдбар */
body.crm-industrial .sidebar-wrapper {
	background: #161b22;
	border-right: 1px solid #30363d;
}

body.crm-industrial .sidebar-header {
	background: #161b22;
	border-bottom: 1px solid #30363d;
	border-right: 1px solid #30363d;
}

body.crm-industrial .logo-text,
body.crm-industrial .toggle-icon {
	color: #e6edf3;
}

body.crm-industrial .sidebar-wrapper .metismenu > li > a {
	color: #8b949e;
}

body.crm-industrial .sidebar-wrapper .metismenu > li > a .menu-title {
	color: #8b949e;
}

body.crm-industrial .sidebar-wrapper .metismenu > li > a .parent-icon {
	color: #6e7681;
}

body.crm-industrial .sidebar-wrapper .metismenu a:hover,
body.crm-industrial .sidebar-wrapper .metismenu a:focus,
body.crm-industrial .sidebar-wrapper .metismenu a:active,
body.crm-industrial .sidebar-wrapper .metismenu .mm-active > a {
	background: rgba(240, 165, 0, 0.12);
	color: #f0a500;
}

body.crm-industrial .sidebar-wrapper .metismenu a:hover .menu-title,
body.crm-industrial .sidebar-wrapper .metismenu a:hover .parent-icon,
body.crm-industrial .sidebar-wrapper .metismenu .mm-active > a .menu-title,
body.crm-industrial .sidebar-wrapper .metismenu .mm-active > a .parent-icon {
	color: #f0a500;
}

body.crm-industrial .sidebar-wrapper .metismenu ul {
	border-left: 1px solid #30363d;
}

body.crm-industrial .sidebar-wrapper .metismenu ul a {
	color: #8b949e;
}

/* Шапка */
body.crm-industrial .topbar {
	background: #1c2128;
	border-bottom: 1px solid #30363d;
}

body.crm-industrial .topbar .navbar .navbar-nav .nav-link {
	color: #e6edf3;
}

body.crm-industrial .topbar .navbar .navbar-nav .nav-link:hover {
	color: #f0a500;
}

/* Контент */
body.crm-industrial .page-wrapper {
	background: #0f1216;
}

body.crm-industrial .page-content {
	color: #e6edf3;
}

/* Карточки */
body.crm-industrial .card {
	background: #1c2128;
	border: 1px solid #30363d;
	border-radius: 6px;
	color: #e6edf3;
}

body.crm-industrial .card-header {
	background: #22272e;
	border-bottom: 1px solid #30363d;
	color: #e6edf3;
}

body.crm-industrial .card-header h5,
body.crm-industrial .card-header h6 {
	color: #e6edf3;
}

body.crm-industrial .card-body {
	color: #c9d1d9;
}

body.crm-industrial .card-title {
	color: #e6edf3;
}

/* Таблицы */
body.crm-industrial .table {
	color: #c9d1d9;
	border-color: #30363d;
}

body.crm-industrial .table thead th {
	background: #22272e;
	color: #e6edf3;
	border-color: #30363d;
}

body.crm-industrial .table td,
body.crm-industrial .table tbody th {
	border-color: #30363d;
}

body.crm-industrial .table tbody tr:hover {
	background: rgba(240, 165, 0, 0.06);
}

/* Формы */
body.crm-industrial .form-control,
body.crm-industrial .form-select {
	background: #22272e;
	border: 1px solid #30363d;
	color: #e6edf3;
}

body.crm-industrial .form-control::placeholder {
	color: #6e7681;
}

body.crm-industrial .form-control:focus {
	background: #22272e;
	border-color: #f0a500;
	color: #e6edf3;
	box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.2);
}

body.crm-industrial .form-label,
body.crm-industrial label {
	color: #c9d1d9;
}

body.crm-industrial .form-text,
body.crm-industrial .text-muted {
	color: #8b949e;
}

/* Кнопки */
body.crm-industrial .btn-primary {
	background: #f0a500;
	border-color: #f0a500;
	color: #0f1216;
}

body.crm-industrial .btn-primary:hover {
	background: #e09800;
	border-color: #e09800;
	color: #0f1216;
}

body.crm-industrial .btn-secondary {
	background: #30363d;
	border-color: #30363d;
	color: #e6edf3;
}

body.crm-industrial .btn-secondary:hover {
	background: #484f58;
	border-color: #484f58;
	color: #e6edf3;
}

body.crm-industrial .btn-outline-primary {
	border-color: #f0a500;
	color: #f0a500;
}

body.crm-industrial .btn-outline-primary:hover {
	background: rgba(240, 165, 0, 0.15);
	color: #f0a500;
}

body.crm-industrial .btn-outline-secondary {
	border-color: #30363d;
	color: #8b949e;
}

body.crm-industrial .btn-outline-secondary:hover {
	background: #30363d;
	color: #e6edf3;
}

/* Ссылки */
body.crm-industrial a:not(.btn):not(.nav-link) {
	color: #58a6ff;
}

body.crm-industrial a:not(.btn):not(.nav-link):hover {
	color: #79b8ff;
}

body.crm-industrial .navbar .site-link {
	color: #f0a500;
}

body.crm-industrial .navbar .site-link:hover {
	color: #f5b820;
}

/* Заголовки страниц */
body.crm-industrial .page-header-title h5,
body.crm-industrial .page-header-title,
body.crm-industrial h1, body.crm-industrial h2, body.crm-industrial h3,
body.crm-industrial h4, body.crm-industrial h5, body.crm-industrial h6 {
	color: #e6edf3;
}

/* Списки и группы */
body.crm-industrial .list-group-item {
	background: #1c2128;
	border-color: #30363d;
	color: #c9d1d9;
}

body.crm-industrial .list-group-item.active {
	background: rgba(240, 165, 0, 0.2);
	border-color: #f0a500;
	color: #f0a500;
}

/* Дропдауны */
body.crm-industrial .dropdown-menu {
	background: #1c2128;
	border: 1px solid #30363d;
}

body.crm-industrial .dropdown-item {
	color: #e6edf3;
}

body.crm-industrial .dropdown-item:hover {
	background: #22272e;
	color: #f0a500;
}

body.crm-industrial .dropdown-divider {
	border-color: #30363d;
}

/* Бейджи */
body.crm-industrial .badge.bg-primary {
	background: #f0a500 !important;
	color: #0f1216;
}

body.crm-industrial .badge.bg-secondary {
	background: #30363d !important;
	color: #e6edf3;
}

body.crm-industrial .badge.bg-success {
	background: #238636 !important;
}

body.crm-industrial .badge.bg-danger {
	background: #da3633 !important;
}

body.crm-industrial .badge.bg-warning {
	background: #9e6a03 !important;
	color: #e6edf3;
}

/* Алерты */
body.crm-industrial .alert-success {
	background: rgba(35, 134, 54, 0.2);
	border-color: #238636;
	color: #3fb950;
}

body.crm-industrial .alert-danger {
	background: rgba(218, 54, 51, 0.2);
	border-color: #da3633;
	color: #f85149;
}

body.crm-industrial .alert-warning {
	background: rgba(240, 165, 0, 0.15);
	border-color: #f0a500;
	color: #f0a500;
}

body.crm-industrial .alert-info {
	background: rgba(88, 166, 255, 0.15);
	border-color: #58a6ff;
	color: #58a6ff;
}

/* Модалки */
body.crm-industrial .modal-content {
	background: #1c2128;
	border: 1px solid #30363d;
	color: #e6edf3;
}

body.crm-industrial .modal-header {
	border-bottom-color: #30363d;
}

body.crm-industrial .modal-footer {
	border-top-color: #30363d;
}

body.crm-industrial .btn-close {
	filter: invert(1);
	opacity: 0.7;
}

/* Back to top */
body.crm-industrial .back-to-top {
	background: #30363d;
	color: #e6edf3;
	border: 1px solid #484f58;
}

body.crm-industrial .back-to-top:hover {
	background: #f0a500;
	color: #0f1216;
	border-color: #f0a500;
}

/* Overlay (мобильное меню) */
body.crm-industrial .overlay {
	background: rgba(0, 0, 0, 0.6);
}

/* Пагинация */
body.crm-industrial .pagination .page-link {
	background: #1c2128;
	border-color: #30363d;
	color: #e6edf3;
}

body.crm-industrial .pagination .page-link:hover {
	background: #22272e;
	border-color: #484f58;
	color: #f0a500;
}

body.crm-industrial .pagination .page-item.active .page-link {
	background: #f0a500;
	border-color: #f0a500;
	color: #0f1216;
}

/* Нав-табы */
body.crm-industrial .nav-tabs .nav-link {
	color: #8b949e;
	border-color: transparent;
}

body.crm-industrial .nav-tabs .nav-link:hover {
	color: #e6edf3;
	border-color: #30363d;
}

body.crm-industrial .nav-tabs .nav-link.active {
	background: #1c2128;
	border-color: #30363d #30363d transparent;
	color: #f0a500;
}

body.crm-industrial .nav-tabs {
	border-bottom-color: #30363d;
}

/* Лог-блок (Telegram и др.) */
body.crm-industrial .dashboard-telegram-logs {
	background: #0f1216;
	border: 1px solid #30363d;
	color: #c9d1d9;
}

/* Блоки Telegram-сообщений */
body.crm-industrial .telegram-chat-list-header {
	background: #161b22;
}

body.crm-industrial .telegram-chat-item.active {
	background: rgba(240, 165, 0, 0.15);
	border-left-color: #f0a500;
	color: #f0a500;
}

body.crm-industrial .telegram-conversation-header {
	background: #161b22;
}

body.crm-industrial .telegram-settings-chats-card {
	border-left-color: #f0a500;
}

body.crm-industrial .telegram-conversation-timeline {
	border-left-color: rgba(240, 165, 0, 0.5);
}

/* Exit-Intent генерации */
body.crm-industrial .eq-generation-img-wrap {
	background: #161b22;
}

body.crm-industrial .eq-generation-placeholder {
	color: #6e7681;
}

body.crm-industrial .eq-generation-prompts::-webkit-scrollbar-track {
	background: #22272e;
}

body.crm-industrial .eq-generation-prompts::-webkit-scrollbar-thumb {
	background: #484f58;
}

/* Распознавалка, общие блоки с текстом */
body.crm-industrial .card-body p,
body.crm-industrial .card-body span,
body.crm-industrial .card-body div:not([class*="text-"]) {
	color: #c9d1d9;
}

body.crm-industrial .table th {
	color: #e6edf3;
}

body.crm-industrial .table td {
	color: #c9d1d9;
}
