/* windows-1251 */
/* tpl/second.view.css — каркас страницы second (task-08: layout-таблицы -> flex).
   Разметка: div.tsv-layout (flex) > aside.tsv-left-col (сайдбар-меню)
   + div.tsv-right-col (header, контент, footer).
   Адаптив — в @media (max-width: 768px) в конце файла. */

.tsv-body {
    margin: 0;
    padding: 0;
}

.tsv-layout {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.tsv-left-col {
    flex: none;
    width: 350px;
    text-align: right;
}

.tsv-right-col {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}


.tsv-content-top {
    display: flex;
}

.tsv-left-spacer {
    flex: none;
    width: 32px;
    background-color: #FFFFFF;
}

.tsv-content-wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 15px;
}

.tsv-title-row {
    display: flex;
}

.tsv-title-cell {
    flex: 0 0 auto;
    width: min-content;
    min-height: 30px;
    display: flex;
    align-items: center;
    background-color: #4D5774;
    font-family: Arial, sans-serif;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
}

.tsv-title-fill {
    flex: 1 1 auto;
    background-color: #FFFFFF;
}

.tsv-content-main {
    display: flex;
    align-items: stretch;
}

.tsv-main-cell {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    padding-top: 15px;
    padding-bottom: 22px;
    padding-right: 15px;
    min-height: 310px;
    text-align: justify;
}

.tsv-error {
    color: #990000;
    font-size: 12px;
    font-weight: bold;
}

/* ---- адаптив ---- */
@media (max-width: 768px) {
    .tsv-layout {
        flex-direction: column;
        min-height: 0;
    }

    .tsv-left-col {
        width: auto;
        flex: none;
    }

    .tsv-left-spacer {
        width: 10px;
    }

    .tsv-content-wrap {
        padding-right: 8px;
    }

    .tsv-main-cell {
        padding: 10px 8px 16px;
        min-height: 0;
    }

    .tsv-main-cell,
    #page-content {
        overflow-wrap: break-word;
    }

    #page-content {
        overflow-x: auto;
    }

    #page-content img {
        max-width: 100%;
        height: auto;
    }
}
