.tm-history-container {
    width: 100%;
    background: #fff;
    overflow: hidden;
    font-family: inherit;
}

.tm-history-header {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tm-history-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.tm-history-row:last-child {
    border-bottom: none;
}

.tm-history-row:hover {
    background-color: #fcfcfc;
}

.tm-col-main {
    flex: 2;
    min-width: 0;
    padding-right: 15px;
}

.tm-col-type {
    flex: 1;
    display: flex;
    align-items: center;
}

.tm-col-time {
    flex: 1;
    text-align: center;
    color: #334155;
}

.tm-col-date {
    flex: 1;
    text-align: right;
    color: #64748b;
    font-size: 0.9rem;
}

.tm-history-title a {
    color: #475569;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.tm-history-title a:hover {
    text-decoration: underline;
    color: #384454;
}

.tm-badge-lesson {
    display: inline-flex;
    align-items: center;
    background-color: #eff6ff;
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tm-mobile-label {
    display: none;
}

.tm-history-empty {
    padding: 30px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 768px) {
    .tm-history-header {
        display: none;
    }

    .tm-history-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tm-col-main {
        flex: 100%;
        margin-bottom: 5px;
    }

    .tm-col-type {
        display: none;
    }

    .tm-col-time {
        flex: auto;
        text-align: left;
        font-size: 0.9rem;
    }

    .tm-col-date {
        flex: auto;
        text-align: left;
        width: 100%;
        margin-top: 5px;
        font-size: 0.8rem;
    }

    .tm-mobile-label {
        display: inline;
        color: #94a3b8;
        font-weight: normal;
    }
}