/* /Pages/Help/HelpPage.razor.rz.scp.css */
.help-layout[b-2qzku3g1ho] {
    display: flex;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* ── Left nav ── */
.help-nav[b-2qzku3g1ho] {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
    overflow-y: auto;
    padding: 0.75rem 0;
    background-color: var(--bs-body-bg);
}

.help-nav-header[b-2qzku3g1ho] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1rem 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color, #6c757d);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    margin-bottom: 0.5rem;
}

.help-nav-module[b-2qzku3g1ho] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-body-color);
    cursor: pointer;
    transition: background-color 0.12s;
    border-radius: 0;
}

.help-nav-module:hover[b-2qzku3g1ho] {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
}

.toggle-icon[b-2qzku3g1ho] {
    transition: transform 0.2s;
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #6c757d);
    flex-shrink: 0;
}

.help-nav-section.expanded .toggle-icon[b-2qzku3g1ho] {
    transform: rotate(90deg);
}

/* articles hidden by default */
.help-nav-articles[b-2qzku3g1ho] {
    display: none;
    flex-direction: column;
}

.help-nav-section.expanded .help-nav-articles[b-2qzku3g1ho] {
    display: flex;
}

.help-nav-article[b-2qzku3g1ho] {
    display: block;
    padding: 0.3rem 1rem 0.3rem 2.75rem;
    font-size: 0.8125rem;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background-color 0.12s, color 0.12s;
}

.help-nav-article:hover[b-2qzku3g1ho] {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.help-nav-article.active[b-2qzku3g1ho] {
    color: var(--bs-primary, #0d6efd);
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
    font-weight: 500;
}

/* ── Content area ── */
.help-content-area[b-2qzku3g1ho] {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    min-width: 0;
}

.help-loading[b-2qzku3g1ho] {
    display: flex;
    align-items: center;
    color: var(--bs-secondary-color, #6c757d);
    padding: 2rem 0;
    font-size: 0.875rem;
}

/* ── Article markdown styles (::deep bypasses CSS isolation for injected HTML) ── */
.help-article[b-2qzku3g1ho] {
    max-width: 800px;
}

.help-article[b-2qzku3g1ho]  h1 {
    font-size: 1.625rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.help-article[b-2qzku3g1ho]  h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.help-article[b-2qzku3g1ho]  h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.help-article[b-2qzku3g1ho]  p {
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.help-article[b-2qzku3g1ho]  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.help-article[b-2qzku3g1ho]  th,
.help-article[b-2qzku3g1ho]  td {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    text-align: left;
    vertical-align: top;
}

.help-article[b-2qzku3g1ho]  th {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    font-weight: 600;
    white-space: nowrap;
}

.help-article[b-2qzku3g1ho]  tr:nth-child(even) td {
    background-color: var(--bs-secondary-bg, rgba(0,0,0,.02));
}

.help-article[b-2qzku3g1ho]  code {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
    color: var(--bs-danger, #dc3545);
}

.help-article[b-2qzku3g1ho]  pre {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.help-article[b-2qzku3g1ho]  pre code {
    background: none;
    padding: 0;
    color: var(--bs-body-color);
    font-size: 0.8rem;
}

.help-article[b-2qzku3g1ho]  blockquote {
    border-left: 3px solid var(--bs-primary, #0d6efd);
    padding: 0.6rem 1rem;
    margin: 1rem 0;
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
    border-radius: 0 0.375rem 0.375rem 0;
}

.help-article[b-2qzku3g1ho]  blockquote p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.help-article[b-2qzku3g1ho]  ol,
.help-article[b-2qzku3g1ho]  ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.help-article[b-2qzku3g1ho]  li {
    margin-bottom: 0.3rem;
    line-height: 1.65;
}

.help-article[b-2qzku3g1ho]  strong {
    font-weight: 600;
}

.help-article[b-2qzku3g1ho]  hr {
    margin: 2rem 0;
    border-color: var(--bs-border-color, #dee2e6);
}

/* ── Dark mode overrides ── */
#layout-shell.dark .help-nav[b-2qzku3g1ho] {
    background-color: #111827;
    border-color: #374151;
}

#layout-shell.dark .help-nav-header[b-2qzku3g1ho] {
    color: #6b7280;
    border-color: #374151;
}

#layout-shell.dark .help-nav-module[b-2qzku3g1ho] {
    color: #d1d5db;
}

#layout-shell.dark .help-nav-module:hover[b-2qzku3g1ho] {
    background-color: #1f2937;
}

#layout-shell.dark .help-nav-article[b-2qzku3g1ho] {
    color: #9ca3af;
}

#layout-shell.dark .help-nav-article:hover[b-2qzku3g1ho] {
    background-color: #1f2937;
    color: #93c5fd;
}

#layout-shell.dark .help-nav-article.active[b-2qzku3g1ho] {
    background-color: #1e3a5f;
    color: #93c5fd;
}


#layout-shell.dark .help-article[b-2qzku3g1ho]  th {
    background-color: #1f2937;
    color: #f9fafb;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  tr:nth-child(even) td {
    background-color: #111827;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  td {
    color: #d1d5db;
    border-color: #374151;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  th {
    border-color: #374151;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  code {
    background-color: #1f2937;
    color: #f87171;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  pre {
    background-color: #1f2937;
    border-color: #374151;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  blockquote {
    background-color: #1e3a5f;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  h1 {
    border-color: #374151;
    color: #f9fafb;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  h2,
#layout-shell.dark .help-article[b-2qzku3g1ho]  h3 {
    color: #f9fafb;
}

#layout-shell.dark .help-article[b-2qzku3g1ho]  p,
#layout-shell.dark .help-article[b-2qzku3g1ho]  li {
    color: #d1d5db;
}
/* /Pages/Notifications/NotificationsPage.razor.rz.scp.css */
/* ── Page header ──────────────────────────────────────────── */
.notif-header[b-8je1ou0m3j] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.notif-header-left[b-8je1ou0m3j] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notif-header-left h1[b-8je1ou0m3j] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--content-text);
    margin: 0;
    line-height: 1.3;
}

