@media screen and (max-width: 80rem) {

/* tools */
.padding {
    padding: 0 2rem;
}

/* container */
.container .title {
    padding: 1rem;
}

.third_width {
    width: 100% !important;
}

/* navigation */
.navigation .contact {
    display: none;
}

.navigation .links .brand {
    width: 100%;
}

.navigation .links .full-name,
.navigation .links .email {
    display: none;
}

/* login */
.login {
    padding: 0 2rem;
}

.login form {
    width: 100%;
}

/* page sidebar */
.page_sidebar {
    flex-direction: column;
}

.page_sidebar .sidebar,
.page_sidebar .sidebar .text,
.page_sidebar .content .text .button,
.page_sidebar .content .text div {
    width: 100%;
}

.page_sidebar .content .text {
    flex-direction: column;
}

.page_sidebar .content .text_multiple p {
    width: 75%;
}

/* page table */
.page_table {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page_table .filter_table,
.page_table .filter_table form,
.page_table .filter_table input,
.page_table .filter_table select {
    width: 100%;
}

.page_table .filter_table form {
    flex-direction: column;
}

/* 🛠 Only apply to non-FullCalendar tables */
.page_table table:not([class*="fc-"]) {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    white-space: nowrap;
    box-sizing: border-box;
}

.page_table table:not([class*="fc-"]),
.page_table tr:not([class*="fc-"]) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page_table thead:not([class*="fc-"]) {
    display: none;
}

.page_table tr:not([class*="fc-"]) {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
}

.page_table td:not([class*="fc-"]) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid var(--dark_gray);
    box-sizing: border-box;
}

.page_table td:not([class*="fc-"])::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
    word-break: break-word;
    white-space: normal;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.page_table td:not([class*="fc-"]) span,
.page_table td:not([class*="fc-"]) div,
.page_table td:not([class*="fc-"]) p,
.page_table td:not([class*="fc-"]) button {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

td[data-label="Edit"]:not([class*="fc-"]) {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

td[data-label="Edit"]:not([class*="fc-"]) a {
    margin: 0 !important;
    width: inherit !important;
}

/* assessment */
.assessment form {
    width: 95vw;
}

.module_buttons {
    bottom: 0.25rem;
    justify-content: flex-start;
    left: 2%;
    padding: unset;
    transform: unset;
}

.module_buttons button {
    width: 20rem;
}

/* footer */
.footer {
    flex-direction: column;
    padding: 1rem;
    min-height: 12vh;
    height: 100%;
}

}
