html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.drawer-open {
    overflow: hidden !important;
}

:root {
    --color-baby-blue: #77b1de;
    --color-pink: #ff98ac;
    --color-light-pink: #ffb1c0;
    --color-sidebar-blue: #072b47;
}

/* 1. Change the Toast Background Color */
.e-toast-container .e-toast {
    background-color: #1e293b;
    border: 1px solid #334155;
}

    /* 2. Change the Title Text Color */
    .e-toast-container .e-toast .e-toast-message .e-toast-title {
        color: #f8fafc;
        font-weight: bold;
    }

    /* 3. Change the Body Content Text Color */
    .e-toast-container .e-toast .e-toast-message .e-toast-content {
        color: #94a3b8;
    }

    /* 4. Change the Icon Color */
    .e-toast-container .e-toast .e-toast-icon {
        color: #38bdf8;
    }

    /* 5. Change the Progress Bar Color */
    .e-toast-container .e-toast .e-toast-progress {
        background-color: #38bdf8;
    }


.profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-container {
    position: relative;
    display: inline-block;
}

.profile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.profile-popover {
    position: absolute;
    top: 44px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2001;
    padding: 6px 0;
    width: 160px;
}

.popover-item {
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.popover-item:hover {
    background: #f5f5f5;
}



a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ================================
   CONTEXT MENU CONTAINER
   ================================ */
.e-contextmenu {
    background-color: #0D1B2A !important; /* deep navy */
    color: #E0E6ED !important; /* soft light text */
    border-radius: 8px !important;
    padding: 6px 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
    border: none !important;
}

    /* ================================
   MENU ITEMS (layout + spacing)
   ================================ */
    .e-contextmenu .e-menu-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important; /* spacing between icon + text */
        min-height: 28px !important;
        padding: 8px 14px !important;
        margin: 2px 4px !important;
        border-radius: 6px !important;
        background-color: transparent !important;
        color: #E0E6ED !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

        /* ================================
   HOVER STATE
   ================================ */
        .e-contextmenu .e-menu-item:hover {
            background-color: #1B263B !important; /* lighter navy hover */
            color: #FFFFFF !important;
        }

    /* ================================
   ICONS (fix clipping)
   ================================ */
    .e-contextmenu .e-menu-icon {
        width: 18px !important;
        min-width: 18px !important;
        font-size: 16px !important;
        color: #E0E6ED !important;
    }

    /* ================================
   TEXT (prevent clipping)
   ================================ */
    .e-contextmenu .e-menu-item .e-menu-text {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    /* ================================
   SEPARATORS
   ================================ */
    .e-contextmenu .e-separator {
        border-color: rgba(255,255,255,0.1) !important;
        margin: 6px 0 !important;
    }


/* ==========================================================================
   EXECUTIVE DASHBOARD SHELL LAYOUT (Keep these sections as they are)
   ========================================================================== */

/* 1. Lock the outer shell frame to fill the monitor height exactly */
.app-shell,
.main-split-view {
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Freeze your left sidebar navigation block from stretching or shrinking */
.left-sidebar-pane {
    height: 100vh !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
}

/* 3. Force the right workspace container to be a strict flex container */
.right-body-scroll-viewport {
    flex-grow: 1 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* 4. Freeze your top ceiling menu bar at exactly its text padding height */
.top-app-header-bar {
    flex-shrink: 0 !important;
}

/* ==========================================================================
   PRODUCTION VAULT KANBAN BOARD SYSTEM (wwwroot/app.css)
   ========================================================================== */

/* 1. Master Horizontal Workspace Row Container */
.vault-kanban-wrapper {
    height: calc(100vh - 240px) !important; /* Locks board area precisely below your metrics bar */
    overflow-y: hidden !important; /* Completely blocks duplicate browser-level scroll leakage */
    overflow-x: auto !important; /* Seamless horizontal scrolling across lanes if screen narrows */
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important; /* FORCES ALL 4 SWIMLANES TO SHARE ABSOLUTE EQUAL HEIGHTS */
    background-color: #fcfcfc !important; /* Soft premium canvas background matching your dashboard */
    gap: 1.25rem !important;
    padding-bottom: 0.5rem !important;
}

    /* 2. Swimlane Column Trays 
   Forces empty columns to remain open side-by-side with full vertical drop zones */
    .vault-kanban-wrapper .card.bg-light,
    .vault-kanban-wrapper > div,
    .vault-kanban-wrapper * .card.bg-light {
        flex: 1 1 0px !important; /* Forces all 4 columns to divide horizontal viewport space 100% equally */
        height: 100% !important; /* Stretches columns down to the baseline floor of our locked parent container row */
        min-height: 100% !important;
        display: flex !important;
        flex-direction: column !important; /* Establishes vertical tracking flow path */
        overflow: hidden !important; /* Freezes the outer column card shell from scaling out of bounds */
        background-color: #ffffff !important; /* Stark white card base matching dashboard utility panels */
        background-color: #f4f5f7 !important;
        border: 1px solid #e9ecef !important; /* Clean gray panel boundary line formatting */
        border-radius: 14px !important;
        box-shadow: 0 4px 12px rgba(7, 43, 71, 0.01) !important; /* Ambient soft blur shadow */
    }

        /* Swimlane Header Container Block 
   FREEZES completely solid at the top of your screen exactly like Azure DevOps */
        .vault-kanban-wrapper .card.bg-light > .card-body.p-3 {
            flex-shrink: 0 !important; /* Permanently prevents headers from collapsing or scrolling away */
            padding-bottom: 0.75rem !important;
            border-bottom: 1px solid #f1f3f5 !important;
            background-color: #ffffff !important;
            background-color: #f4f5f7 !important;
        }

    /* Column Header Titles (Utilizing your Sidebar Deep Corporate Blue) */
    .vault-kanban-wrapper h6.fw-bold {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
        color: var(--color-sidebar-blue) !important;
    }

    /* Subtitle Context Descriptive Labels */
    .vault-kanban-wrapper p.text-muted.small {
        color: #8c9ba5 !important;
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    /* Column Counter Digit Badges */
    .vault-kanban-wrapper span.badge.bg-secondary.rounded-pill {
        background-color: #e9ecef !important;
        color: var(--color-sidebar-blue) !important;
        font-weight: 600 !important;
        border: none !important;
        font-size: 0.75rem !important;
    }

    /* 3. Local Independent Card Scrolling Viewport
   Forces scroll rails strictly on the outer container wrapper panel beneath the headers */
    .vault-kanban-wrapper .column-card-scroll-viewport {
        flex-grow: 1 !important;
        overflow-y: auto !important; /* Individual vertical scroll tracks active inside column containers */
        overflow-x: hidden !important;
        padding: 0.75rem 0.6rem 1.5rem 0.6rem !important;
        scrollbar-width: thin; /* Clean, modern narrow desktop scrollbar footings */
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Card Gap Row Container Group Box 
   Allows your internal card loops to flow naturally without triggering double scroll bars */
    .vault-kanban-wrapper .d-flex.flex-column.gap-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        overflow: visible !important; /* Allows cards to render naturally inside the viewport track */
        height: auto !important;
        max-height: none !important;
    }

        /* 4. Primary Project Cards (Floating Dashboard Graphic Panels) */
        .vault-kanban-wrapper .d-flex.flex-column.gap-2 > .card {
            background: #ffffff !important;
            border: 1px solid #ebedf0 !important;
            border-radius: 12px !important;
            box-shadow: 0 4px 12px rgba(7, 43, 71, 0.02) !important;
            padding: 1.25rem !important;
            transition: transform 0.15s ease, box-shadow 0.15s ease !important;
        }

            .vault-kanban-wrapper .d-flex.flex-column.gap-2 > .card:hover {
                transform: translateY(-2px) !important;
                box-shadow: 0 8px 20px rgba(7, 43, 71, 0.05) !important;
            }

    /* Project Card Description Headings (Deep Corporate Blue Font Accent) */
    .vault-kanban-wrapper h6.fw-semibold {
        font-size: 0.9rem !important;
        color: var(--color-sidebar-blue) !important;
        font-weight: 700 !important;
        margin-top: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Client Tag Secondary Accents Badges */
    .vault-kanban-wrapper span.badge.bg-light.text-primary {
        background-color: #f1f3f5 !important;
        color: #495057 !important;
        font-weight: 600 !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 4px !important;
        font-size: 0.65rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
    }

    /* Drop-Down Lane Selector Menu Select Items Box */
    .vault-kanban-wrapper select.form-select-sm {
        background-color: #ffffff !important;
        border: 1px solid #ced4da !important;
        border-radius: 6px !important;
        color: var(--color-sidebar-blue) !important;
        font-weight: 500 !important;
        font-size: 0.75rem !important;
    }

    /* Sub-Task Row Item Checklist Core Tray View */
    .vault-kanban-wrapper .bg-light.p-2.rounded.border.border-warning {
        background-color: #fdfdfd !important;
        border: 1px solid #eef0f2 !important; /* Eliminated the yellow framework lines entirely */
        border-radius: 8px !important;
        padding: 0.75rem !important;
    }

    /* Project Tasks Subsection Header Text Label */
    .vault-kanban-wrapper .fw-bold.text-warning {
        color: #8c9ba5 !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 0.5rem !important;
    }

    /* Checklist Inner Task Rows Graphic Layout Cards */
    .vault-kanban-wrapper .d-flex.align-items-center.justify-content-between.w-100.bg-white {
        border: 1px solid #ebedf0 !important;
        border-radius: 6px !important;
        padding: 0.45rem 0.6rem !important;
        background-color: #ffffff !important;
    }

    /* Task Checkbox Core Elements */
    .vault-kanban-wrapper input[type="checkbox"] {
        border-radius: 4px !important;
        border: 1px solid #ced4da !important;
        cursor: pointer !important;
    }

    /* Inline Action Start Task Link (Branded Baby Blue) */
    .vault-kanban-wrapper .btn-link.text-primary {
        color: var(--color-baby-blue) !important;
        font-weight: 700 !important;
    }

    /* Individual Task Logged Accumulation Badges */
    .vault-kanban-wrapper span.badge.bg-secondary.text-white.font-monospace {
        background-color: #f8f9fa !important;
        color: #6c757d !important;
        border: 1px solid #e9ecef !important;
        font-weight: 500 !important;
    }

    /* Quick Add Task Input Layout Entry Line Box */
    .vault-kanban-wrapper .input-group-sm input.form-control {
        border: 1px solid #ced4da !important;
        border-radius: 6px 0 0 6px !important;
        font-size: 0.8rem !important;
    }

    .vault-kanban-wrapper .input-group-sm button.btn-outline-primary {
        border: 1px solid #ced4da !important;
        border-left: none !important;
        background-color: #f8f9fa !important;
        color: var(--color-sidebar-blue) !important;
        font-weight: 600 !important;
        border-radius: 0 6px 6px 0 !important;
    }

    /* 4. Active Dynamic Tracking Live Widgets (Branded Pink Elements) */
    .vault-kanban-wrapper .p-2.bg-light.rounded.mt-2.border-start {
        background-color: #fff8f9 !important; /* Soft pale pink grid fill accent color tint */
        border: 1px solid var(--color-light-pink) !important;
        border-left: 4px solid var(--color-pink) !important; /* Signature active timer left tracker stripe line */
        border-radius: 8px !important;
    }

    .vault-kanban-wrapper .badge.bg-danger.text-white {
        background-color: var(--color-pink) !important; /* Signature tracking pink solid color fill */
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .vault-kanban-wrapper .text-danger.small.fw-bold.font-monospace {
        color: var(--color-pink) !important;
    }

    .vault-kanban-wrapper .btn-warning {
        background-color: #f1f3f5 !important;
        border: 1px solid #dee2e6 !important;
        color: var(--color-sidebar-blue) !important;
        font-weight: 600 !important;
    }

    .vault-kanban-wrapper .btn-success {
        background-color: var(--color-baby-blue) !important;
        border: none !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    /* 5. Swimlane Ceiling Top Colored Ribbon Accents Mapping (Palettes Core Sync) */
    .vault-kanban-wrapper .card.bg-light.border-primary {
        border-top: 4px solid var(--color-baby-blue) !important;
    }

    .vault-kanban-wrapper .card.bg-light.border-info {
        border-top: 4px solid #0dcaf0 !important;
    }

    .vault-kanban-wrapper .card.bg-light.border-danger {
        border-top: 4px solid var(--color-pink) !important;
    }

    .vault-kanban-wrapper .card.bg-light.border-success {
        border-top: 4px solid #198754 !important;
    }

/*    .vault-kanban-wrapper .d-flex.flex-column.gap-2 > .card {
        border-left: 5px solid var(--color-sidebar-blue) !important;
    }*/

    /* Vault Unified Project Card Border: Even gray outline on all 4 sides */
    .vault-kanban-wrapper .d-flex.flex-column.gap-2 > .card,
    .vault-kanban-wrapper .d-flex.flex-column.gap-2 > .card.border-0 {
        border: 1px solid #ebedf0 !important;
    }



/* ==========================================================================
   ISOLATED PUBLIC LANDING & PRICING NAVBAR STYLES
   (Scoped to .auth-fallback-viewport so they never touch the authenticated app)
   ========================================================================== */

/* Typography & Variables for Landing Layouts */
.auth-fallback-viewport {
    font-family: 'Inter', sans-serif !important;
    background: #fafbfd;
}

    /* NAVBAR MAIN FOOTPRINT CONTAINER */
    .auth-fallback-viewport .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 24px 80px !important;
        position: sticky !important;
        top: 0 !important;
        background: white !important;
        z-index: 100 !important;
        border-bottom: 1px solid #edf2f7 !important;
    }

    /* LOGO ICON MIXIN GRADIENT */
    .auth-fallback-viewport .logo-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: linear-gradient(135deg, #1f7bff, #ff72a6);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
    }

    /* DESKTOP NAV-LINKS INTERACTION STATES */
    .auth-fallback-viewport .navbar-nav .nav-link {
        color: #64748b !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
        transition: color 0.15s ease-in-out;
    }

        .auth-fallback-viewport .navbar-nav .nav-link:hover {
            color: #1f7bff !important;
        }

    /* PUBLIC CTA IDENTITY BUTTONS */
    .auth-fallback-viewport .btn-primary {
        border: none !important;
        color: white !important;
        background: linear-gradient(135deg, #1f7bff, #559dff) !important;
        padding: 14px 28px !important;
        border-radius: 14px !important;
        cursor: pointer !important;
        font-weight: 600 !important;
        transition: all 0.3s !important;
    }

        .auth-fallback-viewport .btn-primary:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 18px 30px rgba(31, 123, 255, 0.25) !important;
        }

    .auth-fallback-viewport .nav-actions .login {
        color: #64748b;
        text-decoration: none;
        font-weight: 500;
    }

        .auth-fallback-viewport .nav-actions .login:hover {
            color: #1f7bff;
        }

    /* MOBILE TOGGLER OVERRIDES FOR THE LANDING SKIN */
    .auth-fallback-viewport .navbar-toggler:focus {
        box-shadow: none !important;
    }


/* Calendar: Agenda view shows a coloured bar instead of a filled row */
.vv-calendar .e-agenda-view .e-appointment {
    background-color: transparent !important;
    border-style: solid !important;
    border-width: 0 0 0 4px !important;
    color: #13233b !important;
}

.vv-calendar .e-agenda-view .e-appointment * {
    color: #13233b !important;
}


.project-row:has(.dropdown-menu.show) {
    position: relative;
    z-index: 20;
    overflow: visible;
    transform: none;
}

.project-list {
    overflow: visible;
}

/* ---- Calendar: wider Edit Event dialog so the two-column form fits ---- */
.e-schedule-dialog.e-popup.e-dialog {
    width: 640px !important;
    max-width: 95vw !important;
}

.e-schedule-dialog .e-dlg-content {
    overflow-x: hidden;
}

/* =====================================================================
   Signed-in app frame: only the content panel scrolls, never the browser page.
   (Otherwise scrolling past the end of a long list drags the whole frame up.)
   Signed-out pages (landing, pricing, login) are not affected.
   ===================================================================== */
html:has(.main-split-view),
body:has(.main-split-view) {
    height: 100%;
    overflow: hidden;
}

/* When the content panel reaches its end, don't pass the scroll on to the page */
.right-body-scroll-viewport {
    overscroll-behavior: contain;
}


/* =====================================================================
   Timer buttons (same look as the Dashboard's Start / Stop)
   Used by the Projects List; any page can use them.
   ===================================================================== */
.vv-tbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d5dce6;
    background: #fff;
    color: #13233b;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}

    .vv-tbtn:focus-visible {
        outline: 2px solid #1e5fd9;
        outline-offset: 2px;
    }

.vv-tbtn-go {
    background: #e8f6ee;
    border-color: #bfe5cf;
    color: #11683a;
}

    .vv-tbtn-go:hover {
        background: #d6efe0;
    }

.vv-tbtn-stop {
    background: #fff0f2;
    border-color: #ffc9d3;
    color: #a3172b;
}

.vv-tbtn-stop:hover {
    background: #ffe1e7;
}


/* =====================================================================
   Board cards: lift on hover WITHOUT a CSS transform.
   A transformed card makes its menu (position: fixed) measure itself
   from the card instead of the window, so the menu opened in the wrong
   place and jumped / flickered. Moving the card with "top" looks the
   same but leaves the menu positioned from the window.
   ===================================================================== */
.vault-kanban-wrapper .kb-card,
.vault-kanban-wrapper .kb-card:hover {
    transform: none !important;
}

.vault-kanban-wrapper .kb-card {
    position: relative;
    top: 0;
    transition: top .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .vault-kanban-wrapper .kb-card:not(.is-focus):hover {
        top: -1px;
    }

    /* The card with an open menu sits above its neighbours */
    .vault-kanban-wrapper .kb-card:has(.dropdown-menu.show) {
        z-index: 30;
    }

/* Board column badges: room for "1 of 12" while a filter is on */
.vault-kanban-wrapper .kb-count {
    width: auto !important;
    min-width: 24px;
    padding: 0 8px;
    white-space: nowrap;
    border-radius: 999px;
}


@media (prefers-reduced-motion: reduce) {
    .vault-kanban-wrapper .kb-card {
        transition: none;
    }
}

/* RESPONSIVE EDGE PADDING ADJUSTMENTS */
@media (max-width: 991.98px) {
    .auth-fallback-viewport .navbar {
        padding: 16px 24px !important;
    }

    .auth-fallback-viewport .navbar-nav {
        padding: 16px 0;
    }
}

/* =========================================================================
   Error card (#blazor-error-ui, MainLayout) and reconnect box
   (#components-reconnect-modal, App.razor). Global so they work on every page.
   ========================================================================= */

/* ----- Error card: Blazor sets display:block when an unhandled error happens ----- */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 10040;
    width: min(620px, calc(100% - 32px));
    font-family: 'Inter', system-ui, sans-serif;
    color: #13233b;
}

.vv-err {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 14px 18px;
    background: #fff;
    border-left: 5px solid #c2283e;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(19, 35, 59, .22);
}

.vv-err-ic {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fde8eb;
    color: #c2283e;
    font-weight: 800;
}

.vv-err-text {
    flex: 1;
    min-width: 0;
}

    .vv-err-text b {
        display: block;
        font-size: 14.5px;
    }

    .vv-err-text span {
        font-size: 13px;
        color: #5b6577;
    }

.vv-err-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: #1e5fd9;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

    .vv-err-btn:hover {
        background: #174bb0;
    }

.vv-err-x {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #8a94a6;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

    .vv-err-x:hover {
        background: #f1f3f6;
        color: #13233b;
    }

@media (max-width: 576px) {
    .vv-err {
        flex-wrap: wrap;
    }

    .vv-err-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ----- Reconnect box: hidden until Blazor adds a state class ----- */
#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 10050;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: rgba(15, 42, 71, .45);
        backdrop-filter: blur(2px);
        font-family: 'Inter', system-ui, sans-serif;
        color: #13233b;
    }

.vv-rc {
    width: 400px;
    max-width: 100%;
    padding: 26px 26px 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(19, 35, 59, .3);
    text-align: center;
}

    .vv-rc h3 {
        margin: 0 0 6px;
        font-size: 19px;
        font-weight: 700;
    }

    .vv-rc p {
        margin: 0 0 18px;
        font-size: 13.5px;
        line-height: 1.5;
        color: #5b6577;
    }

    .vv-rc .vv-rc-small {
        margin: 0;
        font-size: 12px;
        color: #8a94a6;
    }

/* Only the message for the current state shows */
.vv-rc-state {
    display: none;
}

.components-reconnect-show .vv-rc-retrying,
.components-reconnect-failed .vv-rc-failed,
.components-reconnect-rejected .vv-rc-rejected {
    display: block;
}

.vv-rc-ic {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
}

    .vv-rc-ic.is-blue {
        background: #eef4ff;
        color: #1e5fd9;
    }

    .vv-rc-ic.is-amber {
        background: #fff4e0;
        color: #b45309;
    }

    .vv-rc-ic.is-navy {
        background: #e8edf4;
        color: #0f2a47;
    }

.vv-rc-spin {
    width: 28px;
    height: 28px;
    border: 3px solid #dbe6fb;
    border-top-color: #1e5fd9;
    border-radius: 50%;
    animation: vv-rc-spin 1s linear infinite;
}

@keyframes vv-rc-spin {
    to {
        transform: rotate(360deg);
    }
}

.vv-rc-btn {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #1e5fd9;
    color: #fff;
    font: 600 14px 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

    .vv-rc-btn:hover {
        background: #174bb0;
    }

@media (prefers-reduced-motion: reduce) {
    .vv-rc-spin {
        animation-duration: 3s;
    }
}

