/* ==========================================================================
   Финальный файл стилей для CRM (Очищенная и оптимизированная версия)
   ========================================================================== */

/* --- ОБЩИЕ СТИЛИ И ТИПОГРАФИЯ --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #212529;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

a {
    color: #007bff;
    text-decoration: none;
}

.btn {
    display: inline-block;
    font-weight: 500;
    color: #fff;
    text-align: center;
    cursor: pointer;
    background-color: #007bff;
    border: 1px solid #007bff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all .15s ease-in-out;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-reset-red {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease-in-out;
    
    /* 👇 ВОТ КЛЮЧЕВЫЕ ИСПРАВЛЕНИЯ 👇 */
    color: #fff !important;                 /* Белый цвет текста, ОБЯЗАТЕЛЬНО */
    background-color: #dc3545 !important;   /* Красный фон */
    border: 1px solid #dc3545 !important;   /* Красная рамка */
    padding: 10px 20px !important;          /* Твои размеры, ОБЯЗАТЕЛЬНО */
    font-size: 16px !important;             /* Твой размер шрифта */
    border-radius: 5px !important;  
    font-weight: bold !important;      /* Твои скругления */
}
    
/* Стиль при наведении на эту конкретную кнопку */
.btn-reset-red:hover {
    color: #fff !important; /* Не забываем про цвет текста при наведении */
    background-color: #c82333 !important; /* Более темный красный */
    border-color: #bd2130 !important;
}

/* --- ХЕДЕР И ГЛОБАЛЬНАЯ НАВИГАЦИЯ --- */
.page-header {
    background-color: #212121;
    border-bottom: 1px solid #343a40;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-links a:hover {
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
}


/* --- ШАПКА СТРАНИЦЫ (ЗАГОЛОВОК + КНОПКА) --- */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-head h1 {
    margin: 0;
    font-size: 32px;
}


/* --- ОСНОВНЫЕ ФОРМЫ (ДОБАВЛЕНИЕ/РЕДАКТИРОВАНИЕ) --- */
.content-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.content-form label {
    font-weight: 600;
    margin-bottom: -5px;
}

