﻿

.bg-light-blue {
    border-radius: 0 !important;
    background-color: #E4F0FF;
    display: flex;
    border-bottom: 4px solid #65BF8C;
    justify-content: center;
    align-items: center;
}

.bg-toolbar-header1 {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background-color: #D4E5F7;
    padding: 6px;
    font-weight: bold !important;
}

.info-tab-table thead {
    background-color: #F3F2F2 !important;
    padding: 2px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.info-tab-table tbody {
    padding: 6px !important;
}

.font-hd-info {
    font-size: 0.75rem;
}

.box-course-success {
    border-left: 5px solid #4CAF50;
}

.box-course-error {
    border-left: 5px solid #F44336;
}


/*.footer-bottom-right {
    position: fixed;
    right: 10px;
    background-color: #e3f2fd;
    border-top-left-radius: 40px;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);*/
/*    z-index: 999;*/
/*position: absolute;
    bottom: 8px;
}*/

.footer-bottom-right {
    position: absolute;
    background-color: #D4E5F7;
    border-top-left-radius: 40px;
    padding: 8px 16px;
    bottom: 0px;
    right: 0px;
    font-size: 0.75rem;
}

.position-relative {
    position: relative;
}

.expanded-cell {
    background-color: #e0e0e0;
}

.icon-col {
    width: 20px;
    text-align: center;
}

.bg-primary {
    background-color: #2C7FDD;
    color: white;
}

.bg-secondary {
    background-color: #4A90E2;
    color: white;
}

.bg-success {
    background-color: #4CAF50;
    color: white;
}

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

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

.outline-primary {
    border: 2px solid #235792;
    color: #235792;
    border-radius: 15px;
    background: 0 !important;
}

.outline-secondary {
    border: 2px solid #4A90E2;
    color: #4A90E2;
    border-radius: 15px;
    background: 0 !important;
}

.outline-0-secondary {
    border: 2px solid #B2DDFF;
    color: #4A90E2;
    border-radius: 50px;
    background: 0 !important;
}



.outline-success {
    border: 2px solid #4CAF50;
    color: #4CAF50;
    border-radius: 15px;
    background: 0 !important;
}

.outline-revise {
    border: 2px solid goldenrod;
    color: goldenrod;
    border-radius: 15px;
    background: 0 !important;
}

.outline-error {
    border: 2px solid red;
    color: red;
    border-radius: 15px;
    background: 0 !important;
}


.box-wrapper-avatar {
    background-color: #EFF4F9;
    display: inline-block;
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* เงาชัดขึ้น */
    transition: box-shadow 0.3s ease;
}

.box-wrapper-avatar2 {
    background-color: #EFF4F9;
    display: inline-block;
    border-radius: 50px;
    padding: 12px;
    transition: box-shadow 0.3s ease;
}

.box-wrapper-avatar-white {
    background-color: white;
    display: inline-block;
    padding: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* เงาชัดขึ้น */
    transition: box-shadow 0.3s ease;
}

.box-status_success {
    background: linear-gradient(135deg, #4A90E2,#B2DDFF); /* ไล่เฉดฟ้า-น้ำเงิน */
    color: white;
    padding: 12px 20px;
    border-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    width: fit-content; /* ขนาดพอดีข้อความ */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.box-header2_info {
    background: linear-gradient(135deg, #4A90E2,#B2DDFF); /* ไล่เฉดฟ้า-น้ำเงิน */
    color: white;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom-right-radius: 100px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    width: fit-content; /* ขนาดพอดีข้อความ */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.box-header-O-info {
    background: linear-gradient(135deg, #4A90E2,#B2DDFF); /* ไล่เฉดฟ้า-น้ำเงิน */
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fix-xs-size-box-header2 {
    width: 130px;
}

.fix-md-size-box-header2 {
    width: 170px;
}

.fix-xl-size-box-header2 {
    width: 220px;
}

.fix-xl1-size-box-header2 {
    width: 250px;
}

.fix-xl2-size-box-header2 {
    width: 300px;
}

.box-header2_success {
    background: linear-gradient(135deg, #4CAF50,#65BF8C); /* ไล่เฉดฟ้า-น้ำเงิน */
    color: white;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom-right-radius: 100px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.box-header_info {
    background: linear-gradient(135deg, #357ABD,#4A90E2); /* ไล่เฉดฟ้า-น้ำเงิน */
    color: white;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom-right-radius: 50px;
    border-top-left-radius: 15px;
    width: fit-content; /* ขนาดพอดีข้อความ */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.box-header_success {
    background: linear-gradient(135deg, #4CAF50,#65BF8C); /* ไล่เฉดฟ้า-น้ำเงิน */
    color: white;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom-right-radius: 50px;
    border-top-left-radius: 15px;
    width: fit-content; /* ขนาดพอดีข้อความ */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.box-header_error {
    background: linear-gradient(135deg, #b6315a,#ff0000); /* ไล่เฉดฟ้า-น้ำเงิน */
    color: white;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom-right-radius: 50px;
    border-top-left-radius: 15px;
    width: fit-content; /* ขนาดพอดีข้อความ */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bg-success-approve {
    color: #4CAF50;
    border-radius: 50px;
}

.bg-error-approve {
    color: white;
    border-radius: 50px;
    background: red;
}

.bg-wait-approve {
    color: white;
    border-radius: 50px;
    background: #e0e0e0;
}

.bg-info-approve {
    color: white;
    border-radius: 50px;
    background: #357ABD;
}

.outline-success-approve {
    border: 2px solid #4CAF50;
    color: #4CAF50;
    border-radius: 50px;
    background: 0 !important;
}

.outline-error-approve {
    border: 2px solid red;
    color: red;
    border-radius: 50px;
    background: 0 !important;
}

.outline-wait-approve {
    border: 2px solid #e0e0e0;
    color: #4CAF50;
    border-radius: 50px;
    background: 0 !important;
}

.outline-info-approve {
    border: 2px solid #4A90E2;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #e0e0e0 0%, #4A90E2 60%, #4382CB 100%);
}

.avatar-0-white {
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50% !important;
    transition: all 0.3s ease-in-out;
}


    .avatar-0-white:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

.avatar-0 {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50% !important;
    transition: all 0.3s ease-in-out;
}

.avatar-0-info {
    background: linear-gradient(135deg, #357ABD,#4A90E2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50% !important;
    transition: all 0.3s ease-in-out;
}

    .avatar-0-info:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

.bg-0-white {
    background: #FAE6E6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

.bg-blue {
    border-radius: 0 !important;
    background-color: #D4E5F7;
}

.right-align {
    display: flex;
    justify-content: flex-end;
    background-color: white;
}

.card-shadow {
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.5);
    border-top: none;
}

.small-col {
    width: 60px;
    text-align: center;
}

.no-padding {
    padding: 0 !important;
}


.header2-box {
    display: flex;
    align-items: center;
    border-radius: 0;
    padding: 5px;
    justify-content: space-between;
    background-color: #F3F2F2;
    border-bottom: 1px solid #0A2E63;
    border-top: 1px solid #0A2E63;
}

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


/* Dialog ขนาดเล็ก/ปกติสำหรับ Confirm Dialog */
.mud-dialog.confirm-dialog {
    width: 600px !important;
    max-width: 600px !important;
    min-width: 500px !important;
    height: auto !important;
    max-height: 500px !important;
}

/* กำหนดที่กล่องเนื้อหา (แนะนำ) */
.mud-dialog.detail-dialog .mud-dialog-content {
    width: 90vw !important;
    max-width: 90vw !important;
    height: 90vh !important;
    max-height: 90vh !important;
    overflow: auto; /* ถ้าเนื้อหาเกินให้สกรอลล์ */
}

/* หรือถ้าจะกำหนดที่ root เอง (อาจไม่พอควบคุมขนาดกล่องภายใน) */
.mud-dialog.detail-dialog {
    width: 90vw !important;
    height: 90vh !important;
}

.custom-drawer {
    width: 420px !important;
}
/* ปรับความกว้าง Drawer ให้ถูกต้อง */
.filter-drawer.mud-drawer {
    --mud-drawer-width: 400px; /* กว้างตอนเปิด */
    /* ถ้ามีโหมด mini ด้วย ค่อยตั้งเพิ่ม */
    /* --mud-drawer-mini-width: 60px; */
}



/*--------------*/
.value-chip {
    border-radius: 0 !important;
    text-transform: uppercase; /* จะมีผลกับอังกฤษ; ไทยไม่เปลี่ยน */
}
/* ตัด gap ของ stack ออก และตัด margin ของ chip */
.no-gap .mud-chip {
    margin: 0;
}

    /* ถ้าอยากให้มีช่องไฟนิดเดียวระหว่าง 2 กล่อง */
    .no-gap .mud-chip + .mud-chip {
        margin-left: 0; /* เปลี่ยนเป็น 0 ถ้าต้องการติดกันสนิท */
    }






.objective-content {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    /* กัน list / paragraph ดันออกนอก */
    max-width: 100%;
}

    .objective-content ol,
    .objective-content ul {
        padding-left: 1.5rem; /* ให้ bullet/number อยู่สวย ๆ ในกรอบ */
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .objective-content li {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .objective-content p,
    .objective-content span,
    .objective-content div {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }


.drawer2-full-height {
    display: flex !important;
    flex-direction: column;
}

    .drawer2-full-height .mud-navmenu {
        display: flex;
        flex-direction: column;
    }

.plo-code-box {
    flex: 0 0 140px; /* ล็อกให้กว้าง 140px ทุกอัน */
    max-width: 140px;
    min-width: 140px;
}

/* ============================================================
   Subject Info Dialog — Professional Academic UI
   ============================================================ */

/* Header Banner */
.subject-header-banner {
  /*  background-color: #3679B9;*/
        background-color: #1e3a5f;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.subject-header-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.subject-header-info {
    flex: 1;
    min-width: 0;
}

.subject-header-university {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.subject-header-name {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.35;
}

.subject-header-name-en {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

.subject-credit-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Section Cards */
.subject-info-card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

.subject-section-header {
    border-left: 4px solid #1e3a5f;
    padding: 10px 16px;
    background-color: #f8fafc;
}

.subject-section-title {
    font-weight: 700 !important;
    color: #1e3a5f !important;
    letter-spacing: 0.02em;
}

.subject-section-body {
    padding: 14px 16px;
}

/* Credit inline badge (inside section header) */
.subject-credit-inline-badge {
    display: inline-block;
    padding: 1px 9px;
    background-color: #1e3a5f;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

/* Credit Stat Cards */
.credit-stat-card {
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: box-shadow 0.2s ease;
}

.credit-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.credit-stat-icon {
    font-size: 1.4rem !important;
}

.credit-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 6px;
}

.credit-stat-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 3px;
    font-weight: 500;
}

.credit-stat-total {
    background-color: #eff4ff;
    border-color: #c7d7fe;
}

.credit-stat-total .credit-stat-icon,
.credit-stat-total .credit-stat-value {
    color: #1e3a5f;
}

.credit-stat-lecture {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.credit-stat-lecture .credit-stat-icon,
.credit-stat-lecture .credit-stat-value {
    color: #166534;
}

.credit-stat-lab {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.credit-stat-lab .credit-stat-icon,
.credit-stat-lab .credit-stat-value {
    color: #9a3412;
}

.credit-stat-self {
    background-color: #fdf4ff;
    border-color: #f0abfc;
}

.credit-stat-self .credit-stat-icon,
.credit-stat-self .credit-stat-value {
    color: #7e22ce;
}

@media (max-width: 600px) {
    .subject-header-banner {
        padding: 12px 16px;
        gap: 14px;
    }

    .subject-header-name {
        font-size: 0.9rem;
    }

    .subject-header-name-en {
        display: none;
    }
}

