/**
 * NShine ERP Design System — shareable App UI theme
 * ─────────────────────────────────────────────────────────────────────────────
 * Single source for new UI styling. Load after style.css in App.razor.
 *
 * Extend this file with reusable ns-* patterns. Do not add per-module CSS for
 * buttons, cards, dials, segmented controls, or settings dialogs.
 * Inbox keeps .cai-* class names in markup; those are aliases of ns-* here.
 * Module CSS (chat-agent-inbox.css, ai-assistant-chat.css) = page layout shells only.
 * Shell chrome that appears in the app nav (inbox count, AI menu badges) lives here.
 *
 * Token naming follows shadcn/ui conventions (--background, --primary, etc.)
 * mapped to existing NShine brand variables from style.css (:root --ns-color-*).
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. Semantic design tokens
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Surfaces */
    --background: #fafafa;
    --foreground: var(--ns-color-blue, #212B36);
    --card: var(--ns-color-white, #ffffff);
    --card-foreground: var(--foreground);
    --popover: var(--card);
    --popover-foreground: var(--foreground);
    /* Brand */
    --primary: var(--ns-color-primary, #ff6821);
    --primary-foreground: var(--ns-color-white, #ffffff);
    --secondary: var(--ns-color-secondary, #3068A4);
    --secondary-foreground: var(--ns-color-white, #ffffff);
    /* Muted / accent */
    --muted: var(--ns-color-bg-light, #f8f9fa);
    --muted-foreground: var(--ns-color-gray, #637381);
    --accent: #f4f4f5;
    --accent-foreground: var(--ns-color-blue, #212B36);
    /* Feedback */
    --destructive: var(--ns-color-red, #F14B5B);
    --destructive-foreground: var(--ns-color-white, #ffffff);
    --warning: var(--ns-color-yellow, #ffc107);
    --warning-foreground: #664d03;
    --warning-subtle: #fff3cd;
    --success: var(--ns-color-green, #1EB386);
    --success-foreground: var(--ns-color-white, #ffffff);
    /* Borders & focus */
    --border: var(--ns-color-border-light, #e0e0e0);
    --input: var(--border);
    --ring: #d4d4d8;
    /* Radius */
    --radius-sm: 0.25rem;
    --ns-btn-radius: 5px;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Spacing scale */
    --ns-space-1: 0.25rem;
    --ns-space-2: 0.5rem;
    --ns-space-3: 0.75rem;
    --ns-space-4: 1rem;
    --ns-space-5: 1.25rem;
    --ns-space-6: 1.5rem;
    /* Typography helpers */
    --ns-text-xs: 0.75rem;
    --ns-text-sm: 0.875rem;
    --ns-text-base: 1rem;
}

/* Dark theme hook — extend when app-wide dark mode ships */
[data-bs-theme="dark"],
[data-theme="dark"] {
    --background: #1a1d21;
    --foreground: #e8eaed;
    --card: #212529;
    --card-foreground: var(--foreground);
    --muted: #2d3238;
    --muted-foreground: #9aa0a6;
    --border: #3c4043;
    --accent: rgba(255, 104, 33, 0.15);
    --warning-subtle: rgba(255, 193, 7, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. Layout primitives
   ═══════════════════════════════════════════════════════════════════════════ */

.ns-ops-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ns-space-4);
    margin-bottom: var(--ns-space-4);
}

.ns-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--ns-space-3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. Interactive components
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page / card action buttons — brand orange primary, calm secondary.
   Inbox (.cai-btn*) aliases the same recipe so AI surfaces share one theme. */
.ns-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ns-space-2);
}

@media (max-width: 991.98px) {
    .ns-page-actions .ns-btn:not(.ns-btn--icon) {
        padding: 3px 8px;
        min-height: 30px;
        gap: 6px;
    }
}

.ns-btn,
.cai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 15px;
    border-radius: var(--ns-btn-radius);
    border: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    background: transparent;
    color: var(--foreground);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

    .ns-btn:disabled,
    .cai-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.ns-btn--primary,
.cai-btn--primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

    .ns-btn--primary:hover:not(:disabled),
    .cai-btn--primary:hover:not(:disabled) {
        background: #1B2850;
        color: var(--primary-foreground);
    }

.ns-btn--secondary,
.cai-btn--outline {
    background: var(--card);
    color: var(--foreground);
    border: 1px solid var(--border);
}

    .ns-btn--secondary:hover:not(:disabled),
    .cai-btn--outline:hover:not(:disabled) {
        background: var(--muted);
        border-color: color-mix(in srgb, var(--muted-foreground) 25%, var(--border));
    }

.ns-btn--ghost,
.cai-btn--ghost {
    background: transparent;
    color: var(--muted-foreground);
    border-color: transparent;
}

    .ns-btn--ghost:hover:not(:disabled),
    .cai-btn--ghost:hover:not(:disabled) {
        background: var(--muted);
        color: var(--foreground);
    }

.ns-btn--destructive,
.cai-btn--destructive {
    background: var(--card);
    color: var(--destructive);
    border: 1px solid color-mix(in srgb, var(--destructive) 28%, var(--border));
}

    .ns-btn--destructive:hover:not(:disabled),
    .cai-btn--destructive:hover:not(:disabled) {
        background: color-mix(in srgb, var(--destructive) 8%, var(--card));
    }

.ns-btn--success,
.cai-btn--approve {
    background: var(--success);
    color: var(--success-foreground);
    border-color: var(--success);
    margin-left: auto;
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.6875rem;
}

    .ns-btn--success:hover:not(:disabled),
    .cai-btn--approve:hover:not(:disabled) {
        background: var(--ns-color-green-dark, #1A9F78);
        border-color: var(--ns-color-green-dark, #1A9F78);
    }

.ns-btn--sm,
.cai-btn--sm {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.8125rem;
}

.ns-btn--icon,
.cai-btn--icon {
    width: 34px;
    min-height: 34px;
    padding: 0;
}

.ns-btn--block,
.cai-btn--block {
    width: 100%;
}

.cai-btn--muted {
    color: var(--muted-foreground);
}

.ns-btn .rz-icon,
.ns-btn .rzi,
.cai-btn .rz-icon,
.cai-btn .rzi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 18px;
    line-height: 1;
}

.cai-btn__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid color-mix(in srgb, var(--primary-foreground) 35%, transparent);
    border-top-color: var(--primary-foreground);
    border-radius: var(--radius-full);
    animation: ns-spin 0.7s linear infinite;
}

@keyframes ns-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Collapsible briefing / settings panel */
.ns-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--ns-space-3);
}

.ns-panel--compact {
    box-shadow: none;
}

.ns-panel--table {
    box-shadow: none;
    overflow: hidden;
}

.ns-panel--table > .ns-panel__header {
    border-bottom: 1px solid var(--border);
}

.ns-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ns-space-2);
    padding: var(--ns-space-3) var(--ns-space-4);
}

.ns-panel--compact .ns-panel__header {
    padding: var(--ns-space-2) var(--ns-space-3) 0;
}

.ns-panel__body {
    padding: 0 var(--ns-space-4) var(--ns-space-4);
}

.ns-panel--compact .ns-panel__body {
    padding: 0 var(--ns-space-3) var(--ns-space-3);
}

.ns-panel__body--solo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ns-space-2);
    padding: var(--ns-space-3);
}

.ns-panel__title {
    font-size: var(--ns-text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--foreground);
}

.ns-panel--compact .ns-panel__title {
    font-size: var(--ns-text-sm);
}

.ns-panel__meta {
    font-size: var(--ns-text-sm);
    color: var(--muted-foreground);
    white-space: nowrap;
}

.ns-panel--compact .ns-panel__meta {
    font-size: var(--ns-text-xs);
}

.ns-cal-off {
    --ns-cal-off-fill: color-mix(in srgb, var(--ns-color-red, #F14B5B) 16%, #fff);
    --bs-table-bg: var(--ns-cal-off-fill);
    --bs-table-accent-bg: var(--ns-cal-off-fill);
    background-color: var(--ns-cal-off-fill);
}

.table > :not(caption) > * > .ns-cal-off {
    --bs-table-bg: var(--ns-cal-off-fill);
    background-color: var(--ns-cal-off-fill);
    box-shadow: inset 0 0 0 9999px var(--ns-cal-off-fill);
}

.ns-cal-off .ns-btn--ghost {
    background: transparent;
}

.ns-cal-off .ns-btn--ghost:hover:not(:disabled) {
    background: color-mix(in srgb, var(--ns-color-red, #F14B5B) 22%, #fff);
}

.btn-footer-fixed .ns-footer-note {
    float: right;
    margin-left: 10px;
    height: 36px;
    line-height: 36px;
    font-size: 13px;
    color: var(--muted-foreground);
}

.cform-panel {
    clear: both;
}

.cform-panel__title {
    margin-bottom: var(--ns-space-2);
    font-size: var(--ns-text-sm);
    font-weight: 600;
    color: var(--foreground);
}

.cform-panel__list {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-2);
    padding-top: var(--ns-space-2);
}

.cform-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-3);
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.85rem;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: inherit;
    cursor: pointer;
}

.cform-panel__row:hover {
    box-shadow: var(--shadow);
}

.cform-panel__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cform-panel__name {
    font-size: var(--ns-text-sm);
    font-weight: 600;
    color: var(--foreground);
}

.cform-panel__status {
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.cform-panel__row.is-filled .cform-panel__status {
    color: var(--ns-color-green-dark);
}

.cform-panel__action {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    font-size: var(--ns-text-xs);
    font-weight: 600;
    color: var(--ns-color-primary);
}

.cform-panel__display-list {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-2);
    padding-top: var(--ns-space-2);
}

.cform-panel__display {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.cform-panel__display .cform-title {
    margin-bottom: 0.65rem;
}

.ns-summary-line {
    margin: 0;
    font-size: var(--ns-text-sm);
    line-height: 1.45;
    color: var(--foreground);
}

.ns-summary-line--strong {
    font-weight: 600;
}

.ns-summary-line + .ns-summary-line {
    margin-top: var(--ns-space-1);
}

.ns-priority-list {
    margin: var(--ns-space-2) 0 0;
    padding-left: 1.15rem;
    font-size: var(--ns-text-sm);
    color: var(--muted-foreground);
    line-height: 1.45;
}

    .ns-priority-list li + li {
        margin-top: 0.2rem;
    }

/* Digest / attention cards */
.ns-digest-card {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--ns-space-3) var(--ns-space-4);
    min-width: 220px;
    background: var(--card);
    color: var(--card-foreground);
    transition: box-shadow 0.15s ease;
}

    .ns-digest-card:hover {
        box-shadow: var(--shadow);
    }

    .ns-digest-card.is-read {
        opacity: 0.65;
    }

.ns-digest-card__title {
    font-weight: 600;
}

.ns-digest-card__sub {
    font-size: var(--ns-text-sm);
    color: var(--muted-foreground);
}

.ns-section-label {
    font-size: var(--ns-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
    margin: var(--ns-space-3) 0 var(--ns-space-2);
}

/* Segmented filters (Inbox + future App UI) */
.ns-segmented,
.cai-segmented {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius);
    background: var(--muted);
    border: 1px solid var(--border);
    gap: 2px;
}

.ns-segmented__item,
.cai-segmented__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

    .ns-segmented__item:hover,
    .cai-segmented__item:hover {
        color: var(--foreground);
    }

    .ns-segmented__item.is-active,
    .cai-segmented__item.is-active {
        background: var(--card);
        color: var(--foreground);
        box-shadow: var(--shadow-sm);
    }

.ns-segmented__dot,
.cai-segmented__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 4px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Trust dial (Off / Suggest / Auto) — three equal segments */
.ns-dial,
.cai-dial {
    display: flex;
    width: 100%;
    max-width: 22rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--card);
}

.ns-dial__item,
.cai-dial__item {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 8px 10px;
    min-width: 0;
    min-height: 44px;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    text-align: center;
}

    .ns-dial__item + .ns-dial__item,
    .cai-dial__item + .cai-dial__item {
        border-left: 1px solid var(--border);
    }

    .ns-dial__item.is-active,
    .cai-dial__item.is-active {
        background: var(--accent);
        color: var(--foreground);
        font-weight: 600;
    }

    .ns-dial__item:disabled,
    .cai-dial__item:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

.ns-dial__desc,
.cai-dial-desc {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.ns-dial__accuracy,
.cai-dial-accuracy {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--success);
}

/* Settings / form dialog shell */
.ns-dialog--lg.rz-dialog,
.cai-settings-dialog.rz-dialog {
    width: min(960px, 94vw) !important;
    max-width: 960px !important;
    height: min(88vh, 820px) !important;
    max-height: min(88vh, 820px) !important;
    display: flex;
    flex-direction: column;
}

.ns-dialog--xl.rz-dialog {
    width: min(1080px, 96vw) !important;
    max-width: 1080px !important;
    height: min(88vh, 840px) !important;
    max-height: min(88vh, 840px) !important;
    display: flex;
    flex-direction: column;
}

.ns-dialog--lg .rz-dialog-content,
.ns-dialog--xl .rz-dialog-content,
.cai-settings-dialog .rz-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.ns-dialog-form .btn-submit,
.ns-dialog-form .btn-cancel {
    min-width: 96px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ns-dialog-form .form-group {
    margin-bottom: 0;
}

.ns-dialog-form .form-group label,
.ns-dialog-form .form-label {
    margin-bottom: 4px;
    font-size: 13px;
}

.ns-settings-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-width: 100%;
}

.ns-settings-sheet__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.ns-settings-sheet__footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.ns-settings-sheet__footer--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.ns-gap-form .ns-settings-sheet__footer {
    padding: 0.7rem 1.15rem;
}

.ns-settings-sheet__footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Capability gap dialog — denser Asset-style form */
.ns-gap-dialog.rz-dialog,
.ns-dialog--lg.ns-gap-dialog.rz-dialog {
    width: min(820px, 96vw) !important;
    max-width: 820px !important;
    height: min(88vh, 780px) !important;
    max-height: min(88vh, 780px) !important;
}

.ns-gap-form__body {
    max-height: none;
    padding: 1rem 1.15rem 0.5rem;
}

.ns-gap-form__section {
    margin-bottom: 0.35rem;
}

    .ns-gap-form__section + .ns-gap-form__section {
        margin-top: 0.55rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--border);
    }

.ns-gap-form .section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.55rem;
    letter-spacing: 0.01em;
}

.ns-gap-form label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--foreground);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.25;
}

.ns-gap-form .form-control,
.ns-gap-form .rz-dropdown,
.ns-gap-form .rz-datepicker,
.ns-gap-form .rz-numeric {
    font-size: 13px;
}

.ns-gap-form .form-control {
    min-height: 36px;
    padding: 0.35rem 0.65rem;
}

.ns-gap-howto__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.65rem 1.15rem 0;
}

.ns-gap-howto__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.ns-gap-form__shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    .ns-gap-form__shell > .ns-gap-form__body {
        flex: 1 1 auto;
        min-height: 0;
    }

.ns-gap-howto__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(33, 43, 54, 0.08);
}

