﻿/* === Sidebar & Menu Final Polished Look === */
:root {
    --brand: #0b5aaa;
    --sidebar-bg: #e8f0fc;
    --sidebar-hover: #d5e4fa;
    --sidebar-collapsed-bg: #0b5aaa;
    --text-dark: #1e2a37;
    --icon-size: 16px;
}

*{box-sizing:border-box}
body{margin:0;font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;background:var(--bg);color:var(--text);}
/* --- Topbar (logo always visible) --- */
/* --- Topbar alignment --- */
/* --- Topbar (white) layout with left & right sections --- */
/* Force full white header */
.topbar {
    background: #fff;
    color: #0b5aaa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e6e9f2;
}



/* Left section */
.topbar-left {
    gap: 10px;
    flex-shrink: 0;
}
/* Center section (search box) */
.topbar-center {
    flex: 1;
    justify-content: center;
}
.topbar-right {
    gap: 12px;
    flex-shrink: 0;
}
.topbar-search {
    position: relative;
    width: 280px;
}
.search-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d0d9ef;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}
    .search-input:focus {
        outline: none;
        border-color: #0b5aaa;
        box-shadow: 0 0 0 2px rgba(11,90,170,0.15);
    }
.search-results {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    display: none;
    z-index: 999;
}

    .search-results a {
        display: block;
        padding: 8px 10px;
        color: #1e2a37;
        text-decoration: none;
        font-size: 13px;
    }

        .search-results a:hover {
            background: #f3f6fb;
            color: #0b5aaa;
        }
.top-logo {
    height: 38px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    border: 1px solid #e0e0e0
}

.brand-text .brand-title {
    font-size: 16px;
    font-weight: 700;
    color: #0b5aaa;
    line-height: 1.2
}

.brand-text .brand-sub {
    font-size: 12px;
    color: #1e2a37;
    opacity: .8
}


/* Pin next to brand */
.pin-btn {
    background: #f3f6fb;
    border: 1px solid #d0d9ef;
    color: #0b5aaa;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    transition: all .2s ease;
}

    .pin-btn:hover {
        background: #0b5aaa;
        color: #fff;
        border-color: #0b5aaa
    }

    .pin-btn:focus-visible {
        outline: 2px solid #0b5aaa;
        outline-offset: 2px
    }


/* Right user profile box */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* --- User box (top-right) --- */
.userbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1
}

.user-name {
    font-weight: 700;
    font-size: 13px;
    color: #1e2a37
}

.user-role {
    font-size: 11px;
    color: #667286
}

/* --- Layout --- */
.app-shell {
    display: flex;
    min-height: calc(100vh - 60px);
}

.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f6fb;
    border: 1px solid #d0d9ef;
    cursor: pointer;
    transition: all .2s ease;
}

    .user-btn:hover {
        background: #0b5aaa;
        border-color: #0b5aaa
    }

        .user-btn:hover .user-ico {
            fill: #fff
        }

.user-ico {
    width: 18px;
    height: 18px;
    fill: #0b5aaa;
    transition: fill .2s ease
}

/* Dropdown */
.user-menu {
    position: absolute;
    right: 0;
    top: 40px;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    padding: 6px;
    display: none;
    z-index: 200;
}

    .user-menu a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        color: #1e2a37;
        text-decoration: none;
        font-size: 13px;
    }

        .user-menu a:hover {
            background: #f3f6fb;
            color: #0b5aaa
        }

.userbox.open .user-menu {
    display: block
}



/* Sidebar container */
.sidebar {
    width: 230px;
    background: var(--sidebar-bg);
    color: var(--text-dark);
    transition: width 0.25s ease, background 0.25s ease;
    position: relative;
    box-shadow: 2px 0 6px rgba(0,0,0,0.05);
    overflow-x: hidden;
}
    .sidebar.collapsed {
        width: 70px;
        overflow: hidden;
        transition: width .25s ease;
        background: #eaf1fb;
    }



.content {
    flex: 1;
    padding: 20px;
    background: #f3f6fb;
    color: #1e2a37
}

/* Menu container */
.menu {
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 500;
}




.menu-root {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative
}