.content-form input,
.content-form select,
.content-form textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.content-form input[type="text"],
.content-form input[type="number"],
.content-form select:not([multiple]) {
    height: 44px;
    padding: 0 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.content-form input[type="number"] {
    -moz-appearance: textfield;
}

.content-form input[type="number"]::-webkit-inner-spin-button,
.content-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.content-form textarea,
.content-form select[multiple] {
    padding: 10px;
    height: 160px;
    overflow-y: auto;
}

.content-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.content-form button[type="submit"]:hover {
    background-color: #0056b3;
}

.actions-cell-wrapper .btn-resend {
    background-color: #ffc107 !important; /* Жёлтый цвет */
}

/* --- ФОРМА ФИЛЬТРАЦИИ --- */
.filter-form {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.filter-form .form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.filter-form select,
.filter-form input {
    height: 42px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-size: 16px;
    outline: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.filter-form select:focus,
.filter-form input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.filter-form button, .filter-form a.btn {
    align-self: flex-end;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper input {
    width: 90%;
    padding-left: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}


/* --- ФИЛЬТРЫ СТАТУСОВ --- */
.status-filters {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    background-color: #e9ecef;
    padding: 5px;
    border-radius: 6px;
    width: fit-content;
}

.status-filter-btn {
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: #495057;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.status-filter-btn:hover {
    background-color: #d8dde2;
    text-decoration: none;
}

.status-filter-btn.active {
    background-color: #ffffff;
    color: #0d6efd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* --- СТИЛИ ТАБЛИЦЫ --- */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

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

.sortable-header a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.sortable-header a:hover {
    color: #007bff;
}

.sortable-header.asc a::after {
    content: ' ▲';
    font-size: 12px;
}

.sortable-header.desc a::after {
    content: ' ▼';
    font-size: 12px;
}


/* --- ЭЛЕМЕНТЫ В ТАБЛИЦЕ (КНОПКИ, СТАТУСЫ) --- */
.actions-cell {
    vertical-align: middle;
}

.actions-cell-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-cell form {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.action-btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.action-btn-icon:hover {
    transform: scale(1.1);
}

.action-btn-icon:active {
    transform: scale(0.95);
}

.edit-btn {
    background-color: #0d6efd;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.status-новый { background-color: #0d6efd; }
.status-в-работе { background-color: #ffc107; color: #212529; }
.status-успешно-закрыт { background-color: #198754; }
.status-отказ { background-color: #6c757d; }

.status-changer {
    position: relative;
    cursor: pointer;
}

.status-changer .status-badge {
    transition: all 0.2s ease-in-out;
}

.status-changer:hover .status-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.status-changer .status-select {
    width: 100%;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #0d6efd;
}


/* --- РАСКРЫВАЮЩИЕСЯ ДЕТАЛИ В ТАБЛИЦЕ --- */
.toggle-details-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    border-radius: 50%;
    color: #6c757d;
    transition: background-color 0.2s, transform 0.2s;
}

.toggle-details-btn:hover {
    background-color: #e2e6ea;
}

.toggle-details-btn.open {
    transform: rotate(45deg);
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.details-row {
    display: none;
}

.details-row td {
    border-top: none;
    background-color: #f8f9fa;
    padding: 0 !important;
}

.details-content {
    padding: 20px 20px 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.details-content div strong {
    display: block;
    color: #495057;
    margin-bottom: 5px;
}

.details-content p {
    margin: 0;
    padding-left: 12px;
    border-left: 3px solid #ced4da;
    white-space: pre-wrap;
}

.car-cell {
    cursor: pointer;
    transition: background-color 0.2s;
}

.car-cell:hover {
    background-color: #e9ecef;
}


/* --- ДИНАМИЧЕСКИЙ ВЫБОР АВТО В ФОРМАХ --- */
#car-rows-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.car-row {
    display: grid;
    grid-template-columns: 1fr 1fr 44px;
    gap: 10px;
    align-items: center;
}

.car-row-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    box-sizing: border-box;
    transition: background-color 0.15s ease-in-out;
}

#add-car-btn {
    background-color: #007bff;
    color: #fff;
    border-color: #ced4da;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border-style: solid;
}

#add-car-btn:hover {
    background-color: #d8dde2;
}

.remove-car-btn {
    background-color: #c82333;
    color: #fff;
    border-color: #f5c6cb;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border-style: solid;
}

.remove-car-btn:hover {
    background-color: #f1b0b7;
}


/* --- СТРАНИЦА "МАРКЕТ" --- */
.market-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.market-region {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.market-region h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.car-type-section h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #495057;
}

.market-region ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.market-region li {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.market-region li:nth-child(odd) {
    background-color: #f8f9fa;
}

.market-region li:hover {
    background-color: #e9ecef;
}


/* --- СТРАНИЦА КАЛЬКУЛЯТОРА --- */
.calculator-container {
    max-width: 600px;
    margin: 0 auto;
}

.calculator-container input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 8px;
}

.results-block {
    margin-top: 20px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.results-block h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.results-block p {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 25px;
    align-items: start;
}

.calculator-section {
    padding: 44px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.calculator-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    font-size: 20px;
    color: #343a40;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.result-item strong {
    color: #212529;
}

.result-item span {
    font-weight: 500;
    color: #495057;
}

.result-total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #adb5bd;
    font-size: 18px;
    font-weight: bold;
}


/* --- ОБЩИЕ КОМПОНЕНТЫ (РАДИО-КНОПКИ, ЧЕКБОКСЫ) --- */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
    width: auto;
    height: auto;
}

.channel-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.channel-grid-title {
    margin: 0;
    white-space: nowrap;
}

.channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.channel-grid-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.channel-grid-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.channel-grid-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.dropdown-menu .dropdown-item {
    color: #212529 !important;
    background-color: transparent !important;
    font-weight: 400 !important;
}

.dropdown-menu .dropdown-item:hover {
    color: #16181b !important;
    background-color: #e9ecef !important;
}


/* --- ЗАГРУЗКА ФАЙЛОВ И ПРЕВЬЮ --- */
.drop-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.drop-zone:hover {
    background-color: #f0f8ff;
}

.drop-zone.drag-over {
    background-color: #e7f3ff;
    border-color: #0056b3;
}

.drop-zone input[type="file"] {
    display: none;
}

#previews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-image-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background-color: #f9f9f9;
}

.preview-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    margin-bottom: 8px;
}

.remove-image-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 2px;
}

.photo-selector {
    margin-top: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.photo-selector label {
    cursor: pointer;
}

.photo-selector input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}


/* --- СТАТУСЫ ПУБЛИКАЦИЙ --- */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
}

.status-sent { background-color: #28a745; } /* Зеленый */
.status-scheduled { background-color: #ffc107; } /* Желтый */
.status-draft { background-color: #6c757d; } /* Серый */
.status-error { background-color: #dc3545; } /* Красный */


/* --- УПРАВЛЕНИЕ ИСТОРИЕЙ И ОТЧЕТАМИ --- */
.controls-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: end;
}

.filter-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.filter-controls .form-group {
    margin-bottom: 0;
}

.download-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.download-controls label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.download-controls .btn-group .btn {
    border-radius: 0;
}

.download-controls .btn-group .btn:first-child {
    border-top-left-radius: .375rem;
    border-bottom-left-radius: .375rem;
}

.download-controls .btn-group .btn:last-child {
    border-top-right-radius: .375rem;
    border-bottom-right-radius: .375rem;
}

.report-date-header {
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-size: 24px;
}

.report-date-header:first-of-type {
    margin-top: 0;
}


/* --- ПРОЧИЕ КОМПОНЕНТЫ (ПАГИНАЦИЯ, ЗАГРУЗКА, ПУСТОЕ СОСТОЯНИЕ) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
}

.page-item {
    display: block;
    padding: 8px 16px;
    color: #007bff;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.page-item:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.page-item.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
}

.page-item.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.6;
}

.page-item.ellipsis {
    border: none;
    background-color: transparent;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: auto;
}

.spinner-inline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-left-color: #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.car-cell.loading {
    opacity: 0.5;
    pointer-events: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 20px;
}

.empty-state svg {
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.empty-state p {
    margin: 0 0 20px 0;
    color: #6c757d;
}

.loading-state {
    text-align: center;
    padding: 80px 20px;
}

.loading-state h3 {
    margin-top: 20px;
    font-size: 24px;
    color: #495057;
}

.loading-state p {
    color: #6c757d;
}

.channel-publish-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две ровные колонки */
    gap: 20px; /* Отступ между элементами */
    margin-top: 15px;
}

.channel-publish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: box-shadow 0.2s ease-in-out;
}

.channel-publish-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.channel-publish-item span {
    font-weight: 600;
    color: #343a40;
    margin-right: 15px;
}

/* Делаем группу кнопок-переключателей более компактной и аккуратной */
.channel-publish-item .btn-group .btn {
    font-size: 13px;
    padding: 6px 12px;
}

#extra_links {
    resize: none;      /* Убирает возможность изменять размер */
    overflow: hidden;  /* Скрывает скролл, если текст не помещается */
}

.actions-cell-wrapper .btn-send-now {
    background-color: #0d6efd !important; /* Синий цвет */
}

.preview-image-container.selected {
    border: 3px solid #007bff; /* Яркая синяя рамка */
    padding: 2px; /* Небольшой отступ, чтобы рамка не "липла" к фото */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* И красивая тень */
}

.ai-suggestion {
    background-color: #fff8e1; /* Светло-желтый фон */
    border-left: 5px solid #ffc107; /* Желтая полоска слева */
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.6;
}

    .summary-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        text-align: center;
    }
    .summary-stat-item {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    .stat-label {
        font-size: 14px;
        color: #6c757d;
        text-transform: uppercase;
        margin-bottom: 5px;
    }
    .stat-value {
        font-size: 32px;
        font-weight: bold;
        color: #007bff;
    }
    .stat-value-ai {
        font-size: 24px;
        font-weight: bold;
        color: #007bff;
    }