.thead-sticky {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: white;
}

.w-30 {
    width: 30% !important;
}

.with-gap {
    margin-right: 0.25rem !important;
}

.error input {
    border: 1px solid #f44336 !important;
}

.error select {
    border: 1px solid #f44336 !important;
}

.error span.error-text {
    color: #f44336 !important;
    font-size: 13px;
    font-weight: 400;
}

.error textarea {
    border: 1px solid #f44336 !important;
}

.side-icon {
    position: relative;
    right: 5px;
}
.side .collection-item {
    display: flex !important;
    color: grey !important;
    border-left: 4px solid transparent;
}
.collection .collection-item.active {
    color: #039be5 !important;
    background-color: white;
    border-left: 4px solid !important;
}

.loader-div {
    top: 0%;
    right: 0%;
    position: fixed;
    background: #0000009e;
    height: 100vh;
    width: 100%;
    color: white;
    z-index: 9999999;
}

.loader-img-div {
    position: absolute;
    top: 25%;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

#loom-companion-mv3 {
    display: none !important;
}

.ui-timepicker-standard {
    z-index: 10003 !important;
}

.select2-dropdown {
    z-index: 1000000 !important;
}


@media only screen and (max-width: 1770px) {
    table {
        font-size: 12px !important;
    }

    .type-btn {
        justify-content: start !important;
        flex-wrap: wrap;
    }

    .mobile-margin-1 {
        margin-top: 5px;
        font-size: 8px;
    }
}

@media only screen and (max-width: 500px) {
    .no-mobile-show {
        display: none;
    }
}

@media only screen and (max-width: 1400px) {
    table {
        font-size: 12px !important;
    }

    .type-btn {
        justify-content: start !important;
        flex-wrap: wrap;
    }

    .mobile-margin-1 {
        margin-top: 5px;
        font-size: 8px;
    }
}
/* Remove top gap on backend layout: navbar/content flush to top (story-v2, posts, etc.) */
body .main .content {
    padding-top: 0 !important;
}
.main#top {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.main .container-fluid[data-layout="container"] {
    padding-top: 0 !important;
}