/* Menu link */
.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 10px;
    margin: 3px 4px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    color: var(--text-dark);
}

    .menu-link:hover {
        background: var(--sidebar-hover);
        color: var(--brand);
    }

    /* Icon default */
    .menu-link .icon {
        width: var(--icon-size);
        height: var(--icon-size);
        fill: var(--brand);
        opacity: 0.9;
        transition: fill 0.15s ease, transform 0.15s ease;
    }



    /* Label text */
    .menu-link .label {
        font-size: 13px;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }



/* Collapsed behavior */
.sidebar.collapsed .menu-link {
    justify-content: center;
    color: #fff;
}



/* Tooltip when collapsed */
.menu-link[data-tooltip] {
    position: relative
}

/* --- Expand-to-full on hover when collapsed --- */
.sidebar.collapsed.hover-open {
    width: 230px; /* full width on hover */
    background: var(--sidebar-bg); /* light background when expanded */
    color: var(--text-dark);
}

    /* show labels when expanded by hover */
    .sidebar.collapsed.hover-open .menu-link .label {
        display: inline;
    }
    .sidebar.collapsed.hover-open .menu-link:hover {
        background: var(--sidebar-hover);
        color: var(--brand);
    }


    /* icons revert to brand color when expanded-by-hover */
    .sidebar.collapsed.hover-open .menu-link .icon {
        fill: var(--brand);
        opacity: 0.95;
        transform: none;
    }

    /* disable tooltip when expanded-by-hover (not needed) */
    .sidebar.collapsed.hover-open .menu-link[data-tooltip]:hover::after {
        display: none;
        content: none;
    }

    /* submenus behave like pinned while hover-open */
    .sidebar.collapsed.hover-open .menu-item.has-children:hover > .submenu {
        position: static;
        display: block;
        background: transparent;
        padding: 4px 0 6px 32px;
        border-radius: 0;
        box-shadow: none;
        min-width: auto;
        color: var(--text-dark);
    }



.sidebar.collapsed .menu-link .label {
    display: none;
}

.sidebar.collapsed .menu-link .icon {
    fill: #fff; /* white icons when collapsed */
    opacity: 1;
    transform: scale(0.95);
}

.sidebar.collapsed .menu-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Tooltip on hover when collapsed */
.menu-link[data-tooltip] {
    position: relative;
}

.sidebar.collapsed .menu-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 72px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: #1e2a37;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 25;
}




/* submenu styling */
.menu-item.has-children > .menu-link .chev {
    margin-left: auto;
    opacity: 0.6;
    font-size: 12px;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 4px 0 6px 32px;
    display: none;
}



.menu-item.open > .submenu {
    display: block;
}


/* Collapsed hover submenu */
.sidebar.collapsed .menu-item.has-children:hover > .submenu {
    position: absolute;
    left: 70px;
    top: 0;
    display: block;
    background: var(--brand);
    padding: 6px 8px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 30;
}

/* collapsed state - hide submenu normally */
.sidebar.collapsed .submenu {
    display: none;
}

.submenu .menu-link {
    font-size: 12.5px;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    margin: 2px 0;
}

    .submenu .menu-link:hover {
        background: rgba(255,255,255,0.18);
    }


    .submenu .menu-link .icon {
        width: 14px;
        height: 14px;
    }