.ns-gap-howto__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.ns-gap-howto__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
}

.ns-gap-howto__panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.85rem 1rem 1.25rem;
}

.ns-gap-howto__section + .ns-gap-howto__section {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.ns-gap-howto__section-title {
    margin: 0 0 0.45rem;
    font-size: 13px;
    font-weight: 700;
    color: var(--foreground);
}

.ns-gap-howto__body {
    margin: 0 0 0.65rem;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ns-color-blue-secondary, #4F5D71);
}

.ns-gap-howto__example,
.ns-gap-howto__warn {
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.45rem;
}

.ns-gap-howto__example {
    background: var(--muted, #f4f6f8);
    border: 1px solid var(--border);
}

.ns-gap-howto__warn {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.ns-gap-howto__example-label,
.ns-gap-howto__warn-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.ns-gap-howto__example-label {
    color: var(--muted-foreground, #637381);
}

.ns-gap-howto__warn-label {
    color: #991b1b;
}

.ns-gap-howto__example-text,
.ns-gap-howto__warn-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.ns-gap-howto__example-text {
    color: var(--foreground);
}

.ns-gap-howto__warn-text {
    color: #b91c1c;
}

.ns-ewb-product {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.75rem 0.25rem;
    margin-bottom: 0.65rem;
    background: var(--card);
}

.ns-ewb-product__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

    .ns-ewb-product__head h6,
    .ns-ewb-product__title {
        font-size: 13px;
        font-weight: 600;
        margin: 0;
        color: var(--foreground);
    }

.ns-ewb-issues {
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    max-height: 180px;
    overflow-y: auto;
}

.ns-ewb-issues__title {
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 0.35rem;
}

.ns-ewb-issues__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 13px;
    line-height: 1.45;
    color: #b91c1c;
    font-weight: 500;
    overflow-wrap: anywhere;
}

    .ns-ewb-issues__list li + li {
        margin-top: 0.25rem;
    }

/* Booking Upsert — e-way bill details */
.ns-ewb-section {
    width: 100% !important;
    flex: 1 1 100%;
    max-width: 100%;
    clear: both;
    float: none;
    margin-top: 0.35rem;
}

    .ns-ewb-section .section-title {
        width: 100%;
    }

.ns-ewb-section__row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

    .ns-ewb-section__row > .col-custom {
        float: none;
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        box-sizing: border-box;
    }

.ns-ewb-generated {
    margin-top: 0.35rem;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted-foreground);
}

.ns-ewb-actions-col .ns-ewb-actions-label {
    display: block;
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
    user-select: none;
}

.ns-ewb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
}

    .ns-ewb-actions .btn-filters.disabled,
    .ns-ewb-actions .btn-filters[disabled] {
        opacity: 0.55;
        pointer-events: none;
    }

input.ns-ewb-readonly,
.ns-ewb-readonly-picker.rz-datepicker .rz-inputtext,
.ns-ewb-readonly-picker .rz-inputtext {
    background-color: var(--card) !important;
    color: var(--foreground) !important;
    opacity: 1 !important;
    cursor: default;
}

/* Selectable list rows (Rules page, etc.) — flex rows, never on <tr> */
.ns-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--ns-space-2);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

    .ns-list-row:hover {
        background: var(--muted);
    }

    .ns-list-row.is-selected {
        background: var(--muted);
    }

tr.ns-list-row {
    display: table-row;
    justify-content: initial;
    padding: 0;
    border-bottom: none;
}

table.ns-table,
table.ns-table.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    caption-side: bottom;
    font-size: var(--ns-text-sm);
    color: var(--foreground);
}

table.ns-table thead,
table.ns-table.table thead {
    background: transparent;
}

table.ns-table thead th,
table.ns-table.table thead th {
    height: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: var(--ns-text-xs);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--muted-foreground);
    background: transparent;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    text-align: start;
    vertical-align: middle;
}

table.ns-table thead th.text-end,
table.ns-table.table thead th.text-end {
    text-align: end;
}

table.ns-table tbody tr,
table.ns-table.table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.12s ease;
}

table.ns-table tbody tr:last-child,
table.ns-table.table tbody tr:last-child {
    border-bottom: 0;
}

table.ns-table tbody tr td,
table.ns-table.table tbody tr td {
    padding: 0.75rem 1rem;
    color: var(--foreground);
    font-weight: 400;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    background: transparent;
}

table.ns-table tbody tr:last-child td,
table.ns-table.table tbody tr:last-child td {
    border-bottom: 0;
}

table.ns-table tbody tr:hover td,
table.ns-table.table tbody tr:hover td {
    background: color-mix(in srgb, var(--muted) 80%, transparent);
}

table.ns-table tbody tr.ns-selectable {
    cursor: pointer;
}

table.ns-table tbody tr.ns-selectable:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
}

table.ns-table tbody tr.ns-selectable.is-selected td,
table.ns-table tbody tr.ns-selectable.is-selected:hover td {
    background: var(--muted);
}

table.ns-table tfoot td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: var(--ns-text-sm);
}

table.ns-table tbody tr.ns-table__section td {
    font-weight: 600;
    color: var(--foreground);
    padding-top: 1rem;
    border-bottom: 0;
}

table.ns-table tbody tr.ns-table__section:hover td {
    background: transparent;
}

table.ns-table tbody tr.ns-table__indent td:first-child {
    padding-inline-start: 2rem;
}

table.ns-table tbody tr.ns-table__total td {
    font-weight: 500;
    border-top: 1px solid var(--border);
}

table.ns-table tbody tr.ns-table__extra td {
    background: var(--muted);
}

.ns-table__name {
    font-weight: 500;
    color: var(--foreground);
}

.ns-table__hint {
    display: block;
    margin-top: 0.15rem;
    font-size: var(--ns-text-xs);
    font-weight: 400;
    color: var(--muted-foreground);
}

.ns-table__num {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.ns-table__muted {
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
}

.ns-table-detail {
    border-top: 1px solid var(--border);
}

.ns-table-detail__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-3);
    padding: 0.75rem 1rem;
}

.ns-table-detail__bar .ns-panel__meta {
    white-space: normal;
}

.ns-table-detail__empty {
    margin: 0;
    padding: 0 1rem 1rem;
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.ns-table-hint {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.ns-panel__body--flush {
    padding: 0;
}

.ns-panel__actions {
    display: flex;
    align-items: center;
    gap: var(--ns-space-1);
    margin-inline-start: auto;
    flex-shrink: 0;
}

.ns-link--muted {
    color: var(--muted-foreground);
    text-decoration: none;
}

.ns-link--muted:hover {
    color: var(--foreground);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ns-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--ns-space-3);
    padding: var(--ns-space-3) var(--ns-space-4);
}

.ns-filter-bar .ns-field {
    margin: 0;
    min-width: 10rem;
}

.ns-callout {
    margin: 0 0 var(--ns-space-3);
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: var(--ns-text-sm);
}

.ns-pick-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ns-space-2);
    margin-bottom: var(--ns-space-3);
}

.ns-pick {
    flex: 1 1 9rem;
    min-width: 8.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: inherit;
    text-align: start;
    cursor: pointer;
}

.ns-pick:hover {
    background: var(--muted);
}

.ns-pick.is-selected {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    background: color-mix(in srgb, var(--primary) 6%, var(--card));
}

.ns-pick__label,
.ns-pick__meta {
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.ns-pick__value {
    margin: 0.15rem 0;
    font-size: var(--ns-text-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--foreground);
}

.ns-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: var(--ns-space-3) var(--ns-space-4);
}

.ns-meta-grid__label {
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.ns-meta-grid__value {
    font-size: var(--ns-text-sm);
    color: var(--foreground);
}

.ns-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ns-space-2);
    padding: var(--ns-space-6) var(--ns-space-4);
    text-align: center;
    color: var(--muted-foreground);
}

.ns-empty__title {
    margin: 0;
    font-size: var(--ns-text-sm);
    font-weight: 600;
    color: var(--foreground);
}

.ns-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--ns-space-2);
    margin-top: var(--ns-space-1);
}

/* Autopilot / Watch scan-in-progress — calm AI status, brand-tinted (no purple/glow) */
.ns-scan-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ns-space-3);
    padding: var(--ns-space-4) var(--ns-space-4);
    margin-bottom: var(--ns-space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient( 135deg, color-mix(in srgb, var(--ns-color-primary) 6%, var(--card)) 0%, var(--card) 55%, color-mix(in srgb, var(--ns-color-secondary) 4%, var(--card)) 100%);
    box-shadow: var(--shadow-sm);
}

.ns-scan-status--inline {
    flex-direction: row;
    align-items: center;
    gap: var(--ns-space-3);
    padding: var(--ns-space-3) var(--ns-space-4);
    background: var(--card);
}

.ns-scan-status__mark {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.ns-scan-status__mark--sm {
    width: 1.5rem;
    height: 1.5rem;
}

.ns-scan-status__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--ns-color-primary) 45%, transparent);
    animation: ns-scan-pulse 1.8s ease-out infinite;
}

.ns-scan-status__ring--delay {
    animation-delay: 0.55s;
}

.ns-scan-status__core {
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: var(--ns-color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ns-color-primary) 18%, transparent);
    animation: ns-scan-breathe 1.6s ease-in-out infinite;
}

.ns-scan-status__mark--sm .ns-scan-status__core {
    inset: 26%;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ns-color-primary) 16%, transparent);
}

.ns-scan-status__copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ns-scan-status__title {
    margin: 0;
    font-size: var(--ns-text-sm);
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: 0.01em;
}

.ns-scan-status__hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--muted-foreground);
    max-width: 36rem;
}

.ns-scan-status__lanes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    padding-top: var(--ns-space-1);
}

.ns-scan-status__lane {
    display: block;
    height: 0.4rem;
    border-radius: 999px;
    background: linear-gradient( 90deg, color-mix(in srgb, var(--ns-color-primary) 8%, var(--muted)) 0%, color-mix(in srgb, var(--ns-color-primary) 22%, var(--border)) 45%, color-mix(in srgb, var(--ns-color-primary) 8%, var(--muted)) 100%);
    background-size: 220% 100%;
    animation: ns-shimmer 1.35s ease-in-out infinite;
}

    .ns-scan-status__lane:nth-child(1) {
        width: 92%;
        animation-delay: 0s;
    }

    .ns-scan-status__lane:nth-child(2) {
        width: 72%;
        animation-delay: 0.12s;
    }

    .ns-scan-status__lane:nth-child(3) {
        width: 84%;
        animation-delay: 0.24s;
    }