/* /story page: ensure no top gap (body class from backend.stories.index) */
body.page-story .main .content,
body.page-story .main#top,
body.page-story .main .container-fluid[data-layout="container"] {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Tighten the gap between the docked sidebar and the content.
   Falcon defaults the content to margin-left: 15.625rem while the sidebar is only
   12.625rem wide, leaving a ~3rem (48px) gap on the left vs. ~1rem (16px) on the
   right. Reduce it so the left gap (~18px) is similar to the content's right gutter,
   while staying clear of the sidebar's vertical scrollbar. Scoped to the docked
   (xl+) state and excluded when the sidebar is collapsed so that layout is untouched. */
@media (min-width: 1200px) {
    html:not(.navbar-vertical-collapsed) .navbar-vertical.navbar-expand-xl + .content,
    html:not(.navbar-vertical-collapsed) .navbar-vertical.navbar-expand-xl.navbar-card + .content,
    html:not(.navbar-vertical-collapsed) .navbar-vertical.navbar-expand-xl.navbar-vibrant + .content,
    html:not(.navbar-vertical-collapsed) .navbar-vertical.navbar-expand-xl.navbar-inverted + .content {
        margin-left: 13.75rem !important;
    }
}

/* ==========================================================================
   Floating bottom action island (left sidebar)
   - Anchored to the bottom of the vertical sidebar at xl+ (stays fixed while
     menu scrolls), static at the end of the menu below xl, hidden when the
     sidebar is minimized/collapsed.
   ========================================================================== */

/* Anchoring context: position the island relative to the sidebar collapse,
   not the scroll content, so it stays put while the menu scrolls. */
.navbar-vertical.navbar-vertical--footer-island .navbar-collapse {
    position: relative;
}

/* Island wrapper. Default (mobile / tablet, < xl): static at end of menu. */
.navbar-vertical-footer-island {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--falcon-border-color, #d8e2ef);
    background: var(--falcon-card-bg, #fff);
}

/* The 4 actions: evenly distributed across the available width */
.navbar-vertical-footer-island .nvf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    width: 100%;
}

/* Each action is an equal-width target, centred, real clickable element */
.navbar-vertical-footer-island .nvf-action {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--falcon-gray-700, #5e6e82);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.navbar-vertical-footer-island .nvf-action:hover,
.navbar-vertical-footer-island .nvf-action:focus {
    color: var(--falcon-primary) !important;
    background-color: var(--falcon-gray-100, #f9fafd);
    outline: none;
}

.navbar-vertical-footer-island .nvf-action:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(var(--falcon-primary-rgb, 44, 123, 229), 0.35);
}

/* Desktop (xl+): float the island as a card pinned to the viewport bottom (sidebar column) */
@media (min-width: 1200px) {
    /* Sidebar scroll: collapse fills space below logo */
    .navbar-vertical.navbar-vertical--footer-island.navbar-expand-xl {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .navbar-vertical.navbar-vertical--footer-island.navbar-expand-xl > .d-flex.align-items-center {
        flex-shrink: 0;
    }

    .navbar-vertical.navbar-vertical--footer-island.navbar-expand-xl .navbar-collapse {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: visible;
    }

    .navbar-vertical.navbar-vertical--footer-island.navbar-expand-xl .navbar-vertical-content {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
        overflow-y: auto;
        padding-bottom: 96px !important;
    }

    /* Fixed to viewport bottom — not collapse height (Bootstrap collapse won't stretch) */
    html:not(.navbar-vertical-collapsed) .navbar-vertical.navbar-vertical--footer-island.navbar-expand-xl .navbar-vertical-footer-island {
        position: fixed;
        left: 0.375rem;
        right: auto;
        bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
        width: calc(12.625rem - 0.75rem);
        z-index: 1030;
        padding: 0.375rem 0.5rem;
        border: 1px solid var(--falcon-border-color, #d8e2ef);
        border-radius: 0.75rem;
        box-shadow: 0 1px 4px rgba(11, 23, 39, 0.06), 0 0 0 1px rgba(11, 23, 39, 0.03);
    }
}

/* Hide the island when the sidebar is minimized/collapsed (future toggle) */
html.navbar-vertical-collapsed .navbar-vertical-footer-island {
    display: none !important;
}

/* Hide theme dropdown indicator so we can use custom SVG chevron */
.navbar-vertical .nav-link.dropdown-indicator::before,
.navbar-vertical .nav-link.dropdown-indicator::after {
    display: none !important;
}

/* Section headers: reduce right padding to remove empty space and free space on the right */
.navbar-vertical .nav-link.dropdown-indicator {
    padding-right: 0.25rem;
}

/* Custom dropdown chevron: label column takes remaining space so chevron is right-aligned */
.navbar-vertical .navbar-vertical-label-wrapper {
    display: flex;
    align-items: center;
}
/* Label column grows to 100% of row so chevron sits at right edge */
.navbar-vertical .navbar-vertical-label-wrapper > .navbar-vertical-label {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
/* Divider column takes no space so it doesn't push chevron left */
.navbar-vertical .navbar-vertical-label-wrapper > .col.ps-0 {
    flex: 0 0 0;
    min-width: 0;
}
.navbar-vertical .nav-dropdown-chevron {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.5;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    margin-left: 0;
    margin-right: 0;
}
.navbar-vertical .nav-dropdown-chevron svg {
    width: 0.6rem;
    height: 0.6rem;
}
.navbar-vertical .nav-link.dropdown-indicator:not(.collapsed) .nav-dropdown-chevron svg {
    transform: rotate(90deg);
}

/* Remove horizontal lines on left menu */
.navbar-vertical .navbar-vertical-divider {
    display: none !important;
}

/* Left menu hover effect */
.navbar-vertical .navbar-nav .nav-item .nav-link:hover {
    color: var(--falcon-primary) !important;
}

/* Left menu: hide icons on menu items (section headers keep their icons via .navbar-vertical-label) */
.navbar-vertical .nav-link .nav-link-icon {
    display: none !important;
}
/* Show icons next to Dashboard and Getting Started, matching section header icon size */
.navbar-vertical .nav-link[href="/dashboard"] .nav-link-icon,
.navbar-vertical .nav-link[href="/getting-started"] .nav-link-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    min-width: 1.25rem;
    margin: 0;
    opacity: 0.5;
}

/* Left menu: vertical line for submenu items (like reference image) */
.navbar-vertical .navbar-vertical-content .nav.collapse .nav-link {
    border-left: 2px solid #e9ecef;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
}

/* Align first-level submenu label text with section header labels */
#navbarVerticalNav > .nav-item > .nav.collapse > a.nav-link > .d-flex {
    padding-left: calc(1.125rem - 2px);
}

/* Submenu items: smaller font size */
.navbar-vertical .navbar-vertical-content .nav.collapse .nav-link {
    font-size: 0.8rem;
}

/* Left menu: align all text vertically – section icon fixed width; flex gap on parent handles space before label */
.navbar-vertical .navbar-vertical-label .fa,
.navbar-vertical .navbar-vertical-label .fas,
.navbar-vertical .navbar-vertical-label .far,
.navbar-vertical .navbar-vertical-label .fab,
.navbar-vertical .navbar-vertical-label .nav-lantern {
    flex-shrink: 0;
    width: 1.25rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Chinese New Year round red lantern – gentle sway animation, each independent */
.navbar-vertical .navbar-vertical-label .nav-lantern {
    text-align: left;
    vertical-align: middle;
    transform-origin: 50% 15%;
    animation: lantern-sway 4.5s ease-in-out infinite;
}
.navbar-vertical .navbar-vertical-label .nav-lantern svg {
    width: 100%;
    height: 100%;
    display: block;
}
.navbar-vertical .navbar-vertical-label .nav-lantern-1  { animation-delay: 0s;      animation-duration: 4.2s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-2  { animation-delay: -0.5s;  animation-duration: 4.8s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-3  { animation-delay: -1.1s;  animation-duration: 4.4s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-4  { animation-delay: -1.8s;  animation-duration: 5s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-5  { animation-delay: -0.3s;  animation-duration: 4.6s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-6  { animation-delay: -2.2s;  animation-duration: 4.3s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-7  { animation-delay: -0.9s;  animation-duration: 4.9s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-8  { animation-delay: -1.5s;  animation-duration: 4.1s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-9  { animation-delay: -2.5s;  animation-duration: 4.7s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-10 { animation-delay: -0.7s;  animation-duration: 4.5s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-11 { animation-delay: -1.3s;  animation-duration: 4.4s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-12 { animation-delay: -2s;    animation-duration: 4.8s; }
.navbar-vertical .navbar-vertical-label .nav-lantern-13 { animation-delay: -2.8s;  animation-duration: 4.2s; }

@keyframes lantern-sway {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-vertical .navbar-vertical-label .nav-lantern {
        animation: none;
    }
}

/* Getting Started and Dashboard: align icon + label with section headers */
.navbar-vertical .nav-link[href="/dashboard"] .d-flex,
.navbar-vertical .nav-link[href="/getting-started"] .d-flex {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-left: 0;
    margin-left: 0;
}
.navbar-vertical .nav-link[href="/dashboard"] .nav-link-text,
.navbar-vertical .nav-link[href="/getting-started"] .nav-link-text {
    padding-left: 0 !important;
}

/* Match Getting Started and Dashboard font size to section labels (e.g. CALENDAR, COMMUNICATION) */
.navbar-vertical .nav-link[href="/dashboard"],
.navbar-vertical .nav-link[href="/getting-started"] {
    font-size: 0.8rem;
}

select.form-select {
  font-size: 0.8rem !important;
}

input.form-control {
    font-size: 0.8rem !important;
}

/* Filter bar: advanced-filter toggle — same height as 0.8rem selects/inputs */
button.btn.reg-filter-toggle-btn,
.btn.reg-filter-toggle-btn {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    width: calc(1.5em + 0.75rem + 2px);
    min-width: calc(1.5em + 0.75rem + 2px);
    height: calc(1.5em + 0.75rem + 2px);
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

button.btn.reg-filter-toggle-btn .fas,
button.btn.reg-filter-toggle-btn .fa,
.btn.reg-filter-toggle-btn .fas,
.btn.reg-filter-toggle-btn .fa {
    font-size: 0.7rem;
}

/* App footer — Powered by Squincy | Terms | Privacy */
.content > .footer p {
    font-size: 0.8rem;
    color: #C1C1C1;
}

.content > .footer a {
    color: #C1C1C1;
    text-decoration: none;
}

.content > .footer a:hover,
.content > .footer a:active {
    color: var(--falcon-primary, #2c7be5);
}