﻿h1:focus {
    outline: none;
}

.budget-field-dirty .mud-input-outlined fieldset,
.budget-field-dirty .mud-input-outlined:hover fieldset,
.budget-field-dirty .mud-input-outlined.mud-focused fieldset {
    border-width: 1px !important;
    border-color: rgb(251,140,0) !important;
    align-items: end;
    justify-items: center;
    white-space: nowrap;
}

.budget-field-saved .mud-input-outlined fieldset,
.budget-field-saved .mud-input-outlined:hover fieldset,
.budget-field-saved .mud-input-outlined.mud-focused fieldset {
    border-width: 1px !important;
    border-color: rgb(76,175,80) !important;
    align-items: end;
    justify-items: center;
    white-space: nowrap;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.font-sarabun {
    font-family: 'Sarabun', sans-serif;
}

body, .mud-typography, .mud-input, .mud-select, .mud-button, .mud-table, .mud-paper {
    font-family: 'Sarabun', sans-serif !important;
}

.budget-num-input input {
    text-align: right !important;
    padding-right: 8px !important;
}


.topic-bold-text {
    font-weight: 600;
    font-family: 'Sarabun', sans-serif;
    color: #213D58; /* dark-blue */
}

.topic-text {
    font-weight: 500;
    font-family: 'Sarabun', sans-serif;
    color: #213D58; /* dark-blue */
}

.mud-typography,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-body1 {
    font-family: 'Sarabun', sans-serif;
}

.button, .mud-button {
    font-family: 'Sarabun', sans-serif;
}

.button-success {
    background-color: mediumseagreen;
    color: white;
}

    .button-success:hover {
        background-color: darkslategrey;
        color: white;
    }

.nav-menu-bg {
    background-color: #123455; /* dark-blue */
}


.text-dark-blue {
    color: #213D58; /* dark-blue */
}

.text-white {
    color: white;
}

.gradient-blue-to-right {
    background: linear-gradient(to right, skyblue, aliceblue, white, aliceblue, skyblue);
    min-height: 100vh;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
}

.responsive-img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.alice-background {
    background-color: #EFF4F9;
}

.bg-red-bottom {
    background-color: red;
    justify-content: center;
    align-items: center;
}

.bg-green-bottom {
    background-color: #419544;
    justify-content: center;
    align-items: center;
}

.bg-dark-blue {
    background-color: #213D58;
}

.bg-blue-gray {
    background-color: #D4E5F7;
}

.bg-white {
    background-color: white;
}

.bg-dark-gray {
    background-color: #9F9F9F;
}

.input-height {
    height: 40px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.search-header {
    height: 40px;
    background-color: #e3edf9;
    color: #0d47a1;
    font-weight: 600;
    font-size: 14px;
}

.text-xl {
    font-size: 20px;
}

.text-lg {
    font-size: 18px;
}

.text-md {
    font-size: 16px;
}

.text-sm {
    font-size: 12px;
}

.text-xs {
    font-size: 10px;
}

.rounded {
    border-radius: 10px;
}

.rounded-md {
    border-radius: 15px;
}

.rounded-lg {
    border-radius: 20px;
}

.rounded-xl {
    border-radius: 50px;
}

.rounded-bottom-xl {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.rounded-top-left {
    border-top-left-radius: 5px;
}

.rounded-top-right {
    border-top-right-radius: 5px;
}

.table-action-button-dark {
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    margin-left: 4px;
    margin-right: 4px;
    box-shadow: none;
    background-color: #213D58;
    color: white;
}

    .table-action-button-dark:hover {
        background-color: #172d41; /*    hover   ͹   */
    }

.table-action-button-outline-red {
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    margin-left: 4px;
    margin-right: 4px;
    box-shadow: none;
    border-color: red;
    color: white;
}

    .table-action-button-outline-red:hover {
        background-color: #7d0000; /*    hover   ͹   */
    }

.table-action-button-gray {
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    margin-left: 4px;
    margin-right: 4px;
    box-shadow: none;
    background-color: #7B8696;
    color: white;
}

    .table-action-button-gray:hover {
        background-color: #414141; /*    hover   ͹   */
    }

.text-header {
    color: #213D58;
    font-weight: 700;
}

/* ซ่อนปุ่ม Previous / Next ของ MudStepper */
.mud-stepper-actions {
    display: none !important;
}

.w-full {
    width: 100%;
    max-width: auto;
}

.center {
    align-content: center;
    text-align: center;
}

.truncate-input {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-boarder {
    border: 5px;
}

.button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-light-gray {
    background-color: #EFF4F9 !important;
}

.no-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equal-cards .mud-paper {
    height: 100%;
}



.border-color-blue {
    border: 3px solid #D4E5F7;
    border-radius: 3px;
}

.flex-grow-1 {
    flex-grow: 1;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.chip-auto-width {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    flex: 0 0 auto;
}

.flex-center-vertical {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.mud-input-filled {
    background-color: aliceblue; /* พื้นหลังอ่อน เพื่อบอกว่าเป็น readonly/generate */
    border-radius: 4px;
    box-shadow: none;
}

/* สไตล์เฉพาะ TextField ที่ generate มา */
.generated-input .mud-input-slot {
    background-color: #f3f4f6 !important; /* สีเทาอ่อนในเฉพาะช่องข้อความ */
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
}

.generated-input .mud-input-helper-text {
    background-color: transparent !important;
}

/* สีตัวอักษรภายในช่อง */
.generated-input input[readonly] {
    color: #374151 !important;
}

    /* ไม่ให้มี border แปลกๆ ตอน focus */
    .generated-input input[readonly]:focus {
        outline: none;
        box-shadow: none;
    }

/* ✅ เพิ่ม dropdown icon ด้วย (สำหรับ MudSelect) */
.generated-input.mud-select-root .mud-icon-button {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}


/* สีขาว สำหรับช่อง input PLO โดยเฉพาะ (ยังคง readonly) */
.plo-file-input .mud-input-slot {
    background-color: #ffffff !important;
}

.plo-file-input input[readonly] {
    color: #374151 !important;
}

    .plo-file-input input[readonly]:focus {
        outline: none;
        box-shadow: none;
    }

.plo-file-input .mud-input-helper-text {
    background-color: transparent !important;
}

.left-align {
    display: inline-flex;
    justify-content: flex-start;
}

.no-dropdown-icon .mud-select-adornment {
    display: none;
}

.name-tab .mud-tab-label-content {
    text-transform: none !important;
}

.mud-tab-label-content {
    text-transform: none !important;
}

.rich-text-editor-wrapper .ql-toolbar {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid #d0d0d0;
    border-bottom: none;
}

.rich-text-editor-wrapper .ql-container {
    font-family: 'Sarabun', 'Noto Sans Thai', 'Prompt', sans-serif;
    height: var(--editor-height, 300px);
    overflow-y: auto;
    overflow-x: auto;
}

.rich-text-editor-wrapper .ql-editor {
    min-height: 100%;
    height: auto;
    overflow: visible;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Sarabun', 'Noto Sans Thai', 'Prompt', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.rich-text-editor-wrapper .ql-editor p {
    line-height: 1.8;
    margin-bottom: 0;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* แก้สระลอย/วรรณยุกต์ภาษาไทย + จัดให้ center ในแนวตั้งใน PLO text fields */
.plo-text-input .mud-input > textarea.mud-input-root-outlined,
.plo-text-input .mud-input > input.mud-input-root-outlined {
    margin-top: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 12px !important;
    line-height: 1.5 !important;
}

/* หมายเหตุ PLOs — readonly styling ที่ไม่ตัด วรรณยุกต์ (ไม่ใช้ overflow:hidden) */
.plo-remark-readonly .mud-input-slot {
    background-color: #f3f4f6 !important;
    border-radius: 6px;
    box-shadow: none;
    overflow: visible;
}

.plo-remark-readonly .mud-input {
    background-color: #f3f4f6 !important;
    border-radius: 6px;
}

.plo-remark-readonly .mud-input > textarea.mud-input-root-outlined {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 12px !important;
    line-height: 1.8 !important;
}

.plo-remark-readonly .mud-input-helper-text {
    background-color: transparent !important;
}

/* Radio button styling */
.mud-radio-group .mud-stack-row {
    width: 100%;
}

.mud-radio-group .mud-paper {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .mud-radio-group .mud-paper:hover {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.05);
        border-color: var(--mud-palette-primary);
    }

.mud-radio-group .mud-radio input:checked + .mud-radio-content .mud-paper {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.1);
    border-color: var(--mud-palette-primary);
    border-width: 2px;
}

.flex-grow-1 {
    flex-grow: 1;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.chip-auto-width {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    flex: 0 0 auto;
}

.vertical-align-top {
    vertical-align: top;
    align-content: center;
}

/* Container with scrollbar */
.fee-table-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ddd;
}

/* Table styling */
.fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    margin: 0;
}

    .fee-table th {
        background-color: #D4E5F7 !important;
        text-align: center;
        vertical-align: middle;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        font-weight: 600;
        padding: 12px 8px;
        color: #123455;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 10;
    }

        /* Empty header cell - white background */
        .fee-table th:empty,
        .fee-table th:first-child:empty {
            background-color: white !important;
        }

        .fee-table th:last-child {
            border-right: none;
        }

    .fee-table td {
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        vertical-align: middle;
        padding: 8px;
        background-color: white;
        white-space: nowrap;
    }

        .fee-table td:last-child {
            border-right: none;
        }

    .fee-table tbody tr:last-child td {
        border-bottom: none;
    }

    .fee-table tbody tr:hover td {
        background-color: #f5f5f5;
    }

    .fee-table tbody tr:nth-of-type(even) td {
        background-color: #fafafa;
    }

    .fee-table tbody tr:nth-of-type(even):hover td {
        background-color: #f0f0f0;
    }

    /* Sticky column for table body */
    .fee-table tbody td.sticky-col {
        position: -webkit-sticky !important;
        position: sticky !important;
        right: 0 !important;
        z-index: 5 !important;
        background-color: white !important;
        min-width: 120px !important;
        width: 120px !important;
        max-width: 120px !important;
        box-shadow: 20px;
    }

    /* Sticky column for table header */
    .fee-table thead th.sticky-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        right: 0 !important;
        top: 0 !important;
        z-index: 20 !important;
        min-width: 120px !important;
        width: 120px !important;
        max-width: 120px !important;
        
    }

@keyframes tab-progress-indeterminate {
    0%   { transform: translateX(-100%); width: 60%; }
    100% { transform: translateX(200%); width: 60%; }
}

.tab-progress-item.mud-toggle-item {
    padding: 0 !important;
}

.tab-progress-item.mud-toggle-item > * {
    width: 100%;
    height: 100%;
    align-self: stretch;
}

.tab-council-locked.mud-toggle-item {
    opacity: 0.55;
    transition: opacity 0.2s;
}

.tab-council-locked.mud-toggle-item:hover {
    opacity: 0.85;
}

.curriculum-approval-sticky-header {
    position: sticky;
    top: 64px;
    z-index: 100;
}

.curriculum-approval-static-header {
    position: sticky;
    top: 64px;
    z-index: 100;
}

.caf-page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #335c81 100%);
    border-radius: 18px 18px 0 0;
    padding: 10px 24px;
    box-shadow: 0 14px 28px rgba(30, 58, 95, 0.12);
}

.header-responsive-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-text-section {
    flex: 1;
    min-width: 0;
}

.caf-header-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.caf-header-title {
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}

.caf-header-subtitle {
    color: rgba(255, 255, 255, 0.78) !important;
    margin-top: 2px;
}

.status-badge-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    flex-shrink: 0;
    color: white;
}

.status-badge-modern .status-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.status-badge-modern .status-value {
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .caf-page-header {
        padding: 8px 16px;
        border-radius: 0;
    }

    .stepper-compact .mud-step-label {
        display: none;
    }

    .curriculum-approval-static-header,
    .curriculum-approval-sticky-header {
        position: relative;
        top: auto;
        z-index: auto;
    }

    .header-responsive-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .status-badge-modern {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
        padding: 8px 12px;
    }

    .caf-header-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    /* ซ่อนชื่อ step ใน stepper บน mobile แต่คงเลขวงกลมไว้ */
    .mud-step-label-content {
        display: none !important;
    }

    /* ลด container padding บน mobile ให้หน้าจอกว้างขึ้น */
    #GlobalMainContent .mud-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 8px !important;
    }

    /* ลด form paper padding บน mobile */
    .form-main-paper {
        padding: 12px !important;
    }

}

/* ===== Tab Toggle Responsive ===== */
.tab-toggle-mobile {
    display: none;
}

@media (max-width: 768px) {
    .tab-toggle-desktop {
        display: none;
    }

    .tab-toggle-mobile {
        display: block;
    }
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    line-height: 1.25rem !important;
    font-size: 0.875rem;
}


.login-hero-img {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.login-footer-container {
    margin-top: 32px;
}

.login-footer {
    position: relative;
    overflow: hidden;
    padding: 20px 24px 12px;
    border: 1px solid rgba(18, 52, 85, 0.10);
    border-radius: 22px 22px 0 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.94));
    box-shadow: 0 -10px 28px rgba(18, 52, 85, 0.08);
    backdrop-filter: blur(12px);
}

