/* AVstackr navigation sidebar — the app's left-hand navigation in its expanded and rail forms.
   ========================================================================
   The pieces of the sidebar AppSidebar renders inside MainLayout's div.sidebar.app-sidebar: the icon,
   the brand row, the nav groups and rows, the credits and trial tiles, the account card and its menu,
   the rail, and the rail tooltip (.sb-tooltip, one element on body placed by wwwroot/js/sidebar.js).
   Plan docs/superpowers/plans/2026-11-21-navigation-sidebar-restyle.md; spec
   docs/superpowers/specs/2026-11-21-navigation-sidebar-restyle-design.md.

   Promotion rule. A class lives here only while the sidebar is its one user; the sb- classes belong to
   the sidebar alone. When another surface needs a piece, it moves to that surface's shared register
   under that register's own name, and the sidebar's markup gains that class beside its own.

   A plain stylesheet rather than a scoped .razor.css because the rules reach NavLink's own anchors and
   the tooltip, which lives on body, outside every component's scope. Every selector starts with
   `.app-sidebar`, `.page` (the layout root that carries the is-rail and is-hidden modes) or `.sb-tooltip`,
   and every rule for a sidebar piece is written `.app-sidebar .sb-…`, so nothing leaks to the rest of
   the app. Linked in Components/App.razor right after BlazorApp1.styles.css. The sizes and motion come
   from the --sb-* variables below, declared on both .app-sidebar and .sb-tooltip because the tooltip
   is not inside the sidebar.

   Colours. Every colour is an --app-* token from themes/theme-base.css (or a color-mix wash of one), so
   the sidebar follows every preset and both modes. No literal colours and no important flags.

     state                                  token
     -------------------------------------  ------------------------------------------------------------
     sidebar background, right border       the .sidebar rules in app.css and presets.css (unchanged)
     row text, row icon                     --app-text-data, --app-text-label
     hover background                       --app-surface-hover
     pressed background                     --app-surface-raised
     current background, text, icon         --app-accent-tint, --app-text-strong (600), --app-accent-border
     current and hover                      color-mix of --app-accent-tint and --app-surface-hover
     keyboard focus (:focus-visible only)   2px --app-focus-border
     group label, tooltip text              --app-text-label, --app-text-strong
     unread dot, Admin dot                  --app-accent-border
     invitation count, support dot          --app-danger-text and a 15% wash of it
     tile neutral                           panel --app-surface-panel, border --app-border-hairline,
                                            bar --app-accent-fill on an --app-surface-sunken track
     tile amber (low, trial urgent,         --app-warn-text text and bar, 10% wash fill, 35% wash border
       Unlimited)
     brand tile                             --app-brand-mark, letter in --app-on-accent
     sign out row                           --app-danger-text
*/

.app-sidebar, .sb-tooltip {
    --sb-w-expanded: 240px;
    --sb-w-rail: 64px;
    --sb-head-h: 56px;
    --sb-row-h: 34px;
    --sb-row-pad: 10px;
    --sb-row-gap: 10px;
    --sb-inset: 8px;
    --sb-icon: 16px;
    --sb-radius-row: 8px;
    --sb-radius-panel: 10px;
    --sb-radius-tip: 6px;
    --sb-tile-pad: 10px;
    --sb-card-h: 48px;
    --sb-avatar: 28px;
    --sb-avatar-rail: 32px;
    --sb-square: 40px;
    --sb-menu-w: 240px;
    --sb-motion: 200ms;
    --sb-hover-motion: 120ms;
    --sb-mono: 'SF Mono', 'Fira Code', monospace;
}

.app-sidebar .sb-icon {
    width: var(--sb-icon);
    height: var(--sb-icon);
    flex: none;
}

/* Rows
   ========================================================================
   One nav row: a link or a button holding an icon, a label and an optional marker on the right (the unread
   dot or the invitation count). Every row in the sidebar uses these rules. */

.app-sidebar .sb-row {
    display: flex;
    align-items: center;
    height: var(--sb-row-h);
    padding: 0 var(--sb-row-pad);
    gap: var(--sb-row-gap);
    margin: 0 var(--sb-inset);
    border: none;
    border-radius: var(--sb-radius-row);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--app-text-data);
    text-decoration: none;
    transition: background-color var(--sb-hover-motion) ease;
}

