/*
 * The side navigation, Flight Story and Jump Story alike, on a desktop
 * (wider than 1280px). Below that the top bar and its drawer are untouched.
 *
 * It is the same .topbar markup and the same links, laid out as a column:
 * the mark and product switch at the top, the menu, and the organisation,
 * the dark switch and the person at the foot. A group (Settings, Reports...)
 * opens in place when the bar is wide, and flies out to the side when it is
 * folded to a rail of icons (sidebarNav.js remembers which).
 *
 * Colours come from each area's own variables, so the palettes and Jump
 * Story's themes carry through. Removing this file and sidebarNav.js puts the
 * top bar back.
 */

:root {
    /* On the root, because the page's own padding makes room for the bar. */
    --sb-width: 244px;
    --sb-rail: 64px;
}
.topbar {
    --sb-bg: var(--color-surface, #fff);
    --sb-ink: var(--color-text, #1e293b);
    --sb-muted: var(--color-text-secondary, #6b7280);
    --sb-line: var(--color-border, #e5e7eb);
    --sb-accent: var(--color-primary-bg, #009fe3);
    --sb-accent-ink: var(--color-primary-text, #fff);
}
.js-area .topbar {
    --sb-bg: var(--js-bar-bg);
    --sb-ink: var(--js-bar-ink);
    --sb-muted: var(--js-ink-muted);
    --sb-line: var(--js-bar-line);
    --sb-accent: var(--js-accent);
    --sb-accent-ink: var(--js-accent-ink);
}

/* Off below the desktop breakpoint: the drawer is the menu there. */
.sidebar-toggle { display: none; }
/* The rail's short "<- Jump" / "<- Flight"; the full line shows everywhere else. */
.switch-label-short { display: none; }
.nav-caret { margin-left: 2px; }

@media (min-width: 1281px) {
    .topbar,
    .topbar * { box-sizing: border-box; }

    body:has(.topbar) {
        padding-left: var(--sb-width);
        transition: padding-left 0.18s ease;
    }
    html.sidebar-collapsed body:has(.topbar) { padding-left: var(--sb-rail); }

    .topbar,
    .js-area .topbar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 900;
        width: var(--sb-width);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        background: var(--sb-bg) !important;
        border-bottom: 0;
        border-right: 1px solid var(--sb-line);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        transition: width 0.18s ease;
    }
    html.sidebar-collapsed .topbar {
        width: var(--sb-rail);
        /* Groups fly out to the side, so nothing may clip them. */
        overflow: visible;
    }

    .topbar-left,
    .topbar-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 2px;
        width: 100%;
        padding: 10px;
        margin: 0;
        border: 0;
    }
    .topbar-right {
        margin-top: auto;
        border-top: 1px solid var(--sb-line);
    }
    .topbar-divider {
        display: block;
        width: auto;
        height: 1px;
        margin: 8px 6px;
        background: var(--sb-line);
        align-self: stretch !important;
    }
    .topbar-left > .topbar-divider:first-of-type { margin-top: 4px; }

    /* The fold button, then the area's mark and name with the way across. */
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        width: 36px;
        height: 32px;
        margin: 0 0 6px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--sb-muted);
        cursor: pointer;
    }
    /* The panel icon turns over as the bar folds, so it points the way it will go. */
    .sidebar-toggle::before { transition: transform 0.3s ease; }
    html.sidebar-collapsed .sidebar-toggle::before { transform: rotateY(180deg); }
    .sidebar-toggle:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--sb-accent) 12%, transparent); color: var(--sb-ink); }
    /* The organisation's logo, the mark and the product name sit centred. */
    .topbar-org-logo { max-height: 34px; align-self: center; margin: 0 4px 6px; }
    .topbar .brand-mark,
    .topbar .js-brand-mark { align-self: center; margin: 0 4px; }
    .topbar .product-badge-stack,
    .topbar .js-product-badge-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        align-self: center;
        margin: 4px 4px 0;
        text-align: center;
    }

    /* One row per item: icon, label, and a caret for a group. */
    .topbar .topbar-left .btn,
    .topbar .topbar-right .btn,
    .topbar .topbar-dropdown-btn {
        display: flex !important;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 40px;
        margin: 0;
        padding: 8px 12px !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: var(--sb-ink) !important;
        font-size: 14px !important;
        font-weight: 500;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: none !important;
        cursor: pointer;
    }
    .topbar .topbar-left .btn:is(:hover, :focus-visible),
    .topbar .topbar-right .btn:is(:hover, :focus-visible),
    .topbar .topbar-dropdown-btn:is(:hover, :focus-visible) {
        background: color-mix(in srgb, var(--sb-accent) 10%, transparent) !important;
    }
    .topbar .btn.nav-active,
    .topbar .topbar-dropdown-btn.nav-active {
        background: var(--sb-accent) !important;
        color: var(--sb-accent-ink) !important;
        font-weight: 600;
        pointer-events: auto;
    }
    /* Jump Story paints its bar's buttons with selectors this specific; the
       side bar answers them at the same weight. */
    .js-area .topbar .topbar-dropdown-btn:not(.nav-active) {
        background: transparent !important;
        color: var(--sb-ink) !important;
        border: 0 !important;
    }
    .js-area .topbar .topbar-dropdown-btn:not(.nav-active):is(:hover, :focus-visible) {
        background: color-mix(in srgb, var(--sb-accent) 14%, transparent) !important;
    }
    .js-area .topbar .logout-link {
        background: transparent !important;
        border: 0 !important;
        color: var(--sb-muted) !important;
    }
    .topbar .nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
    .topbar .nav-caret {
        font-size: 11px;
        opacity: 0.7;
        transition: transform 0.15s ease;
    }
    .topbar .is-open > .topbar-dropdown-btn .nav-caret { transform: rotate(180deg); }

    /* Icons: a drawing used as a mask, painted in the text colour. */
    /* The skydiver and the rig are drawn pictures (images/nav*.png) used as
       masks, so they take the bar's colour in light and dark alike. The
       skydiver is wide, so it borrows a little room either side. */
    .topbar [data-nav-icon]:is([data-nav-icon="jumplog"], [data-nav-icon="riglog"])::before {
        -webkit-mask-size: contain;
        mask-size: contain;
    }
    .topbar [data-nav-icon][data-nav-icon="jumplog"]::before { flex-basis: 34px; width: 34px; margin: 0 -7px; }
    .topbar [data-nav-icon][data-nav-icon="riglog"]::before { flex-basis: 22px; width: 22px; height: 22px; margin: 0 -1px; }
    /* Defects keep their warning red, except on the filled current item. */
    .topbar [data-nav-icon="defects"]:not(.nav-active)::before { background: var(--color-danger, #dc2626); }
    .topbar [data-nav-icon]::before {
        content: "";
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        background: currentColor;
        -webkit-mask: var(--nav-icon) center / 20px 20px no-repeat;
        mask: var(--nav-icon) center / 20px 20px no-repeat;
    }

    /* A group: its list opens in place below it. */
    .topbar :is(.settingsMenu, .financeMenu, .trainingMenu, .reportsMenu, .myAccountMenu) {
        position: relative;
        display: block;
        width: 100%;
    }
    .topbar :is(.settingsMenu, .financeMenu, .trainingMenu, .reportsMenu, .myAccountMenu):is(:hover, :focus-within)
        > :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList) {
        display: none;
    }
    .topbar :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList) {
        position: static;
        min-width: 0;
        margin: 2px 0 6px 21px;
        padding: 0 0 0 10px;
        border: 0;
        border-left: 1px solid var(--sb-line);
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }
    .topbar .is-open > :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList),
    .topbar .is-open:is(:hover, :focus-within) > :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList) {
        display: block;
    }
    .topbar :is(.settingsItem, .financeItem, .trainingItem, .reportsItem, .myAccountItem) {
        display: block;
        margin: 1px 0;
        padding: 7px 10px;
        border-radius: 8px;
        color: var(--sb-muted) !important;
        background: transparent !important;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .topbar :is(.settingsItem, .financeItem, .trainingItem, .reportsItem, .myAccountItem):is(:hover, :focus-visible) {
        color: var(--sb-ink) !important;
        background: color-mix(in srgb, var(--sb-accent) 10%, transparent) !important;
    }
    .topbar :is(.settingsItem, .financeItem, .trainingItem, .reportsItem, .myAccountItem).is-current {
        color: var(--sb-ink) !important;
        background: color-mix(in srgb, var(--sb-accent) 18%, transparent) !important;
        font-weight: 600;
    }

    /* The foot: organisation, person, logout and the dark switch. */
    .topbar .topbar-org-badge {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0 0 4px;
        padding: 8px 12px;
        border-radius: 10px;
        border: 1px solid var(--sb-line);
        background: transparent;
    }
    .topbar .topbar-org-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
    .topbar .topbar-user {
        display: block;
        padding: 6px 12px 0;
        font-size: 13px;
        font-weight: 600;
        color: var(--sb-ink) !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .topbar .logout-link {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 6px 12px !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--sb-muted) !important;
        font-size: 13px;
        text-decoration: none;
    }
    .topbar .logout-link:is(:hover, :focus-visible) { color: var(--sb-ink) !important; }
    /* The dark switch: a sun and a moon in a thin pill, and a knob under the
       one that is on. The words stay for a screen reader only. */
    .topbar :is(.topbar-dark-toggle, .js-theme-switch) {
        display: flex !important;
        align-items: center;
        margin: 4px 0 0;
        padding: 6px 12px;
        color: var(--sb-muted) !important;
        font-size: 0 !important;
    }
    .topbar :is(.topbar-dark-toggle, .js-theme-switch) .dot {
        position: relative;
        width: 50px;
        height: 26px;
        border-radius: 999px;
        border: 1px solid var(--sb-line);
        background: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box;
    }
    .topbar :is(.topbar-dark-toggle, .js-theme-switch) .dot::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--sb-accent) 18%, transparent);
        transition: transform 0.2s;
    }
    .topbar :is(.topbar-dark-toggle, .js-theme-switch) .dot::after {
        content: "";
        position: absolute;
        inset: 0;
        background: currentColor;
        -webkit-mask: var(--theme-sun) left 5px center / 14px no-repeat, var(--theme-moon) right 5px center / 14px no-repeat;
        mask: var(--theme-sun) left 5px center / 14px no-repeat, var(--theme-moon) right 5px center / 14px no-repeat;
    }
    /* jumpStory.css fills its dot with !important; answered at the same weight. */
    .js-area .topbar .js-theme-switch .dot,
    .js-area .topbar .js-theme-switch .js-theme-switch-input:checked ~ .dot {
        background: transparent !important;
        box-shadow: none !important;
    }
    .topbar :is(.topbar-dark-toggle, .js-theme-switch) input:checked ~ .dot::before { transform: translateX(24px); }
    .topbar :is(.topbar-dark-toggle, .js-theme-switch):hover { color: var(--sb-ink) !important; }
    .topbar :is(.topbar-dark-toggle, .js-theme-switch) input:focus-visible ~ .dot {
        outline: 2px solid var(--sb-accent);
        outline-offset: 2px;
    }
    .topbar-right > .topbar-divider { display: none; }

    /* Folded to a rail: icons only, and a group flies out to the side. */
    html.sidebar-collapsed .topbar :is(.topbar-left, .topbar-right) { padding: 10px 8px; align-items: center; }
    html.sidebar-collapsed .topbar :is(.nav-label, .nav-caret, .flight-story-name, .js-area-name, .switch-label-full, .topbar-user, .topbar-org-logo) {
        display: none !important;
    }
    html.sidebar-collapsed .topbar :is(.btn, .topbar-dropdown-btn, .logout-link) {
        justify-content: center;
        width: 44px;
        padding: 10px !important;
        gap: 0;
        font-size: 0 !important;
    }
    html.sidebar-collapsed .topbar :is(.topbar-dark-toggle, .js-theme-switch) { justify-content: center; padding: 6px 0; }
    html.sidebar-collapsed .sidebar-toggle { align-self: center; }
    html.sidebar-collapsed .topbar :is(.product-badge-stack, .js-product-badge-stack) { align-self: center; margin: 0; }
    html.sidebar-collapsed .topbar :is(.product-switch-link, .js-product-switch-link) { font-size: 11px !important; white-space: nowrap; }
    html.sidebar-collapsed .switch-label-short { display: inline; }
    /* The organisation on the rail: its name in small type, and Switch as an icon. */
    html.sidebar-collapsed .topbar .topbar-org-badge {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 54px;
        padding: 6px 0;
    }
    /* Whole words, one to a line; a word too long for the rail is cut short. */
    html.sidebar-collapsed .topbar .topbar-org-name {
        max-width: 100%;
        padding: 0 2px;
        font-size: 8.5px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
        overflow-wrap: normal;
        text-overflow: clip;
    }
    html.sidebar-collapsed .topbar .topbar-org-switch {
        display: inline-flex;
        width: 28px;
        height: 24px;
        padding: 0;
        font-size: 0 !important;
        justify-content: center;
        align-items: center;
    }
    html.sidebar-collapsed .topbar .topbar-org-switch::before {
        content: "";
        width: 16px;
        height: 16px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 3l4 4-4 4'/><path d='M20 7H4'/><path d='M8 21l-4-4 4-4'/><path d='M4 17h16'/></svg>") center / 16px 16px no-repeat;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 3l4 4-4 4'/><path d='M20 7H4'/><path d='M8 21l-4-4 4-4'/><path d='M4 17h16'/></svg>") center / 16px 16px no-repeat;
    }
    html.sidebar-collapsed .topbar .brand-mark,
    html.sidebar-collapsed .topbar .js-brand-mark { align-self: center; margin: 0 0 4px; }
    html.sidebar-collapsed .topbar .topbar-divider { margin: 6px 4px; }
    html.sidebar-collapsed .topbar :is(.settingsMenu, .financeMenu, .trainingMenu, .reportsMenu, .myAccountMenu) { width: 44px; }
    html.sidebar-collapsed .topbar :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList) {
        position: absolute;
        top: 0;
        left: calc(100% + 12px);
        min-width: 220px;
        margin: 0;
        padding: 8px;
        border: 1px solid var(--sb-line);
        border-radius: 12px;
        background: var(--sb-bg) !important;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
        z-index: 950;
    }
    /* A bridge over the gap, so the pointer can reach the list. */
    html.sidebar-collapsed .topbar :is(.settingsMenu, .financeMenu, .trainingMenu, .reportsMenu, .myAccountMenu)::after {
        content: "";
        position: absolute;
        top: 0;
        left: 100%;
        width: 14px;
        height: 100%;
    }
    /* An open group stays shut on the rail until it is pointed at or clicked. */
    html.sidebar-collapsed .topbar .is-open > :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList) {
        display: none;
    }
    html.sidebar-collapsed .topbar :is(.settingsMenu, .financeMenu, .trainingMenu, .reportsMenu, .myAccountMenu):is(:hover, :focus-within, .is-flyout)
        > :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList) {
        display: block;
    }
    html.sidebar-collapsed .topbar .topbar-right :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList) {
        top: auto;
        bottom: 0;
    }
    /* A group's name heads its fly-out, as the rail has no labels. */
    html.sidebar-collapsed .topbar :is(.settingsList, .financeList, .trainingList, .reportsList, .myAccountList)::before {
        content: attr(data-nav-title);
        display: block;
        padding: 4px 10px 6px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--sb-muted);
    }

}

