/* Dashboard font.
   Loaded only by Views/Shared/_LayoutHead.cshtml (bundle "~/Content/dashboard" in App_Start/BundleConfig.cs),
   so the customer checkout (_LayoutHeadCheckout.cshtml) is NOT affected.
   This is the only change that applies in light mode; everything else is in dark.css and only works in dark mode. */

/* Inter (link in _LayoutHead.cshtml, supports Greek). Roboto stays as the fallback. */
html, body, button, input, select, textarea {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Top bar + side drawer (redesign 2026-11-05).
   Used by: Areas/Project + Areas/backoffice _SidebarPartial.cshtml + _TopbarPartial.cshtml, root Views/Shared/_Layout.cshtml
   (logged-in bar only), Views/Shared/_LoginPartial.cshtml, _AdminPanel.cshtml, icons from _NavIcon.cshtml.
   Only looks: every link, onclick, Angular binding and dropdown is the same markup as before.
   The frame (bar + drawer) is dark teal-black in BOTH light and dark mode, so these rules have no html.dark versions.
   Sizes stay as before (drawer 246px / 66px collapsed, bar 55px, root bar 57px): #livePopup and the root page padding rely on them.
   Every rule starts with an nb- class, so nothing else on the site is affected. */

.sidebar.expanded {
    width: 246px;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 66px;
    flex-shrink: 0;
}

.nb-i {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------- Drawer ---------- */

.nb-drawer {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    background: radial-gradient(460px 280px at 0% 0%, rgba(20, 184, 166, .22), transparent 70%), radial-gradient(380px 380px at 100% 100%, rgba(14, 116, 144, .12), transparent 70%), #0A1213;
    border-right: 1px solid rgba(94, 211, 197, .10);
    font-family: 'Inter', 'Roboto', sans-serif;
    user-select: none;
}

    .nb-drawer a,
    .nb-drawer a:hover,
    .nb-drawer a:focus {
        text-decoration: none;
        outline: none;
    }

.nb-logo {
    height: 55px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(94, 211, 197, .10);
}

    .sidebar .nb-drawer .nb-logo img.nb-logo-full {
        height: 24px;
        filter: brightness(0) invert(1);
    }

    .sidebar .nb-drawer .nb-logo img.nb-logo-mark {
        display: none;
        height: 26px;
    }

    .sidebar .nb-drawer .nb-logo img.nb-logo-wl {
        max-height: 40px;
        max-width: 190px;
        object-fit: contain;
    }

.nb-mode {
    margin: 12px 10px 0;
    display: flex;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(94, 211, 197, .05);
    border: 1px solid rgba(94, 211, 197, .16);
}

.nb-project {
    margin: 12px 10px 0;
    position: relative;
}

    .nb-project > .nb-label {
        display: block;
        padding: 0 2px 6px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: rgba(153, 246, 228, .5);
        pointer-events: none;
    }

    .nb-project > .nb-i {
        position: absolute;
        left: 13px;
        top: 31px;
        z-index: 1;
        color: #5ED3C5;
        pointer-events: none;
    }

    .nb-project .md-button.md-dropdown-button {
        display: block;
        width: 100%;
        margin: 0;
        min-height: 0;
        height: 40px;
        line-height: 38px;
        padding: 0 10px 0 40px !important;
        border-radius: 10px;
        text-align: left;
        text-transform: none;
        font-size: 13.5px;
        font-weight: 600;
        background-color: rgba(94, 211, 197, .05) !important;
        color: #fff !important;
        border: 1px solid rgba(94, 211, 197, .16) !important;
        box-shadow: none;
    }

        .nb-project .md-button.md-dropdown-button > div > div {
            margin-left: 0;
        }

        .nb-project .md-button.md-dropdown-button > div > span {
            margin: 0 0 0 8px;
            color: rgba(204, 251, 241, .5);
        }

.nb-nav {
    flex: 1;
    padding: 2px 10px 12px;
}

.nb-section {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(153, 246, 228, .42);
    padding: 16px 12px 6px;
    white-space: nowrap;
}

.nb-item,
.nb-item:any-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    height: 36px;
    padding: 0 12px;
    margin-bottom: 2px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 500;
    color: #D2E6E3;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}

    .nb-item .nb-i {
        width: 17px;
        height: 17px;
        color: rgba(204, 251, 241, .5);
    }

    .nb-item:hover {
        color: #fff;
        background: rgba(94, 211, 197, .07);
    }

    .nb-item.selected {
        color: #fff;
        font-weight: 600;
        background: linear-gradient(90deg, rgba(94, 211, 197, .18), rgba(94, 211, 197, .05));
        border-color: rgba(94, 211, 197, .22);
    }

        .nb-item.selected .nb-i {
            color: #5ED3C5;
        }

        .nb-item.selected:before {
            content: '';
            position: absolute;
            left: -11px;
            top: 8px;
            bottom: 8px;
            width: 3px;
            border-radius: 0 3px 3px 0;
            background: #5ED3C5;
        }

.nb-foot {
    padding: 12px 10px;
    border-top: 1px solid rgba(94, 211, 197, .10);
}

    .nb-foot .nb-item {
        margin: 0;
        border-color: rgba(94, 211, 197, .16);
    }

/* Collapsed drawer (66px): icons only */
.sidebar.collapsed .nb-logo {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .nb-drawer .nb-logo img.nb-logo-full {
    display: none;
}

.sidebar.collapsed .nb-drawer .nb-logo img.nb-logo-mark {
    display: block;
}

.sidebar.collapsed .nb-drawer .nb-logo img.nb-logo-wl {
    max-width: 44px;
    max-height: 36px;
}

.sidebar.collapsed .nb-mode,
.sidebar.collapsed .nb-project {
    display: none;
}

.sidebar.collapsed .nb-section {
    height: 1px;
    padding: 0;
    margin: 12px 8px;
    font-size: 0;
    background: rgba(94, 211, 197, .12);
}

.sidebar.collapsed .nb-item {
    justify-content: center;
    padding: 0;
}

    .sidebar.collapsed .nb-item > span {
        display: none;
    }

/* ---------- Top bar (Project + backoffice) and the logged-in root bar ---------- */

.nb-bar {
    position: relative;
    height: 55px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 0 8px;
    background: linear-gradient(90deg, #0B1617 0%, #0C1314 35%, #0E1214 100%);
    border-bottom: 1px solid rgba(94, 211, 197, .10);
    font-family: 'Inter', 'Roboto', sans-serif;
    user-select: none;
}

    .nb-bar.nb-root {
        height: 57px;
        padding-left: 14px;
    }

    .nb-bar a,
    .nb-bar a:hover,
    .nb-bar a:focus {
        text-decoration: none;
        outline: none;
    }

.nb-left,
.nb-right,
.nb-actions,
.nb-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nb-right {
    margin: 0;
    flex-shrink: 0;
}

.nb-actions {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .nb-actions > li {
        display: flex;
        align-items: center;
    }

.nb-vsep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, .08);
    margin: 0 2px;
    flex-shrink: 0;
}

.nb-icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #A7C4C0;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

    .nb-icon-btn:hover,
    .nb-icon-btn:focus {
        color: #fff;
        background: rgba(255, 255, 255, .06);
    }

    .nb-icon-btn.nb-bordered {
        border: 1px solid rgba(255, 255, 255, .08);
    }

.main-body.collapsed .nb-toggle .nb-i {
    transform: scaleX(-1);
}

.nb-root-logo {
    display: flex;
    align-items: center;
    padding-right: 6px;
}

    .nb-root-logo img {
        max-height: 26px;
        max-width: 160px;
        object-fit: contain;
    }

        .nb-root-logo img[src$="/Content/Images/logo-black.png"] {
            height: 23px;
            filter: brightness(0) invert(1);
        }

.nb-link,
.nb-link:any-link {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: #5ED3C5;
    white-space: nowrap;
}

    .nb-link:hover {
        color: #99F6E4;
        background: rgba(94, 211, 197, .07);
    }

    .nb-link .nb-i {
        width: 15px;
        height: 15px;
    }

/* Company drop-down (_DropdownPartial "companiesTop", only its button is restyled) */
.nb-company {
    position: relative;
    min-width: 0;
}

    .nb-company > .nb-i {
        position: absolute;
        left: 11px;
        top: 10px;
        z-index: 1;
        width: 16px;
        height: 16px;
        color: #5ED3C5;
        pointer-events: none;
    }

    .nb-company .md-button.md-dropdown-button {
        margin: 0;
        min-height: 0;
        height: 36px;
        line-height: 34px;
        padding: 0 4px 0 34px !important;
        border-radius: 10px;
        text-transform: none;
        font-size: 13.5px;
        font-weight: 600;
        background-color: rgba(94, 211, 197, .05) !important;
        color: #fff !important;
        border: 1px solid rgba(94, 211, 197, .16);
        box-shadow: none;
        max-width: 420px;
    }

        .nb-company .md-button.md-dropdown-button:hover {
            background-color: rgba(94, 211, 197, .10) !important;
        }

        .nb-company .md-button.md-dropdown-button > div > div {
            margin-left: 0;
            white-space: nowrap;
        }

        .nb-company .md-button.md-dropdown-button > div > span {
            margin: 0 8px 0 10px;
            color: rgba(204, 251, 241, .5);
        }

/* Demo / Live switch (_LiveDemoSwitch: root bar + Project drawer). Only colours; the md-switch itself is untouched. */
.nb-mode > div[style*="inline-flex"],
.nb-bar .nb-mode-inline > div[style*="inline-flex"] {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
}

    .nb-mode > div[style*="inline-flex"] > div,
    .nb-bar .nb-mode-inline > div[style*="inline-flex"] > div {
        color: #6F8582 !important;
    }

    .nb-mode > div[style*="inline-flex"] > div:has(+ md-switch:not(.md-checked)),
    .nb-bar .nb-mode-inline > div[style*="inline-flex"] > div:has(+ md-switch:not(.md-checked)) {
        color: #F5B544 !important;
    }

    .nb-mode > div[style*="inline-flex"] > md-switch.md-checked + div,
    .nb-bar .nb-mode-inline > div[style*="inline-flex"] > md-switch.md-checked + div {
        color: #34D399 !important;
    }

    .nb-mode md-switch,
    .nb-bar .nb-mode-inline md-switch {
        margin: 0 10px;
    }

        .nb-mode md-switch .md-bar,
        .nb-bar .nb-mode-inline md-switch .md-bar {
            background-color: rgba(255, 255, 255, .14) !important;
        }

        .nb-mode md-switch:not(.md-checked) .md-thumb,
        .nb-bar .nb-mode-inline md-switch:not(.md-checked) .md-thumb {
            background-color: #F5B544 !important;
        }

        .nb-mode md-switch.md-checked .md-thumb,
        .nb-bar .nb-mode-inline md-switch.md-checked .md-thumb {
            background-color: #34D399 !important;
        }

.nb-bar .nb-mode-inline {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
}

    .nb-bar .nb-mode-inline > div[style*="inline-flex"] > div:last-child {
        margin-left: 12px !important;
        font-size: 14px !important;
    }

/* DEV + ADMIN button groups (_AdminPanel) */
.nb-group {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 3px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
}

.nb-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 5px 7px;
    border-radius: 7px;
    margin-right: 3px;
    cursor: default;
}

.nb-tag-dev {
    color: #F5B544;
    background: rgba(245, 181, 68, .12);
}

.nb-tag-admin {
    color: #5ED3C5;
    background: rgba(94, 211, 197, .10);
}

.nb-btn,
.nb-btn:any-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 12.5px;
    font-weight: 500;
    color: #D2DCDB;
    white-space: nowrap;
    cursor: pointer;
}

    .nb-btn:hover,
    .nb-btn:focus,
    .open > .nb-btn {
        color: #fff;
        background: rgba(255, 255, 255, .07);
        outline: none;
    }

    .nb-btn .nb-i {
        width: 14px;
        height: 14px;
        color: #7E9895;
    }

    .nb-btn.nb-danger,
    .nb-btn.nb-danger .nb-i {
        color: #F87171;
    }

        .nb-btn.nb-danger:hover {
            background: rgba(239, 68, 68, .12);
        }

    .nb-btn[disabled] {
        opacity: .5;
        cursor: default;
    }

.nb-count {
    font-size: 11px;
    font-weight: 700;
    color: #052B27;
    background: #5ED3C5;
    border-radius: 99px;
    padding: 1px 7px;
}

.nb-gsep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .08);
    margin: 0 3px;
}