.app-sidebar button.sb-row {
    width: calc(100% - 2 * var(--sb-inset));
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.app-sidebar .sb-row .sb-icon {
    color: var(--app-text-label);
}

.app-sidebar .sb-row:hover {
    background: var(--app-surface-hover);
}

.app-sidebar .sb-row:active {
    background: var(--app-surface-raised);
}

.app-sidebar .sb-row.active {
    background: var(--app-accent-tint);
    color: var(--app-text-strong);
    font-weight: 600;
}

.app-sidebar .sb-row.active .sb-icon {
    color: var(--app-accent-border);
}

.app-sidebar .sb-row.active:hover {
    background: color-mix(in srgb, var(--app-accent-tint), var(--app-surface-hover));
}

.app-sidebar .sb-row:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: -2px;
}

.app-sidebar .sb-row-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-sidebar .sb-dot {
    width: 6px;
    height: 6px;
    flex: none;
    margin-left: auto;
    border-radius: 50%;
    background: var(--app-accent-border);
}

.app-sidebar .sb-count {
    flex: none;
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 999px;
    font-family: var(--sb-mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    color: var(--app-danger-text);
    background: color-mix(in srgb, var(--app-danger-text) 15%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar .sb-row {
        transition: none;
    }
}

/* Brand
   ========================================================================
   The top row: the brand tile linking home, the product name and the collapse toggle. */

.app-sidebar .sb-brand {
    display: flex;
    align-items: center;
    height: var(--sb-head-h);
    padding: 0 calc(var(--sb-inset) + 6px);
    gap: 10px;
}

.app-sidebar .sb-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: var(--sb-radius-row);
    background: var(--app-brand-mark);
    color: var(--app-on-accent);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.app-sidebar .sb-brand-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--app-text-strong);
    white-space: nowrap;
}

.app-sidebar .sb-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: none;
    padding: 0;
    border: none;
    border-radius: var(--sb-radius-row);
    background: transparent;
    color: var(--app-text-label);
    cursor: pointer;
    transition: background-color var(--sb-hover-motion) ease;
}

.app-sidebar .sb-toggle:hover {
    background: var(--app-surface-hover);
}

.app-sidebar .sb-toggle:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar .sb-toggle {
        transition: none;
    }
}

/* Groups
   ========================================================================
   The five labelled groups. Admin's label is a button that folds its rows; while folded, a dot beside the
   chevron marks that the current page is one of them. */

.app-sidebar .sb-group {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.app-sidebar .sb-group:first-child {
    margin-top: 8px;
}

.app-sidebar .sb-group-label {
    padding: 0 calc(var(--sb-inset) + var(--sb-row-pad)) 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--app-text-label);
}

.app-sidebar .sb-fold {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.app-sidebar .sb-fold:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: -2px;
}

.app-sidebar .sb-fold-chevron {
    display: flex;
}

.app-sidebar .sb-fold-chevron .sb-icon {
    width: 12px;
    height: 12px;
}

.app-sidebar .sb-fold-dot {
    width: 6px;
    height: 6px;
    flex: none;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--app-accent-border);
}

.app-sidebar .sb-group-rows {
    display: flex;
    flex-direction: column;
}

.app-sidebar .sb-group.is-folded .sb-group-rows {
    display: none;
}

/* Bottom
   ========================================================================
   What's new and Documentation, below a hairline. */

.app-sidebar .sb-bottom {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--app-border-hairline);
}

/* Tiles
   ========================================================================
   A panel linking to its page: an icon, a label and a figure on the first line, a bar under them and an
   optional call to action. Amber (.is-warn) when the figure needs attention. The credits tile uses it. */

.app-sidebar .sb-tile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "icon label value"
        ". bar bar"
        ". link link";
    align-items: center;
    column-gap: 8px;
    margin: 0 var(--sb-inset) 8px;
    padding: var(--sb-tile-pad);
    border: 1px solid var(--app-border-hairline);
    border-radius: var(--sb-radius-panel);
    background: var(--app-surface-panel);
    color: var(--app-text-data);
    text-decoration: none;
    transition: background-color var(--sb-hover-motion) ease;
}

