@import '_content/Blazored.Modal/Blazored.Modal.bundle.scp.css';

/* _content/BHSAPP/Areas/Purchase/Pages/Modals/SplitPromiseModal.razor.rz.scp.css */
.is-invalid[b-pde7utrh0x] {
    border-color: #dc3545 !important; /* Red border for invalid inputs */
}

    .is-invalid:focus[b-pde7utrh0x] {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Red shadow on focus */
    }

.text-warning[b-pde7utrh0x] {
    color: #ffc107; /* Yellow warning text */
}

.text-danger[b-pde7utrh0x] {
    color: #dc3545; /* Red error text */
}

.read-only-entry[b-pde7utrh0x] {
    background-color: #f8f9fa; /* Light gray background for read-only */
    border: 1px solid #ced4da; /* Light border */
    padding: 0.375rem 0.75rem; /* Match input padding */
    line-height: 1.5; /* Match input line height */
    border-radius: 0.25rem; /* Match input border radius */
    display: block; /* Ensure it behaves like a form control */
    cursor: default; /* Indicate it’s not editable */
}
/* _content/BHSAPP/Shared/MainLayout.razor.rz.scp.css */
.page[b-18jatc0pmr] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh; /* Use dynamic viewport height for iPhone compatibility */
}

main[b-18jatc0pmr] {
    flex: 1;
}

.sidebar[b-18jatc0pmr] {
    width: 220px;
    min-width: 220px;
    background: #1A073D;
    min-height: 100dvh; /* Use dynamic viewport height for iPhone compatibility */
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: block;
}

.sidebar-visible[b-18jatc0pmr] {
    transform: translateX(0);
}

.main-content[b-18jatc0pmr] {
    flex: 1;
    padding: 1rem;
    transition: margin-left 0.3s;
}

.toggle-btn[b-18jatc0pmr] {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 3000;
    background: #1A073D;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.75rem;
}