/* On smaller screens the DEV buttons show only their icons (the title still says what they are) */
@media (max-width: 1600px) {
    .nb-group-dev .nb-btn > span {
        display: none;
    }
}

/* Theme toggle (same link + classes as before; the moon shows in light mode, the sun in dark mode) */
.nb-actions .themeToggle .themeToggle-sun,
html.dark .nb-actions .themeToggle .themeToggle-moon {
    display: none;
}

html.dark .nb-actions .themeToggle .themeToggle-sun {
    display: block;
}

.nb-actions .themeToggle {
    color: #A7C4C0;
}

html.dark .nb-actions .themeToggle {
    color: #F5B544;
}

/* Account button: initial under the photo; when the photo cannot load it hides itself and the initial shows */
#accountDropdown.nb-acc-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 6px 0 3px;
    border-radius: 11px;
    background: transparent;
    border: 0;
    color: #7E9895;
}

    #accountDropdown.nb-acc-btn:hover,
    .open > #accountDropdown.nb-acc-btn {
        background: rgba(255, 255, 255, .06);
    }

    #accountDropdown.nb-acc-btn > .nb-i {
        width: 15px;
        height: 15px;
    }

.nb-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #052B27;
    background: linear-gradient(135deg, #99F6E4, #5ED3C5);
}

    #accountDropdown.nb-acc-btn .nb-avatar > img,
    .nb-menu .nb-avatar > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: cover;
        background: #111A1B;
    }

