/* _content/TSSPayroll.website/Components/Layout/MainLayout.razor.rz.scp.css */
/* Layout Container */
.app-layout[b-wofhld4y5k] {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* Main Content Area */
.app-main[b-wofhld4y5k] {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .app-main[b-wofhld4y5k] {
    margin-left: 70px;
}

/* Navbar */
[b-wofhld4y5k] .navbar {
    height: 64px;
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[b-wofhld4y5k] .navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

[b-wofhld4y5k] .menu-toggle {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

[b-wofhld4y5k] .menu-toggle:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

[b-wofhld4y5k] .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1e293b;
}

[b-wofhld4y5k] .brand-icon {
    color: #2563eb;
}

[b-wofhld4y5k] .brand-text {
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[b-wofhld4y5k] .navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

[b-wofhld4y5k] .search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}

[b-wofhld4y5k] .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

[b-wofhld4y5k] .search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background-color: #f8fafc;
    transition: all 0.2s;
}

[b-wofhld4y5k] .search-input:focus {
    outline: none;
    background-color: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

[b-wofhld4y5k] .navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Company Switcher in Navbar */
[b-wofhld4y5k] .navbar-company {
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    margin: 0 0.25rem;
    flex-shrink: 0;
}

[b-wofhld4y5k] .company-switcher {
    position: relative;
}

[b-wofhld4y5k] .company-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    max-width: 240px;
    line-height: 1;
}

[b-wofhld4y5k] .company-switcher-trigger:hover {
    background: #f1f5f9;
    border-color: #bfdbfe;
}

[b-wofhld4y5k] .company-switcher-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Initials badge — reused at both sizes */
[b-wofhld4y5k] .company-initials-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.025em;
    line-height: 1;
}

[b-wofhld4y5k] .company-initials-badge.sm {
    width: 22px;
    height: 22px;
    font-size: 0.5625rem;
}

[b-wofhld4y5k] .company-trigger-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-wofhld4y5k] .company-chevron {
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

[b-wofhld4y5k] .company-chevron.open {
    transform: rotate(180deg);
}

[b-wofhld4y5k] .company-spinner {
    color: #2563eb;
    flex-shrink: 0;
    animation: spin-b-wofhld4y5k 1s linear infinite;
}

/* Dropdown panel */
[b-wofhld4y5k] .company-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 149;
}

[b-wofhld4y5k] .company-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    z-index: 150;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    min-width: 230px;
    overflow: hidden;
}

[b-wofhld4y5k] .company-dropdown-header {
    padding: 0.625rem 0.875rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    color: #94a3b8;
}

[b-wofhld4y5k] .company-dropdown-list {
    padding: 0 0.375rem;
}

[b-wofhld4y5k] .company-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.15s;
}

[b-wofhld4y5k] .company-item:hover {
    background-color: #f1f5f9;
}

[b-wofhld4y5k] .company-item.active {
    background-color: #eff6ff;
    color: #1d4ed8;
}

[b-wofhld4y5k] .company-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

[b-wofhld4y5k] .company-item.active .company-item-name {
    font-weight: 600;
}

[b-wofhld4y5k] .company-check {
    color: #2563eb;
    flex-shrink: 0;
}

[b-wofhld4y5k] .company-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.375rem 0;
}

[b-wofhld4y5k] .company-dropdown-actions {
    padding: 0 0.375rem 0.375rem;
}

[b-wofhld4y5k] .company-action-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.8125rem;
    color: #64748b;
    transition: background-color 0.15s, color 0.15s;
}

[b-wofhld4y5k] .company-action-item:hover {
    background-color: #f1f5f9;
    color: #374151;
}

@keyframes spin-b-wofhld4y5k {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

[b-wofhld4y5k] .nav-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

[b-wofhld4y5k] .nav-icon-btn:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

[b-wofhld4y5k] .notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    line-height: 1;
}

[b-wofhld4y5k] .user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

[b-wofhld4y5k] .user-profile:hover {
    background-color: #f1f5f9;
}

[b-wofhld4y5k] .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
}

[b-wofhld4y5k] .user-info {
    display: flex;
    flex-direction: column;
}

[b-wofhld4y5k] .user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

[b-wofhld4y5k] .user-role {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
}

/* Sidebar */
[b-wofhld4y5k] .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 200;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

[b-wofhld4y5k] .sidebar.collapsed {
    width: 70px;
}

[b-wofhld4y5k] .sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
}

[b-wofhld4y5k] .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

[b-wofhld4y5k] .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

[b-wofhld4y5k] .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

[b-wofhld4y5k] .nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[b-wofhld4y5k] .nav-icon {
    flex-shrink: 0;
}

[b-wofhld4y5k] .sidebar.collapsed .nav-text {
    display: none;
}

[b-wofhld4y5k] .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
}

[b-wofhld4y5k] .nav-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0.5rem;
}

[b-wofhld4y5k] .sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

[b-wofhld4y5k] .logout-btn {
    color: rgba(255, 255, 255, 0.8);
}

[b-wofhld4y5k] .logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Content Area */
.app-content[b-wofhld4y5k] {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.content-wrapper[b-wofhld4y5k] {
    max-width: 1400px;
    margin: 0 auto;
}

/* Error UI */
#blazor-error-ui[b-wofhld4y5k] {
    color-scheme: light only;
    background: #fef2f2;
    border-top: 2px solid #ef4444;
    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.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #991b1b;
    font-weight: 500;
}

#blazor-error-ui .dismiss[b-wofhld4y5k] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #991b1b;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#blazor-error-ui .dismiss:hover[b-wofhld4y5k] {
    opacity: 1;
}

