/* Базовые стили таблицы */
.colored_table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: inherit;
}

.colored_table th, 
.colored_table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.colored_table th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .colored_table, 
    .colored_table thead, 
    .colored_table tbody, 
    .colored_table th, 
    .colored_table td, 
    .colored_table tr {
        display: block;
    }

    .colored_table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .colored_table tr {
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background: #fff;
        padding: 10px;
    }

    .colored_table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
        min-height: 24px;
    }

    .colored_table td:last-child {
        border-bottom: none;
    }

    .colored_table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}