/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ==========================================================================
   Main Layout Redesign Styles
   ========================================================================== */

.page[b-aas2bcenzb] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-aas2bcenzb] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
}

/* แถบด้านข้างเมนูนำทาง (Sidebar) */
.sidebar[b-aas2bcenzb] {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* แถบหัวขอด้านบน (Top Bar Header) */
.top-row[b-aas2bcenzb] {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-end;
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
}

.top-row[b-aas2bcenzb]  a, .top-row[b-aas2bcenzb]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.top-row[b-aas2bcenzb]  a:hover, .top-row[b-aas2bcenzb]  .btn-link:hover {
    color: var(--primary);
    text-decoration: none;
}

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

/* ส่วนแสดงเนื้อหาเว็บบอร์ดหลัก (Main Content Container) */
article.content[b-aas2bcenzb] {
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* รองรับ Responsive สำหรับอุปกรณ์มือถือและแท็บเล็ต */
@media (max-width: 640.98px) {
    .top-row[b-aas2bcenzb] {
        justify-content: space-between;
        padding: 0 1rem;
        height: 3.5rem;
    }

    .top-row[b-aas2bcenzb]  a, .top-row[b-aas2bcenzb]  .btn-link {
        margin-left: 0;
    }
    
    article.content[b-aas2bcenzb] {
        padding: 1rem;
    }
}

/* รองรับการแสดงผลหน้าจอกว้าง (Desktop) */
@media (min-width: 641px) {
    .page[b-aas2bcenzb] {
        flex-direction: row;
    }

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

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

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

/* บานหน้าต่างแสดงข้อผิดพลาดเมื่อ Blazor หลุดการทำงาน */
#blazor-error-ui[b-aas2bcenzb] {
    color-scheme: light only;
    background: #fee2e2;
    color: #991b1b;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-weight: 500;
    border-top: 1px solid #fecaca;
}

#blazor-error-ui .dismiss[b-aas2bcenzb] {
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 0.75rem;
    font-weight: bold;
    color: #991b1b;
}
#blazor-error-ui .reload[b-aas2bcenzb] {
    text-decoration: underline;
    color: #b91c1c;
    font-weight: 600;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ==========================================================================
   Navigation Menu Redesign Styles (Premium Dark Glass Theme)
   ========================================================================== */

/* เมนูสำหรับอุปกรณ์พกพา (Mobile Toggle Button) */
.navbar-toggler[b-2pd3ypseo4] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar-toggler:checked[b-2pd3ypseo4] {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ส่วนหัวของ Sidebar */
.top-row[b-2pd3ypseo4] {
    min-height: 5.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
}

.navbar-brand[b-2pd3ypseo4] {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* การ์ดข้อมูลผู้ใช้ในแถบนำทาง (User Profile Card) */
.user-profile-card[b-2pd3ypseo4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    margin: 1.25rem 1rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.user-profile-card:hover[b-2pd3ypseo4] {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(99, 102, 241, 0.15);
}

/* ส่วนรูป Avatar */
.avatar-container[b-2pd3ypseo4] {
    position: relative;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.avatar-circle[b-2pd3ypseo4] {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile-card:hover .avatar-circle[b-2pd3ypseo4] {
    transform: scale(1.06) rotate(3deg);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5);
    border-color: #ffffff;
}

/* จุดสถานะ Online */
.avatar-status-dot[b-2pd3ypseo4] {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    background-color: #10b981;
    border: 2.5px solid #0c1020; /* เข้ากันกับพื้นหลังสีเข้มของ Sidebar */
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: status-pulse-b-2pd3ypseo4 2s infinite ease-in-out;
}

@keyframes status-pulse-b-2pd3ypseo4 {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ข้อมูลผู้ใช้งาน */
.user-info[b-2pd3ypseo4] {
    width: 100%;
}

.user-name[b-2pd3ypseo4] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.1px;
}

.user-dept[b-2pd3ypseo4] {
    font-size: 0.775rem;
    color: #94a3b8;
    margin-bottom: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* ไอคอนฝ่าย/แผนก (Building) */
.bi-dept-icon[b-2pd3ypseo4] {
    display: inline-block;
    position: relative;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.35rem;
    background-size: cover;
    opacity: 0.7;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' class='bi bi-building' viewBox='0 0 16 16'%3E%3Cpath d='M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 8.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm-7 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Z'/%3E%3Cpath d='M2 1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V1Zm2-1a1 1 0 0 0-1 1v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V16h3V1a1 1 0 0 0-1-1H4Z'/%3E%3C/svg%3E");
}

/* ป้ายแสดงสิทธิ์การเข้าใช้งาน (Role Badge) */
.user-role-badge-container[b-2pd3ypseo4] {
    display: flex;
    justify-content: center;
}

.badge-role[b-2pd3ypseo4] {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-role.role-admin[b-2pd3ypseo4] {
    background-color: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-role.role-user[b-2pd3ypseo4] {
    background-color: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ปุ่มลิงก์ออกจากระบบ (Logout Button) */
.btn-logout-link[b-2pd3ypseo4] {
    background: none;
    border: none;
    color: #f87171;
    border-radius: var(--radius-sm);
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}
.btn-logout-link:hover[b-2pd3ypseo4] {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    transform: translateX(4px);
}
.btn-logout-link:hover .bi-box-arrow-right-nav-menu[b-2pd3ypseo4] {
    opacity: 1;
}

/* สไตล์ไอคอนของเมนูนำทาง (Inline SVGs) */
.bi[b-2pd3ypseo4] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    background-size: cover;
    opacity: 0.8;
    transition: all 0.2s ease;
}

/* ไอคอนหน้าหลัก (House Door Fill) */
.bi-house-door-fill-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

/* ไอคอนจัดการฝ่าย (Person Badge Fill) */
.bi-person-badge-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' class='bi bi-person-badge-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm4.5 0a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm5 2.755C12.146 12.825 10.623 12 8 12s-4.146.826-5 1.755V14a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-.245z'/%3E%3C/svg%3E");
}

/* ไอคอนจัดการประเภทแผน (Card Checklist) */
.bi-list-check-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' class='bi bi-card-checklist' viewBox='0 0 16 16'%3E%3Cpath d='M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9a1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9a1.5 1.5 0 0 0-1.5-1.5h-13z'/%3E%3Cpath d='M7 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0zM7 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

/* ไอคอนแดชบอร์ด User (Speedometer 2) */
.bi-speedometer2-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4zM3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707zM2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10zm9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5zm.754-4.246a.389.389 0 0 0-.527-.02L7.547 9.31a.91.91 0 1 0 1.302 1.258l3.434-4.297a.389.389 0 0 0-.029-.518z'%2F%3E%3Cpath fill-rule='evenodd' d='M0 10a8 8 0 1 1 15.547 2.661c-.442 1.253-1.845 1.602-2.932 1.25C11.309 13.488 9.475 13 8 13c-1.474 0-3.31.488-4.615.911-1.087.352-2.49.003-2.932-1.25A7.988 7.988 0 0 1 0 10zm8-7a7 7 0 0 0-6.603 9.329c.203.575.923.876 1.68.63C4.397 12.533 6.358 12 8 12s3.604.532 4.923.96c.757.245 1.477-.056 1.68-.631A7 7 0 0 0 8 3z'%2F%3E%3C%2Fsvg%3E");
}

/* ไอคอนตั้งค่าระบบ (Gear Fill) */
.bi-gear-fill-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' class='bi bi-gear-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'%2F%3E%3C%2Fsvg%3E");
}

/* ไอคอนแผนงาน/โครงการ (Journal Text) */
.bi-journal-text-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' class='bi bi-journal-text' viewBox='0 0 16 16'%3E%3Cpath d='M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z'/%3E%3Cpath d='M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z'/%3E%3Cpath d='M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z'/%3E%3C/svg%3E");
}

/* ไอคอนจัดการผู้ใช้งาน (People Fill) */
.bi-people-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' class='bi bi-people-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216zM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E");
}

/* ไอคอนออกจากระบบ (Box Arrow Right) */
.bi-box-arrow-right-nav-menu[b-2pd3ypseo4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23f87171' class='bi bi-box-arrow-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z'/%3E%3Cpath fill-rule='evenodd' d='M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z'/%3E%3C/svg%3E");
}

/* รายการเมนูย่อย */
.nav-item[b-2pd3ypseo4] {
    font-size: 0.95rem;
    padding: 0.25rem 0.75rem;
}

.nav-item:first-of-type[b-2pd3ypseo4] {
    padding-top: 1.5rem;
}

.nav-scrollable[b-2pd3ypseo4]  .nav-link {
    color: #cbd5e1;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* เมนูเมื่อนำเมาส์ไปชี้ (Hover) */
.nav-scrollable[b-2pd3ypseo4]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}
.nav-scrollable[b-2pd3ypseo4]  .nav-link:hover .bi {
    opacity: 1;
}

/* เมนูที่กำลังใช้งานอยู่ (Active) */
.nav-scrollable[b-2pd3ypseo4]  a.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.nav-scrollable[b-2pd3ypseo4]  a.active .bi {
    opacity: 1;
    filter: brightness(1.5);
}

/* แถบการจัดการการแสดงผลบนอุปกรณ์พกพา */
.nav-scrollable[b-2pd3ypseo4] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-2pd3ypseo4] {
    display: block;
}

/* หน้าจอคอมพิวเตอร์ทั่วไป */
@media (min-width: 641px) {
    .navbar-toggler[b-2pd3ypseo4] {
        display: none;
    }

    .nav-scrollable[b-2pd3ypseo4] {
        display: block;
        height: calc(100vh - 5.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-u2ngiaokal],
.components-reconnect-repeated-attempt-visible[b-u2ngiaokal],
.components-reconnect-failed-visible[b-u2ngiaokal],
.components-pause-visible[b-u2ngiaokal],
.components-resume-failed-visible[b-u2ngiaokal],
.components-rejoining-animation[b-u2ngiaokal] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-retrying[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-failed[b-u2ngiaokal],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-u2ngiaokal] {
    display: block;
}


#components-reconnect-modal[b-u2ngiaokal] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-u2ngiaokal 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-u2ngiaokal 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-u2ngiaokal 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-u2ngiaokal]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-u2ngiaokal 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-u2ngiaokal {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-u2ngiaokal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-u2ngiaokal {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-u2ngiaokal] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-u2ngiaokal] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-u2ngiaokal] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-u2ngiaokal] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-u2ngiaokal] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-u2ngiaokal] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-u2ngiaokal] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-u2ngiaokal 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-u2ngiaokal] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-u2ngiaokal {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
