/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-hnp8cpx1fh] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-hnp8cpx1fh] {
    flex: 1;
}

.sidebar[b-hnp8cpx1fh] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-hnp8cpx1fh] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-hnp8cpx1fh]  a, .top-row[b-hnp8cpx1fh]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-hnp8cpx1fh]  a:hover, .top-row[b-hnp8cpx1fh]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-hnp8cpx1fh]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-hnp8cpx1fh] {
        justify-content: space-between;
    }

    .top-row[b-hnp8cpx1fh]  a, .top-row[b-hnp8cpx1fh]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-hnp8cpx1fh] {
        flex-direction: row;
    }

    .sidebar[b-hnp8cpx1fh] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-hnp8cpx1fh] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-hnp8cpx1fh]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-hnp8cpx1fh], article[b-hnp8cpx1fh] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* NavMenu.razor.css */

.navbar-toggler[b-nj04crnsoa] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-nj04crnsoa] {
    height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.4);
}

.navbar-brand[b-nj04crnsoa] {
    font-size: 1.1rem;
}

.bi[b-nj04crnsoa] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    /* height: 1.25rem; */
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

/* ส่วนของ Link หลัก */
.nav-item[b-nj04crnsoa] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type[b-nj04crnsoa] {
    padding-top: 1rem;
}

.nav-item:last-of-type[b-nj04crnsoa] {
    padding-bottom: 1rem;
}

.nav-link[b-nj04crnsoa] {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    transition: all 0.2s ease;
}

.nav-link:hover[b-nj04crnsoa] {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* หัวข้อแม่ (Parent) ที่ถูก Active */
.menu-header[b-nj04crnsoa] {
    cursor: pointer;
    justify-content: space-between;
    font-weight: 600;
}

.menu-header.active-group[b-nj04crnsoa] {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    /* ไฮไลท์หัวข้อแม่ */
    border-left: 4px solid #1b6ec2;
    /* แถบสีด้านซ้าย */
}

/* Animation เล็กน้อยตอนเปิดเมนู */
@keyframes slideDown-b-nj04crnsoa {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: ปรับแต่งเมื่อจอใหญ่กว่า 641px */
@media (min-width: 641px) {
    .navbar-toggler[b-nj04crnsoa] {
        display: none;
    }

    .collapse[b-nj04crnsoa] {
        /* บังคับให้แสดงเสมอในจอใหญ่ */
        display: block;
    }

    .nav-scrollable[b-nj04crnsoa] {
        /* ให้ scroll ได้เฉพาะเมนู ไม่กระทบ header */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* --- ส่วนที่ต้องแก้ --- */
/* แถม: เมื่อเอาเมาส์ไปวาง (Hover) */
.nav-link.submenu-link:hover[b-nj04crnsoa] {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.submenu-container[b-nj04crnsoa] {
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 0.25rem;
    overflow: hidden;
}

.submenu-link[b-nj04crnsoa] {
    padding-left: 2.5rem !important;
    font-size: 0.85rem;
    height: 2.5rem;
    color: #b0b0b0;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

/* --- ส่วนที่แก้ไข --- */

/* ใช้ ::deep เพื่อให้มั่นใจว่า CSS ทะลุเข้าไปถึง NavLink */
[b-nj04crnsoa] .nav-link.submenu-link {
    color: #ffffff !important;
}

[b-nj04crnsoa] .nav-link.submenu-link.active {
    background-color: rgba(59, 130, 246, 0.25) !important;
    /* พื้นหลังสีฟ้าจาง */
    color: #ffffff !important;
    /* ตัวหนังสือสีขาว */
    font-weight: 700 !important;
    /* ตัวหนา */
    /* border-left: 4px solid #61dafb; */
    /* เส้นขอบซ้ายสีฟ้าสว่าง */
}

/* เพิ่ม Hover ให้ดูมีมิติ */
[b-nj04crnsoa] .nav-link.submenu-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-scrollable[b-nj04crnsoa]{
    min-width: 250px !important;
}
/* /Pages/Cv/CvDetail.razor.rz.scp.css */
/* CSS หน้าจอปกติ */
.avatar-xl[b-fb1jqggsag] {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}

.print-only[b-fb1jqggsag] { display: none; }

/* CSS ตกแต่งตอน Print (GCME Theme) */
@media print {
    .screen-only[b-fb1jqggsag] { display: none !important; }
    .print-only[b-fb1jqggsag] { display: block !important; }

    /* เส้นขอบและความหนา */
    .gcme-header-box[b-fb1jqggsag], 
    .table-bordered[b-fb1jqggsag], 
    .gcme-table[b-fb1jqggsag], 
    .gcme-table th[b-fb1jqggsag], 
    .gcme-table td[b-fb1jqggsag],
    .section-bar[b-fb1jqggsag],
    .photo-box[b-fb1jqggsag] {
        border-color: #000000 !important;
    }

    /* ตกแต่ง Header และ ตาราง */
    .section-bar[b-fb1jqggsag] {
        background-color: #808080 !important; /* สีเทา */
        color: white !important;
        border: 1px solid #000000 !important;
        border-bottom: none !important;
        padding: 4px 8px;
        font-weight: bold;
    }

    .bg-header-blue th[b-fb1jqggsag] {
        background-color: #9cc2e5 !important; /* สีฟ้า */
        color: black !important;
        text-align: center;
        vertical-align: middle;
    }

    .table-bordered[b-fb1jqggsag] {
        border: 1px solid #000000 !important;
    }
    
    .table-bordered td[b-fb1jqggsag], .table-bordered th[b-fb1jqggsag] {
        border: 1px solid #000000 !important;
        padding: 4px !important;
    }

    .small[b-fb1jqggsag], small[b-fb1jqggsag], table[b-fb1jqggsag] {
        font-size: 10pt !important;
    }
    
    .photo-box[b-fb1jqggsag] {
        width: 100px; height: 120px;
        border: 1px solid #000000;
        background: #f0f0f0;
        display: flex; align-items: center; justify-content: center;
    }
}