.notif-unread-badge[b-8je1ou0m3j] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

[b-8je1ou0m3j] #layout-shell.dark .notif-unread-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.notif-unread-dot[b-8je1ou0m3j] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ── Filter tabs ─────────────────────────────────────────── */
.notif-filters[b-8je1ou0m3j] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.notif-filter-btn[b-8je1ou0m3j] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.875rem;
    border-radius: 0.5rem;
    border: 1.5px solid var(--em-input-border, #d1d5db);
    background: var(--em-input-bg, #fff);
    color: var(--content-text, #111827);
    font-size: var(--font-size-sm, 0.75rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition, 0.25s);
    white-space: nowrap;
}

.notif-filter-btn:hover[b-8je1ou0m3j] {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.04);
}

.notif-filter-btn.active[b-8je1ou0m3j] {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.notif-mark-all-btn[b-8je1ou0m3j] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.875rem;
    border-radius: 0.5rem;
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
    color: #10b981;
    font-size: var(--font-size-sm, 0.75rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition, 0.25s);
    white-space: nowrap;
}

.notif-mark-all-btn:hover[b-8je1ou0m3j] {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* ── Notification list card ──────────────────────────────── */
.notif-card[b-8je1ou0m3j] {
    background: var(--em-card-bg, #fff);
    border: 1px solid var(--em-card-border, #e5e7eb);
    border-radius: 0.75rem;
    box-shadow: var(--em-card-shadow, 0 1px 3px rgba(0,0,0,0.06));
    overflow: hidden;
}

.notif-list[b-8je1ou0m3j] {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Individual notification item ────────────────────────── */
.notif-item[b-8je1ou0m3j] {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--em-card-border, #e5e7eb);
    transition: background var(--transition, 0.25s);
    position: relative;
}

.notif-item:last-child[b-8je1ou0m3j] {
    border-bottom: none;
}

.notif-item:hover[b-8je1ou0m3j] {
    background: rgba(16, 185, 129, 0.02);
}

.notif-item-unread[b-8je1ou0m3j] {
    background: rgba(16, 185, 129, 0.04);
}

.notif-item-unread[b-8je1ou0m3j]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #10b981;
    border-radius: 0 2px 2px 0;
}

[b-8je1ou0m3j] #layout-shell.dark .notif-item-unread {
    background: rgba(16, 185, 129, 0.06);
}

/* ── Category icon ───────────────────────────────────────── */
.notif-icon[b-8je1ou0m3j] {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notif-icon-system[b-8je1ou0m3j] {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.notif-icon-leave[b-8je1ou0m3j] {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notif-icon-payroll[b-8je1ou0m3j] {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.notif-icon-attendance[b-8je1ou0m3j] {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.notif-icon-hr[b-8je1ou0m3j] {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.notif-icon-default[b-8je1ou0m3j] {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* ── Content area ────────────────────────────────────────── */
.notif-content[b-8je1ou0m3j] {
    flex: 1;
    min-width: 0;
}

.notif-content-header[b-8je1ou0m3j] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.notif-title[b-8je1ou0m3j] {
    font-size: var(--font-size-base, 0.875rem);
    font-weight: 600;
    color: var(--content-text, #111827);
    line-height: 1.3;
}

.notif-category-tag[b-8je1ou0m3j] {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.notif-tag-system[b-8je1ou0m3j]     { background: rgba(99, 102, 241, 0.1);  color: #6366f1; }
.notif-tag-leave[b-8je1ou0m3j]      { background: rgba(16, 185, 129, 0.1);  color: #10b981; }
.notif-tag-payroll[b-8je1ou0m3j]    { background: rgba(245, 158, 11, 0.1);  color: #f59e0b; }
.notif-tag-attendance[b-8je1ou0m3j] { background: rgba(59, 130, 246, 0.1);  color: #3b82f6; }
.notif-tag-hr[b-8je1ou0m3j]         { background: rgba(168, 85, 247, 0.1);  color: #a855f7; }
.notif-tag-default[b-8je1ou0m3j]    { background: rgba(107, 114, 128, 0.1); color: #6b7280; }

.notif-body[b-8je1ou0m3j] {
    font-size: var(--font-size-base, 0.875rem);
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.375rem;
}

[b-8je1ou0m3j] #layout-shell.dark .notif-body {
    color: #9ca3af;
}

.notif-meta[b-8je1ou0m3j] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notif-time[b-8je1ou0m3j] {
    font-size: var(--font-size-sm, 0.75rem);
    color: #9ca3af;
}

.notif-read-btn[b-8je1ou0m3j] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    padding: 0.2rem 0;
    font-size: var(--font-size-sm, 0.75rem);
    font-weight: 600;
    color: #10b981;
    cursor: pointer;
    font-family: inherit;
    transition: color var(--transition, 0.25s);
}

.notif-read-btn:hover[b-8je1ou0m3j] {
    color: #059669;
}

.notif-read-btn i[b-8je1ou0m3j] {
    font-size: 0.625rem;
}

/* ── Empty state ─────────────────────────────────────────── */
.notif-empty[b-8je1ou0m3j] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2rem;
    text-align: center;
}

.notif-empty-icon[b-8je1ou0m3j] {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--em-table-head-bg, #f9fafb);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.notif-empty-text[b-8je1ou0m3j] {
    font-size: var(--font-size-base, 0.875rem);
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

/* ── Loading state ───────────────────────────────────────── */
.notif-loading[b-8je1ou0m3j] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 2rem;
    color: #9ca3af;
    font-size: var(--font-size-base, 0.875rem);
}

.notif-spinner[b-8je1ou0m3j] {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: notif-spin-b-8je1ou0m3j 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes notif-spin-b-8je1ou0m3j {
    to { transform: rotate(360deg); }
}

/* ── Preferences card ────────────────────────────────────── */
.notif-prefs-card[b-8je1ou0m3j] {
    background: var(--em-card-bg, #fff);
    border: 1px solid var(--em-card-border, #e5e7eb);
    border-radius: 0.75rem;
    box-shadow: var(--em-card-shadow, 0 1px 3px rgba(0,0,0,0.06));
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
}

.notif-prefs-header[b-8je1ou0m3j] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--em-card-border, #e5e7eb);
}

.notif-prefs-icon[b-8je1ou0m3j] {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.notif-prefs-title[b-8je1ou0m3j] {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--content-text, #111827);
    margin: 0;
}

.notif-prefs-body[b-8je1ou0m3j] {
    padding: 1.25rem;
}

.notif-prefs-empty[b-8je1ou0m3j] {
    font-size: var(--font-size-sm, 0.75rem);
    color: #9ca3af;
    text-align: center;
    padding: 1rem 0;
    line-height: 1.55;
    margin: 0;
}

.notif-prefs-empty i[b-8je1ou0m3j] {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

/* ── Preferences table ───────────────────────────────────── */
.notif-prefs-table[b-8je1ou0m3j] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm, 0.75rem);
}

.notif-prefs-table thead th[b-8je1ou0m3j] {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0 0.625rem;
    text-align: left;
    border-bottom: 1px solid var(--em-card-border, #e5e7eb);
}

.notif-prefs-table thead th:not(:first-child)[b-8je1ou0m3j] {
    text-align: center;
    width: 4.5rem;
}

.notif-prefs-table tbody td[b-8je1ou0m3j] {
    padding: 0.625rem 0;
    vertical-align: middle;
    border-bottom: 1px solid var(--em-card-border, #e5e7eb);
    color: var(--content-text, #111827);
}

.notif-prefs-table tbody tr:last-child td[b-8je1ou0m3j] {
    border-bottom: none;
}

.notif-prefs-table tbody td:not(:first-child)[b-8je1ou0m3j] {
    text-align: center;
}

.notif-pref-event[b-8je1ou0m3j] {
    font-weight: 500;
}

.notif-pref-category[b-8je1ou0m3j] {
    font-size: 0.6875rem;
    color: #9ca3af;
    display: block;
    margin-top: 0.1rem;
}

/* ── Custom toggle switch ────────────────────────────────── */
.notif-toggle[b-8je1ou0m3j] {
    position: relative;
    display: inline-flex;
    width: 2rem;
    height: 1.125rem;
    cursor: pointer;
}

.notif-toggle input[b-8je1ou0m3j] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.notif-toggle-track[b-8je1ou0m3j] {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 9999px;
    transition: background var(--transition, 0.25s);
}

.notif-toggle input:checked + .notif-toggle-track[b-8je1ou0m3j] {
    background: #10b981;
}

.notif-toggle-thumb[b-8je1ou0m3j] {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 0.875rem;
    height: 0.875rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform var(--transition, 0.25s);
}

.notif-toggle input:checked ~ .notif-toggle-thumb[b-8je1ou0m3j] {
    transform: translateX(0.875rem);
}

/* ── Save button ─────────────────────────────────────────── */
.notif-save-btn[b-8je1ou0m3j] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    border: 1.5px solid #10b981;
    background: #10b981;
    color: #ffffff;
    font-size: var(--font-size-base, 0.875rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition, 0.25s);
}

.notif-save-btn:hover:not(:disabled)[b-8je1ou0m3j] {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notif-save-btn:disabled[b-8je1ou0m3j] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .notif-header[b-8je1ou0m3j] {
        flex-direction: column;
        align-items: flex-start;
    }

    .notif-item[b-8je1ou0m3j] {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }

    .notif-icon[b-8je1ou0m3j] {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}
