.main-content-predmet #table-work .name_theme .catalog-work-plan {
    margin: 8px 0 4px;
    padding: 12px;
    border: 1px solid #dce5f0;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* The old table styles hide all divs in the theme cell. Only the outer
   plan container should be toggled; its formatted rows must stay visible. */
.main-content-predmet #table-work .name_theme .catalog-work-plan div { display: block; }
.main-content-predmet #table-work .catalog-work-plan .work-plan-table table { border-color: #aaa; }
.main-content-predmet #table-work .catalog-work-plan .work-plan-table th,
.main-content-predmet #table-work .catalog-work-plan .work-plan-table td {
    border: 1px solid #aaa;
    padding: 6px 8px;
    vertical-align: top;
    text-align: left;
}
@media (max-width: 767px) {
    .main-content-predmet #table-work .name_theme .catalog-work-plan { min-width: 280px; }
    .main-content-predmet #table-work .catalog-work-plan .work-plan { text-align: left; }
}