.login-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #123455, #2b7bbb);
}

.login-footer-brand,
.login-footer-section {
    height: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
}

.login-footer-logo-wrap {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f4f9ff;
    border: 1px solid rgba(18, 52, 85, 0.1);
    flex-shrink: 0;
}

.login-footer-logo {
    width: 30px;
    height: auto;
}

.login-footer-title {
    color: #123455 !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.login-footer-subtitle {
    color: #64748b !important;
}

.login-footer-description {
    color: #475569 !important;
    line-height: 1.7 !important;
}

.login-footer-heading {
    color: #123455 !important;
    font-weight: 800 !important;
}

.login-contact-list,
.login-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-contact-item,
.login-footer-link {
    display: flex !important;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #213d58 !important;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 52, 85, 0.10);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    font-size: 0.8rem;
}

.login-contact-item:hover,
.login-footer-link:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(43, 123, 187, 0.24);
}

.login-footer-link {
    justify-content: center;
}

.login-line-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.88), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.login-line-qr {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    flex-shrink: 0;
}

.login-line-id {
    color: #166534 !important;
    font-weight: 800 !important;
}

.login-footer-divider {
    margin: 12px 0 8px !important;
    opacity: 0.7;
}

.login-footer-bottom {
    color: #64748b;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .login-footer {
        padding: 18px 18px 12px;
    }
}