@keyframes ns-scan-pulse {
    0% {
        transform: scale(0.72);
        opacity: 0.85;
    }

    70% {
        transform: scale(1.05);
        opacity: 0;
    }

    100% {
        transform: scale(1.05);
        opacity: 0;
    }
}

@keyframes ns-scan-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.88);
        opacity: 0.75;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-scan-status__ring,
    .ns-scan-status__core,
    .ns-scan-status__lane {
        animation: none;
    }

    .ns-scan-status__ring {
        opacity: 0.35;
    }
}

.ns-muted {
    color: var(--muted-foreground);
    font-size: var(--ns-text-sm);
}

/* Decision feed (Autopilot approval queue — dense list, not tall card stack) */
.ns-decision-feed {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    margin-bottom: var(--ns-space-3);
}

.ns-decision-section + .ns-decision-section {
    border-top: 1px solid var(--border);
}

.ns-decision-feed .ns-section-label {
    display: flex;
    align-items: center;
    gap: var(--ns-space-2);
    width: 100%;
    margin: 0;
    padding: var(--ns-space-2) var(--ns-space-3);
    background: var(--muted);
    border: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.ns-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-full);
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: none;
    letter-spacing: 0;
}

.ns-section-chevron {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

.ns-decision-card {
    padding: var(--ns-space-3) var(--ns-space-3);
    background: var(--card);
    color: var(--card-foreground);
    border-bottom: 1px solid var(--border);
}

    .ns-decision-card:last-child {
        border-bottom: none;
    }

    .ns-decision-card:hover {
        background: var(--muted);
    }

    .ns-decision-card.is-handled {
        opacity: 0.65;
    }

.ns-decision-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-2);
    margin-bottom: 0.2rem;
}

.ns-decision-card__when {
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
    white-space: nowrap;
}

/* Attribution chip — ghost pill in the feed meta row (rules-as-live-agents). */
.ns-rule-chip {
    display: inline-block;
    max-width: 100%;
    margin-left: auto;
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--muted-foreground);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--ns-color-lightgray2, #e5e7eb);
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

    .ns-rule-chip:hover {
        color: var(--foreground);
        border-color: var(--ns-color-secondary, #64748b);
    }

/* Agent cards grid on Autopilot Rules page. */
.ns-agent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .ns-agent-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ns-agent-card {
    cursor: pointer;
    transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

    .ns-agent-card:hover {
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }

    .ns-agent-card.is-off {
        opacity: 0.65;
    }

.ns-agent-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.ns-agent-card__when {
    font-size: 0.8125rem;
    color: var(--foreground);
    margin: 0.35rem 0 0;
}

.ns-agent-card__stats {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0.35rem 0 0;
}

    .ns-agent-card__stats a {
        color: var(--ns-color-secondary, #0f766e);
        text-decoration: none;
        font-weight: 600;
    }

        .ns-agent-card__stats a:hover {
            text-decoration: underline;
        }

.ns-agent-card--skeleton {
    min-height: 6.5rem;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: ns-agent-skeleton 1.2s ease-in-out infinite;
    border-radius: 8px;
    border: 1px solid var(--ns-color-lightgray2, #e5e7eb);
}

@keyframes ns-agent-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.ns-decision-card__headline {
    font-weight: 600;
    font-size: var(--ns-text-sm);
    line-height: 1.35;
    color: var(--foreground);
}

.ns-decision-card__ask {
    margin: 0.25rem 0 0;
    font-size: var(--ns-text-sm);
    line-height: 1.4;
    color: var(--muted-foreground);
}

.ns-decision-card__facts {
    margin: 0.15rem 0 0;
    font-size: var(--ns-text-xs);
    line-height: 1.4;
    color: var(--muted-foreground);
}

.ns-decision-card__done {
    margin: 0.2rem 0 0;
    font-size: var(--ns-text-xs);
    color: var(--ns-color-green-text, #1F4F2E);
}

.ns-decision-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ns-space-1);
    align-items: center;
    margin-top: var(--ns-space-2);
}

    .ns-decision-card__actions .ns-btn--sm {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.75rem;
    }

.ns-section-toggle {
    cursor: pointer;
    user-select: none;
}

button.ns-section-toggle {
    appearance: none;
    font: inherit;
}

    button.ns-section-toggle:hover {
        color: var(--foreground);
    }

.ns-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--ns-space-3);
}

.ns-skeleton {
    height: 96px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--muted) 25%, var(--border) 50%, var(--muted) 75%);
    background-size: 200% 100%;
    animation: ns-shimmer 1.2s infinite;
    margin-bottom: var(--ns-space-3);
}

.ns-skeleton--kpi {
    display: inline-block;
    width: 3.25rem;
    height: 1.1rem;
    margin: 0.15rem 0 0.2rem;
    vertical-align: middle;
    border-radius: 6px;
}

.ns-skeleton--kpi-wide {
    width: 5.5rem;
}

.ns-skeleton--row {
    height: 64px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}

    .ns-skeleton--row:last-child {
        border-bottom: none;
    }

@keyframes ns-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.ns-slot {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--ns-space-3);
    min-height: 100px;
    background: var(--card);
    color: var(--card-foreground);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .ns-slot:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

.ns-slot--filled {
    background: color-mix(in srgb, var(--success) 9%, var(--card));
    border-color: color-mix(in srgb, var(--success) 36%, var(--border));
    border-style: solid;
}

.ns-slot--empty {
    border-style: dashed;
    background: var(--background);
    border-color: color-mix(in srgb, var(--muted-foreground) 18%, var(--border));
}

.ns-slot:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Chip / pill selector (reason codes, filters, tags) */
.ns-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ns-space-2);
}

.ns-chip {
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--ns-space-1) var(--ns-space-3);
    background: var(--card);
    color: var(--foreground);
    cursor: pointer;
    font-size: var(--ns-text-sm);
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .ns-chip:hover {
        border-color: var(--primary);
        background: var(--accent);
    }

.ns-chip--selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

    .ns-chip--selected:hover {
        background: var(--ns-color-primary-2, #e05c1d);
        border-color: var(--ns-color-primary-2, #e05c1d);
        color: var(--primary-foreground);
    }

/* Badges & status pills */
.ns-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--ns-text-sm);
    padding: var(--ns-space-1) 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    line-height: 1.4;
}

.ns-decision-card .ns-badge {
    font-size: 0.6875rem;
    padding: 0.1rem 0.45rem;
    font-weight: 600;
    line-height: 1.35;
}

.ns-badge--warning {
    background: var(--warning-subtle);
    color: var(--warning-foreground);
}

.ns-badge--danger {
    background: rgba(241, 75, 91, 0.12);
    color: var(--destructive);
}

.ns-badge--success {
    background: rgba(30, 179, 134, 0.15);
    color: var(--ns-color-green-text, #1F4F2E);
}

.ns-badge--muted {
    background: var(--muted);
    color: var(--muted-foreground);
}

.ns-badge--outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.ns-badge--sm {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    line-height: 1.25;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. Surface helpers (optional card-in-card patterns)
   ═══════════════════════════════════════════════════════════════════════════ */

.ns-surface {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ns-surface--muted {
    background: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. Vehicle assets — stacked category sections + axle diagram
   ═══════════════════════════════════════════════════════════════════════════ */

.ns-vehicle-assets {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-5);
}

.ns-asset-section {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-3);
}

.ns-asset-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-3);
    flex-wrap: wrap;
}

.ns-asset-section__title {
    margin: 0;
    font-size: var(--ns-text-base);
    font-weight: 600;
}

.ns-asset-section__meta {
    display: block;
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.ns-asset-empty {
    padding: var(--ns-space-4);
    font-size: var(--ns-text-sm);
    color: var(--muted-foreground);
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.ns-axle-diagram {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-6);
    padding: var(--ns-space-5);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.ns-axle-row__label {
    font-size: var(--ns-text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: var(--ns-space-3);
}

.ns-axle-row__track {
    display: grid;
    grid-template-columns: 1fr minmax(56px, 96px) 1fr;
    align-items: center;
    gap: var(--ns-space-3);
}

.ns-axle-row__wheels {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ns-space-2);
    align-items: stretch;
}

.ns-axle-row__wheels--left {
    justify-content: flex-end;
}

.ns-axle-row__wheels--right {
    justify-content: flex-start;
}

.ns-axle-row__center {
    align-self: center;
    width: 100%;
    height: 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--border), var(--muted-foreground), var(--border));
    opacity: 0.35;
}

.ns-axle-slot {
    display: flex;
    flex-direction: column;
    flex: 0 1 132px;
    min-width: 112px;
    max-width: 148px;
    min-height: 128px;
    padding: var(--ns-space-3);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    .ns-axle-slot:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

.ns-axle-slot--empty {
    border-style: dashed;
    background: var(--background);
    border-color: color-mix(in srgb, var(--muted-foreground) 18%, var(--border));
    min-height: 136px;
}

    .ns-axle-slot--empty:hover {
        background: var(--accent);
        border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    }

.ns-axle-slot--filled {
    background: color-mix(in srgb, var(--success) 9%, var(--card));
    border-color: color-mix(in srgb, var(--success) 36%, var(--border));
    border-style: solid;
}

.ns-axle-slot--selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--ns-color-primary-rgb, 255, 104, 33), 0.2);
}

.ns-axle-mobile-row--selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--ns-color-primary-rgb, 255, 104, 33), 0.2);
}

.ns-vehicle-assets--readonly .ns-axle-slot,
.ns-vehicle-assets--readonly .ns-axle-mobile-row {
    cursor: default;
}

.ns-vehicle-assets--readonly .ns-axle-slot--filled,
.ns-vehicle-assets--readonly .ns-axle-mobile-row--filled {
    cursor: pointer;
}

.ns-vehicle-assets--readonly .ns-axle-slot a,
.ns-vehicle-assets--readonly .ns-axle-mobile-row a {
    pointer-events: auto;
    cursor: pointer;
}

.ns-axle-slot__label {
    font-weight: 700;
    font-size: var(--ns-text-sm);
    line-height: 1.2;
}

.ns-axle-slot__code {
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.ns-axle-slot__body {
    flex: 1;
    margin-top: var(--ns-space-2);
    font-size: var(--ns-text-xs);
    line-height: 1.35;
}

.ns-axle-slot__cta {
    margin-top: var(--ns-space-2);
    font-size: var(--ns-text-sm);
    font-weight: 600;
    color: var(--muted-foreground);
}

.ns-axle-slot--empty:hover .ns-axle-slot__cta {
    color: var(--primary);
}

.ns-axle-slot__actions {
    display: flex;
    gap: var(--ns-space-1);
    margin-top: var(--ns-space-2);
    padding-top: var(--ns-space-2);
    border-top: 1px solid var(--border);
}

.ns-axle-slot__action-btn {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    font-size: var(--ns-text-xs);
    line-height: 1.4;
    cursor: pointer;
    color: var(--foreground);
}

    .ns-axle-slot__action-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.ns-axle-slot__action-btn--danger:hover {
    border-color: var(--destructive);
    color: var(--destructive);
}

/* Mobile: list instead of diagram */
.ns-axle-diagram--desktop {
    display: flex;
}

.ns-axle-mobile-list {
    display: none;
}

@media (max-width: 991.98px) {
    .ns-axle-diagram--desktop {
        display: none;
    }

    .ns-axle-mobile-list {
        display: block;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .ns-axle-mobile-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: var(--ns-space-3);
        align-items: center;
        padding: var(--ns-space-3) var(--ns-space-4);
        border-bottom: 1px solid var(--border);
        min-height: 52px;
    }

    .ns-axle-mobile-row--filled {
        background: color-mix(in srgb, var(--success) 7%, var(--card));
    }

    .ns-axle-mobile-row--empty {
        background: var(--background);
    }

        .ns-axle-mobile-row--empty:active {
            background: var(--accent);
        }

    .ns-axle-mobile-row:last-child {
        border-bottom: none;
    }

    .ns-axle-mobile-row--filled:active {
        background: color-mix(in srgb, var(--success) 12%, var(--card));
    }
}

/* Non-axle positional layouts render as a simple wrap of slot cards */
.ns-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ns-space-3);
    padding: var(--ns-space-5);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Non-positional categories render as a flat installed list */
.ns-asset-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ns-asset-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-3);
    padding: var(--ns-space-3) var(--ns-space-4);
    background: var(--card);
}

    .ns-asset-list__row:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

/* Dialog footers */
.dialog-footer.ns-dialog-footer,
.ns-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ns-space-2);
    width: 100%;
    margin-top: var(--ns-space-3);
    padding-top: var(--ns-space-3);
    border-top: 1px solid var(--border);
}

/* Compact bootstrap dialog — shadcn-density form sheet */
.ns-modal.modal-dialog {
    margin: 1.5rem auto;
    max-width: 26rem;
}

