@import '_content/HR00001.UI/HR00001.UI.5hjo846ku2.bundle.scp.css';
@import '_content/HR00010.UI/HR00010.UI.tp9lehlao5.bundle.scp.css';
@import '_content/HR00029.UI/HR00029.UI.uw39gvjlit.bundle.scp.css';
@import '_content/HR00031.UI/HR00031.UI.wbgvtrqea3.bundle.scp.css';
@import '_content/HR00051.UI/HR00051.UI.q2u1b3kitx.bundle.scp.css';
@import '_content/HR00082.UI/HR00082.UI.g6pxwg8e8v.bundle.scp.css';
@import '_content/RPT00001.UI/RPT00001.UI.zhph8w70rm.bundle.scp.css';
@import '_content/RPT00002.UI/RPT00002.UI.nj4sx4za4r.bundle.scp.css';
@import '_content/UI.Shared/UI.Shared.zpaq1qqmjw.bundle.scp.css';

/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-jivhpcd6bh] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-jivhpcd6bh] {
    flex: 1;
}

/* Ensure children with overflow:auto inside flex containers can shrink properly
   (prevents zero-height collapse that hides routed page content) */
.card[b-jivhpcd6bh],
.card-body[b-jivhpcd6bh] {
    min-height: 0;
}

.sidebar[b-jivhpcd6bh] {
    background-image: linear-gradient( 180deg, rgb(5, 39, 103) 0%, #3a0647 70% );
}

.top-row[b-jivhpcd6bh] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 3.5rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
}

    .top-row[b-jivhpcd6bh]  a,
    .top-row[b-jivhpcd6bh]  .btn-link {
        margin-left: 1.5rem;
        text-decoration: none;
        white-space: nowrap;
    }

        .top-row[b-jivhpcd6bh]  a:hover,
        .top-row[b-jivhpcd6bh]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-jivhpcd6bh]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }


/* =========================================================
   DEFAULT RESPONSIVE
   ========================================================= */

@media (max-width: 640.98px) {

    .top-row[b-jivhpcd6bh] {
        justify-content: space-between;
    }

        .top-row[b-jivhpcd6bh]  a,
        .top-row[b-jivhpcd6bh]  .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {

    .page[b-jivhpcd6bh] {
        flex-direction: row;
    }

    .sidebar[b-jivhpcd6bh] {
        position: sticky;
        top: 0;
        width: 250px;
        height: 100vh;
    }

    .top-row[b-jivhpcd6bh] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-jivhpcd6bh]  a:first-child {
            flex: 1;
            width: 0;
            text-align: right;
        }

    .top-row[b-jivhpcd6bh],
    article[b-jivhpcd6bh] {
        padding-right: 1.5rem !important;
        padding-left: 2rem !important;
    }
}


/* =========================================================
   CURRENT HOST LAYOUT
   ========================================================= */

.app-workspace[b-jivhpcd6bh] {
    position: relative;
    min-width: 0;
}


/* =========================================================
   SIDEBAR - DESKTOP
   ========================================================= */

.app-sidebar[b-jivhpcd6bh] {
    display: flex;
    width: var(--sidebar-width);
    min-width: 220px;
    max-width: 50vw;
    flex-shrink: 0;
}

    /* Desktop: đóng sidebar hoàn toàn */
    .app-sidebar.sidebar-closed[b-jivhpcd6bh] {
        display: none;
    }


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.app-main[b-jivhpcd6bh] {
    min-width: 0;
}


/* =========================================================
   SIDEBAR CONTROLS
   ========================================================= */

/* Nút đóng và backdrop chỉ sử dụng trên mobile */
.mobile-sidebar-close[b-jivhpcd6bh],
.mobile-sidebar-backdrop[b-jivhpcd6bh] {
    display: none;
}


/* =========================================================
   MENU TOGGLE BUTTON - ALL DEVICES
   ========================================================= */

.sidebar-toggle-button[b-jivhpcd6bh] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .sidebar-toggle-button:hover[b-jivhpcd6bh] {
        background: rgba(255, 255, 255, 0.20);
        border-color: rgba(255, 255, 255, 0.40);
    }


/* =========================================================
   RESPONSIVE - TABLET / MOBILE
   ========================================================= */

