/* Основные стили */
body {
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Gilroy';
    src: url('{{ url_for('static', filename='fonts/Gilroy-Light.otf') }}') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('{{ url_for('static', filename='fonts/Gilroy-ExtraBold.otf') }}') format('opentype');
    font-weight: 800;
    font-style: normal;
}

/* Установите Gilroy как основной шрифт для всего сайта */
body {
    font-family: 'Gilroy', sans-serif;
}

/* Дополнительно можно задавать жирность шрифта в зависимости от веса */
h1, h2, h3 {
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;  /* Используем ExtraBold для заголовков */
}

p, span, a, div {
    font-family: 'Gilroy', sans-serif;
    font-weight: 300;  /* Используем Light для обычного текста */
}

/* Логотип */
.logo {
    height: 40px;
    width: auto;
}

/* Название компании */
.company-name {
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #333;
}

/* Настройки навигации */
.navbar-nav .nav-link {
    color: #333;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

/* Меньше верхний отступ для контента */
.content {
    margin-top: 20px;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .company-name {
        font-size: 1.2rem;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
    }

    .logo {
        height: 35px;
    }
}





.content {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

/* Стили для формы ввода дат */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-group.col-md-6 {
    flex: 1;
}

.form-control-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    height: auto;
    width: 100%;
    max-width: 200px; /* Максимальная ширина для поля ввода */
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}


.stat-cards-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.stat-card {
    display: inline-block;
    background-color: #f8faff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 200px;
    flex: 1 1 220px;
}

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

.stat-title {
    font-size: 1.1em;
    color: #1d3baf;
    font-weight: bold;
}

.stat-action-btn {
    font-size: 0.9em;
    padding: 2px 8px;
    color: white;
    background-color: #1d3baf;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.stat-action-btn:hover {
    background-color: #16368a;
}

.stat-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    background-color: #e5f1ff;
    border-radius: 50%;
    padding: 10px;
    margin-right: 10px;
}

.stat-icon img {
    width: 48px;
    height: 48px;
}

.stat-number {
    font-size: 2em;
    color: #1d3baf;
    font-weight: bold;
}

.stat-footer {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

.stat-conversion {
    font-weight: bold;
    color: #2eca6a; /* Можно изменить цвет, если нужно */
}

.missed-calls-count {
    color: #ff0000; /* Красный цвет для пропущенных звонков */
    font-weight: bold;
    margin-left: 10px; /* Отступ от заголовка */
}


/*МОДАЛЬНЫЕ ОКНА*/
.sort-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8em;
    color: #007bff;
}

.sort-btn:focus {
    outline: none;
}

/* Адаптивные стили для маленьких экранов */
@media (max-width: 768px) {
    .stat-card {
        flex: 1 1 100%; /* Карточки будут занимать всю ширину контейнера */
        margin-bottom: 20px;
    }

    .stat-cards-container {
        justify-content: center; /* Центрируем карточки */
    }
}

/* ГРАФИКИ */

.canvas-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.chart-container {
    flex: 1;
    min-width: 250px;  /* Минимальная ширина */
    height: 350px;  /* Общая высота для контейнера */
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
}

.chart-container canvas {
    height: 300px;  /* Высота графика */
    width: 100%;
}

.table .missed-call {
    background-color: #ffcccc !important; /* Светло-красный фон */
    color: #a94442 !important; /* Темно-красный текст */
}


/* Адаптивные стили */
@media (max-width: 767.98px) {
    .nav-menu a {
        display: block;
        padding: 10px;
    }


}


/* Маркетинговые заметки */

.marketing-note-form {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8faff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.marketing-note-form h3 {
    margin-bottom: 15px;
}

.marketing-notes-section {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8faff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.note {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.note p {
    margin: 0;
    font-size: 1.1em;
}

.note small {
    display: block;
    margin-top: 5px;
    color: #888;
}

.note button {
    margin-top: 10px;
}

.table-bordered th, .table-bordered td {
    padding: 0.5rem;
    text-align: left;
}

/* Стили для иконок редактирования и удаления */
.btn-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Цветовые стили для приватных и общих заметок */
tr.private-note td{
    background-color: #fce7e9; /* Красный фон для приватных заметок */
}



.file-upload-custom {
    border: 2px solid #007bff;
    background-color: #f8f9fa;
    color: #007bff;
}
.file-upload-custom:hover {
    background-color: #e2e6ea;
}
.agreed-material {
    background-color: #e0f7ff; /* Светло-синий фон */
    border-left: 5px solid #007bff; /* Синяя полоса слева для акцента */
    padding: 10px;
}


/* Дополнительные стили для адаптивного отображения товаров */
.good-item {
    flex-wrap: wrap; /* Обертывание элементов внутри .good-item */
}

.good-item input[type="text"],
.good-item input[type="file"] {
    width: 100%; /* Ширина 100% на мобильных устройствах */
    margin-bottom: 10px; /* Отступы снизу */
}

.good-item .btn {
    margin-bottom: 10px; /* Отступы снизу */
}

.good-item .btn,
.good-item .form-control,
.good-item .form-control-file {
    flex: 1 1 100%; /* Занимают всю ширину в мобильном режиме */
}

.auto-grow{
  min-height: 550px;
}


@media (max-width: 576px) {
    #adsModal .modal-dialog {
      max-width: 100%;
      margin: 0;
    }

    #adsModal .modal-content {
      border-radius: 0;
      height: 100vh;
    }

    #adsModal .modal-body {
      padding: 0;
      overflow-y: auto;
    }

    #adsModal .table-responsive {
      margin-bottom: 0;
    }
  }
