@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Sans+Thai:wght@200;300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

html * {
    font-family: "Sarabun", sans-serif !important;
}

body {
    height: 100vh;
    font-size: clamp(14px, 0.6rem + 0.075vw, 15px) !important;
    --mud-typography-input-size: 0.9rem !important;
}

.SelectedNewsContent * {
    font-family: 'Noto Sans Thai', sans-serif !important;
}

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

h1:focus {
    outline: none;
}

h3:focus,
h3:focus-visible {
    outline: none !important;
    border: 2px solid transparent !important;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA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2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.mud-breadcrumb-item {
    font-size: 0.8rem !important;
}

.mud-nav-link-text {
    font-weight: 400 !important;
    font-size: 0.85rem !important;
}

.mud-nav-item svg {
    font-size: 1.3rem !important;
}

.registButtonToolBar.mud-button-filled.mud-icon-button {
    padding: 0.5rem !important;
}

.mud-table-cell {
    padding: 12px !important;
}

.DataGridSelectedRow {
    background-color: #d9feff !important;
}

.mud-table-cell, .mud-table-pagination-toolbar {
    padding: 10px !important;
    font-size: 0.82rem !important;
}

.RegistMenuLeftTab .mud-tab {
    min-width: 130px !important;
    max-width: 130px;
    text-align: left;
    padding-block: 0.5rem;
}

.RegistMenuLeftTab .mud-tabs-border-left {
	background-color: #ffffff;
	color: #545656;
}

.RegistMenuLeftTab .mud-tab.mud-tab-active {
    font-weight: 600;
}

.RegistMenuTopTabCreditFee .mud-tab {
    min-width: 160px !important;
    max-width: unset !important;
    padding: 1rem;
}

.mud-snackbar-location-top-center {
    top: 0 !important;
}

.mud-dialog .mud-dialog-content {
    overflow: auto !important;
}

.FilterToggleButton span {
    display: flex !important;
    justify-content: start;
    align-content: start;
    padding: 0.2rem;
}

.mud-input-control>.mud-input-control-input-container>.mud-input-label-inputcontrol{
    line-height: 1.4 !important;
    margin-top: -4px !important;
}

.rz-html-editor-toolbar button * {
    font-family: 'Material Symbols Outlined', "Sarabun", sans-serif !important;
}

.mud-input>textarea.mud-input-root {
    line-height: 1.75 !important;
}

.mud-input>input.mud-input-root:disabled, div.mud-input-slot.mud-input-root:disabled {
    color: #6e6e6e !important;
}
/* StudiedCoursePicker (Task #32123): toolbar panel like the "ค้นหารายวิชา" search panel, outlined list without
   cell borders, tinted sticky header, bottom fade + "more below" hint while rows are hidden below. */
.studied-picker-toolbar {
    background-color: #eff4f9;
    border-radius: 8px;
    padding: 12px 16px 8px;
}

.studied-picker-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.studied-picker-search {
    flex: 1 1 18rem;
    min-width: 0;
}

/* MudSelect puts Class on its inner input control; the flex item is the outer .mud-select */
.studied-picker-toolbar-row > .mud-select {
    flex: 0 0 14rem;
    max-width: 100%;
}

.studied-picker-search .mud-input-outlined,
.studied-picker-semester .mud-input-outlined {
    background-color: var(--mud-palette-surface);
}

.studied-picker-search.mud-input-control,
.studied-picker-semester.mud-input-control {
    margin-top: 0;
}

.studied-picker-count {
    margin-left: auto;
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
}

.studied-picker-help {
    display: block;
    margin-top: 6px;
    color: var(--mud-palette-text-secondary);
}

.studied-picker-selected {
    margin-top: 12px;
}

.studied-picker-list {
    position: relative;
    margin-top: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
}

.studied-picker-list .mud-table-head .mud-table-cell {
    background-color: #eff4f9;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.studied-picker-list .mud-table-body .mud-table-cell {
    border-bottom: none;
}

.studied-picker-list .mud-table-body .mud-table-row {
    cursor: pointer;
}

.studied-picker-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--mud-palette-surface));
}

.studied-picker-more-slot {
    min-height: 30px;
    display: flex;
    justify-content: center;
}