@media (max-width: 600px) {
    .login-footer-container {
        margin-top: 24px;
    }

    .login-footer {
        padding: 18px 12px 12px;
        border-radius: 18px 18px 0 0;
    }

    .login-footer-brand,
    .login-footer-section {
        padding: 6px;
    }

    .login-footer-bottom {
        justify-content: center !important;
        text-align: center;
    }
}

.hero-wrapper {
    position: relative;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: #F1F9F1;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}

.blob-tl {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -80px;
}

.blob-tr {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -60px;
}

.blob-br {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -80px;
}

.blob-bl {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -40px;
}

.blob-mid {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 12%;
    opacity: 0.35;
}

/* Login page footer */
.cms-footer {
    background: linear-gradient(135deg, #143F61 0%, #284B70 60%, #0d2444 100%);
    position: relative;
    overflow: hidden;
}

.cms-footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(100,160,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cms-footer::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 5%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(100,200,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cms-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.825rem;
    transition: color 0.2s, gap 0.2s;
}

.cms-footer-link:hover {
    color: #90caf9;
    gap: 10px;
}

.cms-footer-policy-link {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 2px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.cms-footer-policy-link:hover {
    color: #90caf9;
    padding-left: 6px;
}

.cms-qr-hover:hover {
    opacity: 1 !important;
}

/* แท็บชุด PLO — สีเดียวทุกแท็บ (#4A90E2) ใช้คู่กับ pill-tab-new */
.pill-tab-new .plo-set-tab-blue.mud-tab {
    background-color: white !important;
    color: #4A90E2 !important;
    justify-content: center;
}

.qualification-detail-dialog .mud-dialog-content {
    overflow-x: hidden !important;
}

.pill-tab-new .plo-set-tab-blue.mud-tab.mud-tab-active {
    background-color: #DCEBFA !important;
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.10), 0 14px 28px rgba(74, 144, 226, 0.25);
}

.council-approved-lock * {
    pointer-events: none !important;
    cursor: default !important;
}
/* sub-tabs navigation */
.council-approved-lock .mud-tab,
.council-approved-lock .mud-tab *,
.council-approved-lock .mud-tabs-toolbar,
.council-approved-lock .mud-tabs-toolbar * {
    pointer-events: all !important;
    cursor: pointer !important;
}
/* expansion panel header (การตอบสนองต่อภาคส่วนต่างๆ) */
.council-approved-lock .mud-expand-panel-header,
.council-approved-lock .mud-expand-panel-header * {
    pointer-events: all !important;
    cursor: pointer !important;
}
/* ปุ่มลูกศร expand เท่านั้น (sub-PLO, แผนการศึกษา) */
.council-approved-lock .council-expand-btn,
.council-approved-lock .council-expand-btn * {
    pointer-events: all !important;
    cursor: pointer !important;
}