.app-sidebar .sb-tile:hover {
    background: var(--app-surface-hover);
}

.app-sidebar .sb-tile:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: -2px;
}

.app-sidebar .sb-tile .sb-icon {
    grid-area: icon;
    color: var(--app-text-label);
}

.app-sidebar .sb-tile-label {
    grid-area: label;
    min-width: 0;
    font-size: 12px;
    white-space: nowrap;
}

.app-sidebar .sb-tile-value {
    grid-area: value;
    font-family: var(--sb-mono);
    font-size: 13px;
    color: var(--app-text-strong);
    text-align: right;
    white-space: nowrap;
}

.app-sidebar .sb-tile-bar {
    grid-area: bar;
    display: block;
    height: 4px;
    margin-top: 6px;
    border-radius: 2px;
    background: var(--app-surface-sunken);
    overflow: hidden;
}

.app-sidebar .sb-tile-bar-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--app-accent-fill);
    transition: width var(--sb-motion) ease;
}

.app-sidebar .sb-tile-link {
    grid-area: link;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--app-accent-border);
}

.app-sidebar .sb-tile.is-warn {
    background: color-mix(in srgb, var(--app-warn-text) 10%, var(--app-surface-panel));
    border-color: color-mix(in srgb, var(--app-warn-text) 35%, var(--app-surface-panel));
}

.app-sidebar .sb-tile.is-warn:hover {
    background: color-mix(in srgb, var(--app-warn-text) 16%, var(--app-surface-panel));
}

.app-sidebar .sb-tile.is-warn .sb-icon,
.app-sidebar .sb-tile.is-warn .sb-tile-value,
.app-sidebar .sb-tile.is-warn .sb-tile-link {
    color: var(--app-warn-text);
}

.app-sidebar .sb-tile.is-warn .sb-tile-bar-fill {
    background: var(--app-warn-text);
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar .sb-tile,
    .app-sidebar .sb-tile-bar-fill {
        transition: none;
    }
}

/* Clock tile
   ========================================================================
   While the user is clocked in (SidebarClockTile): a green tile whose link holds the icon, "On the clock" and the
   ticking time on the first line and the project number and labor type under them, then Clock out. The tile is a
   div, so its link and its button are siblings; the link takes the tile's grid. The 0-minute Keep / Discard prompt
   opens beside the sidebar, bottom-aligned with the tile, because it is wider than the sidebar. */

.app-sidebar .sb-clock {
    position: relative;
}

.app-sidebar .sb-tile.sb-tile-clock {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: color-mix(in srgb, var(--app-status-ok) 10%, var(--app-surface-panel));
    border-color: color-mix(in srgb, var(--app-status-ok) 40%, var(--app-surface-panel));
}

.app-sidebar .sb-tile.sb-tile-clock:hover {
    background: color-mix(in srgb, var(--app-status-ok) 16%, var(--app-surface-panel));
}

.app-sidebar .sb-clock-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "icon label value"
        ". detail detail";
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    color: var(--app-text-data);
    text-decoration: none;
}

.app-sidebar .sb-clock-link:hover .sb-clock-detail {
    text-decoration: underline;
}

.app-sidebar .sb-clock-link:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: 2px;
    border-radius: var(--sb-radius-row);
}

.app-sidebar .sb-tile-clock .sb-icon,
.app-sidebar .sb-tile-clock .sb-tile-value {
    color: var(--app-status-ok);
}

.app-sidebar .sb-tile-clock .sb-tile-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.app-sidebar .sb-clock-detail {
    grid-area: detail;
    min-width: 0;
    margin-top: 4px;
    font-size: 12px;
    color: var(--app-text-label);
    overflow-wrap: anywhere;
}

.app-sidebar .sb-clock-mono {
    font-family: var(--sb-mono);
    color: var(--app-text-strong);
}

.app-sidebar .sb-clock-out {
    align-self: flex-start;
    height: 26px;
    margin: 0 0 0 calc(var(--sb-icon) + 8px);
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--app-danger-text) 45%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-danger-text) 10%, transparent);
    color: var(--app-danger-text);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.app-sidebar .sb-clock-out:hover:not(:disabled) {
    background: color-mix(in srgb, var(--app-danger-text) 16%, transparent);
    border-color: var(--app-danger-text);
}

