/* Общие стили */
* {
    margin-left: 5px; /* Отступ слева для всех элементов */
    margin-right: 5px; /* Отступ слева для всех элементов */
}

.footer {
            margin-top: 20px;
            padding: 10px;
            background-color: #FFC000;
            color: #5c0202;
            font-size: 9px;
            border-radius: 4px;
            text-align: left;
            line-height: 1.4;
        }
        .footer a {
            color: #007bff;
            text-decoration: none;
        }
        .footer a:hover {
            text-decoration: underline;
        }
        .footer p {
            margin: 0;
        }
body {
    font-family: Tahoma, Arial, sans-serif, Colibri;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.profit-positive { background-color: #d4edda; color: #155724; } /* Зелёный */
.profit-negative { background-color: #f8d7da; color: #721c24; } /* Красный */
.return-high { background-color: #fff3cd; } /* Жёлтый для высокого возврата */

.content-wrapper {
    margin-left: 20px;
    border-radius: 8px;
    background:  linear-gradient(to bottom, #000, #FFC000);
    display: inline-block;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 30px; /* Размер логотипа */
    display: inline-block; /* Для корректного отображения */
}

.menu-wrapper {
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
    background: linear-gradient(to right, #694f00, orange,#FFC000); /* Градиент слева направо */
    padding: 10px 20px; /* Внутренние отступы */
    border-radius: 8px; /* Скругление углов */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тень */
}

.logo-link {
    margin-right: 20px; /* Отступ справа от логотипа */
}

.menu-items {
    display: flex;
    align-items: center; /* Выравнивание по центру */
}

.menu-link {
    color: white; /* Белый текст для ссылок */
    text-decoration: none; /* Убираем подчёркивание */
    transition: color 0.3s ease; /* Плавный переход при наведении */
    margin: 0 10px; /* Отступы между пунктами меню */
}

.menu-link:hover {
    color: black;
    box-shadow: 0 0 10px rgba(74, 1, 1, 0.5); /* Свечение бордовым */
}

.menu-separator {
    color: white; /* Цвет разделителя */
    margin: 0 10px; /* Отступы вокруг разделителя */
}

.user-block {
    margin-left: auto; /* Перенос блока пользователя вправо */
    color: blue; /* Цвет текста */
}

.user-block a {
    color: white; /* Цвет ссылок */
    text-decoration: none; /* Убираем подчёркивание */
    transition: color 0.3s ease; /* Плавный переход при наведении */
}

.user-block a:hover {
    color: black; /* Жёлтый цвет при наведении */
     box-shadow: 0 0 10px rgba(74, 1, 1, 0.5); /* Свечение бордовым */
}
/* Формы */
form {
    max-width: 500px;
    margin: 20px 0 20px 20px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input, select, textarea {
    width: 90%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
    color: #FFFF00;
}

.menu-button {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 2px;
}

/* Чекбоксы */
.custom-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #007bff;
}
#send-email-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-email-btn:hover {
    background-color: #0056b3;
}
/* Таблицы */
table {
    font-family: aptos, calibri, arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
.table-data {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border: 1px solid #ddd;
}
table-data td,
table-data th {
    /*
    text-align: left;
    padding: 8px;*/
     /* Основные стили для переноса текста */
    max-width: 200px; /* Максимальная ширина ячейки */
    white-space: pre-wrap; /* Перенос по словам, сохраняя пробелы */
    word-wrap: break-word; /* Ломаем длинные слова */
    word-break: break-word; /* Альтернативное свойство */
    overflow-wrap: break-word; /* Современный стандарт */
    padding: 8px;
    line-height: 1.4;
    vertical-align: top; /* Текст начинается сверху ячейки */
    font-size: 14px;
    text-align: left; /* Выравнивание по левому краю */
    border: 1px solid #f0f0f0;
    /* Или используй border-bottom для "зебры" */
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
    border-right: none;
}

th {
    background-color: #FFC000;
}
/* === Стили для календаря/расписания (широкая таблица) === */
.table-schedule {
    width: 100%;
    border: 1px solid brown;
    table-layout: fixed; /* Фиксированная ширина столбцов */
    border-collapse: collapse;
    overflow-x: auto; /* На случай, если всё же выходит за экран */
}

.table-schedule th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.table-schedule th,
.table-schedule td {
    white-space: nowrap; /* Никаких переносов! */
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px;
    min-width: 120px; /* Минимальная ширина ячейки */
    text-align: center;
    font-size: 14px;
    border: 1px solid #ddd;
}

/* === Стили для таблицы в email === */
.table {
    font-family: 'Arial', 'Helvetica', sans-serif;
    border: 1px solid black;
    width: 100%;
    max-width: 600px;
    margin: 10px 0;
    font-size: 14px;
}

/* Заголовки таблицы */
.table th {
    background-color: #FFC000; /* Жёлтый цвет Skytex */
    color: #333;
    font-weight: bold;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

/* Ячейки таблицы */
.table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Чередование строк (опционально) */
.table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Выделение суммы (Inspection Fee) */
.table tbody td.highlight,
.table tbody td:nth-child(3) {
    background-color: #B5E6A8; /* Зелёный, как у тебя */
    font-weight: bold;
}

.email-body {
    border: 1px solid #ddd;
    padding: 20px;
    max-width: 800px;
    margin: 20px 0;
    background: #fff;
    box-sizing: border-box;
}

.email-details {
    margin: 10px 0;
    padding-left: 20px;
}

.email-signature {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #FFC000;
    font-style: italic;
}
/* Адаптивность */
@media (max-width: 600px) {
    .table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* === Контейнер для прокрутки (опционально) === */
.scrollable-container {
    overflow-x: auto;
    max-width: 100%;
    margin: 20px 0;
}
.repeat-inspection {
    background-color: #f8d7da !important; /* Розоватый фон */
    color: #721c24; /* Темно-красный текст для контраста */
}
tr:nth-child(odd) {
    background-color: #ffe9b8;
}

tr.repeat-inspection:nth-child(odd),
tr.repeat-inspection:nth-child(even) {
    background-color: #f8d7da !important; /* Всегда розоватый фон */
}
tr:hover {
    background-color: #ffdf9f;
}

.messages {
    margin-bottom: 20px;
}
.alert {
    padding: 10px;
    border-radius: 5px;
    background-color: #d1ecf1;
    color: #0c5460;
}

.compact-form label {
        font-size: 14px; /* Уменьшаем размер текста меток */
        margin-bottom: 5px; /* Уменьшаем отступ между меткой и полем */
}
.compact-form input,
.compact-form select,
.compact-form textarea {
    font-size: 14px; /* Уменьшаем размер текста в полях */
    padding: 5px; /* Уменьшаем внутренние отступы */
    margin-bottom: 10px; /* Уменьшаем отступ между полями */
    width: 100%; /* Делаем поля шириной на всю доступную область */
    box-sizing: border-box; /* Учитываем padding при расчете ширины */
}
.compact-form p {
    margin: 5px 0; /* Уменьшаем отступы между параграфами */
}

/* Адаптивность */
@media (max-width: 600px) {
    form {
        margin: 15px;
        padding: 15px;
    }

    button {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}
/* Стили для таблицы расписания */
.schedule-table {
    font-family: aptos, calibri, arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed; /* Фиксируем ширину колонок */
}

/* Стили для ячеек таблицы расписания */
.schedule-table td,
.schedule-table th {
    border: 1px solid black;
    text-align: left;
    padding: 8px;
    word-wrap: break-word; /* Перенос текста, если он не помещается */
    overflow: hidden; /* Скрываем переполнение */
    width: calc(100% / 7); /* Равная ширина для всех 7 дней недели */
}

/* Минимальная высота ячеек */
.schedule-table td,
.schedule-table th {
    min-height: 50px; /* Минимальная высота ячеек */
    text-align: center; /* Выравнивание по центру */
    vertical-align: middle; /* Вертикальное выравнивание */
}