.top-row[b-18jatc0pmr] {
    background-color: #f8f9fa; /* Match Bootstrap's bg-light color for consistency */
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    z-index: 1030; /* Bootstrap default for fixed navbar - ensures hamburger button is clickable */
    width: 100%; /* Ensure full width */
    margin-left: 0; /* Reset margin for mobile */
    margin-right: 0; /* Reset margin for mobile */
}

    .top-row[b-18jatc0pmr]  a, .top-row .btn-link[b-18jatc0pmr] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-18jatc0pmr] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-18jatc0pmr] {
        display: none;
    }

    .top-row.auth[b-18jatc0pmr] {
        justify-content: space-between;
    }

    .top-row a[b-18jatc0pmr], .top-row .btn-link[b-18jatc0pmr] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-18jatc0pmr] {
        flex-direction: row;
    }

    .sidebar[b-18jatc0pmr] {
        width: 250px;
        height: 100vh; /* Fixed height for desktop to enable scrolling */
        max-height: 100vh; /* Constrain height to viewport */
        position: sticky;
        top: 0;
        overflow: hidden; /* Prevent sidebar itself from scrolling, let sidebar-menu scroll */
    }

    .top-row[b-18jatc0pmr] {
        position: sticky;
        top: 0;
        z-index: 1030; /* Bootstrap default for fixed navbar - ensures hamburger button is clickable */
        justify-content: flex-start; /* Align header content to the left on desktop */
        padding-left: 0 !important; /* Align to left edge - no left padding */
        padding-right: 0 !important; /* Remove right padding to ensure full width background */
        padding-top: 0 !important; /* Remove top padding to eliminate empty space */
        padding-bottom: 0 !important;
        margin-left: 250px; /* Align header with main content area (after sidebar width on desktop) */
        margin-top: 0 !important; /* Remove top margin to eliminate empty space */
        margin-right: 0 !important; /* Remove right margin to ensure full width */
        align-items: center; /* Vertically center content */
        width: calc(100% - 250px); /* Ensure full width minus sidebar */
    }
    
    /* Override Bootstrap px-4 class if present */
    .top-row.px-4[b-18jatc0pmr] {
        padding-left: 0 !important;
        padding-right: 0 !important; /* Remove right padding to ensure full width background */
    }
    
    /* Position toggle-btn to align at left edge of header with proper spacing - DESKTOP ONLY */
    .toggle-btn[b-18jatc0pmr] {
        left: 250px !important; /* Start at the left edge of header (after sidebar) when sidebar is visible */
        top: 10px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease-in-out; /* Smooth transition when sidebar toggles */
    }
    
    /* When sidebar is hidden, move toggle button all the way to the left - DESKTOP ONLY */
    .sidebar-wrapper.hidden .toggle-btn[b-18jatc0pmr] {
        left: 10px !important; /* Move to left edge when sidebar is hidden - DESKTOP ONLY */
    }
    
    /* Mobile view: Keep toggle button at original position (left: 10px) - no changes */
    @media (max-width: 767.98px) {
        .toggle-btn[b-18jatc0pmr] {
            left: 10px !important; /* Mobile: Keep at left edge, no movement */
            transition: none; /* No transition on mobile */
        }
        
        .sidebar-wrapper.hidden .toggle-btn[b-18jatc0pmr] {
            left: 10px !important; /* Mobile: Stay at left edge even when sidebar is hidden */
        }
    }
    
    /* Add left margin to header content to account for hamburger button width + spacing (prevent overlap) */
    .top-row-content[b-18jatc0pmr] {
        margin-left: 52px !important; /* Account for hamburger button width (36px) + spacing (16px) to prevent overlap */
        padding-left: 0 !important;
        padding-right: 1.5rem !important; /* Add right padding for content spacing */
        flex: 1;
        display: flex;
        align-items: center;
        min-width: 0; /* Prevent flex item from overflowing */
        transition: margin-left 0.3s ease-in-out; /* Smooth transition */
    }
    
    /* When sidebar is hidden, adjust top-row margin to move header to left edge */
    .sidebar-wrapper.hidden ~ .main-content ~ main .top-row[b-18jatc0pmr],
    main:has(.sidebar-wrapper.hidden) .top-row[b-18jatc0pmr] {
        margin-left: 0 !important; /* Header moves to left edge when sidebar is hidden */
        width: 100% !important; /* Full width when sidebar is hidden */
    }
    
    /* Remove padding from LoginDisplay header on desktop - but keep margin for hamburger spacing */
    .top-row-content[b-18jatc0pmr]  .header-content,
    .top-row-content[b-18jatc0pmr]  > div {
        padding-left: 0 !important;
        padding-right: 0 !important; /* Remove right padding - handled by parent */
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
    
    /* Remove all margin/padding from logo container and image - ensure no empty space */
    .top-row-content[b-18jatc0pmr]  .header-content > div:first-child,
    .top-row-content[b-18jatc0pmr]  img {
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        max-height: 3.5rem !important; /* Ensure image doesn't exceed header height */
        height: auto !important; /* Maintain aspect ratio */
        object-fit: contain !important; /* Fit within height constraint */
    }
    
    /* Ensure header-content div has no top/bottom padding creating empty space */
    .top-row-content[b-18jatc0pmr]  .header-content {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        width: 100% !important; /* Ensure full width */
        height: 3.5rem !important; /* Match top-row height exactly for consistent height */
        min-height: 3.5rem !important; /* Match top-row height for consistent height */
        max-height: 3.5rem !important; /* Prevent exceeding top-row height */
        display: flex !important; /* Maintain flex layout */
        background-color: transparent !important; /* Remove background - use top-row background */
        border: none !important; /* Remove border - use top-row border */
        overflow: hidden !important; /* Prevent any content from extending beyond header */
    }
    
    /* Constrain Install App button to stay within header bounds */
    .top-row-content[b-18jatc0pmr]  #pwa-install-header-button {
        max-height: calc(3.5rem - 0.5rem) !important; /* Account for border and ensure it fits */
        height: auto !important;
        padding-top: 0.15rem !important; /* Reduce top padding */
        padding-bottom: 0.15rem !important; /* Reduce bottom padding */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important; /* Include border in height calculation */
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        overflow: hidden !important; /* Prevent text from overflowing */
        white-space: nowrap !important; /* Keep text on one line */
        line-height: 1.2 !important; /* Control line height to prevent overflow */
    }
    
    /* Ensure button content (icon and text) stays within bounds */
    .top-row-content[b-18jatc0pmr]  #pwa-install-header-button i,
    .top-row-content[b-18jatc0pmr]  #pwa-install-header-button span {
        display: inline-block !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Ensure the logo container div has no left margin/padding */
    .top-row-content[b-18jatc0pmr]  .header-content > div:first-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Ensure first child has no left margin/padding */
    .top-row > *:first-child[b-18jatc0pmr] {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Ensure hamburger button (if visible) has proper spacing */
    .top-row .mobile-hamburger[b-18jatc0pmr],
    .top-row .navbar-toggler[b-18jatc0pmr] {
        margin-left: 0 !important;
        margin-right: 0.5rem; /* Small gap between hamburger and next element to prevent overlap */
    }

    article[b-18jatc0pmr] {
        padding-left: 1rem !important; /* Main content padding */
        padding-right: 1.5rem !important;
    }
}

