/*@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Sans+Thai:wght@200;300;400;500;600&display=swap');

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

body {
    height: 100vh;
    font-size: clamp(14px, 0.8rem + 0.375vw, 16px) !important;
}

.text-primary {
    color: #2D505B;
}

.mud-button-root {
    background-color: transparent;
}

.lightTealBackground {
    background-color: #cef7f9 !important;
}

    .lightTealBackground:hover {
        background-color: #e0f8fb !important;
    }

    .lightTealBackground:active {
        border: 1.25px solid #3b5998;
        background-color: #e0f8fb;
    }

    .lightTealBackground:focus {
        outline: none;
        box-shadow: 0 0 0 3px lightskyblue;
        background-color: #e0f8fb;
    }

.lightTealBackground2 {
    background-color: #f4fbfc !important;
}

    .lightTealBackground2:hover {
        background-color: #c2fff3 !important;
    }

    .lightTealBackground2:active {
        border: 1.25px solid #3b5998;
        background-color: #c2fff3;
    }

    .lightTealBackground2:focus {
        outline: none;
        box-shadow: 0 0 0 3px lightskyblue;
        background-color: #c2fff3;
    }

.lightTealGradient {
    background: radial-gradient(335.4% 673.26% at 64.59%, #E8F8F8 0%, #91DCE1 100%);
}

.softGreenGradient {
    background: radial-gradient(171.36% 124.81% at 49.87% 12.66%, #A6F3F9 0%, #7F99B9 100%);
}

.lightGradient {
    background: #ebf9ff;
}

.lightBlueGradient {
    background: radial-gradient(166.59% 206.98% at 50.14%, #E8F8F8 0%, #A9F0F5 100%);
}

.blueGradient {
    position: relative;
    background-image: linear-gradient(to bottom, #d5f3ff, #d1f0ff, #ceedff, #cbeaff, #c8e7ff, #c5e5ff, #c2e4fe, #bfe2fe, #bae1fd, #b5e0fd, #afe0fc, #aadffb);
    z-index: 1;
}

    .blueGradient::before {
        position: absolute;
        content: '';
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-image: linear-gradient(to bottom, #cef1ff, #c8edff, #c2e9ff, #bde5ff, #b9e1ff, #b5defe, #b0dcfe, #acd9fd, #a6d8fb, #a0d6f9, #9ad5f6, #94d3f4);
        z-index: -1;
        transition: opacity 0.2s ease-in-out;
        opacity: 0;
    }

    .blueGradient:hover::before {
        opacity: 1;
    }

    .blueGradient:active {
        border: 1.25px solid #3b5998;
        background-color: #c2fff3;
    }

    .blueGradient:focus {
        outline: none;
        box-shadow: 0 0 0 3px lightskyblue;
        background-color: #c2fff3;
    }

.blueGradient2 {
    background: radial-gradient(100% 1682.86% at 100% 100%, #2980A5 0%, #73AEC7 100%);
}

.orangeGradient {
    background: radial-gradient(100% 1682.86% at 100% 100%, #ffaa40 0%, #ffc174 100%);
}

.redGradient {
    background: radial-gradient(100% 209.36% at 100% 100%, #E15839 0%, #DE7A6C 100%);
}

.tealGradient {
    background: radial-gradient(100% 1682.86% at 100% 100%, #70849C 0%, #96A5B8 100%);
}

.greenGradient {
    background: radial-gradient(76.49% 252.7% at 4.53% 44.23%, #64C29B 0%, #3EA37E 100%);
}

.lightStaticBackground {
    background: #E8F8F8 !important;
}

.settingPanel .lightStaticBackground {
    transition: 200ms ease-in-out;
    background: #E8F8F8 !important;
}

    .settingPanel .lightStaticBackground:hover {
        background-color: #c8f5f5 !important;
    }

    .settingPanel .lightStaticBackground:active {
        border: 1.25px solid #3b5998;
        background-color: #c8f5f5;
    }

    .settingPanel .lightStaticBackground:focus {
        outline: none;
        box-shadow: 0 0 0 3px lightskyblue;
        background-color: #c8f5f5;
    }

.greyLighten1 {
    background: #E0E0E0;
}

.text-white {
    color: #fff;
}

.mud-breadcrumbs {
    padding-inline: 0 !important;
}

.serviceCard .mud-nav-link-text {
    margin-inline: 0 !important;
}

.serviceCard .mud-divider-vertical {
    border-style: solid;
    height: 96px;
}

.serviceCard .mud-navmenu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.serviceCard .mud-nav-item {
    border-radius: 8px;
    flex: 1 1 100px;
    max-width: 120px;
    min-height: 76px;
    min-width: 100px;
}

.serviceCard .mud-nav-link {
    align-items: center;
    height: 100%;
    padding: .5rem;
}

.serviceCard .mud-icon-root {
    font-size: 1.75rem !important;
}

/*.serviceCard .mud-paper {
    width: fit-content;
    width: -moz-fit-content;
}*/

