/* _content/QMS_BYA/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-avsithv9e5] {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar[b-avsithv9e5] {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid var(--byacre-border, #e5e5e5);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 200;
    top: 0;
    left: 0;
    transition: transform 0.25s ease;
}

/* ===== Main wrapper ===== */
.main-wrapper[b-avsithv9e5] {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    min-width: 0; /* prevent flex overflow */
}

/* ===== Top header ===== */
.top-header[b-avsithv9e5] {
    background-color: #ffffff;
    border-bottom: 1px solid var(--byacre-border, #e5e5e5);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 0.5rem;
}

.header-left[b-avsithv9e5] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hamburger button - hidden on desktop */
.sidebar-toggle-btn[b-avsithv9e5] {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--byacre-border, #e5e5e5);
    border-radius: 6px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--byacre-text, #333);
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.sidebar-toggle-btn:hover[b-avsithv9e5] {
    background-color: var(--byacre-bg-light, #f8f9fa);
}

.header-content[b-avsithv9e5] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.environment-badge[b-avsithv9e5] {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--byacre-text-light, #666);
    background-color: var(--byacre-bg-light, #f8f9fa);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
}

.header-actions[b-avsithv9e5] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== User dropdown ===== */
.user-dropdown[b-avsithv9e5] {
    position: relative;
}

.user-button[b-avsithv9e5] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-button:hover[b-avsithv9e5] {
    background-color: #f8f9fa;
    border-color: #e5e5e5;
}

.user-avatar-small[b-avsithv9e5] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.user-name[b-avsithv9e5] {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--byacre-text, #333);
    white-space: nowrap;
}

.user-menu[b-avsithv9e5] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-header[b-avsithv9e5] {
    padding: 1rem;
    background-color: #f8f9fa;
}

.user-menu-name[b-avsithv9e5] {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-menu-email[b-avsithv9e5] {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.125rem;
}

.user-menu-divider[b-avsithv9e5] {
    height: 1px;
    background-color: #e5e5e5;
}

.user-menu-item[b-avsithv9e5] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.user-menu-item:hover[b-avsithv9e5] {
    background-color: #f8f9fa;
    text-decoration: none;
}

.user-menu-item.text-danger[b-avsithv9e5] {
    color: #C41E3A;
}

/* ===== Main content ===== */
.main-content[b-avsithv9e5] {
    flex: 1;
    padding: 1.5rem;
}

.content-wrapper[b-avsithv9e5] {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--byacre-border, #e5e5e5);
    overflow-x: auto;
}

/* ===== Sidebar overlay ===== */
.sidebar-overlay[b-avsithv9e5] {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 150;
}

/* ===== Error UI ===== */
#blazor-error-ui[b-avsithv9e5] {
    color-scheme: light only;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-weight: 500;
}

#blazor-error-ui .dismiss[b-avsithv9e5] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #666;
}

#blazor-error-ui .reload[b-avsithv9e5] {
    color: var(--byacre-red, #C41E3A);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ===== Loading screen ===== */
.loading-screen[b-avsithv9e5] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.loading-content[b-avsithv9e5] {
    text-align: center;
}

.loading-logo[b-avsithv9e5] {
    height: 48px;
    width: auto;
}

/* ========================================
   RESPONSIVE: Tablet & Mobile (< 992px)
   ======================================== */
@media (max-width: 991.98px) {
    /* Off-canvas sidebar: hidden by default, slides in when toggled */
    .sidebar[b-avsithv9e5] {
        transform: translateX(-100%);
    }

    .sidebar-open .sidebar[b-avsithv9e5] {
        transform: translateX(0);
    }

    /* Show overlay when sidebar is open */
    .sidebar-open .sidebar-overlay[b-avsithv9e5] {
        display: block;
    }

    .main-wrapper[b-avsithv9e5] {
        margin-left: 0;
    }

    /* Show hamburger */
    .sidebar-toggle-btn[b-avsithv9e5] {
        display: flex;
    }

    .main-content[b-avsithv9e5] {
        padding: 0.75rem;
    }

    .content-wrapper[b-avsithv9e5] {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .top-header[b-avsithv9e5] {
        padding: 0 0.75rem;
        height: 52px;
    }
}

/* ========================================
   RESPONSIVE: Small screens (< 640px)
   ======================================== */
@media (max-width: 640px) {
    .top-header[b-avsithv9e5] {
        padding: 0 0.5rem;
    }

    .main-content[b-avsithv9e5] {
        padding: 0.5rem;
    }

    .content-wrapper[b-avsithv9e5] {
        padding: 0.5rem;
        border-radius: 6px;
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
    }

    /* Hide user name, keep avatar */
    .user-name[b-avsithv9e5] {
        display: none;
    }

    .user-button[b-avsithv9e5] {
        padding: 0.25rem 0.5rem;
    }

    .user-button svg[b-avsithv9e5] {
        display: none;
    }

    .environment-badge[b-avsithv9e5] {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 400px) {
    .main-content[b-avsithv9e5] {
        padding: 0.375rem;
    }

    .content-wrapper[b-avsithv9e5] {
        padding: 0.375rem;
        margin-left: -0.375rem;
        margin-right: -0.375rem;
        width: calc(100% + 0.75rem);
    }

    .environment-badge[b-avsithv9e5] {
        display: none;
    }
}
/* _content/QMS_BYA/Components/Layout/NavMenu.razor.rz.scp.css */
/* ===== Sidebar Header / Logo ===== */
.sidebar-header[b-qebzksfrz8] {
    padding: 1.25rem;
    border-bottom: 1px solid var(--byacre-border, #e5e5e5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-link[b-qebzksfrz8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--byacre-dark, #1a1a1a);
}

.brand-link:hover[b-qebzksfrz8] {
    text-decoration: none;
    color: var(--byacre-dark, #1a1a1a);
}

.brand-logo[b-qebzksfrz8] {
    height: 28px;
    width: auto;
}

.brand-subtitle[b-qebzksfrz8] {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--byacre-red, #C41E3A);
    background-color: rgba(196, 30, 58, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* ===== Navigation ===== */
.nav-scrollable[b-qebzksfrz8] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.nav-section[b-qebzksfrz8] {
    margin-bottom: 1.5rem;
}

.nav-section-title[b-qebzksfrz8] {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--byacre-text-light, #666);
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
}

.nav-item[b-qebzksfrz8] {
    padding: 0 0.75rem;
}

.nav-item[b-qebzksfrz8]  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--byacre-text, #333);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-item[b-qebzksfrz8]  .nav-link:hover {
    background-color: var(--byacre-bg-light, #f8f9fa);
    color: var(--byacre-dark, #1a1a1a);
}

.nav-item[b-qebzksfrz8]  .nav-link.active {
    background-color: rgba(196, 30, 58, 0.08);
    color: var(--byacre-red, #C41E3A);
}

.nav-item[b-qebzksfrz8]  .nav-link.active .nav-icon {
    color: var(--byacre-red, #C41E3A);
}

.nav-icon[b-qebzksfrz8] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--byacre-text-light, #666);
    flex-shrink: 0;
}

.nav-text[b-qebzksfrz8] {
    flex: 1;
}

.nav-badge[b-qebzksfrz8] {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background-color: rgba(196, 30, 58, 0.1);
    color: var(--byacre-red, #C41E3A);
}

/* ===== Sidebar Footer ===== */
.sidebar-footer[b-qebzksfrz8] {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--byacre-border, #e5e5e5);
    flex-shrink: 0;
}

.version-text[b-qebzksfrz8] {
    font-size: 0.75rem;
    color: var(--byacre-text-light, #999);
}
/* _content/QMS_BYA/Components/Shared/RichTextEditor.razor.rz.scp.css */
/* Rich Text Editor Styles */
.rich-text-editor[b-c7226edfqu] {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    overflow: hidden;
}

.editor-toolbar[b-c7226edfqu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
}

.toolbar-group[b-c7226edfqu] {
    display: flex;
    gap: 2px;
}

.toolbar-separator[b-c7226edfqu] {
    width: 1px;
    height: 24px;
    background: #dee2e6;
    margin: 0 0.25rem;
}

.toolbar-btn[b-c7226edfqu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background: transparent;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-btn:hover[b-c7226edfqu] {
    background: #e9ecef;
    border-color: #dee2e6;
}

.toolbar-btn:active[b-c7226edfqu],
.toolbar-btn.active[b-c7226edfqu] {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.toolbar-select[b-c7226edfqu] {
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
}

.toolbar-select:focus[b-c7226edfqu] {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.editor-content[b-c7226edfqu] {
    min-height: 300px;
    padding: 1rem;
    outline: none;
    overflow-y: auto;
    line-height: 1.6;
}

.editor-content:focus[b-c7226edfqu] {
    outline: none;
}

/* Content styling */
.editor-content h1[b-c7226edfqu] {
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.editor-content h2[b-c7226edfqu] {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.editor-content h3[b-c7226edfqu] {
    font-size: 1.25rem;
    margin: 0.75rem 0 0.5rem;
    font-weight: 600;
}

.editor-content h4[b-c7226edfqu] {
    font-size: 1.1rem;
    margin: 0.5rem 0 0.25rem;
    font-weight: 600;
}

.editor-content p[b-c7226edfqu] {
    margin: 0 0 0.75rem;
}

.editor-content ul[b-c7226edfqu],
.editor-content ol[b-c7226edfqu] {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.editor-content li[b-c7226edfqu] {
    margin: 0.25rem 0;
}

.editor-content table[b-c7226edfqu] {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.editor-content table th[b-c7226edfqu],
.editor-content table td[b-c7226edfqu] {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    text-align: left;
}

.editor-content table th[b-c7226edfqu] {
    background: #f8f9fa;
    font-weight: 600;
}

.editor-content a[b-c7226edfqu] {
    color: #0d6efd;
    text-decoration: underline;
}

.editor-content blockquote[b-c7226edfqu] {
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid #dee2e6;
    background: #f8f9fa;
}

/* Source editor */
.source-editor[b-c7226edfqu] {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.source-editor:focus[b-c7226edfqu] {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .editor-toolbar[b-c7226edfqu] {
        gap: 0.125rem;
    }
    
    .toolbar-btn[b-c7226edfqu] {
        width: 28px;
        height: 28px;
    }
    
    .toolbar-select[b-c7226edfqu] {
        height: 28px;
        font-size: 0.75rem;
    }
    
    .toolbar-separator[b-c7226edfqu] {
        display: none;
    }
}