/* The drawings: 24px, stroked, in the style of the rest of the app. */
.topbar [data-nav-icon="toggle"]    { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='3'/><path d='M3 6a3 3 0 0 1 3-3h3v18H6a3 3 0 0 1-3-3z' fill='black' fill-opacity='0.35' stroke='none'/><path d='M9 3v18'/><path d='M15.5 9 12.5 12l3 3' fill='black'/></svg>"); }
.topbar [data-nav-icon="techlog"]   { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/></svg>"); }
.topbar [data-nav-icon="dashboard"] { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='9' rx='1.5'/><rect x='14' y='3' width='7' height='5' rx='1.5'/><rect x='14' y='12' width='7' height='9' rx='1.5'/><rect x='3' y='16' width='7' height='5' rx='1.5'/></svg>"); }
.topbar [data-nav-icon="defects"]   { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.27 4.1 2.6 17.6A2 2 0 0 0 4.33 20.6h15.34a2 2 0 0 0 1.73-3L13.73 4.1a2 2 0 0 0-3.46 0z'/><path d='M12 9.5v4.2'/><circle cx='12' cy='17' r='0.4' fill='black'/></svg>"); }
.topbar [data-nav-icon="aircraft"]  { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 21V9l10-6 10 6v12'/><path d='M6 21v-7h12v7'/><path d='M6 17h12'/></svg>"); }
.topbar [data-nav-icon="weather"]   { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2v2M4.9 4.9l1.4 1.4M20 12h2M19.1 4.9l-1.4 1.4'/><path d='M15.9 13A4 4 0 1 0 8.1 10.7'/><path d='M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6z'/></svg>"); }
.topbar [data-nav-icon="settings"]  { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/></svg>"); }
.topbar [data-nav-icon="finance"]   { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2.5'/><path d='M2 10h20M6 15h4'/></svg>"); }
.topbar [data-nav-icon="training"]  { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M22 10 12 5 2 10l10 5 10-5z'/><path d='M6 12v5c3 2 9 2 12 0v-5M22 10v6'/></svg>"); }
.topbar [data-nav-icon="reports"]   { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='m7 15 4-4 3 3 6-6'/></svg>"); }
.topbar [data-nav-icon="bookings"]  { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2.5'/><path d='M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/></svg>"); }
.topbar [data-nav-icon="account"]   { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/></svg>"); }
.topbar [data-nav-icon="jumplog"]   { --nav-icon: url("/images/navJumpLog.png"); }
.topbar [data-nav-icon="riglog"]    { --nav-icon: url("/images/navRigLog.png"); }
.topbar [data-nav-icon="audit"]     { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3.5' width='14' height='18' rx='2'/><path d='M9 3.5h6v3H9zM8.5 11h7M8.5 14.5h7M8.5 18h4'/></svg>"); }
.topbar :is(.topbar-dark-toggle, .js-theme-switch) {
    --theme-sun: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/></svg>");
    --theme-moon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20.5 14.2A8.5 8.5 0 1 1 9.8 3.5a6.8 6.8 0 0 0 10.7 10.7z'/></svg>");
}
.topbar [data-nav-icon="logout"]    { --nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/></svg>"); }