.ns-modal.modal-dialog.modal-lg {
    max-width: 40rem;
}

.ns-modal .modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
}

.ns-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-2);
    padding: var(--ns-space-3) var(--ns-space-4);
    border-bottom: 1px solid var(--border);
    background: var(--card);
}

.ns-modal .modal-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
}

.ns-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-3);
    padding: var(--ns-space-4);
}

.ns-modal .modal-body.ns-modal__scroll {
    max-height: 60vh;
    overflow-y: auto;
}

.ns-modal .mb-3,
.ns-modal .mb-2 {
    margin-bottom: 0;
}

.ns-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--ns-space-2);
    padding: var(--ns-space-3) var(--ns-space-4);
    border-top: 1px solid var(--border);
    background: var(--card);
}

.ns-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ns-field .form-label,
.ns-modal .form-label {
    margin-bottom: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
}

.ns-modal .text-muted,
.ns-field .text-muted {
    font-size: 0.75rem;
}

/* Slot-assign dialog */
.ns-slot-assign {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-3);
}

    .ns-slot-assign .dialog-footer,
    .ns-slot-assign .ns-dialog-footer {
        margin-top: auto;
    }

.ns-slot-assign__odo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .ns-slot-assign__odo > label {
        font-size: var(--ns-text-xs);
        font-weight: 600;
        color: var(--muted-foreground);
    }

.ns-slot-assign__list {
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ns-slot-assign__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-3);
    width: 100%;
    padding: var(--ns-space-3) var(--ns-space-4);
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

    .ns-slot-assign__item:last-child {
        border-bottom: none;
    }

    .ns-slot-assign__item:hover:not(:disabled) {
        background: var(--accent);
    }

    .ns-slot-assign__item:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.ns-slot-assign__item-main {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ns-slot-assign__item-code {
    font-weight: 600;
    font-size: var(--ns-text-sm);
}

.ns-slot-assign__item-serial {
    font-size: var(--ns-text-xs);
    color: var(--muted-foreground);
}

.ns-slot-assign__item-cta {
    font-size: var(--ns-text-sm);
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.ns-slot-assign__item:disabled .ns-slot-assign__item-cta {
    color: var(--muted-foreground);
}

.ns-slot-assign__empty {
    text-align: center;
    padding: var(--ns-space-5) var(--ns-space-3);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.ns-slot-assign__tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--muted);
    border-radius: var(--radius);
}

.ns-slot-assign__tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: calc(var(--radius) - 2px);
    font-size: var(--ns-text-sm);
    font-weight: 600;
    color: var(--muted-foreground);
    cursor: pointer;
}

.ns-slot-assign__tab--active {
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.ns-slot-assign__field-label {
    display: block;
    font-size: var(--ns-text-xs);
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.ns-slot-assign__serial-grid {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 280px;
    overflow-y: auto;
}

.ns-slot-assign__serial-head,
.ns-slot-assign__serial-row {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) 2fr;
    gap: var(--ns-space-2);
    align-items: center;
    padding: 8px 12px;
}

.ns-slot-assign__serial-head {
    font-size: var(--ns-text-xs);
    font-weight: 600;
    color: var(--muted-foreground);
    background: var(--muted);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
}

.ns-slot-assign__serial-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.ns-slot-assign__serial-pos {
    font-size: var(--ns-text-sm);
    font-weight: 600;
}

.ns-slot-assign__serial-input {
    display: flex;
    align-items: center;
    min-width: 0;
}

    .ns-slot-assign__serial-input .custom-w-90 {
        flex: 1;
        min-width: 0;
    }

.ns-asset-bulk-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-2);
    margin-bottom: var(--ns-space-3);
    padding: var(--ns-space-3) var(--ns-space-4);
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--ns-text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. Generic layout builder (Settings > Position Layouts)
   Domain-agnostic: driven by the LayoutProfile (row/lane/slot nouns + render style).
   ═══════════════════════════════════════════════════════════════════════════ */

.ns-layout-builder {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-4);
}

.ns-layout-builder__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--ns-space-3);
    padding: var(--ns-space-4);
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.ns-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 220px;
    min-width: 160px;
}

.ns-field--sm {
    flex: 0 1 170px;
}

.ns-field > label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.ns-layout-builder__count {
    display: flex;
    gap: var(--ns-space-2);
    margin-left: auto;
    align-self: center;
}

.ns-layout-builder__canvas {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-4);
    padding: var(--ns-space-4);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-height: 55vh;
    overflow-y: auto;
}

.ns-layout-builder__empty {
    text-align: center;
    color: var(--muted-foreground);
    padding: var(--ns-space-5);
}

.ns-builder-row {
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: var(--ns-space-3) var(--ns-space-4);
    background: var(--background);
}

.ns-builder-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ns-space-3);
    margin-bottom: var(--ns-space-3);
}

.ns-builder-row__title {
    font-weight: 600;
    color: var(--foreground);
}

.ns-builder-row__tools {
    display: flex;
    gap: var(--ns-space-2);
    align-items: center;
}

.ns-builder-row__remove {
    border: none;
    background: transparent;
    color: var(--destructive);
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: var(--radius);
}

    .ns-builder-row__remove:hover {
        background: color-mix(in srgb, var(--destructive) 12%, transparent);
    }

.ns-slot--edit {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 118px;
    padding: var(--ns-space-3);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

.ns-slot__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    padding: 2px 4px;
    border-radius: var(--radius);
}

    .ns-slot__remove:hover {
        color: var(--destructive);
        background: color-mix(in srgb, var(--destructive) 12%, transparent);
    }

.ns-slot__input {
    width: 100%;
    font-size: 0.8rem;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
}

.ns-slot__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--muted-foreground);
    margin: 0;
}

.ns-builder-add-row {
    align-self: flex-start;
    border: 1px dashed var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary);
    font-weight: 600;
    padding: var(--ns-space-2) var(--ns-space-4);
    border-radius: var(--radius);
    cursor: pointer;
}

    .ns-builder-add-row:hover {
        background: color-mix(in srgb, var(--primary) 16%, transparent);
    }

