/* /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) — สีน้ำเงินเข้มลึกแบบวิชาการ (Deep Academic Navy) */
.sidebar[b-aas2bcenzb] {
    background: #0b192c;
    box-shadow: 4px 0 24px rgba(11, 25, 44, 0.2);
    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;
}

/* กล่องตัวเลือกปีการศึกษาบน Top Bar */
.top-year-selector[b-aas2bcenzb] {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.top-year-selector:hover[b-aas2bcenzb] {
    border-color: var(--primary, #1d4ed8);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.15) !important;
}

.top-year-selector select:focus[b-aas2bcenzb] {
    outline: none;
    box-shadow: none;
}

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

/* 1. รองรับ Responsive สำหรับอุปกรณ์มือถือ (Mobile max 640px) */
@media (max-width: 640.98px) {
    .top-row[b-aas2bcenzb] {
        justify-content: flex-end;
        padding: 0.5rem 0.75rem;
        min-height: 3.25rem;
        height: auto;
    }

    .top-badge-school[b-aas2bcenzb] {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: middle;
    }

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

/* 2. รองรับ Responsive สำหรับแท็บเล็ต (Tablet: 641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .page[b-aas2bcenzb] {
        flex-direction: row;
    }

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

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

    article.content[b-aas2bcenzb] {
        padding: 1.5rem 1.25rem;
    }
}

/* 3. รองรับการแสดงผลหน้าจอกว้าง (Desktop min 1025px) */
@media (min-width: 1025px) {
    .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;
        padding: 0 2rem;
    }

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

    article.content[b-aas2bcenzb] {
        padding: 2rem;
    }
}

/* บานหน้าต่างแสดงข้อผิดพลาดเมื่อ 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: 2.75rem;
    height: 2.35rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    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.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.4rem rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
}

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

/* ส่วนหัวของ Sidebar — ปรับแบบ Flex ที่ไม่เกิดการทับซ้อน */
.top-row[b-2pd3ypseo4] {
    min-height: 4.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

.brand-header-inner[b-2pd3ypseo4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

.brand-info[b-2pd3ypseo4] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0; /* ให้ข้อความย่อได้ไม่ล้น */
    flex: 1;
}

.brand-text-block[b-2pd3ypseo4] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navbar-brand[b-2pd3ypseo4] {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo-icon[b-2pd3ypseo4] {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm, 8px);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
    flex-shrink: 0;
}

.brand-subtext[b-2pd3ypseo4] {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* การ์ดข้อมูลผู้ใช้ในแถบนำทาง (User Profile Card) */
.user-profile-card[b-2pd3ypseo4] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin: 0.75rem 1rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.user-profile-card:hover[b-2pd3ypseo4] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: var(--shadow-md);
}

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

.avatar-circle[b-2pd3ypseo4] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile-card:hover .avatar-circle[b-2pd3ypseo4] {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.45);
    border-color: #ffffff;
}

/* จุดสถานะ Online */
.avatar-status-dot[b-2pd3ypseo4] {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background-color: var(--success, #10b981);
    border: 2px solid #0b192c;
    border-radius: 50%;
}

/* ข้อมูลผู้ใช้งาน */
.user-info[b-2pd3ypseo4] {
    flex: 1;
    min-width: 0; /* ให้ ellipsis ของชื่อ/ฝ่ายทำงานในกล่อง flex */
}

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

.user-dept[b-2pd3ypseo4] {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: 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='%23cbd5e1' 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;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.badge-role[b-2pd3ypseo4] {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill, 50px);
    letter-spacing: 0.2px;
}

.badge-role.role-admin[b-2pd3ypseo4] {
    background-color: rgba(29, 78, 216, 0.25);
    color: #bfdbfe;
    border: 1px solid rgba(29, 78, 216, 0.45);
}

.badge-role.role-super-admin[b-2pd3ypseo4] {
    background-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.badge-role.role-user[b-2pd3ypseo4] {
    background-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.badge-role.role-plan-staff[b-2pd3ypseo4] {
    background-color: rgba(29, 78, 216, 0.25);
    color: #bfdbfe;
    border: 1px solid rgba(29, 78, 216, 0.45);
}

.badge-role.role-finance-staff[b-2pd3ypseo4] {
    background-color: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-role.role-section-head[b-2pd3ypseo4],
.badge-role.role-dept-head[b-2pd3ypseo4] {
    background-color: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-role.role-director[b-2pd3ypseo4] {
    background-color: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* badge จำนวนใบขออนุมัติที่รอผู้ใช้ปัจจุบันดำเนินการ */
.badge-pending-count[b-2pd3ypseo4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.45rem;
    margin-left: 0.5rem;
    border-radius: var(--radius-pill, 50px);
    background-color: var(--danger, #ef4444);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

/* หัวข้อกลุ่มเมนูแยกตาม role */
.nav-section-divider[b-2pd3ypseo4] {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.nav-section-label[b-2pd3ypseo4] {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.25rem 0.4rem;
}

/* ปุ่มลิงก์ออกจากระบบ (Logout Button) */
.btn-logout-link[b-2pd3ypseo4] {
    background: none;
    border: none;
    color: #f87171;
    border-radius: var(--radius-sm, 8px);
    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;
}

/* ไอคอนจัดการรายชื่อโรงเรียน (Building Fill) */
.bi-building-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-building-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 0a1 1 0 0 0-1 1v14H1.5a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1H14V1a1 1 0 0 0-1-1H3Zm1 2h1v1H4V2Zm3 0h1v1H7V2ZM4 4h1v1H4V4Zm3 0h1v1H7V4ZM4 6h1v1H4V6Zm3 0h1v1H7V6Zm-3 2h1v1H4V8Zm3 0h1v1H7V8Zm-3 2h1v1H4v-1Zm3 0h1v1H7v-1Zm-3 2h1v1H4v-1Zm3 0h1v1H7v-1Zm3-8h1v1h-1V4Zm0 2h1v1h-1V6Zm0 2h1v1h-1V8Zm0 2h1v1h-1v-1ZM6 12v3h3v-3H6Z'/%3E%3C/svg%3E");
}

/* ไอคอนหน้าหลัก (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");
}

/* ไอคอนภาพรวมฝ่ายการเงิน (Cash Stack) */
.bi-cash-stack-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-cash-stack' viewBox='0 0 16 16'%3E%3Cpath d='M1 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1H1zm7 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3Cpath d='M0 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5zm3 0a2 2 0 0 1-2 2v4a2 2 0 0 1 2 2h10a2 2 0 0 1 2-2V7a2 2 0 0 1-2-2H3z'/%3E%3C/svg%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");
}

/* ไอคอนรายงานผลการประเมินตนเอง SAR (Journal Check) */
.bi-journal-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-journal-check' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10.854 6.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 8.793l2.646-2.647a.5.5 0 0 1 .708 0z'/%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");
}

/* ไอคอนใบขออนุมัติปฏิบัติงาน (File Earmark Check) */
.bi-file-earmark-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-file-earmark-check' viewBox='0 0 16 16'%3E%3Cpath d='M10.854 7.854a.5.5 0 0 0-.708-.708L7.5 9.793 6.354 8.646a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0l3-3z'/%3E%3Cpath d='M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z'/%3E%3C/svg%3E");
}

/* ไอคอนอนุมัติคำขอปฏิบัติงาน (Check2 Square) */
.bi-check2-square-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-check2-square' viewBox='0 0 16 16'%3E%3Cpath d='M3 14.5A1.5 1.5 0 0 1 1.5 13V3A1.5 1.5 0 0 1 3 1.5h8a.5.5 0 0 1 0 1H3a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V8a.5.5 0 0 1 1 0v5a1.5 1.5 0 0 1-1.5 1.5H3z'/%3E%3Cpath d='m8.354 10.354 7-7a.5.5 0 0 0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0z'/%3E%3C/svg%3E");
}

/* ไอคอนอนุมัติผลลัพธ์ — กราฟแท่งแบบเมนูผลลัพธ์ + เครื่องหมายถูก */
.bi-result-approve-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%3Crect x='1' y='10' width='3' height='5' rx='.75'/%3E%3Crect x='5.5' y='6.5' width='3' height='8.5' rx='.75'/%3E%3Crect x='10' y='11' width='3' height='4' rx='.75'/%3E%3Cpath d='M15.354 3.354a.5.5 0 0 0-.708-.708L11.5 5.793 10.354 4.646a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0z' stroke='%23cbd5e1' stroke-width='.6'/%3E%3C/svg%3E");
}

/* ไอคอนเจ้าหน้าที่แผน (Clipboard2 Check) */
.bi-clipboard2-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-clipboard2-check' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 0a.5.5 0 0 1 .5.5.5.5 0 0 0 .5.5.5.5 0 0 1 .5.5V2a.5.5 0 0 1-.5.5h-5A.5.5 0 0 1 5 2v-.5a.5.5 0 0 1 .5-.5.5.5 0 0 0 .5-.5.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M3 2.5a.5.5 0 0 1 .5-.5H4a.5.5 0 0 0 0-1h-.5A1.5 1.5 0 0 0 2 2.5v12A1.5 1.5 0 0 0 3.5 16h9a1.5 1.5 0 0 0 1.5-1.5v-12A1.5 1.5 0 0 0 12.5 1H12a.5.5 0 0 0 0 1h.5a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5z'/%3E%3Cpath d='M10.854 7.854a.5.5 0 0 0-.708-.708L7.5 9.793 6.354 8.646a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0z'/%3E%3C/svg%3E");
}

/* ไอคอนผลลัพธ์ (Bar Chart Fill) */
.bi-bar-chart-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-bar-chart-fill' viewBox='0 0 16 16'%3E%3Cpath d='M1 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3zm5-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V2z'/%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");
}

/* ไอคอนนำเข้าแผนงานจาก Excel (File Earmark Spreadsheet) */
.bi-file-earmark-spreadsheet-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-file-earmark-spreadsheet' viewBox='0 0 16 16'%3E%3Cpath d='M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z'/%3E%3Cpath d='M5 7h6v1H5zM5 9h2v1H5zM8 9h1v1H8zM10 9h1v1h-1zM5 11h2v1H5zM8 11h1v1H8zM10 11h1v1h-1z'/%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.15rem 0.75rem;
}

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

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

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

/* เมนูที่กำลังใช้งานอยู่ (Active) — เรียบ คมชัด ตาม The Single Boundary Rule */
.nav-scrollable[b-2pd3ypseo4]  a.active {
    background-color: var(--primary, #1d4ed8) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

.nav-scrollable[b-2pd3ypseo4]  a.active .bi {
    opacity: 1;
    transform: scale(1.05);
}

/* โครงสร้างคอนเทนเนอร์ของเมนูนำทาง (บังคับแนวตั้งทางเดียว ป้องกันการตัดขึ้นคอลัมน์ใหม่ไปด้านข้าง) */
.nav-menu-container[b-2pd3ypseo4] {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 100%;
    width: 100%;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-menu-items[b-2pd3ypseo4] {
    flex: 1 0 auto;
    width: 100%;
}

.nav-logout-item[b-2pd3ypseo4] {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

/* ปักปุ่มออกจากระบบและเลข Version ให้ติดขอบล่างของแถบเมนูเสมอ */
.nav-footer[b-2pd3ypseo4] {
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    background: #0b192c;
}

/* บอกผู้ใช้ว่ายังมีเมนูด้านล่างให้เลื่อนดู */
.nav-footer[b-2pd3ypseo4]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 2rem;
    background: linear-gradient(to top, #0b192c, transparent);
    pointer-events: none;
    animation: nav-hint-fade-b-2pd3ypseo4 linear both;
    animation-timeline: scroll(nearest block);
}

.nav-app-version[b-2pd3ypseo4] {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-align: center;
    letter-spacing: 0.02em;
}

@keyframes nav-hint-fade-b-2pd3ypseo4 {
    0%, 90% { opacity: 1; }
    100% { opacity: 0; }
}

/* แถบเลื่อนบางๆ ที่มองเห็นได้เสมอ */
.nav-scrollable[b-2pd3ypseo4] {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

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

/* รองรับทั้งเบราว์เซอร์สมัยใหม่ที่มี :has และ fallback */
.top-row:has(.navbar-toggler:checked) ~ .nav-scrollable[b-2pd3ypseo4] {
    display: block;
}

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

    .nav-scrollable[b-2pd3ypseo4] {
        display: block !important;
        height: calc(100vh - 4.5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* หัวกลุ่มเมนูที่พับ/กางได้ (จัดการระบบ) */
.nav-section-toggle[b-2pd3ypseo4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm, 8px);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-section-toggle:hover[b-2pd3ypseo4],
.nav-section-toggle:focus-visible[b-2pd3ypseo4] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-section-toggle .nav-section-label[b-2pd3ypseo4] {
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.nav-section-chevron[b-2pd3ypseo4] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 0.15s ease;
    transform: rotate(-90deg);
}

.nav-section-chevron.open[b-2pd3ypseo4] {
    transform: rotate(0);
}

.nav-section-count[b-2pd3ypseo4] {
    display: inline-block;
    min-width: 1.25rem;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-pill, 50px);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 600;
}
/* /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] {
    font-family: "Segoe UI", "Sarabun", "Noto Sans Thai", sans-serif;
    background-color: white;
    width: 22rem;
    margin: 20vh auto;
    padding: 2.25rem 2rem;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2), 0 3px 6px rgba(0, 0, 0, 0.08);
    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: 1.1rem;
}

#components-reconnect-modal p[b-u2ngiaokal] {
    margin: 0;
    text-align: center;
    color: #374151;
    line-height: 1.6;
}

#components-reconnect-modal button[b-u2ngiaokal] {
    border: 0;
    background-color: #1d4ed8;
    color: white;
    padding: 8px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

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

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

    .components-rejoining-animation div[b-u2ngiaokal] {
        position: absolute;
        border: 3px solid #1d4ed8;
        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;
    }
}
/* /Components/Pages/MySignature.razor.rz.scp.css */
/* ==========================================================================
   My Signature Page - Modern Scoped Styles
   ========================================================================== */

.my-signature-page[b-9fznuaaror] {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

/* ส่วนหัวของหน้า (Page Header) */
.sig-header[b-9fznuaaror] {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
    margin-bottom: 1.5rem;
}

.header-icon-badge[b-9fznuaaror] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #1d4ed8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
    flex-shrink: 0;
}

.sig-title[b-9fznuaaror] {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.sig-subtitle[b-9fznuaaror] {
    font-size: 0.9rem;
    color: #64748b;
}

/* ป้ายสถานะลายเซ็นต์ */
.status-pill[b-9fznuaaror] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill.ready[b-9fznuaaror] {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-pill.missing[b-9fznuaaror] {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-dot[b-9fznuaaror] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-pill.ready .status-dot[b-9fznuaaror] {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.status-pill.missing .status-dot[b-9fznuaaror] {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* การ์ดสไตล์ทันสมัย */
.sig-card[b-9fznuaaror] {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sig-card:hover[b-9fznuaaror] {
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.05));
    border-color: #cbd5e1;
}

.sig-card-header[b-9fznuaaror] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.sig-card-title-wrap[b-9fznuaaror] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sig-card-icon[b-9fznuaaror] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sig-card-title[b-9fznuaaror] {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* ส่วนโปรไฟล์ผู้ใช้งาน */
.profile-block[b-9fznuaaror] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0 0.75rem 0;
}

.profile-avatar[b-9fznuaaror] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
    flex-shrink: 0;
}

.profile-name[b-9fznuaaror] {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.profile-meta-tags[b-9fznuaaror] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-pill[b-9fznuaaror] {
    font-size: 0.725rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tag-pill.school[b-9fznuaaror] {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.tag-pill.year[b-9fznuaaror] {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tag-pill.role[b-9fznuaaror] {
    background-color: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
    font-weight: 600;
}

/* ฟอร์มกรอกชื่อผู้ลงนาม */
.helper-banner[b-9fznuaaror] {
    background-color: #f8fafc;
    border-left: 3px solid #1d4ed8;
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.825rem;
    color: #475569;
    margin-bottom: 1.15rem;
    line-height: 1.45;
}

.form-label-custom[b-9fznuaaror] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
    display: block;
}

.custom-input[b-9fznuaaror] {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.85rem;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}

.custom-input:focus[b-9fznuaaror] {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-hint[b-9fznuaaror] {
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 0.35rem;
}

/* ส่วนแสดงรูปลายเซ็นต์ (Signature Canvas) */
.signature-canvas-wrap[b-9fznuaaror] {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.signature-canvas[b-9fznuaaror] {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    /* ลวดลายตารางหมากรุกแสดงพื้นหลังโปร่งใส (Checkerboard) */
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.signature-img[b-9fznuaaror] {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: transform 0.2s ease;
}

.signature-img:hover[b-9fznuaaror] {
    transform: scale(1.02);
}

/* กรณีไม่มีรูปลายเซ็นต์ */
.signature-empty[b-9fznuaaror] {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
}

.empty-icon-wrap[b-9fznuaaror] {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.empty-title[b-9fznuaaror] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

.empty-desc[b-9fznuaaror] {
    font-size: 0.825rem;
    color: #94a3b8;
    max-width: 300px;
}

/* แถบเครื่องมือจัดการลายเซ็นต์ */
.signature-toolbar[b-9fznuaaror] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* แถบยืนยันการลบ */
.delete-confirm-bar[b-9fznuaaror] {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.delete-confirm-text[b-9fznuaaror] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* พื้นที่อัปโหลดไฟล์ (Upload Dropzone) */
.sig-method-title[b-9fznuaaror] {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.sig-method-grid[b-9fznuaaror] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (max-width: 575.98px) {
    .sig-method-grid[b-9fznuaaror] { grid-template-columns: 1fr; }
}

.sig-live-card[b-9fznuaaror] { cursor: pointer; }
.sig-live-card.disabled[b-9fznuaaror] { pointer-events: none; opacity: 0.6; }

.upload-dropzone[b-9fznuaaror] {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #fafafa;
    transition: all 0.2s ease;
    position: relative;
}

.upload-dropzone:hover[b-9fznuaaror] {
    border-color: #1d4ed8;
    background-color: #eff6ff;
}

[b-9fznuaaror] .upload-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-label[b-9fznuaaror] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    cursor: pointer;
    margin-bottom: 0;
    text-align: center;
}

.upload-label.disabled[b-9fznuaaror] {
    pointer-events: none;
    opacity: 0.6;
}

.upload-icon-circle[b-9fznuaaror] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    transition: transform 0.2s ease;
}

.upload-dropzone:hover .upload-icon-circle[b-9fznuaaror] {
    transform: translateY(-2px);
    background-color: #1d4ed8;
    color: #ffffff;
}

.upload-main-text[b-9fznuaaror] {
    font-size: 0.925rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.upload-sub-text[b-9fznuaaror] {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.upload-browse-btn[b-9fznuaaror] {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.upload-dropzone:hover .upload-browse-btn[b-9fznuaaror] {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* กล่องจำลองบนเอกสารทางการ (Document Simulation Box) */
.doc-sim-wrap[b-9fznuaaror] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.doc-sim-header[b-9fznuaaror] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.doc-sim-title[b-9fznuaaror] {
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.doc-paper[b-9fznuaaror] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

.doc-paper[b-9fznuaaror]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1, #e2e8f0);
}

.doc-sig-block[b-9fznuaaror] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* บรรทัด (ลงชื่อ) ...... อยู่หลังรูป — ลายเซ็นต์ทับบนจุดไข่ปลาเหมือนเอกสารจริง */
.doc-sig-line-label[b-9fznuaaror] {
    font-size: 0.85rem;
    color: #1e293b;
    margin-top: -22px;
    position: relative;
    z-index: 1;
}

.doc-sig-image-container[b-9fznuaaror] {
    height: 75px;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.doc-sig-img[b-9fznuaaror] {
    max-height: 70px;
    max-width: 200px;
    object-fit: contain;
}

.doc-sig-placeholder[b-9fznuaaror] {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-style: italic;
    border-bottom: 1px dotted #94a3b8;
    width: 100%;
    text-align: center;
    padding-bottom: 2px;
}

.doc-sig-name[b-9fznuaaror] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.doc-sig-position[b-9fznuaaror] {
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.doc-sim-footer-note[b-9fznuaaror] {
    font-size: 0.775rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.85rem;
    line-height: 1.4;
}

/* คำแนะนำการเตรียมไฟล์ (Guideline Cards) */
.guidelines-grid[b-9fznuaaror] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.guideline-item[b-9fznuaaror] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.guideline-item:hover[b-9fznuaaror] {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.guideline-icon[b-9fznuaaror] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.guideline-icon.icon-format[b-9fznuaaror] {
    background-color: #eff6ff;
    color: #2563eb;
}

.guideline-icon.icon-dimension[b-9fznuaaror] {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.guideline-icon.icon-ink[b-9fznuaaror] {
    background-color: #f0fdf4;
    color: #16a34a;
}

.guideline-icon.icon-crop[b-9fznuaaror] {
    background-color: #fff7ed;
    color: #ea580c;
}

.guideline-title[b-9fznuaaror] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.guideline-desc[b-9fznuaaror] {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* แจ้งเตือนสวยงาม */
.alert-feedback[b-9fznuaaror] {
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .sig-header[b-9fznuaaror] {
        padding: 1.25rem;
    }
    .sig-card[b-9fznuaaror] {
        padding: 1.25rem;
    }
    .guidelines-grid[b-9fznuaaror] {
        grid-template-columns: 1fr;
    }
    .signature-toolbar[b-9fznuaaror] {
        flex-direction: column;
        align-items: stretch;
    }
}

.sig-pad-backdrop[b-9fznuaaror] { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sig-pad-dialog[b-9fznuaaror] { background: #fff; border-radius: 12px; padding: 20px; width: 100%; max-width: 640px; color: #212529; }
.sig-pad-canvas[b-9fznuaaror] { width: 100%; aspect-ratio: 8 / 3; border: 2px dashed #adb5bd; border-radius: 8px; background: #fff; cursor: crosshair; }
/* /Components/Shared/ApprovalTrack.razor.rz.scp.css */
/* ตารางสถานะการอนุมัติแต่ละขั้น (ฝ่าย | แผน | ผู้อำนวยการ) */
.approval-track[b-ga9vb9lwuf] {
    width: 100%;
    max-width: 560px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.8rem;
    background: #ffffff;
}
.approval-track th[b-ga9vb9lwuf],
.approval-track td[b-ga9vb9lwuf] {
    text-align: center;
    padding: 0.35rem 0.4rem;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
}
.approval-track th:first-child[b-ga9vb9lwuf],
.approval-track td:first-child[b-ga9vb9lwuf] { border-left: none; }
.approval-track th[b-ga9vb9lwuf] { font-weight: 700; }
.approval-track td[b-ga9vb9lwuf] { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.track-state[b-ga9vb9lwuf] { font-weight: 600; }
.track-detail[b-ga9vb9lwuf] { font-size: 0.72rem; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ยังไม่ถึงขั้นนี้ */
.track-idle[b-ga9vb9lwuf]     { background: #f8fafc; color: #94a3b8; }
/* กำลังรออนุมัติที่ขั้นนี้ */
.track-current[b-ga9vb9lwuf]  { background: #fef3c7; color: #92400e; }
.approval-track th.track-current[b-ga9vb9lwuf] { background: #f59e0b; color: #ffffff; }
/* อนุมัติแล้ว */
.track-done[b-ga9vb9lwuf]     { background: #dcfce7; color: #166534; }
.approval-track th.track-done[b-ga9vb9lwuf] { background: #16a34a; color: #ffffff; }
/* ตีกลับที่ขั้นนี้ */
.track-rejected[b-ga9vb9lwuf] { background: #fee2e2; color: #991b1b; }
.approval-track th.track-rejected[b-ga9vb9lwuf] { background: #dc2626; color: #ffffff; }
/* /Components/Shared/LoadingIndicator.razor.rz.scp.css */
/* ตัวแสดงสถานะกำลังโหลดกลาง — สีหลักตาม --bs-primary; ขยับเฉพาะเมื่อผู้ใช้ไม่ได้ปิดแอนิเมชัน */
.p2s-loading[b-jlrxfw0l7n] {
    --ring-size: 3rem;
    --ring-width: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: var(--bs-secondary-color, #64748b);
    /* หน่วงการปรากฏเล็กน้อย: โหลดเร็วจะไม่เห็นเป็นภาพวาบ */
    opacity: 0;
    animation: p2s-loading-in-b-jlrxfw0l7n 0.25s ease-out 0.15s forwards;
}

.p2s-loading--page[b-jlrxfw0l7n] {
    flex-direction: column;
    min-height: 60vh;
    padding: 3rem 1rem;
    text-align: center;
}

.p2s-loading--section[b-jlrxfw0l7n] {
    flex-direction: column;
    min-height: 12rem;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--bs-body-bg, #fff);
    border: 1px dashed var(--bs-border-color, #e2e8f0);
    border-radius: 0.75rem;
    --ring-size: 2.25rem;
    --ring-width: 3px;
}

.p2s-loading--overlay[b-jlrxfw0l7n] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    flex-direction: column;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    --ring-size: 3.25rem;
}

.p2s-loading--inline[b-jlrxfw0l7n] {
    padding: 1rem 0.5rem;
    --ring-size: 1.1rem;
    --ring-width: 2px;
}

/* วงแหวน 2 วง: วงนอกหมุนตามเข็ม วงในหมุนทวนเข็ม (เร็วกว่าเล็กน้อย) */
.p2s-loading__ring[b-jlrxfw0l7n] {
    position: relative;
    flex: none;
    width: var(--ring-size);
    height: var(--ring-size);
    border-radius: 50%;
    border: var(--ring-width) solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.14);
    border-top-color: var(--bs-primary, #3b82f6);
    border-bottom-color: var(--bs-primary, #3b82f6);
    animation: p2s-loading-spin-b-jlrxfw0l7n 1.2s linear infinite;
}

.p2s-loading__ring[b-jlrxfw0l7n]::after {
    content: "";
    position: absolute;
    inset: calc(var(--ring-size) * 0.2);
    border-radius: 50%;
    border: var(--ring-width) solid rgba(var(--bs-primary-rgb, 59, 130, 246), 0.14);
    border-left-color: var(--bs-info, #0dcaf0);
    border-right-color: var(--bs-info, #0dcaf0);
    animation: p2s-loading-spin-b-jlrxfw0l7n 0.8s linear infinite reverse;
}

.p2s-loading__body[b-jlrxfw0l7n] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.p2s-loading--inline .p2s-loading__body[b-jlrxfw0l7n] { flex-direction: row; align-items: baseline; gap: 0.5rem; }

.p2s-loading__text[b-jlrxfw0l7n] {
    font-weight: 500;
    color: var(--bs-body-color, #334155);
}

.p2s-loading__hint[b-jlrxfw0l7n] {
    font-size: 0.85rem;
}

.p2s-loading--dark[b-jlrxfw0l7n] { color: rgba(255, 255, 255, 0.7); }
.p2s-loading--dark .p2s-loading__text[b-jlrxfw0l7n] { color: #fff; }
.p2s-loading--dark .p2s-loading__ring[b-jlrxfw0l7n],
.p2s-loading--dark .p2s-loading__ring[b-jlrxfw0l7n]::after { border-color: rgba(255, 255, 255, 0.18); }
.p2s-loading--dark .p2s-loading__ring[b-jlrxfw0l7n] { border-top-color: var(--bs-primary, #3b82f6); border-bottom-color: var(--bs-primary, #3b82f6); }
.p2s-loading--dark .p2s-loading__ring[b-jlrxfw0l7n]::after { border-left-color: var(--bs-info, #0dcaf0); border-right-color: var(--bs-info, #0dcaf0); }

/* วงแหวนในปุ่ม — ใช้สีตัวอักษรของปุ่ม ไม่หน่วงการปรากฏ */
.p2s-spin[b-jlrxfw0l7n] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    border-radius: 50%;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    animation: p2s-loading-spin-b-jlrxfw0l7n 0.75s linear infinite;
}

@keyframes p2s-loading-spin-b-jlrxfw0l7n { to { transform: rotate(360deg); } }
@keyframes p2s-loading-in-b-jlrxfw0l7n { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .p2s-loading[b-jlrxfw0l7n] { animation: none; opacity: 1; }
    .p2s-loading__ring[b-jlrxfw0l7n], .p2s-loading__ring[b-jlrxfw0l7n]::after, .p2s-spin[b-jlrxfw0l7n] { animation-duration: 2.4s; }
}
/* /Components/Shared/PrintLoading.razor.rz.scp.css */
.print-loading[b-8c9s3xxdmf] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100vh;
    font-family: 'TH Sarabun New', Sarabun, sans-serif;
    color: #64748b;
}

.print-loading-spinner[b-8c9s3xxdmf] {
    width: 48px;
    height: 48px;
    border: 5px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: print-loading-spin-b-8c9s3xxdmf 0.9s linear infinite;
}

.print-loading-text[b-8c9s3xxdmf] {
    font-size: 18px;
    color: #334155;
}

.print-loading-hint[b-8c9s3xxdmf] {
    font-size: 14px;
}

@keyframes print-loading-spin-b-8c9s3xxdmf {
    to { transform: rotate(360deg); }
}
/* /Components/Shared/SaveToast.razor.rz.scp.css */
.save-toast[b-tr5qan4l5b] {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    animation: save-toast-in-b-tr5qan4l5b 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.save-toast-ok[b-tr5qan4l5b] {
    background: #15803d;
    box-shadow: 0 10px 30px -8px rgba(21, 128, 61, 0.5);
}

.save-toast-err[b-tr5qan4l5b] {
    background: #b91c1c;
    box-shadow: 0 10px 30px -8px rgba(185, 28, 28, 0.5);
}

@keyframes save-toast-in-b-tr5qan4l5b {
    from { transform: translateX(80px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