.mud-button-round-1 {
    border-radius: 0.5rem !important;
    border: none !important;
    overflow: hidden !important;
}

.footerNavigation .mud-nav-link {
    padding: 0;
}

.footerNavigation .mud-toolbar-appbar {
    height: 64px !important;
}

.footerNavigation .mud-nav-link-text {
    margin: 0 !important;
}

.footerNavigation .mud-icon-root {
    font-size: 1.5rem;
    height: 40px;
}

.footerNavigation .mud-typography {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sideBarNavigation {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .sideBarNavigation .mud-nav-item {
        border-radius: 0.4rem;
    }

    .sideBarNavigation .mud-icon-root {
        font-size: 1.75rem;
    }

    .sideBarNavigation .active .mud-typography {
        font-weight: 600 !important;
    }

    .sideBarNavigation .mud-nav-item:not(.active) {
        color: #417687 !important;
    }

    .sideBarNavigation .mud-typography {
        font-weight: 500;
    }

.registDynamicButton .mud-icon-root {
    font-size: 2.25rem !important;
}

.studentCard .cardHeader {
    background: #36A9E1;
    position: relative;
}

.studentCard::before {
    content: "";
    background: url("/images/PSU Line.png");
    opacity: 0.05;
    top: 0;
    left: 0;
    position: fixed;
    background-repeat: no-repeat;
    background-position: top;
    height: 100%;
    width: 100%;
}

.studentCard .cardBody {
    background: transparent;
}

    .studentCard .cardBody .mud-typography,
    .studentCard .cardFooter .mud-typography {
        color: #fff0f5 !important;
    }

.subjectDescriptionText {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 96px;
    word-break: break-word;
}

.bg1 {
    background: transparent;
}

.bg2 {
    background: #f4f5f9 url("/images/classtable-bg/bg-classtable-2.svg");
}

.bg3 {
    background: #f4f5f9 url("/images/classtable-bg/bg-classtable-3.svg");
}

.bg4 {
    background: #f4f5f9 url("/images/classtable-bg/bg-classtable-4.svg");
}

.bg5 {
    background: #f4f5f9 url("/images/classtable-bg/bg-classtable-5.svg");
}

.bg6 {
    background: #f4f5f9 url("/images/classtable-bg/bg-classtable-6.svg");
    color: white;
}

    .bg6 .heading {
        font-size: 4.7rem;
        font-weight: 800;
    }

.thumbnailBg1 {
    background: #e8f8f8;
}

.thumbnailBg2 {
    background: #f4f5f9 url("/images/classtable-bg/thumbnails/tb-bg-classtable-2.png");
}

.thumbnailBg3 {
    background: #f4f5f9 url("/images/classtable-bg/thumbnails/tb-bg-classtable-3.png");
}

.thumbnailBg4 {
    background: #f4f5f9 url("/images/classtable-bg/thumbnails/tb-bg-classtable-4.png");
}

.thumbnailBg5 {
    background: #f4f5f9 url("/images/classtable-bg/thumbnails/tb-bg-classtable-5.png");
}

.thumbnailBg6 {
    background: #f4f5f9 url("/images/classtable-bg/thumbnails/tb-bg-classtable-6.png");
}

.bgBase {
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100% !important;
    padding: 0 !important;
}

.classScheduleTab .mud-tabs-tabbar, .gradeDetail .mud-tabs-tabbar {
    display: none;
}

*[id] {
    scroll-margin-top: 5rem;
}

.element-focus {
    outline: 3px solid #92eaff !important;
    box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);
}

.element-focus-error {
    outline: 3px solid #ff7e7e !important;
    box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);
}

.registTab .mud-tabs-toolbar-content {
    padding: 12px 12px 0 12px;
    background: #E8F8F8;
}

.registTab .mud-tabs-toolbar-wrapper {
    width: 100% !important;
    gap: 8px;
}