@media (max-width: 760px) {

    /* ==================== HEADER ==================== */

    .app-header[b-jivhpcd6bh] {
        padding: 8px 10px !important;
    }

        .app-header .navbar-brand[b-jivhpcd6bh] {
            max-width: calc(100vw - 125px);
            overflow: hidden;
            font-size: 0.9rem !important;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


    /* ==================== WORKSPACE ==================== */

    .app-workspace[b-jivhpcd6bh] {
        display: block !important;
        overflow: hidden;
    }


    /* ==================== SIDEBAR ==================== */

    .app-sidebar[b-jivhpcd6bh] {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        display: flex;
        width: min(280px, 84vw) !important;
        min-width: 0;
        max-width: none;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

        /* Mobile: đóng bằng cách trượt sidebar ra ngoài */
        .app-sidebar.sidebar-closed[b-jivhpcd6bh] {
            display: flex;
            transform: translateX(-100%);
            pointer-events: none;
        }

        /* Mobile: mở sidebar trượt vào màn hình */
        .app-sidebar.sidebar-open[b-jivhpcd6bh] {
            display: flex;
            transform: translateX(0);
            pointer-events: auto;
        }


    /* ==================== SIDEBAR CLOSE BUTTON ==================== */

    .mobile-sidebar-close[b-jivhpcd6bh] {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 2;
        display: block;
    }

        .mobile-sidebar-close button[b-jivhpcd6bh] {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            padding: 0;
            border: 0;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.92);
            color: #475569;
            font-size: 17px;
            cursor: pointer;
        }

            .mobile-sidebar-close button:hover[b-jivhpcd6bh] {
                background: #ffffff;
                color: #0d6efd;
            }


    /* ==================== BACKDROP ==================== */

    .mobile-sidebar-backdrop[b-jivhpcd6bh] {
        position: fixed;
        inset: 0;
        z-index: 1040;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, 0.42);
    }


    /* ==================== RESIZER ==================== */

    .resizer[b-jivhpcd6bh] {
        display: none !important;
    }


    /* ==================== MAIN CONTENT ==================== */

    .app-main[b-jivhpcd6bh] {
        width: 100%;
        height: 100%;
        padding: 8px !important;
    }

        .app-main > .card[b-jivhpcd6bh] {
            width: 100%;
            min-width: 0;
        }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    /* ==================== HEADER ==================== */

    .app-header .container-fluid[b-jivhpcd6bh] {
        gap: 8px;
    }

    .app-header .navbar-brand[b-jivhpcd6bh] {
        max-width: calc(100vw - 110px);
        font-size: 0.82rem !important;
        letter-spacing: 0 !important;
    }

    /* Ẩn dòng phụ trên điện thoại nhỏ */
    .app-header .text-white-50[b-jivhpcd6bh] {
        display: none;
    }

    /* Thu nhỏ logo */
    .app-header .bg-danger[b-jivhpcd6bh] {
        width: 30px !important;
        height: 30px !important;
    }

    .app-header .gap-3[b-jivhpcd6bh] {
        gap: 4px !important;
    }

    .app-header .rounded-pill[b-jivhpcd6bh] {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

        /* Chỉ giữ icon tài khoản */
        .app-header .rounded-pill .small[b-jivhpcd6bh] {
            display: none;
        }


    /* ==================== MENU BUTTON ==================== */

    .sidebar-toggle-button[b-jivhpcd6bh] {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }


    /* ==================== MAIN CONTENT ==================== */

    .app-main[b-jivhpcd6bh] {
        padding: 5px !important;
    }

    .header-pill[b-jivhpcd6bh] {
        padding: 0 8px;
    }
}

/* =========================================================
   HEADER ACTION PILLS (ĐỒNG BỘ, ĐỀU MẮT & CAO CẤP)
   ========================================================= */

.header-action-group[b-jivhpcd6bh] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-pill[b-jivhpcd6bh] {
    height: 32px;
    padding: 0 13px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Scope Badge */
.header-pill-scope[b-jivhpcd6bh] {
    background: rgba(245, 158, 11, 0.18);
    color: #fef08a;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.header-pill-scope-dept[b-jivhpcd6bh] {
    background: rgba(6, 182, 212, 0.18);
    color: #a5f3fc;
    border: 1px solid rgba(6, 182, 212, 0.45);
}

/* 2. User Info Pill */
.header-pill-user[b-jivhpcd6bh] {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 3. Action Buttons */
.header-pill-btn[b-jivhpcd6bh] {
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

/* Admin Button */
.header-pill-admin[b-jivhpcd6bh] {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.header-pill-admin:hover[b-jivhpcd6bh] {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.48);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.header-pill-admin:active[b-jivhpcd6bh] {
    transform: translateY(0);
}

/* Logout Button */
.header-pill-logout[b-jivhpcd6bh] {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.42);
}

.header-pill-logout:hover[b-jivhpcd6bh] {
    background: #dc2626;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.45);
}

.header-pill-logout:hover i[b-jivhpcd6bh] {
    color: #ffffff !important;
}

.header-pill-logout:active[b-jivhpcd6bh] {
    transform: translateY(0);
}
/* /Layout/NavMenu.razor.rz.scp.css */
.nav-scrollable[b-6oauvshpl6] {
    height: 100%;
    overflow-y: auto;
}

.nav-item[b-6oauvshpl6] {
    padding: 0 0.5rem;
}

.nav-item[b-6oauvshpl6]  a {
    color: #334155 !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.nav-item[b-6oauvshpl6]  a i {
    flex: 0 0 20px;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.15s ease-in-out;
}

.nav-item[b-6oauvshpl6]  a:hover {
    background-color: #f1f5f9;
    color: #0f172a !important;
}

.nav-item[b-6oauvshpl6]  a:hover i {
    color: #0d6efd;
}

.nav-item[b-6oauvshpl6]  a.active {
    background: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.nav-item[b-6oauvshpl6]  a.active i {
    color: #ffffff !important;
}