/* ═══════════════════════════════════════════════════════════════════════════
   App shell — nav rail
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --ns-rail: 3.25rem;
    --ns-rail-expanded: 15.5rem;
    --ns-rail-width: var(--ns-rail-expanded);
    --ns-header-height: 60px;
    --ns-topbar-height: 3.25rem;
    --ns-canvas: var(--background);
}

.ns-shell {
    --ns-rail-width: var(--ns-rail-expanded);
    display: flex;
    height: 100vh;
    height: 100dvh;
    height: var(--ns-app-height, 100dvh);
    min-height: 0;
    width: 100%;
    align-items: stretch;
    overflow: hidden;
}

    .ns-shell.ns-shell--minimized {
        --ns-rail-width: var(--ns-rail);
    }

    .ns-shell .header {
        left: var(--ns-rail-width);
        width: auto;
        transition: left 0.18s ease;
    }

    .ns-shell .btn-footer-fixed {
        left: var(--ns-rail-width);
        right: 0;
        width: auto;
        transition: left 0.18s ease;
    }

    .ns-shell[dir="rtl"] .header,
    [dir="rtl"] .ns-shell .header {
        left: 0;
        right: var(--ns-rail-width);
    }

    .ns-shell[dir="rtl"] .btn-footer-fixed,
    [dir="rtl"] .ns-shell .btn-footer-fixed {
        left: 0;
        right: var(--ns-rail-width);
        width: auto;
    }

    .ns-shell .page-wrapper > .content:has(.btn-footer-fixed) {
        padding-bottom: 5rem;
    }

    .ns-shell[dir="rtl"] .btn-footer-fixed,
    [dir="rtl"] .ns-shell .btn-footer-fixed {
        left: 0;
        right: var(--ns-rail-width);
        transition: right 0.18s ease;
    }

    .ns-shell .page-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 0 !important;
        flex: 1;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

.ns-shell__main,
.ns-shell__inset {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--ns-canvas, var(--background));
    overflow: hidden;
}

.ns-shell__inset > .hidden-print {
    flex-shrink: 0;
}

.ns-shell__work {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.ns-shell__work:has(.ns-workbench) {
    overflow: hidden;
}

.ns-shell .page-wrapper:has(.ns-workbench) {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ns-shell .page-wrapper > .content:has(> .ns-page-toolbar) {
    padding: 0;
}

.ns-shell .page-wrapper > .content:has(.ns-workbench) {
    padding: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ns-shell .page-wrapper > .content > .ns-page-toolbar {
    flex-shrink: 0;
}

.ns-shell .page-wrapper > .content > .ns-workbench {
    flex: 1;
    min-height: 0;
}

.ns-shell .page-wrapper > .content > .ns-workbench.ns-workbench--stack {
    flex: 0 0 62vh;
    min-height: 62vh;
    height: 62vh;
}

.ns-rail {
    width: var(--ns-rail-width);
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: width 0.18s ease;
    z-index: 30;
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: var(--ns-app-height, 100dvh);
    position: sticky;
    top: 0;
    overflow: visible;
}

    .ns-rail:has(.ns-rail-user--open) {
        z-index: 1200;
    }

[dir="rtl"] .ns-rail {
    border-right: 0;
    border-left: 1px solid var(--border);
}

.ns-rail__brand {
    height: var(--ns-rail);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ns-space-2);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--ns-space-3);
    flex-shrink: 0;
    width: 100%;
}

.ns-rail__brand-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ns-space-2);
    min-width: 0;
    text-decoration: none;
    color: var(--foreground);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail__brand {
    justify-content: flex-start;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail__brand-home {
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
}

.ns-rail__logo-mark {
    width: calc(var(--ns-rail) - 0.5rem);
    height: calc(var(--ns-rail) - 0.5rem);
    object-fit: contain;
    flex-shrink: 0;
}

.ns-rail__logo-text {
    display: none;
    height: calc(var(--ns-rail) - 0.5rem);
    width: auto;
    max-width: 12rem;
    object-fit: contain;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail__logo-mark {
    display: none;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail__logo-text {
    display: block;
}

.ns-rail__toggle {
    display: none;
    margin-left: auto;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail__toggle {
    display: grid;
}

.ns-rail--minimized .ns-rail__brand:hover .ns-rail__brand-home {
    display: none;
}

.ns-rail--minimized .ns-rail__brand:hover .ns-rail__toggle {
    display: grid;
    margin-left: 0;
}

    .ns-rail__toggle .ns-nav-item__icon,
    .ns-rail__toggle .rz-icon,
    .ns-rail__toggle .rzi {
        font-size: 1.05rem !important;
        width: 1.05rem;
        height: 1.05rem;
        line-height: 1 !important;
    }

.ns-rail__toggle:hover {
    background: var(--muted);
    color: var(--foreground);
}

.ns-rail__nav {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.4rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

    .ns-rail__nav > *,
    .ns-nav-pinned,
    .ns-nav-group,
    .ns-nav-group__children {
        flex-shrink: 0;
    }

    .ns-rail__nav::-webkit-scrollbar {
        width: 4px;
    }

    .ns-rail__nav::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: var(--radius-full);
    }

.ns-rail__sep {
    height: 1px;
    background: color-mix(in srgb, var(--border) 90%, transparent);
    margin: 0.5rem 0.6rem;
    flex-shrink: 0;
}

.ns-rail-user {
    position: relative;
    flex-shrink: 0;
    margin: 0.35rem;
    z-index: 40;
    border-top: 1px solid var(--border);
}

.ns-rail-user__hit {
    position: relative;
    width: 100%;
}

.ns-rail-user__catch {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.ns-rail-user__btn {
    position: relative;
    z-index: 50;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    padding: 0.45rem 0.5rem;
    color: var(--foreground);
    cursor: pointer;
    font: inherit;
    text-align: start;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail-user__btn {
    justify-content: flex-start;
}

.ns-rail-user__btn:hover,
.ns-rail-user--open .ns-rail-user__btn {
    background: var(--muted);
}

.ns-rail-user__avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--foreground);
    color: var(--card, #fff);
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    line-height: 1;
}

.ns-rail-user__avatar--lg {
    width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
}

.ns-rail-user__meta {
    display: none;
    min-width: 0;
    flex: 1;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail-user__meta {
    display: block;
}

.ns-rail-user__name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-rail-user__role {
    display: block;
    font-size: 0.7rem;
    font-weight: 450;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-rail-user__chev {
    display: none;
    margin-left: auto;
    font-size: 0.9rem !important;
    width: 0.9rem;
    height: 0.9rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.ns-rail:not(.ns-rail--minimized) .ns-rail-user__chev {
    display: block;
}

.ns-rail-user--open .ns-rail-user__chev {
    transform: rotate(180deg);
}

.ns-rail-user__menu {
    position: absolute;
    z-index: 51;
    left: 0;
    bottom: calc(100% + 0.4rem);
    width: min(16rem, calc(100vw - 1.5rem));
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    box-shadow: var(--shadow-md, 0 12px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06));
    padding: 0.3rem;
}

.ns-rail--minimized .ns-rail-user__menu {
    left: calc(100% + 0.5rem);
    bottom: 0.35rem;
    width: 13rem;
}

[dir="rtl"] .ns-rail--minimized .ns-rail-user__menu {
    left: auto;
    right: calc(100% + 0.5rem);
}

.ns-rail-user__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.45rem 0.45rem;
    min-width: 0;
}

    .ns-rail-user__head > div {
        min-width: 0;
    }

    .ns-rail-user__head .ns-rail-user__name {
        font-size: 0.85rem;
    }

    .ns-rail-user__head .ns-rail-user__role {
        font-size: 0.72rem;
    }

.ns-rail-user__sep {
    height: 1px;
    background: var(--border);
    margin: 0.2rem 0.3rem;
}

.ns-rail-user__refer-amt {
    margin-left: 0.3em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: inherit;
}

.ns-nav-pinned {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-shrink: 0;
}

    .ns-nav-pinned:not(:has(.ns-nav-item)),
    .ns-nav-group:not(:has(.ns-nav-item)) {
        display: none;
    }

.ns-nav-group {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.ns-nav-item,
.ns-nav-group__btn,
.ns-rail-user__action {
    width: 100%;
    min-height: 2.15rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 0.5rem;
    color: #52525b;
    position: relative;
    padding: 0;
    text-decoration: none;
    font: inherit;
    line-height: 1;
    text-align: start;
    box-sizing: border-box;
}

.ns-rail:not(.ns-rail--minimized) .ns-nav-item,
.ns-rail:not(.ns-rail--minimized) .ns-nav-group__btn {
    justify-content: flex-start;
    padding: 0 0.55rem;
}

.ns-rail--minimized .ns-nav-item,
.ns-rail--minimized .ns-nav-group__btn {
    padding: 0;
}

.ns-nav-item:hover,
.ns-nav-group__btn:hover,
.ns-rail-user__action:hover {
    background: #f6f6f7;
    color: var(--foreground);
    text-decoration: none;
}

    .ns-nav-item:hover .ns-nav-label,
    .ns-nav-group__btn:hover .ns-nav-label,
    .ns-nav-item:hover .rz-icon,
    .ns-nav-group__btn:hover .rz-icon,
    .ns-rail-user__action:hover .rz-icon,
    .ns-nav-item:hover .ns-nav-item__icon,
    .ns-nav-group__btn:hover .ns-nav-chev {
        color: var(--foreground);
    }

.ns-nav-item--active,
.ns-nav-group__btn.ns-nav-item--active {
    background: #eeeef0;
    color: var(--foreground);
    box-shadow: none;
}

    .ns-nav-item--active .ns-nav-label,
    .ns-nav-item--active .rz-icon,
    .ns-nav-item--active .ns-nav-item__icon,
    .ns-nav-group__btn.ns-nav-item--active .ns-nav-label,
    .ns-nav-group__btn.ns-nav-item--active .rz-icon,
    .ns-nav-group__btn.ns-nav-item--active .ns-nav-chev {
        color: var(--foreground);
    }

.ns-nav-item .rz-icon,
.ns-nav-group__btn .rz-icon,
.ns-rail-user__action .rz-icon,
.ns-nav-item__icon,
.ns-nav-item .rzi,
.ns-nav-group__btn .rzi,
.ns-rail-user__action .rzi {
    color: inherit;
    font-size: 1.15rem !important;
    font-style: normal;
    font-weight: 400;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ns-nav-item__icon svg {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

.ns-rail-user__action {
    justify-content: flex-start;
    padding: 0 0.55rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.ns-tip[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--foreground);
    color: var(--background);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0.25rem 0.45rem;
    border-radius: 0.3rem;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.ns-rail-user__action.ns-tip[data-tip]::after {
    top: auto;
    left: auto;
    transform: none;
    bottom: calc(100% + 6px);
    inset-inline-start: 0.55rem;
}

.ns-tip[data-tip]:hover::after {
    opacity: 1;
}

.ns-notify-host.is-open .ns-tip[data-tip]::after {
    display: none;
}

.ns-rail-user__action--danger {
    color: var(--ns-color-danger, #dc2626);
}

    .ns-rail-user__action--danger .rz-icon {
        color: var(--ns-color-danger, #dc2626);
    }

    .ns-rail-user__action--danger:hover {
        background: color-mix(in srgb, var(--ns-color-danger, #dc2626) 10%, transparent);
        color: var(--ns-color-danger, #dc2626);
    }

        .ns-rail-user__action--danger:hover .rz-icon {
            color: var(--ns-color-danger, #dc2626);
        }

.ns-nav-label {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    height: auto;
    margin: 0;
    padding: 0;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
    align-self: center;
    transform: translateY(1px);
}

.ns-rail:not(.ns-rail--minimized) .ns-nav-label {
    display: block;
}

.ns-nav-chev {
    display: none;
    margin-left: auto;
    width: 0.85rem;
    height: 0.85rem;
    color: var(--muted-foreground);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    align-self: center;
    transform: translateY(1px);
}

    .ns-nav-chev .ns-nav-item__icon,
    .ns-nav-chev .rz-icon,
    .ns-nav-chev .rzi {
        width: 0.85rem;
        height: 0.85rem;
        font-size: 0.85rem !important;
    }

.ns-rail:not(.ns-rail--minimized) .ns-nav-chev {
    display: inline-flex;
}

.ns-nav-group--open > .ns-nav-group__btn .ns-nav-chev {
    transform: translateY(1px) rotate(90deg);
}

.ns-nav-item[data-tip]::after,
.ns-nav-group__btn[data-tip]::after {
    display: none;
}

.ns-nav-tip {
    position: fixed;
    z-index: 90;
    transform: translateY(-50%);
    background: var(--foreground);
    color: var(--background);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.45rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    pointer-events: none;
}

.ns-nav-tip[hidden] {
    display: none;
}

.ns-nav-pin {
    display: none;
    margin-left: auto;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0;
}

    .ns-nav-pin .rz-icon,
    .ns-nav-pin .rzi,
    .ns-nav-pin .ns-nav-item__icon {
        font-size: 0.8rem !important;
        width: 0.8rem;
        height: 0.8rem;
    }

.ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item:hover .ns-nav-pin,
.ns-nav-flyout .ns-nav-item:hover .ns-nav-pin,
.ns-rail:not(.ns-rail--minimized) .ns-nav-pinned .ns-nav-item:hover .ns-nav-pin {
    display: inline-flex;
}

.ns-nav-pin:hover {
    background: var(--muted);
    color: var(--foreground);
}

.ns-nav-pin--on {
    color: var(--foreground);
}

.ns-rail--minimized .ns-nav-pinned .ns-nav-pin {
    display: none !important;
}

.ns-nav-group__children {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.15s ease;
}

.ns-nav-group__children-inner {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ns-rail:not(.ns-rail--minimized) .ns-nav-group--open > .ns-nav-group__children {
    grid-template-rows: 1fr;
}

.ns-rail--minimized .ns-nav-group__children {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .ns-nav-group__children,
    .ns-nav-chev {
        transition: none;
    }
}

.ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item {
    min-height: 2rem;
    padding: 0 0.55rem 0 2.3rem;
    color: var(--muted-foreground);
    font-weight: 450;
    border-radius: 0.45rem;
}

    .ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item .ns-nav-label {
        font-size: 0.875rem;
    }

    .ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item > .ns-nav-item__icon,
    .ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item > .rz-icon,
    .ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item > .rzi {
        display: none;
    }

[dir="rtl"] .ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item {
    padding: 0 2.3rem 0 0.55rem;
}

.ns-rail:not(.ns-rail--minimized) .ns-nav-group__children .ns-nav-item--active {
    background: #eeeef0;
    color: var(--foreground);
    box-shadow: none;
}

.ns-nav-flyout {
    display: none;
    position: fixed;
    min-width: 11.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.35rem;
    z-index: 80;
    flex-direction: column;
    gap: 2px;
}

.ns-nav-group--fly-open > .ns-nav-flyout {
    display: flex;
}

.ns-nav-flyout__title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
    padding: 0.35rem 0.55rem 0.2rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ns-nav-flyout .ns-nav-item {
    justify-content: flex-start;
    padding: 0 0.5rem;
    gap: 0.5rem;
}

.ns-nav-flyout .ns-nav-label {
    display: block !important;
    font-size: 0.875rem;
}

.ns-nav-flyout .ns-nav-item::after {
    display: none !important;
}

.ns-rail:not(.ns-rail--minimized) .ns-nav-flyout {
    display: none !important;
}

.ns-rail-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.35);
    z-index: 1090;
    backdrop-filter: blur(2px);
}

.ns-shell--drawer-open .ns-rail-backdrop {
    display: block;
}

.ns-nav-mobile-btn {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.5rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
}

.ns-nav-mobile-btn__bar {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--foreground);
    border-radius: var(--radius-full);
}

.ns-shell .header .user-menu {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: 0;
    min-width: 0;
    z-index: 1;
}

    .ns-shell .header .user-menu > .subscription-banner-item {
        flex: 0 1 14rem;
        max-width: 14rem;
    }

.ns-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 0.85rem 0 0.15rem;
}

.ns-header-search-slot {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.ns-header-search {
    width: min(26rem, 100%);
    max-width: 100%;
    height: 2.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: var(--muted, #f4f6f8);
    color: var(--muted-foreground, #637381);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    min-width: 0;
    text-align: start;
}

    .ns-header-search:hover {
        background: color-mix(in srgb, var(--muted, #f4f6f8) 80%, #fff);
        border-color: var(--border);
    }

    .ns-header-search .rz-icon,
    .ns-header-search .rzi,
    .ns-header-search .ns-nav-item__icon {
        font-size: 1.05rem !important;
        width: 1.05rem;
        height: 1.05rem;
        color: var(--muted-foreground, #637381);
        flex-shrink: 0;
    }

.ns-header-search__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-header-search__kbd {
    margin-left: auto;
    font-size: 0.65rem;
    font-family: inherit;
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    padding: 0.05rem 0.3rem;
    color: var(--muted-foreground, #637381);
    flex-shrink: 0;
}

.ns-header-search__kbd::after {
    content: "Ctrl K";
}

html[data-ns-shortcut="meta"] .ns-header-search__kbd::after {
    content: "⌘ K";
}

.ns-header-fy {
    position: relative;
    flex-shrink: 0;
}

.ns-header-fy__hit {
    position: relative;
}

.ns-header-fy__label {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.55rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.ns-header-fy__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2rem;
    padding: 0 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: var(--muted, #f4f6f8);
    color: var(--muted-foreground);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

    .ns-header-fy__btn:hover,
    .ns-header-fy--open .ns-header-fy__btn {
        background: var(--rz-base-300, #eceff2);
        color: var(--ns-color-blue, #212B36);
    }

    .ns-header-fy__btn .rz-icon,
    .ns-header-fy__btn .rzi,
    .ns-header-fy__btn .ns-nav-item__icon {
        font-size: 0.95rem !important;
        width: 0.95rem;
        height: 0.95rem;
    }

.ns-header-fy__catch {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.ns-header-fy__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 11.5rem;
    z-index: 60;
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    padding: 0.3rem;
    box-shadow: var(--shadow-md, 0 12px 32px rgba(15, 23, 42, 0.12));
}

[dir="rtl"] .ns-header-fy__menu {
    right: auto;
    left: 0;
}

.ns-header-fy__caption {
    color: var(--muted-foreground);
    font-size: 0.68rem;
    padding: 0.35rem 0.55rem 0.2rem;
}

.ns-header-fy__item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    border-radius: 0.4rem;
    padding: 0.45rem 0.55rem;
    font-family: inherit;
    font-size: var(--rz-button-font-size, 0.875rem);
    font-weight: 600;
    color: var(--ns-color-blue-secondary, #4F5D71);
    cursor: pointer;
    text-align: start;
}

    .ns-header-fy__item:hover,
    .ns-header-fy__item.is-active {
        background: var(--muted);
        color: var(--foreground);
    }

.ns-header-fy__check {
    margin-left: auto;
    color: var(--foreground);
    font-size: 0.95rem !important;
}

@media (max-width: 992px) {
    .ns-topbar {
        justify-content: flex-start;
        gap: 0.4rem;
    }

    .ns-header-search-slot {
        flex: 0 0 auto;
        justify-content: flex-end;
        order: 2;
        margin-inline-start: auto;
    }

    .ns-topbar__left {
        order: 1;
    }

    .ns-topbar__right {
        order: 3;
        margin-inline-start: 0;
    }

    .ns-header-search {
        width: 2.15rem;
        padding: 0;
        justify-content: center;
    }

    .ns-header-search__label,
    .ns-header-search__kbd {
        display: none;
    }

    .ns-topbar .ns-rail-user__menu {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .ns-topbar .ns-rail-user__menu {
        left: 0;
        right: auto;
    }
}

@media (max-width: 992px) {
    .ns-shell,
    .ns-shell.ns-shell--minimized {
        --ns-rail-width: 0px;
    }

    .ns-rail {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1100;
        width: min(var(--ns-rail-expanded), 86vw);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow);
        height: 100vh;
        height: 100dvh;
        height: var(--ns-app-height, 100dvh);
    }

    [dir="rtl"] .ns-rail {
        inset: 0 0 0 auto;
        transform: translateX(105%);
    }

    .ns-shell--drawer-open .ns-rail,
    .ns-shell--drawer-open.ns-shell--minimized .ns-rail {
        transform: none;
        width: min(var(--ns-rail-expanded), 86vw);
        padding-left: env(safe-area-inset-left);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .ns-nav-mobile-btn {
        display: flex;
    }

    .ns-rail .ns-nav-label {
        display: block !important;
    }

    .ns-rail .ns-rail__logo-text,
    .ns-rail .ns-nav-chev {
        display: inline !important;
    }

    .ns-rail .ns-rail__logo-mark {
        display: none !important;
    }

    .ns-rail .ns-rail__logo-text {
        display: block !important;
    }

    .ns-rail .ns-rail__brand {
        justify-content: flex-start;
    }

    .ns-rail .ns-rail__toggle {
        display: none !important;
    }

    .ns-rail .ns-nav-item,
    .ns-rail .ns-nav-group__btn {
        justify-content: flex-start;
        padding: 0 0.55rem;
    }

    .ns-nav-group--open > .ns-nav-group__children {
        grid-template-rows: 1fr;
    }

    .ns-rail .ns-nav-group__children .ns-nav-item {
        min-height: 2rem;
        padding: 0 0.55rem 0 2.3rem;
        color: var(--muted-foreground);
        border-radius: 0.45rem;
    }

        .ns-rail .ns-nav-group__children .ns-nav-item .ns-nav-label {
            font-size: 0.875rem;
        }

        .ns-rail .ns-nav-group__children .ns-nav-item > .ns-nav-item__icon,
        .ns-rail .ns-nav-group__children .ns-nav-item > .rz-icon,
        .ns-rail .ns-nav-group__children .ns-nav-item > .rzi {
            display: none;
        }

    .ns-rail .ns-nav-group__children .ns-nav-item--active {
        background: #eeeef0;
        box-shadow: none;
        color: var(--foreground);
    }

    .ns-nav-flyout {
        display: none !important;
    }

    .ns-rail .ns-nav-item::after,
    .ns-rail .ns-nav-group__btn::after {
        display: none;
    }

    .ns-rail .ns-rail-user__meta,
    .ns-rail .ns-rail-user__chev {
        display: block !important;
    }

    .ns-rail .ns-rail-user__btn {
        justify-content: flex-start;
    }

    .ns-rail--minimized .ns-rail-user__menu {
        left: 0;
        right: auto;
        bottom: calc(100% + 0.4rem);
        width: min(13rem, calc(100% - 0.4rem));
    }

    [dir="rtl"] .ns-rail--minimized .ns-rail-user__menu {
        left: auto;
        right: 0;
    }
}

.ns-nav-item:has(.team-inbox-menu-badge) .ns-nav-pin {
    margin-left: 0;
}

.team-inbox-menu-badge {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0;
}

.ns-rail--minimized .team-inbox-menu-badge,
.ns-rail--minimized .ns-nav-badge,
.ns-rail--minimized .menu-beta-badge {
    display: none !important;
}

/* Route stops table (BookingStopsEditor) */
.booking-stops-editor.ns-panel--compact {
    padding: 0;
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
    container-type: inline-size;
    container-name: booking-stops;
}

