

/* Start:/local/components/custom/schedule.matrix/templates/.default/style.css?17773015286819*/
.schedule-matrix-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

.schedule-matrix-title {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.3;
}

.schedule-matrix-table {
    /*width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    background: #fff;*/
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
}

.schedule-matrix-table th,
.schedule-matrix-table td {
    border: 1px solid #d9e1ea;
    padding: 12px 14px;
    vertical-align: middle;
    text-align: center;
}

.schedule-matrix-table thead th {
    background: #2F4B75;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.schedule-matrix-table tbody th {
    background: #fafbfd;
    text-align: left;
    white-space: normal;
    /*min-width: 220px;*/
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.schedule-file-item:last-child {
    margin-bottom: 0;
}

.schedule-file-list a {
    color: #0b66c3;
    text-decoration: none;
}

.schedule-file-list a:hover {
    text-decoration: underline;
}

//New
.schedule-file-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.schedule-file-item {
    margin: 0 0 6px;
    padding: 0;
    text-align: center;
}

.schedule-file-item a {
    /*display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid #d7e1ee;
    border-radius: 999px;
    background: #f7faff;
    color: #2F4B75 !important;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;          /* ключевой момент */
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f7faff;
    color: #2F4B75 !important;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none !important;
    box-sizing: border-box;
    text-align: center;

    /* важно */
    white-space: normal;
    word-break: break-word;
}

.schedule-file-item a:hover {
    background: #eef5ff;
    border-color: #2F4B75;
    color: #203957 !important;
    transform: translateY(-1px);
}

.schedule-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2F4B75;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .schedule-matrix-wrap {
        overflow-x: visible;
        margin: 16px 0;
    }

    .schedule-matrix-title {
        font-size: 20px;
        line-height: 1.3;
        margin: 0 0 14px;
    }

    .schedule-matrix-table {
        width: 100%;
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 12px;
        background: transparent;
	table-layout: auto !important;
    }

    .schedule-matrix-table colgroup,
    .schedule-matrix-table col {
        display: none !important;
    }

    .schedule-matrix-table thead {
        display: none;
    }

    .schedule-matrix-table,
    .schedule-matrix-table tbody,
    .schedule-matrix-table tr,
    .schedule-matrix-table th,
    .schedule-matrix-table td {
        display: block;
        width: 100% !important;
    }

    .schedule-matrix-table tbody tr {
        border: 1px solid #d9e1ea;
        border-radius: 12px;
        background: #ffffff;
        overflow: hidden;
    }

    .schedule-matrix-table tbody th {
        min-width: 0;
        padding: 12px 14px;
        background: #2F4B75;
        color: #ffffff;
        text-align: left;
        white-space: normal;
        border: none;
    }

    .schedule-matrix-table tbody td {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
        min-height: 48px;
        padding: 10px 14px !important;
        border: none;
        border-top: 1px solid #eef2f6;
        text-align: left;
    }

    .schedule-matrix-table tbody td::before {
        content: attr(data-course);
        display: block !important;
        font-weight: 700;
        color: #2F4B75;
        white-space: nowrap;
        font-size: 14px;
        line-height: 1.3;
    }

    .schedule-file-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .schedule-file-item {
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .schedule-file-item a {
        justify-content: flex-start;
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .schedule-matrix-table {
        table-layout: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
    }

    .schedule-matrix-table colgroup,
    .schedule-matrix-table col {
        display: none !important;
        width: auto !important;
    }

    .schedule-matrix-table thead {
        display: none !important;
    }

    .schedule-matrix-table tbody,
    .schedule-matrix-table tr,
    .schedule-matrix-table th,
    .schedule-matrix-table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .schedule-matrix-table tbody th {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .schedule-matrix-table tbody td {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .schedule-file-list {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .schedule-file-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .schedule-file-item a {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}

/* End */
/* /local/components/custom/schedule.matrix/templates/.default/style.css?17773015286819 */
