/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-iphoe1zvby] {
    position: relative;
    display: flex;
    flex-direction: row;
    background-color: #f8fafc;
    min-height: 100vh;
    width: 100%;
}

.sidebar[b-iphoe1zvby] {
    width: 255px;
    min-width: 255px;
    max-width: 255px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    background: #080c14 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed[b-iphoe1zvby] {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.sidebar-toggle-btn[b-iphoe1zvby] {
    width: 34px;
    height: 34px;
    padding: 0;
    color: #475569;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
}

.sidebar-toggle-btn:hover[b-iphoe1zvby] {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

main.main-content[b-iphoe1zvby] {
    flex: 1;
    background-color: #f8fafc;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-row[b-iphoe1zvby] {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    height: 3.75rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 500;
}

/* Company Switcher Custom Styling */
.company-switcher-btn[b-iphoe1zvby] {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.company-switcher-btn:hover[b-iphoe1zvby] {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.company-switcher-btn:focus[b-iphoe1zvby],
.company-switcher-btn:active[b-iphoe1zvby] {
    background-color: #e2e8f0 !important;
    border-color: #3b82f6 !important;
    color: #0f172a !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.company-status-dot[b-iphoe1zvby] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.company-name-text[b-iphoe1zvby] {
    font-weight: 600;
    color: #0f172a;
}

.company-currency-badge[b-iphoe1zvby] {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dropdown-chevron[b-iphoe1zvby] {
    color: #64748b;
    transition: transform 0.15s ease;
}

.company-dropdown-panel[b-iphoe1zvby] {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

.company-dropdown-panel .dropdown-item[b-iphoe1zvby] {
    color: #334155;
    transition: all 0.12s ease;
}

.company-dropdown-panel .dropdown-item:hover[b-iphoe1zvby] {
    background-color: #f1f5f9;
    color: #0f172a;
}

.company-dropdown-panel .dropdown-item.active-company[b-iphoe1zvby] {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.company-dropdown-panel .dropdown-item.active-company .company-item-name[b-iphoe1zvby] {
    color: #ffffff !important;
}

.company-dropdown-panel .dropdown-item.active-company .company-item-meta[b-iphoe1zvby] {
    color: rgba(255, 255, 255, 0.75) !important;
}

.company-dropdown-panel .dropdown-item.active-company .check-icon[b-iphoe1zvby] {
    color: #ffffff !important;
    font-weight: bold;
}

article.content[b-iphoe1zvby] {
    background-color: #f8fafc;
    flex: 1;
    min-height: calc(100vh - 3.75rem);
}

@media (max-width: 768px) {
    .page[b-iphoe1zvby] {
        flex-direction: column;
    }

    .sidebar[b-iphoe1zvby] {
        position: fixed;
        top: 0;
        left: -300px;
        width: 290px;
        min-width: 290px;
        max-width: 290px;
        height: 100vh;
        z-index: 1055;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    .sidebar.mobile-open[b-iphoe1zvby] {
        transform: translateX(300px);
    }

    .sidebar-backdrop[b-iphoe1zvby] {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.65);
        backdrop-filter: blur(4px);
        z-index: 1050;
    }

    main.main-content[b-iphoe1zvby] {
        padding-bottom: 5.5rem; /* Ensure page content is not hidden behind the mobile bottom nav */
    }
}

#blazor-error-ui[b-iphoe1zvby] {
    color-scheme: light only;
    background: #fffbeb;
    color: #92400e;
    border-top: 1px solid #fde68a;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
    font-weight: 500;
}

#blazor-error-ui .dismiss[b-iphoe1zvby] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

@media print {
    .page[b-iphoe1zvby] {
        display: block !important;
        background: #ffffff !important;
        min-height: auto !important;
        width: 100% !important;
    }

    aside.sidebar[b-iphoe1zvby],
    .sidebar[b-iphoe1zvby],
    .top-row[b-iphoe1zvby],
    footer.app-footer[b-iphoe1zvby],
    .app-footer[b-iphoe1zvby],
    #blazor-error-ui[b-iphoe1zvby] {
        display: none !important;
    }

    main.main-content[b-iphoe1zvby] {
        display: block !important;
        background: #ffffff !important;
        min-height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    article.content[b-iphoe1zvby] {
        display: block !important;
        background: #ffffff !important;
        min-height: auto !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.sidebar-container[b-ntwmph2jwp] {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #080c14;
    overflow: hidden;
}

.brand-container[b-ntwmph2jwp] {
    background-color: #080c14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.15rem 1rem !important;
    min-height: 60px;
}

.brand-icon[b-ntwmph2jwp] {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.brand-title[b-ntwmph2jwp] {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', var(--font-sans, sans-serif);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-subtitle[b-ntwmph2jwp] {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-collapse-btn[b-ntwmph2jwp] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8 !important;
    transition: all 0.15s ease;
}

.brand-collapse-btn:hover[b-ntwmph2jwp] {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

/* Language Section (Pinned First in Nav Bar) */
.nav-language-section[b-ntwmph2jwp] {
    background: rgba(255, 255, 255, 0.03);
}

/* User Profile Section */
.user-profile-section[b-ntwmph2jwp] {
    background: rgba(255, 255, 255, 0.02);
}

.user-profile-card[b-ntwmph2jwp] {
    transition: background 0.15s ease;
}

.user-profile-card:hover[b-ntwmph2jwp] {
    background-color: rgba(255, 255, 255, 0.07) !important;
}

.user-dropdown-flyout[b-ntwmph2jwp] {
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.nav-scrollable[b-ntwmph2jwp] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    height: 0; /* Ensures flex child scrolls properly */
}

/* Custom Slim Scrollbar for Sidebar */
.nav-scrollable[b-ntwmph2jwp]::-webkit-scrollbar {
    width: 4px;
}

.nav-scrollable[b-ntwmph2jwp]::-webkit-scrollbar-track {
    background: transparent;
}

.nav-scrollable[b-ntwmph2jwp]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
}

.nav-scrollable[b-ntwmph2jwp]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-section-title[b-ntwmph2jwp] {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #475569;
    text-transform: uppercase;
    margin-top: 0.85rem;
    padding-left: 1.25rem !important;
    white-space: nowrap;
}

.nav-item[b-ntwmph2jwp] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.nav-item[b-ntwmph2jwp]  .nav-link,
.btn-sidebar-action[b-ntwmph2jwp] {
    color: #94a3b8;
    border-radius: 8px;
    padding: 0.48rem 0.8rem;
    margin: 0.12rem 0;
    font-size: 0.84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.15s ease-in-out;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-item[b-ntwmph2jwp]  .nav-link:hover,
.btn-sidebar-action:hover[b-ntwmph2jwp] {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-item[b-ntwmph2jwp]  a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.06) 100%);
    color: #ffffff;
    font-weight: 600;
    border-left: 3px solid #3b82f6;
}

.nav-item[b-ntwmph2jwp]  a.active svg {
    color: #60a5fa !important;
    stroke: #60a5fa !important;
}

.sidebar-footer[b-ntwmph2jwp] {
    background-color: #06090f;
    min-height: 48px;
}

.status-indicator-dot[b-ntwmph2jwp] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

/* ========================================================
   COLLAPSED SIDEBAR RULES (Width = 70px)
   ======================================================== */
.collapsed .brand-container[b-ntwmph2jwp] {
    justify-content: center !important;
    padding: 1.15rem 0.5rem !important;
}

.collapsed .brand-text[b-ntwmph2jwp],
.collapsed .brand-collapse-btn[b-ntwmph2jwp] {
    display: none !important;
}

.collapsed .user-profile-info[b-ntwmph2jwp] {
    display: none !important;
}

.collapsed .nav-section-title[b-ntwmph2jwp] {
    height: 1px;
    padding: 0 !important;
    margin: 0.6rem 0.75rem !important;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.collapsed .nav-item[b-ntwmph2jwp] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.collapsed .nav-item[b-ntwmph2jwp]  .nav-link,
.collapsed .btn-sidebar-action[b-ntwmph2jwp] {
    justify-content: center !important;
    padding: 0.55rem 0 !important;
    border-left: 3px solid transparent !important;
}

.collapsed .nav-item[b-ntwmph2jwp]  a.active {
    border-left: 3px solid transparent !important;
    background: rgba(37, 99, 235, 0.3) !important;
    border-radius: 8px;
}

.collapsed .nav-icon[b-ntwmph2jwp] {
    margin-right: 0 !important;
}

.collapsed .nav-text[b-ntwmph2jwp] {
    display: none !important;
}

.collapsed .language-label[b-ntwmph2jwp],
.collapsed .language-chevron[b-ntwmph2jwp],
.collapsed .footer-meta[b-ntwmph2jwp] {
    display: none !important;
}

.collapsed .nav-language-section[b-ntwmph2jwp] {
    padding: 0.5rem !important;
    display: flex;
    justify-content: center;
}

.collapsed .sidebar-footer[b-ntwmph2jwp] {
    justify-content: center !important;
    padding: 0.5rem !important;
}