/* Mobile styles for full-width header background */
@media (max-width: 767.98px) {
    .top-row[b-18jatc0pmr] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .top-row-content[b-18jatc0pmr] {
        padding-left: 3.5rem !important; /* Add left padding to account for hamburger button (44px + spacing) to prevent overlap */
        padding-right: 1rem !important; /* Add right padding for content spacing on mobile */
    }
    
    .top-row-content[b-18jatc0pmr]  .header-content {
        width: 100% !important; /* Ensure full width on mobile */
        height: 3.5rem !important; /* Match top-row height exactly */
        min-height: 3.5rem !important; /* Match top-row height for consistent height */
        max-height: 3.5rem !important; /* Prevent exceeding top-row height */
        background-color: transparent !important; /* Remove background - use top-row background */
        border: none !important; /* Remove border - use top-row border */
        overflow: hidden !important; /* Prevent any content from extending beyond header */
    }
    
    .top-row-content[b-18jatc0pmr]  .header-content img {
        max-height: 3.5rem !important; /* Ensure image doesn't exceed header height on mobile */
        height: auto !important; /* Maintain aspect ratio */
        object-fit: contain !important; /* Fit within height constraint */
    }
    
    /* Constrain Install App button on mobile */
    .top-row-content[b-18jatc0pmr]  #pwa-install-header-button {
        max-height: calc(3.5rem - 0.5rem) !important; /* Account for border and ensure it fits */
        height: auto !important;
        padding-top: 0.15rem !important; /* Reduce top padding */
        padding-bottom: 0.15rem !important; /* Reduce bottom padding */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important; /* Include border in height calculation */
        overflow: hidden !important; /* Prevent text from overflowing */
        white-space: nowrap !important; /* Keep text on one line */
        line-height: 1.2 !important; /* Control line height to prevent overflow */
    }
    
    /* Ensure button content stays within bounds on mobile */
    .top-row-content[b-18jatc0pmr]  #pwa-install-header-button i,
    .top-row-content[b-18jatc0pmr]  #pwa-install-header-button span {
        display: inline-block !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 767px) {
    .sidebar[b-18jatc0pmr] {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .sidebar.sidebar-visible[b-18jatc0pmr] {
        transform: translateX(0);
    }
    .toggle-btn[b-18jatc0pmr] {
        display: block;
    }
    .main-content[b-18jatc0pmr] {
        margin-left: 0 !important;
    }
}
/* _content/BHSAPP/Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-fippw354gc] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-fippw354gc] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-fippw354gc] {
    font-size: 1.1rem;
}

.oi[b-fippw354gc] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-fippw354gc] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-fippw354gc] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-fippw354gc] {
        padding-bottom: 1rem;
    }

    .nav-item[b-fippw354gc]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-fippw354gc]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-fippw354gc]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-fippw354gc] {
        display: none;
    }

    .collapse[b-fippw354gc] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
