@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* _content/Captial.FolksFin.LOS.FE.BlazorWebApp/Components/Layout/MainLayout.razor.rz.scp.css */
/* Root layout */
.layout-root[b-7vytsithoa] {
    display: flex;
    min-height: 100vh;
    background: #f1eef0;
}

/* Sidebar + main content wrapper */
.layout-body[b-7vytsithoa] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Page content */
.layout-content[b-7vytsithoa] {
    flex: 1;
    padding: 1.5rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Footer */
.layout-footer[b-7vytsithoa] {
    text-align: center;
    padding: 10px 15px;
    font-size: 12px;
    background: #fff;
    border-top: 1px solid #dcdcdc;
}

/* TABLET (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .layout-content[b-7vytsithoa] {
        padding: 1rem 1.25rem;
    }
}

/* MOBILE (up to 768px) */
@media (max-width: 768px) {
    .layout-root[b-7vytsithoa] {
        flex-direction: column; /* stack sidebar on top */
    }

    .layout-content[b-7vytsithoa] {
        padding: 0.75rem;
        width: 100%;
    }

    .layout-footer[b-7vytsithoa] {
        font-size: 11px;
        padding: 8px 10px;
    }
}

/* SMALL MOBILE (up to 480px) */
@media (max-width: 480px) {
    .layout-content[b-7vytsithoa] {
        padding: 0.5rem;
    }

    .layout-footer[b-7vytsithoa] {
        font-size: 10px;
        padding: 6px 8px;
    }
}
/* _content/Captial.FolksFin.LOS.FE.BlazorWebApp/Components/Layout/Navbar.razor.rz.scp.css */
.navbar[b-kjoz8x58b7] {
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #d6d5d5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-left[b-kjoz8x58b7] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-btn[b-kjoz8x58b7] {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.page-title[b-kjoz8x58b7] {
    cursor: pointer;
    font-weight: 500;
}

.navbar-right[b-kjoz8x58b7] {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Language / Flag */
.lang-flag[b-kjoz8x58b7] {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
}

/* Notifications */
.bell-icon[b-kjoz8x58b7] {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

    .bell-icon .badge[b-kjoz8x58b7] {
        position: absolute;
        top: -5px;
        right: -5px;
        background: red;
        color: white;
        font-size: 12px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Profile */
.profile[b-kjoz8x58b7] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

    .profile img[b-kjoz8x58b7] {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

.profile-text[b-kjoz8x58b7] {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

    .profile-text small[b-kjoz8x58b7] {
        font-size: 10px;
        color: gray;
    }

/* Profile Dropdown */
.profile-menu[b-kjoz8x58b7] {
    position: absolute;
    top: 56px;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    z-index: 1000;
}

.profile-dropdown-header[b-kjoz8x58b7] {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

    .profile-dropdown-header img[b-kjoz8x58b7] {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 8px;
    }

.profile-menu button[b-kjoz8x58b7] {
    width: 100%;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

    .profile-menu button:hover[b-kjoz8x58b7] {
        background: #f1f1f1;
    }

/* MOBILE */
@media (max-width: 768px) {
    .page-title[b-kjoz8x58b7] {
        display: none;
    }
}
/* _content/Captial.FolksFin.LOS.FE.BlazorWebApp/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-chp5kp412h] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

    .navbar-toggler:checked[b-chp5kp412h] {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row[b-chp5kp412h] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-chp5kp412h] {
    font-size: 1.1rem;
}

.bi[b-chp5kp412h] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-chp5kp412h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-chp5kp412h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-chp5kp412h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-chp5kp412h] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-chp5kp412h] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-chp5kp412h] {
        padding-bottom: 1rem;
    }

    .nav-item[b-chp5kp412h]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

    .nav-item[b-chp5kp412h]  a.active {
        background-color: rgba(255,255,255,0.37);
        color: white;
    }

    .nav-item[b-chp5kp412h]  .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

.nav-scrollable[b-chp5kp412h] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-chp5kp412h] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-chp5kp412h] {
        display: none;
    }

    .nav-scrollable[b-chp5kp412h] {
        /* Never collapse the sidebar for wide screens */
        display: block;
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/Captial.FolksFin.LOS.FE.BlazorWebApp/Components/Layout/Sidebar.razor.rz.scp.css */
/* ================================
   SIDEBAR BASE
================================ */
.sidebar[b-v8xv19cugs] {
    width: 250px;
    background: #232e51;
    color: white;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    z-index: 100;
}

    /* COLLAPSED SIDEBAR */
    .sidebar.collapsed[b-v8xv19cugs] {
        width: 70px;
    }

/* ================================
   LOGO
================================ */
.sidebar-logo[b-v8xv19cugs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    white-space: nowrap;
}

    .sidebar-logo img[b-v8xv19cugs] {
        max-height: 40px;
    }

    .sidebar-logo .logo-text[b-v8xv19cugs] {
        font-weight: bold;
        font-size: 1.2rem;
        color: white;
    }

/* ================================
   MENU / SUBMENU LISTS
================================ */
.menu[b-v8xv19cugs], .submenu[b-v8xv19cugs] {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ================================
   MAIN MENU LINKS
================================ */
.menu-link[b-v8xv19cugs] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 400;
}

    .menu-link:hover[b-v8xv19cugs],
    .menu-link.active[b-v8xv19cugs] {
        background: rgba(255,255,255,0.2);
        color: white !important;
        font-weight: bold;
    }

/* Ensure main menu text has its own class so we can hide/show it without affecting submenu text */
.menu-text[b-v8xv19cugs] {
    display: inline;
}

/* ================================
   SUBMENU
================================ */
.submenu[b-v8xv19cugs] {
    padding-left: 2rem; /* indentation */
    background-color: #1c2749; /* darker than main menu */
}

/* SUBMENU LINKS */
.submenu-link[b-v8xv19cugs],
.submenu-link span[b-v8xv19cugs] {
    display: block;
    padding: 0.5rem 1.5rem;
    color: white !important; /* force white */
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    /* HOVER / ACTIVE for submenu — only text color changes, background stays dark */
    .submenu-link:hover[b-v8xv19cugs],
    .submenu-link.active[b-v8xv19cugs],
    .submenu-link:hover span[b-v8xv19cugs],
    .submenu-link.active span[b-v8xv19cugs] {
        color: white !important; /* text stays white */
        font-weight: bold; /* optional emphasis */
        background-color: #1c2749 !important; /* keep dark background */
    }


/* ================================
   COLLAPSED SIDEBAR
================================ */
/* Only hide the named elements for collapsed state (don't hide submenu spans) */
.sidebar.collapsed .menu-text[b-v8xv19cugs],
.sidebar.collapsed .logo-text[b-v8xv19cugs] {
    display: none;
}

.sidebar.collapsed li a[b-v8xv19cugs] {
    justify-content: center;
}

.sidebar.collapsed .submenu[b-v8xv19cugs] {
    display: none;
}

/* ================================
   TOGGLE ICON
================================ */
.submenu-icon[b-v8xv19cugs] {
    margin-left: auto;
    transition: transform 0.3s ease;
}

li.open > .menu-link .submenu-icon[b-v8xv19cugs] {
    transform: rotate(90deg);
}

/* ================================
   MOBILE RESPONSIVENESS
================================ */
@media (max-width: 768px) {
    .sidebar[b-v8xv19cugs] {
        position: fixed;
        left: -250px;
        z-index: 200;
        width: 250px; /* always full width for mobile */
    }

        /* When sidebar is "opened" on mobile */
        .sidebar.collapsed[b-v8xv19cugs] {
            left: 0;
            width: 250px;
        }

            /* Show all text/icons in mobile expanded mode (override collapsed hiding) */
            .sidebar.collapsed .menu-text[b-v8xv19cugs],
            .sidebar.collapsed .logo-text[b-v8xv19cugs] {
                display: inline !important;
            }

            .sidebar.collapsed li a[b-v8xv19cugs] {
                justify-content: flex-start !important;
            }

            /* Submenu visible in mobile expanded mode */
            .sidebar.collapsed .submenu[b-v8xv19cugs] {
                display: block !important;
            }

    .submenu[b-v8xv19cugs] {
        padding-left: 1rem;
    }

    .submenu-link[b-v8xv19cugs],
    .submenu-link span[b-v8xv19cugs] {
        padding: 0.5rem 1rem;
    }
}