/* Menus: account + Tools (Bootstrap dropdown, same data-toggle as before) */
.nb-bar .dropdown-menu.nb-menu {
    min-width: 260px;
    margin-top: 8px;
    padding: 6px;
    border-radius: 14px;
    background: #111A1B;
    border: 1px solid rgba(94, 211, 197, .14);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85);
    font-family: 'Inter', 'Roboto', sans-serif;
}

    .nb-bar .dropdown-menu.nb-menu > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 36px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 500;
        color: #D2E6E3;
        background: transparent;
        cursor: pointer;
        justify-content: flex-start;
        text-align: left;
    }

        .nb-bar .dropdown-menu.nb-menu > li > a:hover,
        .nb-bar .dropdown-menu.nb-menu > li > a:focus {
            color: #fff;
            background: rgba(94, 211, 197, .08);
        }

        .nb-bar .dropdown-menu.nb-menu > li > a .nb-i {
            width: 16px;
            height: 16px;
            color: #7E9895;
        }

        .nb-bar .dropdown-menu.nb-menu > li > a > span + .nb-i {
            width: 13px;
            height: 13px;
            margin-left: auto;
            color: #55706C;
        }

    .nb-bar .dropdown-menu.nb-menu > .nb-menu-title {
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(153, 246, 228, .42);
        padding: 10px 10px 4px;
    }

    .nb-bar .dropdown-menu.nb-menu > .nb-menu-head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 10px 12px;
        margin-bottom: 6px;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

        .nb-bar .dropdown-menu.nb-menu > .nb-menu-head .nb-avatar {
            width: 36px;
            height: 36px;
        }

        .nb-bar .dropdown-menu.nb-menu > .nb-menu-head b {
            display: block;
            font-size: 13.5px;
            font-weight: 600;
            color: #fff;
        }

        .nb-bar .dropdown-menu.nb-menu > .nb-menu-head small {
            font-size: 11.5px;
            color: #7E9895;
        }

    .nb-bar .dropdown-menu.nb-menu > li.nb-menu-out {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, .07);
    }

        .nb-bar .dropdown-menu.nb-menu > li.nb-menu-out > a,
        .nb-bar .dropdown-menu.nb-menu > li.nb-menu-out > a .nb-i {
            color: #FCA5A5;
        }

    .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo {
        display: flex;
        gap: 6px;
        padding: 2px 4px 4px;
    }

        .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo > a {
            flex: 1;
            justify-content: center;
            height: 34px;
        }

            .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo > a.nb-off {
                background: rgba(239, 68, 68, .10);
            }

            .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo > a.nb-on {
                background: rgba(16, 185, 129, .10);
            }

            .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo > a.nb-off,
            .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo > a.nb-off .nb-i {
                color: #FCA5A5;
            }

            .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo > a.nb-on,
            .nb-bar .dropdown-menu.nb-menu > li.nb-menu-duo > a.nb-on .nb-i {
                color: #6EE7B7;
            }
