/* Стили для таблиц */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: "Arial", sans-serif;
    font-size: 0.95rem;
}

.custom-table th {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    font-weight: 600;
    padding: 1rem 0.8rem;
    text-align: center;
    border: 1px solid #1565c0;
    font-size: 0.9rem;
}

.custom-table td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.custom-table tr:nth-child(even) {
    background-color: #f8fbff;
}

.custom-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.custom-table tr:hover {
    background-color: #e3f2fd;
}

.custom-table tr:hover td {
    background-color: #e3f2fd;
}

/* Стили для заголовка таблицы */
.custom-table thead th {
    position: relative;
    overflow: hidden;
}

.custom-table thead th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Стили для последней строки (итоги) */
.custom-table tr:last-child {
    font-weight: 700;
    background: linear-gradient(135deg, #bbdefb, #90caf9) !important;
}

.custom-table tr:last-child td {
    border-top: 2px solid #1e88e5;
    border-bottom: 2px solid #1e88e5;
    color: #0d47a1;
}

.custom-table tr:last-child:hover {
    background: linear-gradient(135deg, #90caf9, #64b5f6) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .table-container {
        margin: 1rem 0;
        border-radius: 6px;
    }

    .custom-table {
        font-size: 0.85rem;
    }

    .custom-table th,
    .custom-table td {
        padding: 0.6rem 0.4rem;
    }

    .custom-table th {
        font-size: 0.8rem;
    }
}

/* Дополнительные стили для улучшения читаемости */
.custom-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
    padding-left: 1rem;
}

.custom-table td:not(:first-child) {
    font-family: "Courier New", monospace;
    font-weight: 600;
    color: #1565c0;
}

/* Анимация появления строк */
.custom-table tr {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
