@media (max-width: 1400px) {
    table.datagrid:not(.datagrid-empty) tbody,
    table.datagrid:not(.datagrid-empty) tr,
    table.datagrid:not(.datagrid-empty) td {
        display: block;
    }
    table.datagrid:not(.datagrid-empty) tbody,
    table.datagrid:not(.datagrid-empty) tr {
        border-radius: var(--border-radius);
    }
    table.datagrid:not(.datagrid-empty) tbody tr td:first-of-type {
        border-start-start-radius: var(--border-radius);
        border-start-end-radius: var(--border-radius);
    }
    table.datagrid:not(.datagrid-empty) tbody tr td:last-of-type {
        border-end-start-radius: var(--border-radius);
        border-end-end-radius: var(--border-radius);
    }
    table.datagrid:not(.datagrid-empty) thead {
        display: none;
    }
    table.datagrid:not(.datagrid-empty) tr {
        border: 1px solid var(--responsive-table-row-border-color);
        margin-block-end: 30px;
    }
    table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td {
        box-shadow: inset 0 1px 0 var(--table-cell-border-color);
        min-block-size: 36px;
        padding-inline-start: 35%;
        position: relative;
    }
    table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td:first-child {
        box-shadow: none;
    }
    table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.batch-actions-selector {
        padding: 8px;
    }
    table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.batch-actions-selector:before {
        display: none;
    }
    table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.actions,
    table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.actions.actions-as-dropdown {
        padding: 8px;
    }
    table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.actions.actions-as-dropdown:before {
        display: none;
    }
    table.datagrid:not(.datagrid-empty) td {
        /* because of how the contents are rendered in small screens, table contents must be left-aligned
       the !important flag is needed to override the !important used by Bootstrap in .text-center, .text-right, etc. */
        text-align: left !important;
    }
    table.datagrid:not(.datagrid-empty) td::before {
        content: attr(data-label);
        color: var(--responsive-table-label-color);
        position: absolute;
        inset-block-start: 0;
        inset-block-end: 0;
        inset-inline-start: 0;
        inline-size: 35%;
        font-weight: 500;
        padding: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        white-space: nowrap;
    }
    table.datagrid:not(.datagrid-empty) td.field-boolean {
        padding-inline-start: 8px;
    }
    table.datagrid:not(.datagrid-empty) td.field-boolean::before {
        color: var(--table-cell-color);
        font-weight: 400;
        inset-inline-start: 0;
        /* needed to truncate text when the switch label is too long */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    table.datagrid:not(.datagrid-empty) td.actions::before {
        /* needed to make actions clickable when they are shown inlined */
        display: none;
    }
}

table.datagrid thead tr th a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    text-transform: uppercase;
    color: rgba(48, 99, 255, 1);
}

table.datagrid tbody td.actions-as-dropdown a img {
    width:56px;
    height:50px;
    border-radius: 15px;
    border: 1.5px;
}

table.datagrid tbody tr td:not(td[data-column="completionStatus"]).searchable.text- {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(24, 23, 40, 1);
}

table.datagrid tbody tr td[data-column="completionStatus"] span,
table.datagrid tbody tr.course-to-validate-visible td span {
    width: 50px;
    height: 22px;
    border-radius: 4px;
    padding: 2px 5px 2px 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
}

table.datagrid tbody tr td[data-column="completionStatus"] .validated,
table.datagrid tbody tr.course-to-validate-visible td span.validated,
.card-body span.badge.validated,
.card-body .progress-bar.validated {
    background-color: rgba(69, 194, 73, 1);
    color: rgba(255, 255, 255, 1) !important;
}

table.datagrid tbody tr td[data-column="completionStatus"] .assigned,
table.datagrid tbody tr.course-to-validate-visible td span.assigned,
.card-body span.badge.assigned,
.card-body .progress-bar.assigned {
    background-color: rgba(125, 143, 184, 1);
    color: rgba(255, 255, 255, 1) !important;
}

table.datagrid tbody tr td[data-column="completionStatus"] .waiting-for-validation,
table.datagrid tbody tr.course-to-validate-visible td span.waiting-for-validation,
.card-body span.badge.waiting-for-validation,
.card-body .progress-bar.waiting-for-validation {
    background-color: rgba(184, 255, 152, 1);
    color: rgba(24, 23, 40, 1) !important;
}

table.datagrid tbody tr td[data-column="completionStatus"] .in-progress,
table.datagrid tbody tr.course-to-validate-visible td span.in-progress,
.card-body span.badge.in-progress,
.card-body .progress-bar.in-progress {
    background-color: rgba(184, 72, 206, 1);
    color: rgba(255, 255, 255, 1) !important;
}

table.datagrid tbody tr td[data-column="completionStatus"] .to-retake,
table.datagrid tbody tr.course-to-validate-visible td span.to-retake,
.card-body span.badge.to-retake,
.card-body .progress-bar.to-retake {
    background-color: rgba(184, 43, 43, 1);
    color: rgba(255, 255, 255, 1) !important;
}