/* Базовые стили для всех устройств */
body {
    font-family: Arial, sans-serif;
    background-color: #383e43;
    margin: 0;
    padding: 0;
    color: #dadada;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

header {
    background-color: #383e43; /* Основной цвет для header */
    padding: 10px 0;
    z-index: 1000;
    flex-shrink: 0;
}

header .logo img {
    height: 40px;
    margin-bottom: 3px;
    /* Для логотипа-картинки используйте цвет #e97106 */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 5px 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.footer-container {
    max-width: 615px;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.solarstat-container {
    max-width: 515px;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container-repstat {
    scrollbar-width: thin;
    scrollbar-color: #40474d #f1f1f1; /* Измененный цвет скроллбара */
    max-width: 100%;
    margin: 1ep;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.container-body {
    max-width: 100%;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.container h1 {
    margin: 0 0 15px 0;
    flex-shrink: 0;
}

/* Контейнер для таблицы с фиксированной высотой */
.table-scroll-container {
    flex: 1;
    overflow: auto;
    margin: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    width: 100%; /* Фиксируем ширину */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 200px; /* Минимальная ширина таблицы */
}

th, td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
}

th {
    background-color: #40474d; /* Основной цвет для заголовков */
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f1f1f1;
}

.event-check {
    text-align: center;
    font-size: 12px;
}

.attendance {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

footer {
    background-color: #383e43; /* Основной цвет для footer */
    color: white;
    text-align: center;
    padding: 15px;
    flex-shrink: 0;
}

footer p {
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-table th,
.stats-table td {
    padding: 0.25rem;
    text-align: center;
    border: 1px solid #dee2e6;
    color: #383e43;
}

.stats-table th {
    background: linear-gradient(135deg, #40474d 0%, #31363b 100%); /* Градиент из основных цветов */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.stats-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.stats-table tr:hover {
    background-color: #e3f2fd;
}

/* Улучшения для таблиц */
.stats-table th:nth-child(1),
.stats-table td:nth-child(1) {
    text-align: left;
    font-weight: 600;
    
}

.stats-table th:nth-child(4),
.stats-table td:nth-child(4) {
    text-align: left;
    font-weight: 600;
}

.stats-table .progress-container {
    margin: 0 auto;
    max-width: 120px;
}

.table-scroll-container {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.table-scroll-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: #40474d; /* Основной цвет скроллбара */
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #31363b; /* Темный оттенок при наведении */
}

/* Стили для мобильных устройств (максимальная ширина 768px) */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        justify-content: space-between;
        padding: 5px 10px;
    }

    header .logo img {
        height: 35px;
        margin-bottom: 0;
    }

    nav ul {
        justify-content: flex-end;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 3px 6px;
    }

    .container {
        padding: 10px;
        overflow: visible; /* Разрешаем overflow для горизонтальной прокрутки */
    }

    h1 {
        font-size: 22px;
        margin: 0 0 10px 0;
    }

    th, td {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Исправляем контейнер таблицы для мобильных */
    .table-scroll-container {
        overflow-x: auto; /* Горизонтальная прокрутка */
        overflow-y: auto; /* Вертикальная прокрутка */
        -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
        width: 100%;
        max-width: 100vw; /* Не больше ширины экрана */
        box-sizing: content-box;
    }
    
    .table-scroll-container table {
        min-width: 600px; /* Сохраняем минимальную ширину */
        width: auto; /* Автоматическая ширина */
        margin: 0; /* Убираем отступы */
    }
}

/* Стили для очень маленьких экранов (максимальная ширина 480px) */
@media (max-width: 480px) {
    header .logo img {
        height: 30px;
    }

    nav ul li a {
        font-size: 12px;
        padding: 2px 4px;
    }

    h1 {
        font-size: 20px;
        padding: 0;
        text-align: center;
    }

    th, td {
        padding: 6px 8px;
        font-size: 12px;
    }

    .event-check, .attendance {
        font-size: 11px;
    }
    
    .container {
        padding: 8px;
    }
    
    .table-scroll-container table {
        min-width: 550px; /* Немного уменьшаем минимальную ширину */
    }
}

/* Для очень узких экранов */
@media (max-width: 360px) {
    .table-scroll-container table {
        min-width: 500px; /* Еще меньше минимальная ширина */
    }
    
    th, td {
        padding: 5px 6px;
        font-size: 11px;
    }
}

/* Улучшение читаемости на мобильных */
@media (hover: none) {
    tr:hover {
        background-color: inherit;
    }
    
    tr:active {
        background-color: #f1f1f1;
    }
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Стили для страницы авторизации */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    color: #40474d; /* Основной цвет для заголовка */
    margin-bottom: 20px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #40474d; /* Основной цвет для кнопки */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-form input[type="submit"]:hover {
    background-color: #31363b; /* Темный оттенок при наведении */
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-bottom: 15px;
}

/* Стили для блока часов */
.current-time-info {
    background: linear-gradient(135deg, #383e43 10%, #31363b 100%); /* Градиент из основных цветов */
    color: white;
    padding: 1px 6px;
    border: 1px solid #31363b;
    border-radius: 6px;
    font-size: 19px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    white-space: nowrap;
}

.current-time-info .current-time {
    font-weight: bold;
    color: #ffffff;
}

/* Стили для блока погоды */
.weather-info {
    background: linear-gradient(135deg, #383e43 10%, #31363b 100%); /* Градиент из основных цветов */
    color: white;
    padding: 6px 12px;
    border: 1px solid #31363b;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    white-space: nowrap;
}

.weather-info .weather-h {
    font-weight: bold;
    color: #ffed46;
}

/* Стили для блока последней активности */
.last-transmission-info {
    background: linear-gradient(135deg, #383e43 10%, #31363b 100%); /* Градиент из основных цветов */
    color: white;
    padding: 6px 12px;
    border: 1px solid #31363b;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    white-space: nowrap;
}

.last-transmission-info .time-h {
    font-weight: bold;
    color: #ffeb3b;
}

.last-transmission-info .duration {
    font-weight: bold;
    color: #ffeb3b;
}

.no-transmission {
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.mr-menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    display: none;
    min-width: 150px;
}

.mr-menu-list.mr-show {
    display: block;
}

.mr-menu-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid #eee;
}

.mr-menu-link:hover {
    background: #f5f5f5;
}

.mr-menu-link:last-child {
    border-bottom: none;
}

.stats-section h4 {
    margin-bottom: 1.5rem;
    color: #7bacdd;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #efefef6b 100%);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #efefef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #40474d; /* Основной цвет для значений */
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.total-row {
    background-color: #f0f2f3 !important; /* Светлый оттенок основных цветов */
    font-weight: bold;
}

.total-row td {
    border-top: 3px solid #40474d; /* Основной цвет */
    font-size: 1.1rem;
}

.summary-row {
    background-color: #f5f6f7 !important; /* Светлый оттенок */
    font-style: italic;
}

.summary-row td {
    border-bottom: 2px solid #40474d; /* Основной цвет */
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    background: white;
    border-radius: 6px;
    margin: 1rem 0;
}

.container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
    border-bottom: 3px solid #40474d; /* Основной цвет */
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-scroll-container {
        font-size: 0.8rem;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 0.25rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .container h3 {
        font-size: 1.5rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-section {
    animation: fadeIn 0.5s ease-out;
}

.stats-section:nth-child(even) {
    animation-delay: 0.1s;
}

.stats-section:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Стили для почасовой статистики */
.peak-hour {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.progress-container {
    position: relative;
    background: #e9ecef;
    height: 20px;
    min-width: 100px;
}

.progress-bar {
    background: linear-gradient(88deg, #40474d, #31363b); /* Градиент из основных цветов */
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: #000;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Стили для тепловой карты */
.heatmap-container {
    overflow-x: auto;
    margin: 1rem 0;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.heatmap {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.8rem;
    background: #ffffff;
}

.heatmap th, .heatmap td {
    padding: 0.1rem;
    text-align: center;
}

.heatmap th {
    border: 1px solid #dee2e6;
    background: #383e43; /* Основной цвет для заголовков тепловой карты */
    font-weight: 600;
}

.heatmap th.hour-label {
    background: #383e43; /* Основной цвет */
    font-size: 0.7rem;
    width: 60px;
}

.heatmap-cell {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.3);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.3);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.legend-gradient {
    width: 200px;
    height: 20px;
    background: linear-gradient(90deg, 
        #ffffff 0%,    /* белый */
        #f0f8f0 10%,   /* очень светлый зеленый */
        #d4ecd4 20%,   /* светлый зеленый */
        #a8dba8 30%,   /* светло-зеленый */
        #7bc47b 40%,   /* зеленый */
        #3fab3f 50%,   /* насыщенный зеленый */
        #ffd700 60%,   /* золотой (переход) */
        #ffa500 70%,   /* оранжевый */
        #ff6b6b 80%,   /* светло-красный */
        #e53e3e 90%,   /* красный */
        #c53030 100%); /* темно-красный */
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.legend-gradient-red {
    width: 200px;
    height: 20px;
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #fff9e6 10%,
        #ffdd66 25%,
        #ffb800 40%,
        #ffa500 55%,
        #ff7300 70%,
        #ff4000 85%,
        #990000 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

/* Адаптивность для тепловой карты */
@media (max-width: 768px) {
    .heatmap {
        font-size: 0.7rem;
    }
    
    .heatmap th, .heatmap td {
        padding: 0.3rem;
    }
    
    .heatmap-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legend-gradient {
        width: 150px;
    }
    .heatmap-container.mobile-rotated .heatmap {
        transform: rotate(-90deg);
        transform-origin: top left;
        margin-top: 100%;
        width: 100vh;
        height: 100vw;
    }
    
    .heatmap-container.mobile-rotated {
        height: 100vw;
        overflow-x: auto;
    }
}

/* Стили для графика активности */
.activity-chart-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.activity-chart {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;
    justify-content: right;
}

.week-column {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.week-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.week-days {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-cell {
    width: 80px;
    height: 60px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-cell:hover {
    transform: scale(1.3);
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* Цвета интенсивности */
.intensity-0 { background: #ffffff; }
.intensity-5 { background: #fff9e6; }
.intensity-10 { background: #fff4cc; }
.intensity-15 { background: #ffefb3; }
.intensity-20 { background: #ffe999; }
.intensity-25 { background: #ffe380; }
.intensity-30 { background: #ffdd66; }
.intensity-35 { background: #ffd74d; }
.intensity-40 { background: #ffd133; }
.intensity-45 { background: #ffcb1a; }
.intensity-50 { background: #ffc500; }
.intensity-55 { background: #ffb800; }
.intensity-60 { background: #ffa500; }
.intensity-65 { background: #ff8c00; }
.intensity-70 { background: #ff7300; }
.intensity-75 { background: #ff5a00; }
.intensity-80 { background: #ff4000; }
.intensity-85 { background: #e63900; }
.intensity-90 { background: #cc3300; }
.intensity-95 { background: #b32b00; }
.intensity-100 { background: #990000; }
.no-activity { background: #f8f9fa; }

.day-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #000000ff;
    margin-bottom: 2px;
}

.day-stats {
    text-align: center;
}

.time {
    font-size: 0.7rem;
    font-weight: bold;
    color: #000000ff;
}

.count {
    font-size: 0.6rem;
    color: #000000ff;
}

.no-data {
    font-size: 0.7rem;
    color: #adb5bd;
    font-style: italic;
}

/* Ось времени */
.timeline-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 1rem;
}

.axis-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, #dee2e6, #adb5bd, #dee2e6);
    margin: 0 1rem;
}

.axis-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Статистика по дням недели */
.weekday-stats {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.weekday-stats h5 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.weekday-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    gap: 0.5rem;
}

.weekday-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bar-container {
    height: 150px;
    width: 40px;
    background: #ffffffff;
    border: 1px solid #efefef;
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #40474d, #31363b); /* Градиент из основных цветов */
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 4px;
}

.weekday-label {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.weekday-total {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.weekday-avg {
    font-size: 0.6rem;
    color: #adb5bd;
    margin-top: 0.25rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .activity-chart {
        gap: 0.5rem;
    }
    
    .week-column {
        min-width: 60px;
    }
    
    .day-cell {
        width: 60px;
        height: 50px;
    }
    
    .chart-legend {
        gap: 1rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .weekday-bars {
        height: 150px;
    }
    
    .bar-container {
        height: 100px;
        width: 100%;
    }
    
    .weekday-label {
        font-size: 0.8rem;
    }
    
    .weekday-total {
        font-size: 0.6rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.week-column {
    animation: fadeInUp 0.5s ease-out;
}

.week-column:nth-child(odd) {
    animation-delay: 0.1s;
}

.week-column:nth-child(even) {
    animation-delay: 0.2s;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f2f3; /* Светлый оттенок основных цветов */
    border-radius: 8px;
    border-left: 4px solid #40474d; /* Основной цвет */
}

#update-indicator {
    font-weight: 500;
    color: #495057;
}

.refresh-btn {
    background: #40474d; /* Основной цвет */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.refresh-btn:hover {
    background: #31363b; /* Темный оттенок */
}

#update-status {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Анимация обновления */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.updating {
    animation: pulse 1s infinite;
}

/* Стили оповещение о днях рождения */
.birthday-highlight {
    background-color: #fffacd !important;
    font-weight: bold;
    border-left: 4px solid #ffd700;
}
.birthday-highlight td:first-child {
    position: relative;
    padding-right: 30px !important;
}
.birthday-highlight td:first-child::after {
    content: "🎂";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* Стили для отметки событий */
.event-check {
    text-align: center;
    font-weight: bold;
}

.event-check.cross {
    color: #ff7070; /* Красный цвет для крестиков */
}

.event-check.check {
    color: #2b2b2b; /* Зеленый цвет для галочек */
}

/* Стили для общей статистики работы */
.total-uptime-container {
    text-align: center;
}

.uptime-days {
    color: #e97106; /* Цвет логотипа для выделения */
    font-weight: bold;
}

.uptime-hours {
    color: #e97106; /* Цвет логотипа для выделения */
    font-weight: bold;
}

.uptime-minutes {
    color: #e97106; /* Цвет логотипа для выделения */
    font-weight: bold;
}

.uptime-seconds {
    color: #e97106; /* Цвет логотипа для выделения */
    font-weight: bold;
}

.no-uptime-data {
    background: rgba(64, 71, 77, 0.2); /* Полупрозрачный основной цвет */
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(64, 71, 77, 0.5);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .total-uptime-info,
    .no-uptime-data {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Для мобильных - переключаем ориентацию */
@media (max-width: 768px) {
    
}

/* Новые стили для горизонтального header */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 0 auto;
    padding: 0 15px;
    height: 60px;
    overflow: visible;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Обновленные стили для меню */
.mr-menu-container {
    position: relative;
    flex-shrink: 0;
}

.mr-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s ease;
}

.mr-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mr-menu-line {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.mr-menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #40474d; /* Основной цвет для меню */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px 0;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1001;
}

.mr-menu-list.mr-show {
    display: block;
}

.mr-menu-link {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 14px;
}

.mr-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Логотип */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
}

/* Обновленные стили для статистики */
.total-uptime-info {
    background: linear-gradient(135deg, #383e43 10%, #31363b 100%);
    color: white;
    padding: 6px 12px;
    border: 1px solid #31363b;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    white-space: nowrap;
}

.no-transmission {
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.no-uptime-data {
    background: rgba(64, 71, 77, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
    border: 1px solid rgba(64, 71, 77, 0.5);
    white-space: nowrap;
}

/* Цвета для статистики */
.uptime-days,
.uptime-hours,
.uptime-minutes {
    color: #e97106; /* Цвет логотипа для выделения */
    font-weight: bold;
}

.last-transmission-info .time-h,
.last-transmission-info .duration {
    color: #e97106; /* Цвет логотипа для выделения */
    font-weight: bold;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 10px;
        gap: 10px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .header-right {
        gap: 8px;
        justify-content: flex-start;
        order: 3;
        flex-basis: 100%;
        margin-top: 5px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .total-uptime-info,
    .last-transmission-info,
    .no-transmission,
    .no-uptime-data {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .mr-menu-btn {
        padding: 6px;
    }
    
    .mr-menu-line {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .total-uptime-container,
    .transmission-container {
        text-align: center;
    }
}

.chart-container {
    position: relative;
    height: 500px !important;
    min-height: 500px !important;
}

#timeSeriesChart {
    height: 400px !important;
    min-height: 400px !important;
    width: 100% !important;
}

/* Дополнительные стили для текста логотипа, если используется текст вместо картинки */
.logo-text {
    color: #8f9091; /* Цвет текста логотипа */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

/* Если в логотипе используется текст с градиентом */
.logo-gradient {
    background: linear-gradient(135deg, #e97106 0%, #8f9091 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}