.app-sidebar .sb-clock-out:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: 2px;
}

.app-sidebar .sb-clock-out:disabled {
    opacity: 0.5;
    cursor: default;
}

.app-sidebar .sb-clock-error {
    margin-left: calc(var(--sb-icon) + 8px);
    font-size: 12px;
    color: var(--app-danger-text);
    overflow-wrap: anywhere;
}

.app-sidebar .sb-clock-discard {
    position: absolute;
    left: calc(100% + 8px);
    bottom: 8px;
    z-index: 1;
}

/* Account
   ========================================================================
   The card at the foot of the sidebar: the avatar with its initials (and a dot for unread support replies), the
   email over "Account and settings", and a chevron. A click opens the menu above it. */

.app-sidebar .sb-account-wrap {
    position: relative;
    margin: 0 var(--sb-inset) var(--sb-inset);
}

.app-sidebar .sb-account {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: var(--sb-card-h);
    padding: 0 10px;
    border: 1px solid var(--app-border-hairline);
    border-radius: var(--sb-radius-panel);
    background: var(--app-surface-panel);
    color: var(--app-text-data);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--sb-hover-motion) ease;
}

.app-sidebar .sb-account:hover {
    background: var(--app-surface-hover);
}

.app-sidebar .sb-account:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: -2px;
}

.app-sidebar .sb-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--sb-avatar);
    height: var(--sb-avatar);
    border-radius: 50%;
    background: var(--app-accent-tint);
    color: var(--app-accent-border);
    font-size: 11px;
    font-weight: 600;
}

.app-sidebar .sb-avatar-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--app-danger-text);
    border: 2px solid var(--app-surface-panel);
    box-sizing: content-box;
}

.app-sidebar .sb-account-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.app-sidebar .sb-account-email {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 500;
    color: var(--app-text-strong);
}

.app-sidebar .sb-account-sub {
    font-size: 12px;
    color: var(--app-text-label);
}

.app-sidebar .sb-account-chevron {
    display: flex;
    flex: none;
    color: var(--app-text-label);
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar .sb-account {
        transition: none;
    }
}

/* Menu
   ========================================================================
   The account menu, opening upward over the card at the card's full width: Settings, Theme, Subscription and
   Support rows, a hairline, and Sign out in the danger colour. A transparent backdrop under it closes it on an
   outside click. */

.app-sidebar .sb-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: transparent;
}

.app-sidebar .sb-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 2;
    padding: 6px;
    border: 1px solid var(--app-border-hairline);
    border-radius: var(--sb-radius-panel);
    background: var(--app-surface-raised);
    box-shadow: var(--app-shadow);
}

.app-sidebar .sb-menu-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: var(--sb-row-h);
    padding: 0 10px;
    border: none;
    border-radius: var(--sb-radius-row);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--app-text-data);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--sb-hover-motion) ease;
}

.app-sidebar .sb-menu-row:hover {
    background: var(--app-surface-hover);
}

.app-sidebar .sb-menu-row:focus-visible {
    outline: 2px solid var(--app-focus-border);
    outline-offset: -2px;
}

.app-sidebar .sb-menu-row-value {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--app-text-label);
}

.app-sidebar .sb-menu-row.is-danger {
    color: var(--app-danger-text);
}

.app-sidebar .sb-menu-divider {
    height: 1px;
    margin: 6px 0;
    background: var(--app-border-hairline);
}

.app-sidebar .sb-menu form {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar .sb-menu-row {
        transition: none;
    }
}

/* Shell
   ========================================================================
   AppSidebar's frame: the brand row on top, the nav in the middle (scrolling without a visible bar), and the
   tiles and the account card at the foot. The rail's expand button lives in the foot and shows only in the rail. */

.app-sidebar .sb-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.app-sidebar .sb-head {
    flex: none;
}

.app-sidebar .sb-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.app-sidebar .sb-scroll::-webkit-scrollbar {
    display: none;
}

.app-sidebar .sb-foot {
    flex: none;
    padding-top: 8px;
}

.app-sidebar .sb-toggle-rail {
    display: none;
}

