﻿/* =========================================================
   Sidebar size: one number controls everything.
   Must load AFTER dashlite.css / theme.css.
   ========================================================= */
:root {
    --sidebar-width: 270px; /* DashLite default is 290px; lower = slimmer */
    --sidebar-compact: 74px; /* collapsed (icons only) width */

    --app-primary: #0fac81;
    --app-primary-rgb: 15, 172, 129;
}

@media (min-width: 1200px) {
    /* Full sidebar */
    .nk-sidebar {
        width: var(--sidebar-width);
    }

        .nk-sidebar .nk-sidebar-element {
            width: var(--sidebar-width);
        }

    .has-sidebar .nk-wrap {
        padding-left: var(--sidebar-width);
    }

    .nk-sidebar + .nk-wrap > .nk-header-fixed {
        left: var(--sidebar-width);
    }

    /* Collapsed sidebar (the ☰ button on desktop) */
    .nk-sidebar.is-compact:not(:hover) {
        width: var(--sidebar-compact);
    }

    .nk-sidebar.is-compact + .nk-wrap {
        padding-left: var(--sidebar-compact);
    }

        .nk-sidebar.is-compact + .nk-wrap > .nk-header-fixed {
            left: var(--sidebar-compact);
        }
}

/* Slightly tighter menu text and spacing (optional: remove if you prefer DashLite's default) */
.nk-menu-link {
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.nk-menu-text {
    font-size: .9rem;
}


/* Branch switcher (header) */
.branch-switcher {
    margin-right: .75rem;
}

.branch-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 6px;
    background: var(--primary-dim, #e7f7f2);
    color: var(--primary, #0fac81);
    font-weight: 500;
    font-size: .875rem;
}

    .branch-toggle .ni-chevron-down {
        font-size: .75rem;
    }

.branch-switcher .dropdown-menu {
    min-width: 240px;
}

.branch-list {
    list-style: none;
    margin: 0;
    padding: .25rem 0;
}

.branch-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1.25rem;
    border: 0;
    background: none;
    text-align: left;
    color: #526484;
    font-size: .875rem;
}

    .branch-option:hover {
        background: #f5f6fa;
        color: var(--primary, #0fac81);
    }

    .branch-option .branch-name {
        flex: 1;
    }

    .branch-option .branch-currency {
        font-size: .75rem;
        color: #8094ae;
    }

    .branch-option.is-current {
        color: var(--primary, #0fac81);
        font-weight: 500;
    }

    .branch-option:disabled {
        opacity: 1;
        cursor: default;
    }
.branch-toggle-name {
    overflow: hidden;
    max-width: 220px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Phones: keep the name, but shorter, so the logo and avatar still fit */
@media (max-width: 575.98px) {
    .branch-switcher {
        margin-right: .5rem;
    }

    .branch-toggle {
        padding: .3rem .6rem;
        font-size: .8125rem;
    }

    .branch-toggle-name {
        max-width: 110px;
    }
}