#blazor-error-ui .reload[b-wofhld4y5k] {
    color: #2563eb;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-main[b-wofhld4y5k] {
        margin-left: 0;
    }

    .sidebar-collapsed .app-main[b-wofhld4y5k] {
        margin-left: 0;
    }

    [b-wofhld4y5k] .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.3);
    }

    [b-wofhld4y5k] .sidebar:not(.collapsed) {
        width: 280px;
    }

    [b-wofhld4y5k] .sidebar.mobile-open {
        transform: translateX(0);
    }

    [b-wofhld4y5k] .navbar-center {
        display: none;
    }

    [b-wofhld4y5k] .user-info {
        display: none;
    }

    [b-wofhld4y5k] .navbar {
        padding: 0 1rem;
    }

    .app-content[b-wofhld4y5k] {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    [b-wofhld4y5k] .navbar {
        padding: 0 0.75rem;
        height: 56px;
    }

    [b-wofhld4y5k] .navbar-brand {
        font-size: 1.125rem;
    }

    [b-wofhld4y5k] .nav-icon-btn {
        padding: 0.375rem;
    }

    [b-wofhld4y5k] .avatar {
        width: 32px;
        height: 32px;
    }

    .app-content[b-wofhld4y5k] {
        padding: 0.75rem;
    }

    .content-wrapper[b-wofhld4y5k] {
        padding: 0;
    }

    [b-wofhld4y5k] .navbar-right {
        gap: 0.5rem;
    }

    [b-wofhld4y5k] .navbar-company {
        display: none;
    }
}

/* On mobile, content area needs bottom padding so the bottom nav
   doesn't overlap the last content item. */
@media (max-width: 767px) {
    [b-wofhld4y5k] .navbar .menu-toggle {
        display: none; /* hamburger is replaced by bottom nav on mobile */
    }

    .app-content.has-bottom-nav[b-wofhld4y5k] {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Mobile Sidebar Overlay */
@media (max-width: 1024px) {
    [b-wofhld4y5k] .sidebar-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 190;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    [b-wofhld4y5k] .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}
/* _content/TSSPayroll.website/Components/Layout/MobileBottomNav.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════
   Mobile Bottom Navigation — only shown on screens < 768px.
   Desktop sidebar is unaffected; this is additive mobile-only CSS.
   ═══════════════════════════════════════════════════════════════ */

/* ── Bottom nav bar ─────────────────────────────────────────── */
.mobile-bottom-nav[b-mxpfudelto] {
    display: none; /* hidden by default; enabled at mobile breakpoint below */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 180;
    /* Respect iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom);
    align-items: stretch;
    justify-content: space-around;
}

/* ── Nav items ──────────────────────────────────────────────── */
.mobile-nav-item[b-mxpfudelto] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* WCAG touch target */
    position: relative;
}

.mobile-nav-item:active[b-mxpfudelto] {
    background-color: #f1f5f9;
    border-radius: 0.5rem;
}

.mobile-nav-item.active[b-mxpfudelto] {
    color: #2563eb;
}

.mobile-nav-item svg[b-mxpfudelto] {
    flex-shrink: 0;
}

/* Notification dot on "More" button */
.mobile-nav-dot[b-mxpfudelto] {
    position: absolute;
    top: 8px;
    right: calc(50% - 18px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid white;
}

/* ── Backdrop ───────────────────────────────────────────────── */
.mobile-nav-backdrop[b-mxpfudelto] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 185;
}

/* ── More drawer ────────────────────────────────────────────── */
.mobile-more-drawer[b-mxpfudelto] {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* shifted below screen initially */
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    background: white;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    z-index: 190;
    padding: 0 0 calc(80px + env(safe-area-inset-bottom)) 0;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-more-drawer.open[b-mxpfudelto] {
    transform: translateY(0);
}

.mobile-more-handle[b-mxpfudelto] {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
    margin: 0.75rem auto 0.5rem;
}

.mobile-more-section-label[b-mxpfudelto] {
    padding: 0.75rem 1.25rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    color: #94a3b8;
}

.mobile-more-item[b-mxpfudelto] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s;
    min-height: 52px; /* comfortable touch target */
}

.mobile-more-item:active[b-mxpfudelto] {
    background-color: #f1f5f9;
}

.mobile-more-item svg[b-mxpfudelto] {
    color: #64748b;
    flex-shrink: 0;
}

.mobile-more-badge[b-mxpfudelto] {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.mobile-more-divider[b-mxpfudelto] {
    height: 1px;
    background: #f1f5f9;
    margin: 0.375rem 1.25rem;
}

.mobile-more-logout[b-mxpfudelto] {
    color: #dc2626;
}

.mobile-more-logout svg[b-mxpfudelto] {
    color: #dc2626;
}

/* ── Enable everything at mobile breakpoint ─────────────────── */
@media (max-width: 767px) {
    .mobile-bottom-nav[b-mxpfudelto] {
        display: flex;
    }

    .mobile-nav-backdrop[b-mxpfudelto] {
        display: block;
    }

    .mobile-more-drawer[b-mxpfudelto] {
        display: block;
    }
}
/* _content/TSSPayroll.website/Components/Layout/PlatformLayout.razor.rz.scp.css */
/* Error UI Styles */
#blazor-error-ui[b-40dmdhnn23] {
    color-scheme: light only;
    background: #fef2f2;
    border-top: 2px solid #ef4444;
    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.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #991b1b;
    font-weight: 500;
}

#blazor-error-ui .dismiss[b-40dmdhnn23] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #991b1b;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#blazor-error-ui .dismiss:hover[b-40dmdhnn23] {
    opacity: 1;
}

#blazor-error-ui .reload[b-40dmdhnn23] {
    color: #2563eb;
    text-decoration: underline;
    margin-left: 0.5rem;
}