/* Rail
   ========================================================================
   MainLayout's .page carries is-rail when the user collapses the sidebar to icons. Every label is hidden (the
   tooltip shows it instead), rows, tiles and both toggles become centred squares, the groups are told apart by a
   hairline instead of their labels, and the rail shows Admin's rows whatever the fold. The account card shrinks to
   its avatar and its menu opens to the right of the rail. */

.page.is-rail .app-sidebar .sb-brand-name,
.page.is-rail .app-sidebar .sb-toggle:not(.sb-toggle-rail),
.page.is-rail .app-sidebar .sb-tile-label,
.page.is-rail .app-sidebar .sb-tile-value,
.page.is-rail .app-sidebar .sb-tile-bar,
.page.is-rail .app-sidebar .sb-tile-link,
.page.is-rail .app-sidebar .sb-account-chevron,
.page.is-rail .app-sidebar .sb-count,
.page.is-rail .app-sidebar .sb-group-label {
    display: none;
}

/* The row labels and the account card's email are hidden visually only: they stay in the accessibility tree, so each
   rail link keeps its name and the account button is named by the email, not just the initials. */
.page.is-rail .app-sidebar .sb-row-text,
.page.is-rail .app-sidebar .sb-account-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.page.is-rail .app-sidebar .sb-brand {
    justify-content: center;
    padding: 0;
}

.page.is-rail .app-sidebar .sb-group + .sb-group {
    margin: 8px 12px 0;
    padding-top: 8px;
    border-top: 1px solid var(--app-border-hairline);
}

.page.is-rail .app-sidebar .sb-group.is-folded .sb-group-rows {
    display: block;
}

.page.is-rail .app-sidebar .sb-row,
.page.is-rail .app-sidebar .sb-tile,
.page.is-rail .app-sidebar .sb-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: var(--sb-square);
    height: var(--sb-square);
    margin: 2px auto;
    padding: 0;
}

.page.is-rail .app-sidebar .sb-toggle-rail {
    margin: 4px auto;
}

.page.is-rail .app-sidebar .sb-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
}

.page.is-rail .app-sidebar .sb-account-wrap {
    width: var(--sb-avatar-rail);
    margin: 4px auto var(--sb-inset);
}

.page.is-rail .app-sidebar .sb-account {
    justify-content: center;
    width: var(--sb-avatar-rail);
    height: var(--sb-avatar-rail);
    padding: 0;
}

/* Measured from the avatar-wide wrap, which sits centred in the rail: clear the rest of the rail, then an 8px gap. */
.page.is-rail .app-sidebar .sb-menu {
    left: calc(100% + (var(--sb-w-rail) - var(--sb-avatar-rail)) / 2 + 8px);
    right: auto;
    bottom: 0;
    width: var(--sb-menu-w);
}

/* The clock tile in the rail: only its green timer square, a link to the Time page. Its label, time and project line
   are hidden visually only, so the link keeps its text as its name (it has no aria-label) and the tooltip can read the
   time at hover; these selectors outweigh the tile rule above that hides a tile's label and value with display: none,
   and display: block undoes it. Clock out and any error wait for the expanded sidebar or the Time page. */
.page.is-rail .app-sidebar .sb-tile.sb-tile-clock {
    gap: 0;
}

.page.is-rail .app-sidebar .sb-tile-clock .sb-tile-label,
.page.is-rail .app-sidebar .sb-tile-clock .sb-tile-value,
.page.is-rail .app-sidebar .sb-tile-clock .sb-clock-detail {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.page.is-rail .app-sidebar .sb-clock-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.page.is-rail .app-sidebar .sb-clock-out,
.page.is-rail .app-sidebar .sb-clock-error {
    display: none;
}

/* Tooltip
   ========================================================================
   One element on body, created and placed by wwwroot/js/sidebar.js to the right of the hovered or focused rail item.
   It fades in after the script's delay and goes at once. */

.sb-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: 4px 8px;
    border: 1px solid var(--app-border-hairline);
    border-radius: var(--sb-radius-tip);
    background: var(--app-surface-raised);
    box-shadow: var(--app-shadow-sm);
    color: var(--app-text-strong);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}

.sb-tooltip.is-shown {
    opacity: 1;
    transition: opacity var(--sb-hover-motion);
}

@media (prefers-reduced-motion: reduce) {
    .sb-tooltip.is-shown {
        transition: none;
    }
}