.registTab .mud-tooltip-root {
    display: flex !important;
    width: 100%;
}

.registTab .mud-tab {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 1.025rem;
}

.registTab .mud-tab-active {
    background: radial-gradient(116.07% 116.07% at 24.78%, rgba(232, 248, 248, 0) 0%, #DAFFFF 0.01%, #8EE6E6 100%);
    border-radius: 8px;
}

.registTab .mud-tab-slider {
    display: none;
}

.registResultCard .mud-typography {
    opacity: 0.5 !important;
}

.squareChip, .mud-chip.mud-chip-size-small:not(.dayChip) {
    border-radius: 4px !important;
    margin: 0 !important;
}

.dayChip {
    border-radius: 12px !important;
}

.registTypeSelector {
    display: flex;
    width: 100% !important;
    gap: 8px;
    padding: 10px 8px 12px 8px !important;
    border-radius: 6px;
    transition: 150ms ease-in-out;
    width: fit-content;
    width: -moz-fit-content;
    border: 1px solid #B2BCC9;
}

    .registTypeSelector .mud-list-item {
        margin-top: 3px;
        padding-block: 4px;
        min-width: 90px;
        height: 100%;
        border-radius: 5px !important;
        background-color: var(--mud-palette-secondary-hover);
    }

    .registTypeSelector .mud-list-item-text {
        margin: 0 !important;
    }

    /*.registTypeSelector .mud-typography {
        color: #417687;
    }*/

    .registTypeSelector .mud-list-item-gutters {
        padding-inline: 8px;
    }

    .registTypeSelector .list-active {
        background-color: var(--mud-palette-secondary) !important;
        color: #fff !important;
    }

.formLabel {
    background-color: #fff;
    margin-bottom: -0.8rem !important;
    z-index: 2;
    left: 10px;
    width: fit-content;
    position: relative;
    padding-inline: 0.2rem;
    font-size: 0.8rem !important;
}

.navFooter {
    color: #48696a;
}

.navFooterActive {
    color: #2D505B;
    background: radial-gradient(116.07% 116.07% at 24.78%, rgba(232, 248, 248, 0) 0%, #DAFFFF 0.01%, #8EE6E6 100%);
    border-radius: 0.5rem;
}

.mobileBackToTop {
    top: 84px;
    height: 40px;
    transition: transform .35s !important;
}

    .mobileBackToTop button {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    }

.mud-scroll-to-top.hidden {
    transform: scale(0) rotate(0) !important;
    right: calc(50% - 75px);
}

.mud-scroll-to-top.visible {
    right: calc(50% - 75px) !important;
}

.languageSelector .mud-list-item-icon {
    min-width: 36px !important;
}

:root {
    --var-base-row-height: 64px;
    --var-base-cell-width: 120px;
}

.mud-table-cell {
    padding: 8px;
}

.classSchedule .tableHeader:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.classSchedule .mud-table-container {
    overflow-x: hidden;
}

.classSchedule .mud-table-cell {
    padding: 0;
    width: var(--var-base-cell-width) !important;
    max-width: 120px;
}

.classSchedule .mud-button-text {
    padding: 12px 4px;
}

.classSchedule .overlayClassLayer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    height: 100%;
    padding-top: 64px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .classSchedule .overlayClassLayer .dayRow {
        width: 100%;
        display: flex;
    }

    .classSchedule .overlayClassLayer .overlayClassCard {
        height: 58px;
        border-radius: 0;
        position: relative;
        display: flex;
        padding-inline: 4px;
        transition: 0.3s;
    }

        .classSchedule .overlayClassLayer .overlayClassCard:hover {
            filter: brightness(90%);
        }

        .classSchedule .overlayClassLayer .overlayClassCard .mud-tooltip-inline {
            width: 100%;
        }

.colorSelector .mud-list-item {
    width: auto !important;
}

.colorSelector .mud-list-item-text {
    margin: 0;
}

.classSchedule .overlayClassLayer .mud-button-label {
    padding-inline: 0.5rem;
}

.classSchedule .overlayClassCard .textOverflow {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    font-size: 0.76rem;
}

.footerLinks .mud-link {
    color: #36A9E1 !important;
    cursor: pointer;
}

.newsContent {
    width: 100%;
    line-height: 1.7rem;
}

    .newsContent * {
        max-width: 100%;
    }

    .newsContent img {
        height: auto;
    }

    .newsContent ol, .newsContent ul {
        padding-left: 2rem;
    }

        .newsContent ul li {
            list-style-type: circle;
        }

    .newsContent a {
        color: #5b5bed;
        text-decoration: underline;
    }

.vertical-center {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 100%;
    line-height: 1;
    text-transform: none;
}

.registProfileTab .mud-tabs-toolbar-content {
    padding: 12px;
}

.registProfileTab .mud-tabs-toolbar-wrapper {
    width: 100% !important;
    gap: 8px;
}

.registProfileTab .mud-tooltip-root {
    display: flex !important;
    width: 100%;
}

.registProfileTab .mud-tab {
    width: 100%;
    padding-block: 0.5rem;
    padding-inline: 1.2rem;
    font-size: 0.8rem;
    justify-content: left;
    border-radius: 0.35rem;
    overflow: hidden;
    color: #417687;
    text-align: left;
    text-transform: capitalize;
}

    .registProfileTab .mud-tab:hover {
        border-radius: 0.35rem;
    }

.registProfileTab .mud-tab-active {
    background-color: #ebf9ff;
    border-radius: 0.35rem;
    color: #2d505b;
    font-weight: 600;
}

.registProfileTab .mud-tab-slider {
    display: none;
}

.notiButtonWithBadge {
    width: 48px;
    height: 48px;
    border-radius: 48px !important;
}

    .notiButtonWithBadge .mud-button-label {
        margin-top: 0.5rem;
    }

    .notiButtonWithBadge .mud-badge {
        background-color: #fb9a09 !important;
        color: #fff !important;
        border-color: #e8f8f8 !important;
        border-width: 3px !important;
        padding: 4px;
        font-size: 0.65rem;
        line-height: 0.7rem;
        font-weight: 600;
    }

.registProfileTab .mud-tabs-vertical {
    min-width: 200px;
}

.mud-snackbar {
    margin-top: 48px !important;
}

.emptyBox {
    width: 100%;
    height: 350px;
    background-color: #E8F8F8;
    border-radius: 0.6rem;
    margin-top: 0.25rem;
}

.dialogBackDropBlurDarker {
    backdrop-filter: blur(10px);
}

.hideTabToolbar .mud-tabs-toolbar {
    display: none;
}

.hideTabToolbar .mud-tabs-tabbar .mud-tabs-tabbar-inner {
    display: none;
}

.enrollPrerequisiteTimeline .mud-timeline-item {
    flex-direction: column-reverse !important;
    justify-content: flex-end;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.enrollPrerequisiteTimeline .mud-timeline-item-divider {
    min-height: 64px !important;
}

.enrollPrerequisiteTimeline::before {
    top: 32px !important;
    background: #f1f1f1 !important;
}

.enrollPrerequisiteTimeline .mud-timeline-item .mud-timeline-item-content {
    max-height: 100%;
}

.enrollPrerequisiteTimeline .mud-timeline-item-dot .mud-timeline-item-dot-inner.mud-timeline-dot-default {
    opacity: 0.25;
}

.enrollPrerequisiteTimeline .mud-alert-message {
    padding: 0 !important;
}

.enrollTabs .mud-tooltip-root {
    width: 100%;
}

.enrollTabs .mud-tab {
    padding-block: 1.2rem;
    text-transform: capitalize;
}

.enrollTabs .mud-tabs-toolbar-wrapper {
    width: 100% !important;
    justify-content: center;
}

.enrollTabs .mud-badge.mud-badge-top.right {
    /* inset: auto auto calc(100% - 9px) calc(100%);*/
    background-color: #fb9a09 !important;
    color: #fff !important;
    padding: 2px;
    font-size: 0.65rem;
    line-height: 0.7rem;
    font-weight: 600;
}

.enrollTabs .mud-tab.mud-tab-active {
    background-color: #e9fffd;
    border-radius: 0.7rem 0.7rem 0 0;
}

.enrollTabs .mud-tab-slider {
    background: #7cc3d9;
}

.footer {
    background: #0da6b5;
    color: #f1f1f1 !important;
    max-width: 960px;
    width: 100%;
    padding: 0.7rem 1rem 0 1rem;
    border-radius: 1rem 1rem 0 0;
    filter: drop-shadow(0px -5px 25px rgba(0, 0, 0, 0.13));
}

.termYearSelector .mud-input {
    font-size: 0.8rem;
}

.mud-tabs-scroll-button {
    display: flex;
}

.advisorExpand .mud-expand-panel .mud-expand-panel-content {
    padding: 8px;
}