/* Topbar style */
.topbar {
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.top-logo {
    height: 34px;
}


.sidebar.collapsed .menu-item.has-children:hover > .menu-link .chev {
    transform: rotate(90deg)
}

/* Optional: prevent flicker while moving mouse */
.sidebar.collapsed.collapsed-hover-off .submenu {
    display: none
}

.brand-text .brand-title {
    font-size: 15px;
    font-weight: 700;
}

.brand-text .brand-sub {
    font-size: 11px;
    opacity: 0.9;
}


/* === Notification bell (header) === */
.notifbox {
    position: relative;
}

.notif-btn {
    background: #f3f6fb;
    border: 1px solid #d0d9ef;
    color: #0b5aaa;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

    .notif-btn:hover {
        background: #0b5aaa;
        color: #fff;
        border-color: #0b5aaa;
    }

.notif-ico {
    font-size: 16px;
    line-height: 1;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px 2px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

/* Dropdown for notif */
.notif-menu {
    position: absolute;
    right: 0;
    top: 40px;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    padding: 0;
    display: none;
    z-index: 210;
}

.notifbox.open .notif-menu {
    display: block;
}

.notif-title {
    font-weight: 700;
    font-size: 13px;
    padding: 10px 12px 6px;
    border-bottom: 1px solid #edf0f6;
    color: #1e2a37;
}

.notif-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #1e2a37;
    text-decoration: none;
}

    .notif-menu a:hover {
        background: #f3f6fb;
        color: #0b5aaa;
    }

.notif-footer {
    border-top: 1px solid #edf0f6;
    padding: 6px 12px 8px;
    text-align: right;
}

    .notif-footer a {
        font-size: 12px;
        color: #0b5aaa;
        text-decoration: none;
    }

        .notif-footer a:hover {
            text-decoration: underline;
        }



.sidebar-header{display:flex;align-items:center;padding:12px;border-bottom:1px solid rgba(255,255,255,.15);}
.sidebar-header img{height:34px;width:auto;margin-right:10px;border-radius:6px;background:#fff;padding:2px;}
.brand-title{font-weight:800;letter-spacing:.2px;}
.brand-sub{font-size:.75rem;opacity:.85;margin-top:2px;}
.menu .item{color:#fff;text-decoration:none;padding:10px 12px;border-radius:8px;margin:4px 6px;font-weight:600;display:block;}
.menu .item:hover{background:var(--sidebar-hover);}
.login-body {
    background: #f3f6fb;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    text-align: center;
}
/* --- Scrolling bottom text --- */
.login-scroll {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(to right, #0b5aaa, #0b79d0);
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

.scroll-text {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 14s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}


.login-container{display:flex;justify-content:center;align-items:center;height:100vh;padding:16px;}
.login-box{background:var(--card);width:360px;max-width:92vw;border-radius:14px;box-shadow:0 12px 30px rgba(14,41,88,.08);padding:28px;text-align:center;}
.login-logo {
    height: 70px;
    margin-bottom: 10px;
}
.login-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b5aaa;
    margin-bottom: 16px;
}
.error-msg {
    color: #d32f2f;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.login-hint {
    font-size: 13px;
    color: #667286;
    margin-top: 14px;
    text-align: center;
    font-style: italic;
}

    .login-hint b {
        color: #0b5aaa;
        font-weight: 700;
    }


.input{width:100%;padding:12px;border:1px solid #d8e1ef;border-radius:10px;margin:8px 0;font-size:14px;}
.btn-brand{background:var(--brand);border:none;color:#fff;padding:12px;border-radius:10px;font-weight:700;cursor:pointer;width:100%}
.btn-brand:hover{filter:brightness(.95);}
.text-danger{color:#c62828;margin-top:10px;font-weight:600}
.fz-card {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    padding: 20px 22px;
    max-width: 520px;
    box-shadow: 0 12px 30px rgba(14,41,88,.03);
}

.fz-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0b5aaa;
}

.fz-sub {
    margin: 0 0 16px 0;
    color: #566079;
    font-size: 13px;
}

.fz-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-bottom: 18px;
}

    .fz-table td:first-child {
        width: 130px;
        color: #677489;
        font-weight: 600;
        font-size: 13px;
    }

    .fz-table td:last-child {
        font-size: 13px;
        color: #1e2a37;
    }

.fz-form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fz-input {
    padding: 9px 10px;
    border: 1px solid #d2d9e5;
    border-radius: 8px;
    font-size: 13px;
}

.btn-primary {
    background: #0b5aaa;
    border: none;
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 6px;
}

    .btn-primary:hover {
        filter: brightness(.96);
    }

.btn-secondary {
    display: inline-block;
    background: #f3f6fb;
    border: 1px solid #d2d9e5;
    color: #0b5aaa;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.btn-link {
    display: inline-block;
    margin-left: 8px;
    color: #0b5aaa;
    text-decoration: none;
    font-size: 13px;
}

    .btn-link:hover {
        text-decoration: underline;
    }
/* === Sidebar hover-open color fix === */

/* when sidebar is collapsed and user hovers (expands), make background darker */
.sidebar.collapsed.hover-open {
    width: 230px;
    background: #0b4a8a; /* darker FreightZen blue */
    color: #ffffff; /* white text */
}

    /* menu links and text visible in hover-open */
    .sidebar.collapsed.hover-open .menu-link {
        color: #ffffff;
    }

        .sidebar.collapsed.hover-open .menu-link .icon {
            fill: #ffffff;
        }

        .sidebar.collapsed.hover-open .menu-link:hover {
            background: rgba(255,255,255,0.15);
            color: #fff;
        }

            .sidebar.collapsed.hover-open .menu-link:hover .icon {
                fill: #fff;
            }

    /* submenu visible too */
    .sidebar.collapsed.hover-open .submenu .menu-link {
        color: #ffffff;
    }

        .sidebar.collapsed.hover-open .submenu .menu-link:hover {
            background: rgba(255,255,255,0.15);
        }
/* --- Header Search Box --- */
.topbar-search {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 260px;
    padding: 6px 10px;
    border: 1px solid #d0d9ef;
    border-radius: 6px;
    font-size: 13px;
}

    .search-input:focus {
        outline: none;
        border-color: #0b5aaa;
        box-shadow: 0 0 0 2px rgba(11,90,170,0.15);
    }

/* --- Dropdown results --- */
.search-results {
    position: absolute;
    top: 36px;
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    width: 260px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    display: none;
    z-index: 999;
}

    .search-results a {
        display: block;
        padding: 8px 10px;
        color: #1e2a37;
        text-decoration: none;
        font-size: 13px;
    }

        .search-results a:hover {
            background: #f3f6fb;
            color: #0b5aaa;
        }
.menu-group {
    margin-bottom: 10px;
}

.menu-heading {
    font-size: 13px;
    font-weight: 700;
    color: #0b5aaa;
    padding: 8px 12px 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.menu-group-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 10px;
}

    .menu-group-list li {
        margin: 2px 0;
    }

.menu-parent {
    display: block;
    font-weight: 600;
    color: #1e2a37;
    padding: 6px 10px;
}
.topbar {
    background: #fff !important;
    color: #0b5aaa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e6e9f2;
}

.topbar-left, .topbar-center, .topbar-right {
    display: flex;
    align-items: center;
}

.topbar-center {
    flex: 1;
    justify-content: center;
}

.top-logo {
    height: 38px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 230px;
}

.content {
    flex: 1;
    padding: 20px;
    background: #f3f6fb;
}
/* base icon box */
.menu-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* 1 - Financial Accounting */
.icon-finance::before {
    content: "\f1ec"; /* <-- only works if you load a font like FontAwesome */
}

.icon-finance {
    background: url('../Content/icons/finance.png') center/16px no-repeat, rgba(255,255,255,0.12);
}

/* 2 - Freight Forwarding */
.icon-freight {
    background: url('../Content/icons/forward.png') center/16px no-repeat, rgba(255,255,255,0.12);
}

/* 3 - Liner Module */
.icon-liner {
    background: url('../Content/icons/anchor.png') center/16px no-repeat, rgba(255,255,255,0.12);
}

/* 4 - System Admin */
.icon-admin {
    background: url('../Content/icons/settings.png') center/16px no-repeat, rgba(255,255,255,0.12);
}

/* 5 - Masters */
.icon-masters {
    background: url('../Content/icons/database.png') center/16px no-repeat, rgba(255,255,255,0.12);
}

/* fallback if images not found — show letters */
.icon-default,
.icon-finance::after { content: "₣"; }
.icon-freight::after { content: "➤"; }
.icon-liner::after   { content: "⚓"; }
.icon-admin::after   { content: "⚙"; }
.icon-masters::after { content: "Ⓜ"; }
.icon-finance::after,
.icon-freight::after,
.icon-liner::after,
.icon-admin::after,
.icon-masters::after {
    font-size: 14px;
}
/* =========================
   CLEAN ERP SIDEBAR
   ========================= */
.sidebar {
    width: 240px;
    background: #eaf1fb; /* light blue panel */
    border-right: 1px solid #d6e2f5;
    min-height: calc(100vh - 60px); /* 60px = topbar height (adjust if different) */
    display: flex;
    flex-direction: column;
    transition: width .2s ease;
}

    .sidebar.pinned {
        width: 240px;
    }

    .sidebar.collapsed {
        width: 70px;
    }

/* container for our menu sections */
.sidebar-nav,
#fzMenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* LEVEL 1 (top menu) */
.menu-section {
    /* just to separate groups */
}

.menu-level1 {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    color: #123456; /* dark text */
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: background .15s ease, border-left .15s ease;
}

    .menu-level1:hover {
        background: rgba(11, 90, 170, 0.09);
        border-left: 3px solid #0b5aaa;
    }

/* Icon on the left of level 1 */
.menu-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(11, 90, 170, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #0b5aaa;
}

/* When section is open */
.menu-section.open > .menu-level1 {
    background: #ffffff;
    border-left: 3px solid #0b5aaa;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.03);
}

/* level 1 text */
.menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

/* arrow */
.menu-arrow {
    font-size: 11px;
    color: #4b5b70;
    transition: transform .15s ease;
}

.menu-section.open > .menu-level1 .menu-arrow {
    transform: rotate(90deg);
}

/* LEVEL 2 (children) */
.menu-level2 {
    display: none;
    background: #ffffff;
    border-left: 1px solid #e2e8f3;
}

.menu-section.open > .menu-level2 {
    display: block;
}

.menu-subtitle {
    padding: 8px 12px 4px 40px;
    font-size: 12px;
    font-weight: 600;
    color: #0b5aaa;
}

.menu-link {
    display: block;
    padding: 7px 12px 7px 48px;
    font-size: 12.5px;
    color: #1f2933;
    text-decoration: none;
    transition: background .12s ease;
}

    .menu-link:hover {
        background: #eaf1fb;
        color: #0b5aaa;
    }

    .menu-link.disabled {
        color: #9aa5b1;
        cursor: default;
    }

/* COLLAPSED MODE */
.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-arrow {
    display: none;
}

.sidebar.collapsed .menu-level1 {
    justify-content: center;
    padding-inline: 0;
}

.sidebar.collapsed .menu-level2 {
    position: absolute;
    left: 70px;
    top: 60px; /* under topbar */
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #d6e2f5;
    border-left: none;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 8px 20px rgba(15,54,86,0.2);
    display: none;
}

.sidebar.collapsed .menu-section.open > .menu-level2 {
    display: block;
}
.sidebar.collapsed .menu-section.open > .menu-levelN {
    display: block;
    background: #ffffff;
}

/* TOP BAR fix to stay white */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e6e9f2;
    height: 60px;
}

/* ---- ICONS PER MODULE ---- */
.icon-finance::after {
    content: "₣";
}

.icon-freight::after {
    content: "➤";
}

.icon-liner::after {
    content: "⚓";
}

.icon-admin::after {
    content: "⚙";
}

.icon-masters::after {
    content: "Ⓜ";
}

.icon-default::after {
    content: "•";
}
/* base sidebar (same as before) */
.sidebar {
    width: 240px;
    background: #eaf1fb;
    border-right: 1px solid #d6e2f5;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* sections for any level */
.menu-section {
    width: 100%;
}

    .menu-section .menu-section {
        /* nested sections should not add extra border */
    }

    /* level 1 button */
    .menu-section.level-1 > .menu-level1 {
        padding: 10px 14px;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        cursor: pointer;
        border-left: 3px solid transparent;
        transition: background .12s ease, border-left .12s ease;
        font-weight: 600;
        color: #1e293b;
        font-size: 13px;
    }

        .menu-section.level-1 > .menu-level1:hover {
            background: rgba(11,90,170,0.08);
            border-left: 3px solid #0b5aaa;
        }

/* icon for level 1 */
.menu-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(11, 90, 170, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #0b5aaa;
}
.menu-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: none;
}

    .menu-icon.small {
        width: 10px;
        height: 10px;
        background: transparent;
    }

/* arrow rotate */
.menu-arrow {
    font-size: 11px;
    color: #546574;
    transition: transform .12s ease;
}

.menu-section.open > .menu-level1 .menu-arrow {
    transform: rotate(90deg);
}

/* children container (level 2, 3, ...) */
.menu-levelN {
    display: none;
    background: #ffffff;
}

.menu-section.open > .menu-levelN {
    display: block;
}

/* level 2 */
.menu-section.level-2 > .menu-level1 {
    padding: 7px 12px 7px 36px;
    font-weight: 500;
    font-size: 12.5px;
    background: #ffffff;
    border-left: 2px solid transparent;
}

    .menu-section.level-2 > .menu-level1:hover {
        background: #eaf1fb;
        border-left: 2px solid #0b5aaa;
    }

/* level 3 links */
.menu-link.level-3,
.menu-subtitle.level-3 {
    display: block;
    padding: 6px 10px 6px 58px;
    font-size: 12.3px;
    color: #1f2937;
    text-decoration: none;
}

    .menu-link.level-3:hover {
        background: #edf3ff;
        color: #0b5aaa;
    }

/* icons mapping (simple) */
.icon-finance::after {
    content: "₣";
}

.icon-freight::after {
    content: "➤";
}

.icon-liner::after {
    content: "⚓";
}

.icon-admin::after {
    content: "⚙";
}

.icon-masters::after {
    content: "Ⓜ";
}

.icon-default::after {
    content: "•";
}
/* when sidebar is collapsed, the levelN (children) that pop out */
.sidebar.collapsed .menu-levelN {
    background: #ffffff;
    color: #1f2933;
}

    .sidebar.collapsed .menu-levelN .menu-link,
    .sidebar.collapsed .menu-levelN .menu-subtitle {
        color: #1f2933;
    }

        .sidebar.collapsed .menu-levelN .menu-link:hover {
            background: #eaf1fb;
            color: #0b5aaa;
        }
    /* re-enable text inside the popup container */
    .sidebar.collapsed .menu-levelN .menu-text {
        display: inline-block;
    }
/* ===========================================================
   COLLAPSED SIDEBAR — MAKE HOVER LOOK LIKE PINNED VIEW
   =========================================================== */

/* When sidebar is collapsed, expand visually on hover */
.sidebar.collapsed:hover {
    width: 240px; /* same as pinned width */
    background: #eaf1fb; /* same color as pinned sidebar */
    transition: width .25s ease;
}

    /* Inside hover state, show full text and arrows like pinned */
    .sidebar.collapsed:hover .menu-text,
    .sidebar.collapsed:hover .menu-arrow {
        display: inline-block;
    }

    /* Ensure submenu containers are visible and positioned normally */
    .sidebar.collapsed:hover .menu-levelN {
        position: static;
        /* display: block;  <-- removed this line */
        box-shadow: none;
        border: none;
        background: #ffffff; /* same as pinned submenu background */
    }

/* only the section with .open actually shows children */
.menu-section.open > .menu-levelN {
    display: block;
}


    .sidebar.collapsed:hover .menu-level1:hover {
        background: rgba(11, 90, 170, 0.09);
        border-left: 3px solid #0b5aaa;
        color: #1e293b;
    }

    /* Make sure text and links stay dark and readable */
    .sidebar.collapsed:hover .menu-level1,
    .sidebar.collapsed:hover .menu-levelN .menu-link,
    .sidebar.collapsed:hover .menu-levelN .menu-subtitle {
        color: #1e293b;
    }

        /* Keep link hover color consistent */
        .sidebar.collapsed:hover .menu-levelN .menu-link:hover {
            background: #eaf1fb;
            color: #0b5aaa;
        }
/* =======================================================
   COLLAPSED SIDEBAR – SHOW ONLY OPEN MENU ON HOVER
   ======================================================= */

/* Expanded look on hover */
.sidebar.collapsed.hover-open {
    width: 240px;
    background: #eaf1fb;
    transition: width .25s ease;
}

    /* Reveal text on hover */
    .sidebar.collapsed.hover-open .menu-text,
    .sidebar.collapsed.hover-open .menu-arrow {
        display: inline-block;
    }

    /* Keep submenus hidden unless section is open */
    .sidebar.collapsed.hover-open .menu-section.temp-hide > .menu-levelN {
        display: none !important;
    }

    /* Show children only for the section marked as .open */
    .sidebar.collapsed.hover-open .menu-section.open > .menu-levelN {
        display: block;
    }

    /* Maintain same styling as pinned */
    .sidebar.collapsed.hover-open .menu-level1:hover {
        background: rgba(11,90,170,0.09);
        border-left: 3px solid #0b5aaa;
    }

    /* keep link colors same */
    .sidebar.collapsed.hover-open .menu-levelN .menu-link {
        color: #1e293b;
    }

        .sidebar.collapsed.hover-open .menu-levelN .menu-link:hover {
            background: #eaf1fb;
            color: #0b5aaa;
        }
/* ============================================
   COLLAPSED SIDEBAR – ICON-ONLY DEFAULT
   ============================================ */
.sidebar.collapsed {
    width: 70px;
    overflow: hidden;
    transition: width .25s ease;
}

    /* when not hovered, icons only */
    .sidebar.collapsed .menu-text,
    .sidebar.collapsed .menu-arrow {
        display: none;
    }

    /* ============================================
   COLLAPSED + HOVERED → show open menus only
   ============================================ */
    .sidebar.collapsed.hover-open {
        width: 240px;
        background: #eaf1fb;
        transition: width .25s ease;
    }

        /* reveal menu text on hover */
        .sidebar.collapsed.hover-open .menu-text,
        .sidebar.collapsed.hover-open .menu-arrow {
            display: inline-block;
        }

        /* hide temporarily collapsed sections */
        .sidebar.collapsed.hover-open .menu-section.temp-hide > .menu-levelN {
            display: none !important;
        }

        /* show only the ones that are actually open */
        .sidebar.collapsed.hover-open .menu-section.open > .menu-levelN {
            display: block;
        }

        /* keep style same as pinned */
        .sidebar.collapsed.hover-open .menu-level1:hover {
            background: rgba(11, 90, 170, 0.09);
            border-left: 3px solid #0b5aaa;
            color: #1e293b;
        }

        .sidebar.collapsed.hover-open .menu-levelN .menu-link {
            color: #1e293b;
        }

            .sidebar.collapsed.hover-open .menu-levelN .menu-link:hover {
                background: #eaf1fb;
                color: #0b5aaa;
            }

/* base: all submenu hidden */
.menu-levelN {
    display: none;
}

/* when parent has .open → show this submenu */
.menu-section.open > .menu-levelN {
    display: block;
}

/* ================================================
   COLLAPSED SIDEBAR (unpinned, mouse not over)
   ================================================ */
.sidebar.collapsed {
    width: 70px;
    overflow: hidden;
    transition: width .25s ease;
    background: #eaf1fb;
}

    /* In collapsed mode: icons only */
    .sidebar.collapsed .menu-text,
    .sidebar.collapsed .menu-arrow,
    .sidebar.collapsed .menu-levelN {
        display: none !important;
    }

    /* ================================================
   COLLAPSED + HOVER (when mouse over)
   ================================================ */
    .sidebar.collapsed.hover-open {
        width: 240px;
        background: #eaf1fb;
        transition: width .25s ease;
        overflow: visible;
    }

        /* Reveal text and show only open section menus */
        .sidebar.collapsed.hover-open .menu-text,
        .sidebar.collapsed.hover-open .menu-arrow {
            display: inline-block;
        }

        /* Show submenus only for sections that are actually open */
        .sidebar.collapsed.hover-open .menu-section.open > .menu-levelN {
            display: block !important;
        }

        /* Keep hidden all others while hovering */
        .sidebar.collapsed.hover-open .menu-section:not(.open) > .menu-levelN {
            display: none !important;
        }
.sidebar {
    transition: width 0.25s ease, background-color 0.2s ease;
}

/* ===== Remember Me Checkbox ===== */

/* Remember me checkbox */

.fz-remember {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #4b5563;
}

    .fz-remember input[type="checkbox"] {
        width: 14px;
        height: 14px;
        vertical-align: middle;
        margin-right: 6px;
        cursor: pointer;
    }

    .fz-remember label {
        vertical-align: middle;
        cursor: pointer;
        font-weight: 500;
    }

    /* Optional: subtle hover effect */
    .fz-remember:hover label {
        color: #0b2a4a; /* match FreightZen dark blue */
    }