.booking-stops-editor .panel-head,
.booking-stops-editor .ns-panel__header {
    margin-bottom: 0;
    padding: 14px 16px 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-stops-editor .panel-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.booking-stops-editor .ns-panel__body {
    padding: 0 16px 14px;
}

.booking-stops-editor .section-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ns-color-blue, #212B36);
}

.booking-stops-editor .section-title .count {
    font-size: 12px;
    font-weight: 500;
    color: var(--ns-color-gray, #637381);
}

.ns-table__scroll {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid var(--border, #e8e6e6);
    border-radius: var(--radius, 8px);
}

.ns-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    min-width: 0;
    font-size: 13px;
}

.ns-table thead th,
.ns-table tbody td {
    text-align: left;
    padding: 8px 8px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border, #e8e6e6);
}

.ns-table thead th {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ns-color-gray, #637381);
    background: var(--muted, #f4f4f5);
    height: 40px;
    white-space: nowrap;
    user-select: none;
}

.ns-table tbody td {
    background: var(--ns-color-white, #fff);
}

.ns-table--route tbody tr.stop-row:hover .drag-handle {
    opacity: 1;
    color: var(--ns-color-gray, #637381);
}

.ns-table--route tbody tr.stop-row > td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: top;
}

.ns-table--route tbody tr.stop-row.is-expanded td,
.ns-table--route tbody tr.stop-row:has(+ tr.stop-clocks) > td {
    border-bottom-color: transparent;
}

.ns-table--route tbody tr.stop-row.is-skipped > td {
    opacity: 0.55;
}

.ns-table--route tbody tr.stop-row.is-skipped.is-expanded > td {
    opacity: 1;
}

.ns-table--route tbody tr.stop-clocks > td {
    padding-top: 0;
    padding-bottom: 12px;
    vertical-align: top;
}

.ns-table--route tbody tr.stop-clocks:has(+ tr.stop-detail) > td {
    border-bottom-color: transparent;
}

.ns-table--route tbody tr.stop-clocks.is-skipped > td {
    opacity: 0.55;
}

.booking-stops-editor.is-reordering {
    user-select: none;
}

.ns-table--route .col-drag { width: 36px; }
.ns-table--route .col-num {
    width: 36px;
    color: var(--ns-color-gray, #637381);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 500;
}
.ns-table--route .col-type { width: 118px; }
.ns-table--route .col-addr { width: auto; min-width: 0; }
.ns-table--route .col-pod { width: 44px; text-align: center; }
.ns-table--route .col-status { width: 128px; }
.ns-table--route .col-expand { width: 40px; text-align: center; }

.ns-table--route .col-clocks {
    min-width: 0;
}

.ns-table--route .addr-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
    gap: 8px 10px;
    width: 100%;
    min-width: 0;
}

.ns-table--route .addr-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ns-table--route .addr-time-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ns-color-gray, #637381);
}

@container booking-stops (max-width: 559px) {
    .ns-table--route .addr-times {
        grid-template-columns: minmax(0, 1fr);
    }

    .ns-table--route tr.stop-detail > td {
        padding: 0 10px 12px;
    }
}

@media (max-width: 576px) {
    .booking-stops-editor .ns-table__scroll {
        overflow-x: auto;
    }

    .ns-table--route .addr-times {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ns-table--route thead th.col-pod,
.ns-table--route td.col-pod { text-align: center; }

.ns-table--route .stop-reorder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 28px;
}

.ns-table--route .reorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--ns-color-gray, #637381);
    opacity: 0.45;
    cursor: pointer;
}

.ns-table--route .reorder-btn:hover:not(:disabled),
.ns-table--route .reorder-btn:focus-visible:not(:disabled) {
    opacity: 1;
    color: var(--ns-color-blue, #212B36);
    background: var(--muted, #f4f4f5);
    outline: none;
}

.ns-table--route .reorder-btn:disabled {
    opacity: 0.18;
    cursor: default;
}

.ns-table--route .reorder-btn svg {
    display: block;
    width: 12px;
    height: 8px;
}

.ns-table--route .drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--ns-color-gray, #637381);
    opacity: 0.35;
    cursor: grab;
    border-radius: 4px;
    user-select: none;
    touch-action: none;
}

.ns-table--route .drag-handle:hover,
.ns-table--route .drag-handle:focus-visible,
.ns-table--route .drag-handle.is-grabbing {
    opacity: 1;
    color: var(--ns-color-blue, #212B36);
    background: var(--muted, #f4f4f5);
    outline: none;
}

.ns-table--route .drag-handle:active,
.ns-table--route .drag-handle.is-grabbing { cursor: grabbing; }
.ns-table--route .drag-handle svg { display: block; width: 10px; height: 16px; pointer-events: none; }

.ns-table--route tbody tr.stop-row.drag-over td,
.ns-table--route tbody tr.stop-clocks.drag-over td,
.ns-table--route tbody tr.stop-detail.drag-over td {
    box-shadow: inset 0 2px 0 0 var(--ns-color-primary, #ff6821);
}

.ns-table--route .expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
}

.ns-table--route .expand-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform .18s ease;
}

.ns-table--route tr.stop-row.is-expanded .expand-btn svg {
    transform: rotate(180deg);
}

.ns-table--route tr.stop-row.is-expanded .expand-btn {
    background: var(--muted, #f4f4f5);
    color: var(--ns-color-blue, #212B36);
}

.ns-table--route tr.stop-detail > td {
    height: auto;
    padding: 0 12px 14px 40px;
    background: color-mix(in srgb, var(--muted, #f4f4f5) 45%, #fff) !important;
    border-bottom: 1px solid var(--border, #e8e6e6);
}

.ns-table--route .detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border, #e8e6e6);
    border-radius: var(--radius, 8px);
    background: var(--ns-color-white, #fff);
}

@container booking-stops (min-width: 640px) {
    .ns-table--route .detail-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
        gap: 12px 16px;
        padding: 12px;
    }
}

@container booking-stops (max-width: 639px) {
    .ns-table__scroll {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .ns-table--route {
        table-layout: auto;
        min-width: 0;
    }

    .ns-table--route thead {
        display: none;
    }

    .ns-table--route tbody tr.stop-row {
        display: grid;
        grid-template-columns: 28px 24px minmax(0, 1fr) minmax(0, 1fr) 36px 36px;
        grid-template-areas:
            "drag num type status pod expand"
            "addr addr addr addr addr addr";
        gap: 8px;
        padding: 10px;
        margin: 0;
        border: 1px solid var(--border, #e8e6e6);
        border-radius: 8px;
        background: var(--ns-color-white, #fff);
    }

    .ns-table--route tbody tr.stop-row:has(+ tr.stop-clocks),
    .ns-table--route tbody tr.stop-row:has(+ tr.stop-detail) {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
    }

    .ns-table--route tbody tr.stop-row > td {
        width: auto !important;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ns-table--route .col-drag { grid-area: drag; }
    .ns-table--route .col-num { grid-area: num; align-self: center; }
    .ns-table--route .col-type { grid-area: type; }
    .ns-table--route .col-addr { grid-area: addr; }
    .ns-table--route .col-status { grid-area: status; }
    .ns-table--route .col-pod { grid-area: pod; align-self: center; }
    .ns-table--route .col-expand { grid-area: expand; align-self: center; }

    .ns-table--route tbody tr.stop-clocks,
    .ns-table--route tbody tr.stop-detail {
        display: block;
        margin: 0 0 10px;
        padding: 0 10px 10px;
        border: 1px solid var(--border, #e8e6e6);
        border-top: 0;
        border-radius: 0 0 8px 8px;
        background: var(--ns-color-white, #fff);
    }

    .ns-table--route tbody tr.stop-clocks:has(+ tr.stop-detail) {
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
        padding-bottom: 8px;
    }

    .ns-table--route tbody tr.stop-clocks > td:not(.col-clocks) {
        display: none;
    }

    .ns-table--route tbody tr.stop-clocks > td.col-clocks,
    .ns-table--route tbody tr.stop-detail > td {
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ns-table--route tbody tr.stop-row:not(:has(+ tr.stop-clocks)):not(:has(+ tr.stop-detail)) {
        margin-bottom: 10px;
    }
}

.ns-table--route .detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ns-table--route .detail-field--actions {
    grid-column: 1 / -1;
    align-items: center;
}

.ns-table--route .detail-remove {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--ns-color-red, #dc3545);
    cursor: pointer;
    white-space: nowrap;
}

.ns-table--route .detail-remove:hover,
.ns-table--route .detail-remove:focus-visible {
    text-decoration: underline;
    outline: none;
}

.ns-table--route .detail-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ns-color-gray, #637381);
}

.ns-table--route .detail-input,
.ns-table--route .detail-textarea {
    width: 100%;
    border: 1px solid var(--border, #e8e6e6);
    background: var(--ns-color-white, #fff);
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ns-color-blue, #212B36);
    padding: 8px 10px;
    outline: none;
}

.ns-table--route .detail-textarea {
    min-height: 64px;
    resize: vertical;
    font-weight: 400;
    line-height: 1.45;
}

.ns-table--route .detail-input:focus,
.ns-table--route .detail-textarea:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.ns-table--route .badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ns-table--route .badge--done {
    color: #0f766e;
    background: color-mix(in srgb, var(--ns-color-green, #1EB386) 14%, #fff);
    border-color: color-mix(in srgb, var(--ns-color-green, #1EB386) 22%, #fff);
}

.ns-table--route .badge--active {
    color: var(--ns-color-secondary, #3068A4);
    background: color-mix(in srgb, var(--ns-color-secondary, #3068A4) 12%, #fff);
    border-color: color-mix(in srgb, var(--ns-color-secondary, #3068A4) 20%, #fff);
}

.ns-table--route .badge--arrived {
    color: #92400e;
    background: color-mix(in srgb, var(--ns-color-yellow, #ffc107) 22%, #fff);
    border-color: color-mix(in srgb, var(--ns-color-yellow, #ffc107) 35%, #fff);
}

.ns-table--route .badge--pending {
    color: var(--ns-color-gray, #637381);
    background: var(--muted, #f4f4f5);
    border-color: var(--border, #e8e6e6);
}

.ns-table--route .badge--skip {
    color: var(--ns-color-gray, #637381);
    background: transparent;
    border-color: var(--border, #e8e6e6);
    font-weight: 500;
    font-style: italic;
}

.ns-table--route .assumed {
    font-size: 10px;
    font-weight: 500;
    color: var(--ns-color-gray, #637381);
}

.ns-table--route .pod {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ns-color-gray, #637381);
    cursor: pointer;
    position: relative;
}

.ns-table--route .pod:hover:not(:disabled) {
    background: var(--muted, #f4f4f5);
    color: var(--ns-color-blue, #212B36);
}

.ns-table--route .pod.has-files { color: var(--ns-color-green, #1EB386); }
.ns-table--route .pod:disabled { opacity: 0.4; cursor: not-allowed; }
.ns-table--route .pod svg { width: 15px; height: 15px; display: block; }

.ns-table--route .pod .count {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 12px;
    height: 12px;
    padding: 0 3px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 12px;
    color: #fff;
    background: var(--ns-color-green, #1EB386);
}

.ns-table--route .rz-dropdown,
.ns-table--route .rz-textbox,
.ns-table--route .rz-datepicker {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.ns-table--route .addr-time .rz-datepicker,
.ns-table--route .addr-time .rz-datepicker .rz-inputgroup,
.ns-table--route .addr-time .rz-datepicker input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.booking-trip-clock {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.booking-trip-clock .section-title {
    width: 100%;
}

.booking-trip-clock__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}

.booking-trip-clock__value {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.3;
    color: var(--ns-color-blue);
}

.booking-trip-clock__est-pay {
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ns-color-gray);
}

@media (max-width: 991px) {
    .booking-trip-clock__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .booking-trip-clock__fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.booking-page .form-group {
    margin-bottom: 10px;
}

.booking-page .form-group label {
    margin-bottom: 2px;
    min-height: 20px;
}

.booking-addr-field {
    position: relative;
}

.booking-addr-field__route {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    cursor: pointer;
}

.booking-addr-field__route .rz-icon,
.booking-addr-field__route .rzi {
    font-size: 18px;
}

.booking-page .rz-datepicker,
.booking-page .rz-datepicker.rz-state-focus,
.booking-page .rz-datepicker:not(:disabled):not(.rz-state-disabled),
.booking-page .rz-datepicker:not(:disabled):not(.rz-state-disabled):hover,
.booking-page .rz-datepicker:focus,
.booking-page .rz-datepicker:focus-within,
.booking-page .rz-autocomplete,
.booking-page .rz-autocomplete.rz-state-focus,
.booking-page .rz-autocomplete.rz-state-empty,
.booking-page .rz-autocomplete:not(:disabled):not(.rz-state-disabled):hover,
.booking-page .rz-autocomplete:focus-within,
.booking-page .rz-dropdown,
.booking-page .rz-dropdown.rz-state-focus,
.booking-page .rz-dropdown.rz-state-empty,
.booking-page .rz-dropdown.rz-dropdown-open,
.booking-page .rz-dropdown:not(:disabled):not(.rz-state-disabled),
.booking-page .rz-dropdown:not(:disabled):not(.rz-state-disabled):hover,
.booking-page .rz-dropdown:not(:disabled):not(.rz-state-disabled):focus,
.booking-page .rz-dropdown:focus-within,
.booking-page .rz-textbox,
.booking-page .rz-textbox:not(:disabled):not(.rz-state-disabled),
.booking-page .rz-textbox:not(:disabled):not(.rz-state-disabled):hover,
.booking-page .rz-textbox:not(:disabled):not(.rz-state-disabled):focus,
.booking-page .numerictxtbox-wrapper,
.booking-page .numerictxtbox-wrapper:hover {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #ced4da !important;
    border-block-end: 1px solid #ced4da !important;
    border-radius: 4px;
    background-color: #fff;
}

.booking-page .numerictxtbox-wrapper .rz-numeric,
.booking-page .numerictxtbox-wrapper .rz-numeric.rz-state-focus,
.booking-page .numerictxtbox-wrapper .rz-numeric:not(:disabled):not(.rz-state-disabled):hover,
.booking-page .numerictxtbox-wrapper .rz-numeric:focus-within {
    border: 0 !important;
    border-block-end: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    width: 100%;
}

.booking-page .rz-datepicker .rz-inputgroup,
.booking-page .rz-datepicker .rz-inputgroup:hover,
.booking-page .rz-datepicker .rz-inputgroup:focus-within,
.booking-page .rz-datepicker > .rz-inputtext,
.booking-page .rz-datepicker > .rz-inputtext:not(:disabled):not(.rz-state-disabled),
.booking-page .rz-datepicker > .rz-inputtext:not(:disabled):not(.rz-state-disabled):hover,
.booking-page .rz-datepicker > .rz-inputtext:not(:disabled):not(.rz-state-disabled):focus,
.booking-page .rz-datepicker .rz-inputtext,
.booking-page .rz-datepicker .rz-inputtext:hover,
.booking-page .rz-datepicker .rz-inputtext:focus,
.booking-page .rz-datepicker .rz-inputtext:focus-visible,
.booking-page .rz-numeric input,
.booking-page .rz-autocomplete input,
.booking-page .rz-autocomplete textarea {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-block-end: 0 !important;
    background: transparent;
}

.booking-page .rz-autocomplete.booking-textarea,
.booking-page textarea.booking-textarea {
    box-sizing: border-box !important;
    width: 100%;
    height: 76px !important;
    min-height: 76px !important;
    padding: 8px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    outline: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: var(--ns-color-gray) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    resize: vertical;
}

.booking-page .rz-autocomplete.booking-textarea {
    display: flex !important;
    align-items: stretch;
    padding: 0 !important;
}

.booking-page .rz-autocomplete.booking-textarea textarea {
    box-sizing: border-box !important;
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--ns-color-gray) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    resize: vertical;
}

.booking-page .form-control:focus,
.booking-page .form-group input[type=text]:focus,
.booking-page .rz-inputtext:focus,
.booking-page input:focus,
.booking-page textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ced4da !important;
}

.booking-page .valid.modified:not([type=checkbox]),
.booking-page .invalid {
    outline: none !important;
}


.ns-boot {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--ns-color-bg-light);
}

.ns-boot-logo {
    height: 36px;
    width: auto;
}

.ns-boot-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--ns-color-lightgray2);
    border-top-color: var(--ns-color-primary);
    border-radius: 50%;
    animation: ns-boot-spin 0.7s linear infinite;
}

.ns-boot-label {
    font-family: Nunito, sans-serif;
    font-size: 13px;
    color: var(--ns-color-gray);
}

@keyframes ns-boot-spin {
    to {
        transform: rotate(360deg);
    }
}

.ns-topbar {
    height: var(--ns-topbar-height);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--ns-space-3);
    padding: 0 var(--ns-space-4);
    border-bottom: 1px solid var(--border);
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 40;
}

.ns-topbar__left,
.ns-topbar__right {
    display: flex;
    align-items: center;
    gap: var(--ns-space-2);
    flex-shrink: 0;
}

.ns-topbar__mark {
    display: none;
    height: calc(var(--ns-topbar-height) - 0.9rem);
    width: auto;
    max-width: min(8.5rem, 42vw);
    object-fit: contain;
}

.ns-topbar__icon-btn.ns-topbar__menu-btn {
    display: none;
}

.ns-topbar__icon-btn {
    position: relative;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--card, #fff);
    color: var(--muted-foreground);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

    .ns-topbar__icon-btn .ns-nav-item__icon,
    .ns-topbar__icon-btn .rz-icon,
    .ns-topbar__icon-btn .rzi {
        font-size: 0.95rem !important;
        width: 0.95rem;
        height: 0.95rem;
        line-height: 1 !important;
    }

.ns-topbar .ns-rail-user {
    border-top: 0;
    margin: 0;
}

.ns-topbar .ns-rail-user__hit {
    width: auto;
}

.ns-topbar .ns-rail-user__btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    justify-content: center;
}

.ns-topbar .ns-rail-user__meta,
.ns-topbar .ns-rail-user__chev {
    display: none;
}

.ns-topbar .ns-rail-user__menu {
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + 0.4rem);
}

.ns-rail-user__phone-fy {
    display: none;
}

.ns-shell-dialog h3 {
    margin: 0 0 0.5rem;
    font-size: var(--ns-text-base);
}

.ns-shell-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--ns-space-2);
    margin-top: var(--ns-space-4);
}

.ns-topbar__icon-btn:hover {
    background: var(--muted);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.ns-topbar__count {
    position: absolute;
    top: -0.2rem;
    inset-inline-end: -0.2rem;
    z-index: 1;
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.22rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1.5px solid var(--card, #fff);
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.ns-topbar__vsep {
    width: 1px;
    height: 1.25rem;
    background: var(--border);
}

.ns-kbar-veil {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(15, 23, 42, 0.32);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 11vh 1rem 2rem;
}

.ns-kbar {
    width: min(34rem, 92vw);
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
}

.ns-kbar__input {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
}

    .ns-kbar__input .ns-nav-item__icon,
    .ns-kbar__input .rz-icon,
    .ns-kbar__input .rzi {
        font-size: 0.95rem !important;
        width: 0.95rem;
        height: 0.95rem;
        line-height: 1 !important;
        color: var(--muted-foreground);
        flex-shrink: 0;
    }

.ns-kbar__input input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    color: var(--foreground);
}

.ns-kbar__list {
    max-height: 46vh;
    overflow: auto;
    padding: 0.35rem;
}

.ns-kbar__sec {
    padding: 0.5rem 0.55rem 0.25rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--muted-foreground);
    text-transform: uppercase;
}

.ns-kbar__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.48rem 0.55rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    color: var(--foreground);
    cursor: pointer;
    text-align: start;
}

    .ns-kbar__item .ns-nav-item__icon,
    .ns-kbar__item .rz-icon,
    .ns-kbar__item .rzi {
        font-size: 0.85rem !important;
        width: 0.85rem;
        height: 0.85rem;
        line-height: 1 !important;
        color: var(--muted-foreground);
        flex-shrink: 0;
    }

.ns-kbar__item.is-selected,
.ns-kbar__item:hover {
    background: var(--accent, #f4f4f5);
}

.ns-kbar__path {
    margin-inline-start: auto;
    color: var(--muted-foreground);
    font-size: 0.65rem;
    flex-shrink: 0;
}

.ns-kbar__empty {
    padding: 1.1rem 0.9rem;
    color: var(--muted-foreground);
    font-size: 0.78rem;
}

.ns-kbar__foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0.9rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.72rem;
    line-height: 1;
}

    .ns-kbar__foot > span {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .ns-kbar__foot kbd {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 1.15rem;
        font-family: inherit;
        font-size: 0.65rem;
        font-weight: 400;
        line-height: 1;
        color: var(--muted-foreground);
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 0.25rem;
        padding: 0.1rem 0.3rem;
        box-shadow: none;
    }

.ns-toast {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 1500;
    max-width: 20rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius);
    background: var(--foreground);
    color: var(--card);
    font-size: var(--ns-text-sm);
    opacity: 0;
    pointer-events: none;
}

.ns-toast.is-visible {
    opacity: 1;
}

.ns-notify-host {
    position: relative;
    flex-shrink: 0;
}

.ns-notify-host__catch {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.ns-notify-host .ns-topbar__icon-btn {
    position: relative;
    z-index: 50;
}

.ns-notify {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.4rem);
    width: min(26rem, 92vw);
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    z-index: 51;
    overflow: hidden;
}

.ns-notify__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem 0.55rem;
}

    .ns-notify__head strong {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--foreground);
    }

.ns-notify__mark {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

    .ns-notify__mark:hover {
        text-decoration: underline;
    }

.ns-notify__list {
    max-height: 28rem;
    overflow: auto;
    padding: 0.15rem 0.35rem 0.25rem;
}

.ns-notify__empty {
    padding: 1.1rem 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.78rem;
}

.ns-notify__row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.55rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.ns-notify__row:hover {
    background: var(--muted);
}

.ns-notify__dot {
    width: 0.42rem;
    height: 0.42rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: transparent;
    flex-shrink: 0;
}

.ns-notify__row.is-unread .ns-notify__dot {
    background: var(--primary);
}

.ns-notify__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.ns-notify__title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
}

.ns-notify__body {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.7rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.ns-notify__time {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.68rem;
    margin-top: 0.15rem;
}

.ns-notify__all {
    display: block;
    padding: 0.65rem 0.9rem 0.75rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
}

    .ns-notify__all:hover {
        color: var(--foreground);
        text-decoration: underline;
    }

.ns-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ns-space-2);
    padding: 0.4rem 0.75rem;
}

.ns-page-toolbar > * {
    flex-shrink: 0;
}

.ns-page-toolbar > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1 1 auto;
    flex-shrink: 1;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0;
}

.ns-page-toolbar > .row > [class*="col-"] {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    padding-inline: 0.25rem;
}

.ns-page-toolbar .form-group {
    margin-bottom: 0;
}

.ns-page-toolbar .form-group label {
    display: none;
}

.ns-page-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ns-space-2);
    margin-inline-start: auto;
}

.ns-page-toolbar__actions .btn-filters {
    width: 41px;
    height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ns-table-host {
    padding: 0.65rem;
}

.ns-page-head {
    flex-shrink: 0;
    padding: 0.65rem 0.65rem 0;
}

.ns-page-head .page-header {
    margin-bottom: 0.65rem;
}

.ns-due-list {
    max-height: 12.5rem;
    overflow: auto;
}

.ns-due-list .ns-list-row {
    padding: 0.5rem 0.85rem;
}

.ns-workbench {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 17.5rem 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.65rem;
    overflow: hidden;
}

.ns-workbench.ns-workbench--stack {
    min-height: 62vh;
    height: 62vh;
}

.ns-workbench.ns-workbench--stack .ns-pane {
    height: 100%;
}

.ns-pane {
    min-width: 0;
    min-height: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.ns-pane--list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ns-entity-list__search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.45rem 0.5rem 0;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--input);
    border-radius: 0.4rem;
    background: var(--background);
    flex-shrink: 0;
}

.ns-entity-list__search:focus-within {
    border-color: var(--ring);
}

.ns-entity-list__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 0.75rem;
    color: var(--foreground);
}

.ns-entity-list__search input[type="search"]::-webkit-search-cancel-button,
.ns-entity-list__search input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.ns-entity-list__search .ns-nav-item__icon,
.ns-entity-list__search .rz-icon,
.ns-entity-list__search .rzi {
    font-size: 0.85rem !important;
    width: 0.85rem;
    height: 0.85rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.ns-entity-list__search-clear {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
}

.ns-entity-list__search-clear:hover {
    background: var(--muted);
    color: var(--foreground);
}

.ns-entity-list__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
    padding: 0.45rem 0.5rem 0.4rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.ns-entity-list__chips .ns-chip {
    font-size: 0.7rem;
    line-height: 1;
    height: 1.55rem;
    padding: 0 0.55rem;
    background: var(--muted);
    color: var(--muted-foreground);
}

.ns-entity-list__chips .ns-chip[aria-pressed="true"] {
    background: var(--foreground);
    border-color: var(--foreground);
    color: var(--card);
}

.ns-entity-list__chips .ns-chip--clear,
.ns-entity-list__chips .ns-chip--clear:hover {
    border-color: transparent;
    background: transparent;
    color: var(--primary);
}

.ns-pane--list [role="listbox"] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ns-pane--list [role="listbox"].ns-entity-list {
    overflow: auto;
}

.ns-pane--detail {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.ns-pane--detail > * {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.ns-pane--detail:has(.btn-footer-fixed) > * {
    overflow: hidden;
}

.ns-pane--detail .content {
    padding: 0.75rem 0.85rem 0;
}

.ns-pane--detail .booking-page.content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.75rem 0.85rem 0;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.ns-pane--detail .booking-page.content > form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ns-pane--detail .booking-form-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-bottom: 3.25rem;
}

.booking-pane-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 30;
    padding: 5px 10px;
    background-color: var(--bs-gray-200);
    height: 46px;
    box-sizing: border-box;
}

.booking-pane-footer .btn {
    float: right;
    margin-left: 10px;
    height: 36px;
    min-width: 85px;
    font-weight: 700;
    font-size: 14px;
}

.ns-pane--detail .btn-footer-fixed > .rzi,
.ns-pane--detail .btn-footer-fixed > .rz-icon {
    display: none;
}

@media (min-width: 769px) {
    .ns-pane--detail .col-custom {
        width: 33.33%;
    }

    .ns-pane--detail .col-custom-span-2 {
        width: 66.66%;
    }
}

@media (min-width: 1600px) {
    .ns-pane--detail .col-custom {
        width: 25%;
    }

    .ns-pane--detail .col-custom-span-2 {
        width: 50%;
    }
}

@media (min-width: 1920px) {
    .ns-pane--detail .col-custom {
        width: 20%;
    }

    .ns-pane--detail .col-custom-span-2 {
        width: 40%;
    }
}

.ns-entity-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ns-entity-list__count {
    padding: 0.45rem 0.65rem 0.55rem;
    font-size: 0.66rem;
    color: var(--muted-foreground);
    text-align: center;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.ns-entity-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    background: var(--card);
    text-align: start;
}

.ns-entity-card:hover {
    background: color-mix(in srgb, var(--muted) 45%, #fff);
}

.ns-entity-card.is-selected {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
    background: color-mix(in srgb, var(--primary) 6%, #fff);
}

.ns-entity-card__body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.65rem 0.7rem 0.2rem;
    border: 0;
    background: transparent;
    text-align: start;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.ns-entity-card__body:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
}

.ns-entity-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.ns-entity-card__id {
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--foreground);
}

.ns-entity-card__status {
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
}

.ns-entity-card__who {
    font-size: 0.7rem;
    color: var(--foreground);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-entity-card__route,
.ns-entity-card__meta {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-entity-card__bottom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.05rem;
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

.ns-entity-card__date {
    margin-inline-start: auto;
    font-size: 0.64rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
}

.ns-entity-card__money {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem;
    font-size: 0.72rem;
    color: var(--muted-foreground);
    margin-top: 0.12rem;
    font-variant-numeric: tabular-nums;
}

    .ns-entity-card__money b,
    .ns-entity-card__due {
        color: var(--foreground);
        font-weight: 600;
    }

.ns-entity-card__actions {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.55rem 0.5rem;
    border-top: 1px solid var(--border);
}

.ns-entity-card__cta {
    height: 1.6rem;
    padding: 0 0.45rem;
    border-radius: 0.35rem;
    border: 1px solid color-mix(in srgb, var(--ns-color-green, #1EB386) 40%, var(--border));
    background: color-mix(in srgb, var(--ns-color-green, #1EB386) 8%, #fff);
    color: var(--ns-color-green-dark, #1A9F78);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.ns-entity-card__acts {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-inline-start: auto;
}

.ns-entity-card__act {
    position: relative;
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0;
}

    .ns-entity-card__act .rzi,
    .ns-entity-card__act .rz-icon,
    .ns-entity-card__act .ns-nav-item__icon {
        font-size: 0.95rem !important;
        width: 0.95rem;
        height: 0.95rem;
        color: inherit;
    }

    .ns-entity-card__act:hover {
        background: var(--muted);
        color: var(--foreground);
    }

    .ns-entity-card__act--danger:hover {
        color: var(--ns-color-red, #F14B5B);
        background: color-mix(in srgb, var(--ns-color-red, #F14B5B) 8%, #fff);
    }

    .ns-entity-card__act[data-tip]::after {
        content: attr(data-tip);
        position: absolute;
        bottom: calc(100% + 5px);
        inset-inline-end: 0;
        background: var(--foreground);
        color: var(--background);
        font-size: 0.62rem;
        font-weight: 500;
        white-space: nowrap;
        padding: 0.2rem 0.45rem;
        border-radius: 0.3rem;
        opacity: 0;
        pointer-events: none;
        z-index: 25;
    }

    .ns-entity-card__act:hover::after {
        opacity: 1;
    }

.ns-nav-pinned .ns-nav-leaf[draggable="true"] {
    cursor: grab;
}

.ns-nav-leaf.is-drop-target > .ns-nav-item {
    box-shadow: inset 0 2px 0 var(--border);
}

.ns-nav-leaf.is-dragging {
    opacity: 0.4;
}

.ns-shell:has(.notification-backdrop.is-open) {
    z-index: 1100;
}

.ns-topbar:has(.notification-backdrop.is-open) {
    z-index: 1100;
}

.notif-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ns-color-gray);
    padding: 8px 0 4px;
}

.ns-empty--pane {
    align-items: flex-start;
    text-align: start;
    padding: var(--ns-space-6);
}

.ns-empty--center {
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 12rem;
}

.ns-shell-dialog-veil {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(20, 20, 19, 0.32);
    display: grid;
    place-items: center;
}

.ns-shell-dialog {
    width: min(24rem, 90vw);
    padding: var(--ns-space-4);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ns-nav-item.is-dragging {
    opacity: 0.45;
}

.ns-entity-card--skeleton {
    pointer-events: none;
}

.ns-entity-card--skeleton .ns-entity-card__body {
    cursor: default;
}

.ns-skel {
    display: block;
    height: 0.65rem;
    border-radius: 0.25rem;
    background: linear-gradient(90deg, var(--muted) 20%, color-mix(in srgb, var(--muted) 35%, #fff) 50%, var(--muted) 80%);
    background-size: 200% 100%;
    animation: ns-shimmer 1.2s ease-in-out infinite;
}

.ns-skel--id {
    width: 4.2rem;
    height: 0.78rem;
}

.ns-skel--pill {
    width: 3.1rem;
    height: 0.95rem;
    border-radius: 999px;
}

.ns-skel--who {
    width: 70%;
    margin-top: 0.12rem;
}

.ns-skel--route {
    width: 88%;
    margin-top: 0.12rem;
}

.ns-skel--plate {
    width: 5rem;
}

.ns-skel--date {
    width: 4.2rem;
    margin-inline-start: auto;
}

.ns-skel--money {
    width: 7rem;
    height: 0.72rem;
    margin-top: 0.18rem;
}

.ns-skel--cta {
    width: 5.6rem;
    height: 1.4rem;
}

.ns-skel--icon {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.35rem;
}

.ns-rail > .ns-rail-user {
    display: none;
}

@media (max-width: 992px) {
    .ns-topbar__mark {
        display: block;
    }

    .ns-topbar__icon-btn.ns-topbar__menu-btn {
        display: inline-flex;
    }

    .ns-topbar__right > :not(.ns-rail-user) {
        display: none;
    }

    .ns-rail .ns-nav-pin {
        display: none !important;
    }

    .ns-kbar-veil {
        padding: 0;
        align-items: flex-start;
        justify-content: stretch;
    }

    .ns-kbar {
        width: 100%;
        max-width: none;
        max-height: 30dvh;
        border-radius: 0 0 0.75rem 0.75rem;
    }

    .ns-kbar__list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }

    .ns-kbar__foot {
        display: none;
    }

    .ns-workbench {
        grid-template-columns: 1fr;
    }

    .ns-pane--detail {
        display: none;
    }

    .ns-workbench.ns-workbench--stack {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
    }

    .ns-workbench.ns-workbench--stack .ns-pane--list,
    .ns-workbench.ns-workbench--stack .ns-pane--detail {
        display: flex;
        height: 62vh;
        min-height: 62vh;
    }
}

.ns-setup-support {
    display: flex;
    flex-direction: column;
    gap: var(--ns-space-3);
    padding: var(--ns-space-5);
}

.ns-setup-support--embed {
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
    padding: var(--ns-space-5);
}

.ns-setup-support__head {
    display: flex;
    align-items: center;
    gap: var(--ns-space-3);
}

.ns-setup-support__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 22px !important;
    line-height: 1 !important;
    color: var(--primary);
}

.ns-setup-support__title {
    margin: 0;
    font-size: var(--ns-text-base);
    font-weight: 600;
    line-height: 22px;
    color: var(--ns-color-blue);
}

.ns-setup-support__message {
    margin: 0;
    padding-left: calc(22px + var(--ns-space-3));
    font-size: var(--ns-text-sm);
    line-height: 1.55;
    color: var(--ns-color-blue-secondary);
}

.ns-setup-support__actions {
    display: flex;
    justify-content: flex-end;
    padding-left: calc(22px + var(--ns-space-3));
}
