/* =============================== */
/* General Layout & Page Structure - Bootstrap 5.1 */
/* =============================== */

:root {
    --site-nav-expanded: 220px; /* open width */
    --site-nav-collapsed: 50px; /* collapsed width */
    --topbar-h: 45px; /* adjust to your top bar height */
    --sectionbar-h: 40px; /* adjust to your section toolbar height */
    --sectionbar-border: 1px;
    --footer-h: 45px; /* 0 if no fixed footer */
    --sidebar-gap: 1px;
    /* brand navy */
    --brand-blue: #111B2C;
    --nav-bg: #7eaacd; /* dark blue for bars  #2f5485  #326694 #7eaacd */
    --nav-img: url('/Images/ai-grid-overlay2.webp');
    --nav-tint-1: rgba(17,27,44,.90); /* fade overlay (top)  */
    --nav-tint-2: rgba(17,27,44,.84); /* fade overlay (bottom) */

    --nav-text: #fff;
    --nav-hover-fg: #0b97d4;
    --nav-active-fg: #10C4FF;
    --nav-hover-bg: rgba(255,255,255,.08);
    --nav-active-bg: rgba(255,255,255,.14);
    --nav-sep: rgba(255,255,255,.20);
    /* --nav-hover: rgba(255,255,255,.08);*/ /* subtle hover bg */
    /* --nav-active: rgba(255,255,255,.14); */ /* selected/focused bg */
    --bg: #111B2C; /* primary dark */
    --brand1: #2F6690; /* key concept */
    --brand2: #415A77; /* thought */
    --ink: #0f172a; /* text base */
    --wash: #f2f2f2; /* take action */
    --page-chrome: calc(var(--topbar-h) + var(--sectionbar-h) + var(--footer-h));
}
.text-light-70 {
    color: rgba(255,255,255,.7)
}

.invisible {
    visibility: hidden;
}


.hero {
    background: radial-gradient(1200px 600px at 20% -10%, var(--brand1), transparent 60%), radial-gradient(1200px 600px at 120% 10%, var(--brand2), transparent 60%), var(--bg);
    padding: 3rem 0 2rem; /* reduce vertical padding */
    box-sizing: border-box; /* include padding in height */
}

/* Card background: override Syncfusion default (Server Solutions/Pricing) */
.bomsync-card,
.e-card.bomsync-card {
    background: rgba(126, 170, 205, 0.18) !important;
    border: 1px solid rgba(126, 170, 205, 0.25) !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2) !important;
}

.e-card.bomsync-card .e-card-header,
.e-card.bomsync-card .e-card-content {
    background: transparent !important;
}

/* Accordion headers: soft grey background + border (Server Pricing, etc.) */
.bomsync-accordion .e-acrdn-header,
.e-accordion.bomsync-accordion .e-acrdn-header {
    background: rgba(242, 242, 242, 0.95) !important;
    border: 1px solid rgba(148, 163, 184, 0.5) !important;
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 0.75rem 1rem;
}

.bomsync-accordion .e-acrdn-item.e-select .e-acrdn-header,
.bomsync-accordion .e-acrdn-item.e-active .e-acrdn-header,
.e-accordion.bomsync-accordion .e-acrdn-item.e-select .e-acrdn-header,
.e-accordion.bomsync-accordion .e-acrdn-item.e-active .e-acrdn-header {
    background: rgba(226, 232, 240, 0.98) !important;
}

/* Base (kept) */
.page-hero {
    width: 100%;
    padding: 12px 0;
    box-sizing: border-box;
}

    .page-hero.compact {
        min-height: clamp(120px,16dvh,180px);
    }

    .page-hero .hero-inner {
        text-align: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 10px;
    }

    /* Dark (home/marketing) */
    .page-hero.dark {
        background: radial-gradient(900px 450px at 5% -10%, var(--brand1), transparent 55%), radial-gradient(900px 450px at 85% 10%, var(--brand2), transparent 55%), var(--bg);
    }

        .page-hero.dark .hero-title {
            color: #fff;
        }

        .page-hero.dark .hero-sub {
            color: rgba(255,255,255,.7);
        }

    /* Muted (legal) — target ≈ #a7adb5 */
    .page-hero.muted {
        --muted: #a7adb5;
        background:
        /* subtle texture, not blue-tinted */
        radial-gradient(900px 450px at 8% -20%, rgba(0,0,0,.05), transparent 55%), radial-gradient(900px 450px at 92% 0%, rgba(255,255,255,.06), transparent 55%), linear-gradient(180deg, #b0b5bc 0%, var(--muted) 55%, #bcc3cf 100%); /*#9ea4ad*/
        border: 1px solid #8f97a3;
    }

        .page-hero.muted .hero-title {
            color: #1f2937;
        }
        /* dark for contrast */
        .page-hero.muted .hero-sub {
            color: #2f3b49;
        }



/* Full-height without overshooting; cap around ~50% of viewport */
.fullheight {
    min-height: min(50dvh, calc(100dvh - var(--page-chrome)));
}


.glass {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 1rem
}

.feature-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #e6e6e6
}

.cta-band {
    background: linear-gradient(90deg,var(--brand2),var(--brand1));
    padding: 2rem 0
}

.pricing-card {
    border-radius: 1rem
}

    .pricing-card.highlight {
        outline: 2px solid rgba(0,0,0,.6)
    }

/* Primary hover to your active color */
.e-btn.e-primary:hover:not(.e-disabled) {
    background-color: var(--nav-active-fg) !important;
    border-color: var(--nav-active-fg) !important;
}
/* Light/outline on hero */
.e-btn.e-outline.e-light:hover {
    background-color: rgba(255,255,255,.18) !important;
}




html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    /*    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Regular */
@font-face {
    font-family: 'Vipnagorgialla';
    src: url('/fonts/vipnagorgialla_rg.woff2') format('woff2'), url('/fonts/vipnagorgialla_rg.woff') format('woff'), url('/fonts/vipnagorgialla_rg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}



/* Left sidebar: dark navy + faint grid image */
.layout .sidebar-menu.e-sidebar {
    background-color: var(--nav-bg);
    background-image: linear-gradient(var(--nav-tint-1), var(--nav-tint-2)), var(--nav-img);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-right: 1px solid var(--nav-bg);
    z-index: 1200;
}

/* Make header (inside NavMenu) sit ABOVE the two-column area */
#wrapper.layout {
    display: flex;
    flex-direction: column; /* <— important: header above, then sidebar + main */
    min-height: calc(100dvh - var(--footer-h));
    overflow: hidden;
}



/* Ensure sidebar inner content stretches full height */
.layout .sidebar-menu .e-sidebar-content,
.layout .sidebar-menu .main-menu,
.layout .sidebar-menu .e-menu-wrapper {
    height: 100%;
}



/* Push target (sibling of the sidebar) */
.layout .main-panel {
    position: relative; /* keep */
    flex: 1 1 auto; /* keep */
    min-width: 0; /* keep */
    overflow: hidden; /* OK to keep; drop if you need inner sticky/overlays */
   /* transition: margin-left .22s ease; *//* keep */
}

/* 2) When the sidebar is expanded, push the main panel.
   Use BOTH sibling combinators to cover your DOM (direct + and general ~). */
/*.layout .sidebar-menu.e-sidebar:not(.e-dock),
.layout .sidebar-menu.e-sidebar.e-dock.e-open {*/
    /* helper – no visual change; used only for grouping below */
/*}*/

    /* Expanded => use expanded width */
  /*  .layout .sidebar-menu.e-sidebar:not(.e-dock) + .main-panel,*/
    /*.layout .sidebar-menu.e-sidebar:not(.e-dock) ~ .main-panel,*/
   /* .layout .sidebar-menu.e-sidebar.e-dock.e-open + .main-panel,*/
    /*.layout .sidebar-menu.e-sidebar.e-dock.e-open ~ .main-panel {
        margin-left: var(--site-nav-expanded);*/ /* 220px */
    /*}*/

/* Collapsed (docked+closed) => use collapsed width */
/*.layout .sidebar-menu.e-sidebar.e-dock.e-close + .main-panel,*/
.layout .sidebar-menu.e-sidebar.e-dock.e-close ~ .main-panel {
    margin-left: var(--site-nav-collapsed); /* 50px */
}

.layout .sidebar-menu.e-sidebar:not(.e-close) ~ .main-panel {
    margin-left: var(--site-nav-expanded); /* 220px */
}
/* Baseline */
.layout .main-panel {
    margin-left: var(--site-nav-collapsed);
}


/* main scroll viewport (subtract header+toolbar+footer) */
#maintext.main-content {
    height: calc(100dvh - var(--footer-h) - var(--topbar-h) - var(--sectionbar-h));
    overflow: auto;
    padding: 15px;
}


/* keep child item sidebars below the site sidebar */
.sidebar-item-menu.e-sidebar {
    z-index: 20;
}

h1:focus {
    outline: none;
}

.validation-message {
    color: #e50000;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #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;
}


#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container Adjustments */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* PROTECT CHILD SIDEBAR SUBMENUS*/
/* Keep grids from forcing the flex row wider than available */
.component-wrapper {
    min-width: 0;
}

    /* Child content must be allowed to shrink next to the rail */
    .component-wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Kill Bootstrap negative gutters that can bleed under the rail */
    .component-wrapper .container-fluid, 
    .component-wrapper .content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

.control-section, .content-wrapper {
    max-width: 100%;
    width: auto;
}

/* ===== Base ===== */
.sidebar-body {
    height: 100%;
    overflow-y: auto;
    padding: 0 16px;
}



.sidebar-item-menu.e-sidebar {
    z-index: 20;
}

/* ===== Submenu (flyout) alignment ===== */
.sidebar-menu .e-menu-container ul.e-vertical > .e-menu-item .e-ul {
    left: var(--site-nav-expanded) !important;
    top: 0;
    /*    left: 220px !important;
    top: 0;*/
}

.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical {
    width: var(--site-nav-collapsed) !important;
/*    width: 50px !important;
    min-width: 0;*/
}

    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > .e-menu-item .e-ul {
        left: var(--site-nav-collapsed) !important;
        top: 0;
 /*       left: 50px !important;
        top: 0;*/
    }

/* Expanded width for caret items */
.sidebar-menu .e-menu-container ul .e-menu-item.e-menu-caret-icon {
    width: 220px;
}

/* ===== Collapsed (dock) behaviour – DockSize = 50px ===== */
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item {
    width: var(--site-nav-collapsed) !important;
    font-size: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item a {
        width: var(--site-nav-collapsed) !important;
        height: 50px;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

.sidebar-menu.e-dock.e-close .e-menu-container .e-caret {
    display: none !important;
}

/* Also hide any span that follows the icon (covers leaf/parent variations) */
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item > a.e-anchor .e-menu-icon ~ span,
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item > a.e-menu-url .e-menu-icon ~ span {
    display: none !important;
}

/* Keep icons visible and centered (e-icons, Bootstrap, Material) */
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical .e-menu-icon,
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical .bi,
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical .material-symbols-outlined {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    line-height: 1;
}

/* Collapse: make parent (flyout) items only 50px wide too */
.sidebar-menu.e-dock.e-close .e-menu-container ul .e-menu-item.e-menu-caret-icon {
    width: 50px !important;
}

/* Collapse: zero text on anchors (parent + leaf); icons get size restored */
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item > a.e-anchor,
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item > a.e-menu-url {
    font-size: 0 !important; /* hides text nodes/spans of any class */
    width: 50px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
}

/* Restore size for icons so they remain visible */
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item > a .e-menu-icon,
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item > a .bi,
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item > a .material-symbols-outlined {
    font-size: 18px !important;
    width: 24px;
    height: 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    line-height: 1;
}


/* Collapse: hide ANY text for ALL items (parent + leaf) */
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item {
    font-size: 0 !important; /* <- hides any label/text regardless of class */
}

    /* Restore icon size so it remains visible */
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item .e-menu-icon,
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item .bi,
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item .material-symbols-outlined {
        font-size: 18px !important; /* <- bring icon back */
        width: 24px;
        height: 24px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

/* Center ALL icons in collapsed mode */
.sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 50px !important;
        height: 50px; /* makes it a perfect square click area */
        padding: 0 !important;
    }

    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item .e-menu-icon,
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item .bi,
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item .material-symbols-outlined {
        font-size: 18px !important;
        width: 24px;
        height: 24px;
        margin: 0 !important;
    }

    /* Collapsed: normalize parent (flyout) items exactly like leaf items */
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item.e-menu-caret-icon,
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item.e-menu-caret-icon.e-focused,
    .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item.e-menu-caret-icon.e-selected {
        width: 50px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

        /* Center the anchor for caret items (removes caret padding footprint) */
        .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item.e-menu-caret-icon > a.e-anchor {
            width: 50px !important;
            height: 50px !important;
            padding: 0 !important;
            margin: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
        }

        /* Belt-and-suspenders: kill any residual spacing on the icon inside caret items */
        .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item.e-menu-caret-icon .e-menu-icon,
        .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item.e-menu-caret-icon .bi,
        .sidebar-menu.e-dock.e-close .e-menu-container ul.e-vertical > li.e-menu-item.e-menu-caret-icon .material-symbols-outlined {
            margin: 0 !important;
        }


/* SIDEBAR TEXT COLOR */
/* Top-level items */
.sidebar-menu .e-menu-container ul.e-vertical > li.e-menu-item > a,
.sidebar-menu .e-menu-container .e-menu-item .e-menu-text {
    color: var(--nav-text) !important;
}

/* Icons (Syncfusion, Bootstrap, Material) */
.sidebar-menu .e-menu-container .e-menu-item .e-menu-icon,
.sidebar-menu .e-menu-container .e-menu-item .bi,
.sidebar-menu .e-menu-container .e-menu-item .material-symbols-outlined {
    color: var(--nav-text) !important;
}

/* Hover/Focus backgrounds (base); active highlight is handled in sidebar-overrides.css */
.sidebar-menu .e-menu-container .e-menu-item:hover,
.sidebar-menu .e-menu-container .e-menu-item.e-focused {
    background: var(--nav-hover) !important;
}

/* Caret color (for items with children) */
.sidebar-menu .e-menu-container .e-caret {
    color: var(--nav-text) !important;
    border-color: var(--nav-text) !important; /* some themes use borders */
}

/* Separators inside the menu */
.sidebar-menu .e-menu-container .e-separator {
    border-color: var(--nav-sep) !important;
}

/* Collapsed (docked) state – text is hidden, keep icons white */
.sidebar-menu.e-dock.e-close .e-menu-container .e-menu-item .e-menu-icon,
.sidebar-menu.e-dock.e-close .e-menu-container .e-menu-item .bi,
.sidebar-menu.e-dock.e-close .e-menu-container .e-menu-item .material-symbols-outlined {
    color: var(--nav-text) !important;
}

/* Flyout submenus: dark bg + white text */
.sidebar-menu .e-vertical > .e-menu-item .e-ul {
    background: var(--nav-bg) !important;
    border-color: transparent;
}

    .sidebar-menu .e-vertical > .e-menu-item .e-ul .e-menu-item > a {
        color: var(--nav-text) !important;
    }

    .sidebar-menu .e-vertical > .e-menu-item .e-ul .e-menu-item:hover {
        background: var(--nav-hover) !important;
    }

/* =============================== */
/* Footer */
/* =============================== */
/* shared brand styles (NOT in .razor.css) */


.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1a2a;
    color: #c9d6e2;
    z-index: 1000;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: .5rem 1rem;
    white-space: nowrap
}

.links {
    margin-left: 15px
}
/* keep Terms · Privacy on the same line */
.footer-bar a {
    color: inherit;
    text-decoration: underline;
}

.brand {
    font-family: "Vipnagorgialla","Segoe UI",Arial,sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
}

    .brand .tm {
        font-size: .6em;
        vertical-align: super;
        margin-left: .15em;
        opacity: .85;
    }
/* =============================== Main Layout Styles =============================== */


/* =============================== */
/* Top Toolbar */
/* =============================== */
/* Public-style sticky header + 5px ridge (when not authenticated) */
.top-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}

.top-bar-ridge {
    height: 5px;
    width: 100%;
    background: #fff;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--nav-text);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
}
.menu-toggle:hover {
    background: var(--nav-hover-bg);
    color: var(--nav-active-fg);
}

.login-avatar {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.top-bar {
    background-color: var(--brand-blue); /* Dark blue #326694*/
    color: #fff;
    height: 45px;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 16px;
    gap: 6px;
    flex: 1;
    font-weight: 200;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.topbar-logo {
    height: 24px; /* adjust as needed to fit toolbar height */
    width: auto;
    margin-right: 10px; /* spacing between logo and title */
}


    .top-bar .brand {
        font-family: 'Vipnagorgialla','Segoe UI',Helvetica,Arial,sans-serif !important;
        font-size: 18pt;
        font-weight: 400;
        padding-right: 10px;
    }

.top-bar .tagline {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 11pt;
    font-weight: 300;
    opacity: .95;
    /* truncation */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: clamp(160px, 28vw, 520px); /* adjust as desired */
}

/* Hide on small screens */
@media (max-width:600px) {
    .top-bar .tagline {
        display: none;
    }
}

.tb-left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
}

.tb-center {
    flex: 1 1 600px;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.tb-right {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.login-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 30px;
    border-radius: 8px;
}
    .login-btn:hover {
        background: var(--nav-hover-bg);
        color: var(--nav-active-fg);
    }

.topbar-company {
    max-width: clamp(140px, 22vw, 360px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}



/* =============================== */
/* Sticky Toolbar */
/* =============================== */
.sticky-toolbar {
    height: var(--sectionbar-h);
    position: sticky; /* added recently from suggestion */
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
}

    /* Ensures toolbar space is flexible */
    .sticky-toolbar .e-toolbar-items {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 0 12px;
        min-width: 0;
    }

.section-toolbar {
    height: var(--sectionbar-h);
    width: 100%;
    background-color: #f3f3f3;
    border-bottom: 1px solid #ddd;
    padding: 0 10px;
}



.navigation-title {
    font-size: 16px; /* larger */
    font-weight: bold; /* bold */
    color: #333;
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: 20px;
}


/* Recent pages */
.toolbar-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.recent-pages {
    display: flex;
    gap: 12px;
    align-items: center;
}


.recent-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 18px;
    transition: background-color 0.2s ease; /* optional */
}

    .recent-page-icon i {
        transition: transform 0.2s ease;
        display: block;
    }

    .recent-page-icon:hover i {
        transform: scale(1.2);
    }

/* User info */
.toolbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 10px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}


/* =============================== */
/* Sidebar Menu (Full and Collapsed) */
/* =============================== */

/* Main Layout */
.row {
    display: flex;
    flex-wrap: wrap; /* safer default */
}

.item-manager-container {
    width: 100%;
    padding: 10px;
}
    .item-manager-container .col-lg-9 {
        overflow-x: hidden;
    }

/* Left Panel: Grids and Documents */
.item-grid, .item-documents {
    width: 100%;
    margin-bottom: 20px;
}

.item-grid {
    height: 60vh;
    overflow: hidden;
}

.item-documents {
    height: 40vh;
    overflow-y: auto;
}

.col-lg-3.d-flex.flex-column {
    height: auto;
    max-height: 100%;
    overflow-y: auto;
    padding-bottom: 20px;
}

.item-content-target {
   /* margin-left: 150px;*/ /* Same as Sidebar Width */
    transition: margin-left 0.3s ease;
}

.e-sidebar.e-dock .item-content-target {
    margin-left: 50px; /* Same as DockSize */
}

/* Right Panel: Sticky Details */
.sticky-details {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-left: 1px solid #ddd;
    padding: 15px;
    width: 22%;
}


/* Responsive Layout */
@media screen and (max-width: 1024px) {
    .row {
        flex-direction: column;
    }

    .sticky-details {
        position: relative;
        width: 100%;
        height: auto;
    }
}


/* =============================== */
/* Forms, Validation, Controls     */
/* =============================== */

.control_wrapper {
    max-width: 500px;
    margin: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
    max-height: 420px;
    min-height: 230px;
    overflow: auto;
}


/* Active Item Code */
.active-item-code {
    font-size: smaller;
    font-weight: normal;
    margin-left: 10px;
}

/* Column Name */
.column-name div {
    margin-bottom: 2px;
    margin-left: 5px;
}

/* Column Value */
.column-value {
    white-space: normal;
    display: block;
    margin-bottom: 5px;
    margin-left: 20px;
}

/* Selected row: LightCyan */
.e-grid .e-row[aria-selected="true"] .e-rowcell,
.e-grid .e-selectionbackground,
.e-grid .e-selectionbackground .e-rowcell {
    background-color: #E0FFFF !important;
}

/* Hover row: Azure */
.e-grid .e-row:hover .e-rowcell {
    background-color: #F0FFFF !important;
}

/* Hightlight Cell if BOMSync corrects an improperly entered formula */
.formula-cell {
    transition: background-color 0.3s ease;
}

    .formula-cell.uppercase {
        /* background-color: #e0f7fa;*/ /* optional: light cyan if visually needed */
        font-weight: bold;
    }


/* =============================== */
/* Section Titles & Headers        */
/* =============================== */

.section-title {
    background-color: cornflowerblue;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.info-grid h3 {
    color: white;
    padding: 10px;
    margin: 0;
    border-radius: 4px;
}

.bg-cornflower {
    background-color: cornflowerblue;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.e-mastertext, .e-statustext {
    margin: 10px 0;
}

/* ========================== */
/* Bold all toolbar row labels */
.bs-toolbar-label {
    font-weight: 700;
    margin-bottom: .35rem;
    line-height: 1.1;
}

/* Align all groups to the same baseline */
.bs-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start; /* 👈 aligns all headers to the same top line */
}

/* Keep columns neat */
.bs-toolbar-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 200px;
}

.bs-topbar-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.bs-section-title {
    flex: 2 1 70%; /* give it more space */
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* =============================== */
/* Detail Panels                   */
/* =============================== */
.item-details-panel h5 {
    font-size: 0.9rem;
}

.item-details-panel .btn-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* =============================== */
/* Image Carousel Styles           */
/* =============================== */

/*.template-carousel-section .carousel-sample {
    margin: 0 auto 2em;
    max-width: 200px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}*/
.template-carousel-section {
    max-width: 240px;
    margin: 0 auto;
    overflow: hidden;
}

.templateCarousel .e-carousel-items {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.templateCarousel .img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
}*/

.templateCarousel {
    width: 100%;
    max-width: 100%;
}

    .templateCarousel .img-container {
        width: 200px;
        margin: 0 auto;
    }


    .templateCarousel .img-caption {
        font-weight: bold;
        color: #333;
        font-size: 0.9rem;
        text-align: center;
        margin-top: 0.5rem;
        position: static; /* Remove relative positioning */
    }

    .templateCarousel img {
        width: 200px;
        height: 200px;
        object-fit: contain;
    }

    .templateCarousel .img-container img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }

    .templateCarousel .e-carousel-navigators {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        top: 0;
        width: 100%;
        padding: 0 10px;
        pointer-events: none;
    }

        .templateCarousel .e-carousel-navigators .nav-btn {
            pointer-events: auto;
            padding: 0;
            background-color: transparent;
        }

        .templateCarousel .e-carousel-navigators svg {
            fill: none;
            stroke: currentColor;
            stroke-linecap: square;
            stroke-width: 8px;
            height: 1rem;
            width: 1rem;
        }

        .templateCarousel .e-carousel-navigators .e-previous svg {
            transform: rotate(180deg);
        }

    .templateCarousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar .indicator {
        background-color: #ECECEC;
        border-radius: 0.25rem;
        cursor: pointer;
        height: 3.5rem;
        margin: 0.5rem;
        width: 5rem;
    }

    .templateCarousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar.e-active .indicator {
        background-color: #3C78EF;
    }

/* =============================== */
/* Image Thumbnails Section        */
/* =============================== */

.image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .thumbnail-container img {
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .thumbnail-container button {
        margin-top: 5px;
        padding: 5px 10px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

/* =============================== */
/* Responsive Carousel Adjustments */
/* =============================== */

@media screen and (max-width: 480px) {
    .template-carousel-section .carousel-sample {
        width: 100%;
        height: 250px;
    }

    .templateCarousel .img-container {
        margin: 12px;
    }
}

@media screen and (min-width: 480px) {
    .template-carousel-section .carousel-sample {
        width: 80%;
        height: 400px;
    }
}

/* =============================== */
/* BIM Model Image Viewer Override */
/* =============================== */

.bim-model-carousel {
    width: 100px !important;
    height: 100px !important;
    position: relative;
    overflow: hidden;
}

    .bim-model-carousel .e-carousel-items {
        width: 100px !important;
        height: 100px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bim-model-carousel .img-container {
        width: 100px;
        height: 100px;
        position: relative;
        margin: 0;
    }

        .bim-model-carousel .img-container img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 4px;
        }

    /* Overlay arrows */
    .bim-model-carousel .e-carousel-navigators {
        top: 0 !important;
        height: 100px !important;
        width: 100px !important;
        pointer-events: none;
    }

        .bim-model-carousel .e-carousel-navigators .e-previous,
        .bim-model-carousel .e-carousel-navigators .e-next {
            pointer-events: auto;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
        }

.image-dialog-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    padding: 1rem;
}

    .image-dialog-container img {
        max-width: 1200px;
        max-height: 800px;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }



/* =============================== */
/* Gantt Component (Full and Collapsed) */
/* =============================== */

.gantt-wrapper {
    position: relative;
    height: calc(100vh - 70px);
}

.gantt-content {
    width: 100%;
    overflow: auto;
    padding: 0 12px;
}

.gantt-layout {
    display: flex;
    height: calc(100vh - 80px); /* legacy class, safe to keep for now */
    overflow: hidden;
}

.gantt-centre {
    flex: 1;
    overflow-x: auto;
    transition: width 0.3s ease;
    padding: 0 10px;
}


/* Route-stable push using a root state class */
/*#wrapper.layout.sidebar-open .main-panel {
    margin-left: var(--site-nav-expanded);
}

#wrapper.layout.sidebar-closed .main-panel {
    margin-left: var(--site-nav-collapsed);
}*/

/*sensible baseline so first paint never hides under the rail */
/*#wrapper.layout .main-panel {
    margin-left: var(--site-nav-collapsed);
}*/
/* Push content based on Syncfusion's e-close class */
.layout .sidebar-menu.e-sidebar.e-dock.e-close ~ .main-panel {
    margin-left: var(--site-nav-collapsed); /* 50px */
}

.layout .sidebar-menu.e-sidebar:not(.e-close) ~ .main-panel {
    margin-left: var(--site-nav-expanded); /* 220px */
}

/* Sensible baseline so first paint never hides under the rail */
.layout .main-panel {
    margin-left: var(--site-nav-collapsed);
}


/* =============================== */
/* CSV and File Editor Dialogs (Full and Collapsed) */
/* =============================== */

.bomsync-edit-dialog .e-dlg-content {
    padding: 0 !important;
    overflow: hidden !important;
/*    display: flex;
    flex-direction: column;
    height: 100%;*/
}


/* Make your editor host fill the dialog */
.bomsync-edit-dialog .bomsync-edit-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bomsync-edit-dialog .bomsync-editor-host {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Monaco must fill its host */
.bomsync-edit-dialog .csv-monaco-editor,
.bomsync-edit-dialog .monaco-editor,
.bomsync-edit-dialog .monaco-editor .overflow-guard {
    width: 100% !important;
    height: 100% !important;
}


    /* Critical: prevent Monaco input textarea from being a visible box or affecting layout */
    .bomsync-edit-dialog .monaco-editor textarea.inputarea {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 1px !important;
        height: 1px !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        resize: none !important;
    }


/* =============================== */
/* Toolbar and Icons */
/* =============================== */


/* Sidebar Menu Appearance */
#wrapper .icon-menu {
    font-size: 24px;
}

    #wrapper .icon-menu:before {
        content: '\e914';
        font-family: 'sbicons';
    }

/* Toolbar Styling */
.material #wrapper .e-toolbar {
    border-bottom: 1px solid rgba(0,0,0,0.12);
}


/* =============================== */
/* Special Icon Classes */
/* =============================== */

/* Folder/Heading Font Sizes */
.e-folder {
    text-align: center;
    font-weight: 500;
    font-size: 16px;
}

.e-bigger .e-folder {
    font-size: 18px;
}




/* =============================== */
/* 4. NavBar Icon Styles (Material & Google Icons) */
/* =============================== */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: initial;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.bi {
    display: inline-block;
    position: relative;
    margin-right: 0.75rem;
    background-size: cover;
    font-size: 1.25rem;
    vertical-align: middle;
}

.sidebar-menu .e-menu-icon[class^="bi-"],
.sidebar-menu .e-menu-icon[class*=" bi-"] {
    color: inherit !important;
}

/* =============================== */
/* 5. NavBar Icon Styles (Bootstrap Icons) */
/* =============================== */

/* Material Icons */
/* Special class for Material Symbols inside Menu */
.material-symbols-passkey::before {
    font-family: 'Material Symbols Outlined';
    content: "passkey";
}

.material-symbols-precision-manufacturing::before {
    font-family: 'Material Symbols Outlined';
    content: "precision_manufacturing";
}

.material-symbols-logout::before {
    font-family: 'Material Symbols Outlined';
    content: "logout";
}

.material-symbols-family_restroom::before {
    font-family: 'Material Symbols Outlined';
    content: "family_restroom";
}

.material-symbols-settings_applications::before {
    font-family: 'Material Symbols Outlined';
    content: "settings_applications";
}

.material-symbols-category::before {
    font-family: 'Material Symbols Outlined';
    content: "category";
    color: deepskyblue;
}

.material-symbols-holiday_village::before {
    font-family: 'Material Symbols Outlined';
    content: "holiday_village";
    color: deepskyblue;
}

.material-symbols-home_storage::before {
    font-family: 'Material Symbols Outlined';
    content: "home_storage";
    color: deepskyblue;
}

.material-symbols-home_storage::before {
    font-family: 'Material Symbols Outlined';
    content: "home_storage";
    color: deepskyblue;
}

.material-symbols-analytics::before {
    font-family: 'Material Symbols Outlined';
    content: "analytics";
    color: deepskyblue;
}

.material-symbols-request_quote::before {
    font-family: 'Material Symbols Outlined';
    content: "request_quote";
}

.material-symbols-quick_reference::before {
    font-family: 'Material Symbols Outlined';
    content: "quick_reference";
}

.material-symbols-troubleshoot::before {
    font-family: 'Material Symbols Outlined';
    content: "troubleshoot";
}

.material-symbols-mediation::before {
    font-family: 'Material Symbols Outlined';
    content: "mediation";
}

.material-symbols-globe::before {
    font-family: 'Material Symbols Outlined';
    content: "globe";
}

.material-symbols-gavel::before {
    font-family: 'Material Symbols Outlined';
    content: "gavel";
}

.material-symbols-data_loss_prevention::before {
    font-family: 'Material Symbols Outlined';
    content: "data_loss_prevention";
}

.material-symbols-partner_exchange::before {
    font-family: 'Material Symbols Outlined';
    content: "partner_exchange";
}




/* Bootstrap Icons */
/* HEADER */
.bi-chevron-left, .bi-chevron-right {
    font-size: 1.50rem;
    color: white;
}

/* HOME */
.bi-house-door {
    font-size: 1.25rem;
    color: dodgerblue !important;
}

/* REGISTER */
.bi-person-workspace {
    font-size: 1.25rem;
    color: salmon !important;
}

/* COMPANY */
.bi-building {
    font-size: 1.25rem;
    color: salmon !important;
}

/* CONTACTS */
.bi-people-fill {
    font-size: 1.25rem;
    color: salmon;
}

/* CHAT */
.bi-chat-dots {
    font-size: 1.25rem;
    color: salmon;
}

/* NOTES */
.bi-pencil-square {
    font-size: 1.25rem;
    color: salmon;
}

/* GHANTT */
.bi-bar-chart-steps {
    font-size: 1.25rem;
    color: dodgerblue;
}

/* PROJECTS */
.bi-buildings {
    font-size: 1.25rem;
    color: salmon;
}

/* BIM DATA */
.bi-diagram-3-fill {
    font-size: 1.25rem;
    color: deepskyblue !important;
}

/* NESTING - ITEMS */
.bi-list-nested {
    font-size: 1.25rem;
    color: deepskyblue;
}

/* RESOURCES - ITEMS */
.bi-boxes {
    font-size: 1.25rem;
    color: deepskyblue;
}

/* RECIPES */
.bi-list-columns {
    font-size: 1.25rem;
    color: deepskyblue;
}

/*ADMIN SETTINGS */
.bi-tools {
    font-size: 1.25rem;
    color: orange;
}

/*USER SETTINGS */
.bi-toggles {
    font-size: 1.25rem;
    color: orange !important;
}

/* PROCUREMENT */
.bi-cart {
    font-size: 1.25rem;
    color: mediumspringgreen;
}

/* SHIPPING */
.bi-truck {
    font-size: 1.25rem;
    color: mediumspringgreen;
}

/* HELP */
.bi-info-square {
    font-size: 1.25rem;
    color: whitesmoke;
}

/* REGISTER */
.bi-person-plus {
    font-size: 1.25rem;
    color: white;
}

/* PROFILE */
.bi-person-badge {
    font-size: 1.25rem;
    color: whitesmoke;
}

/* CONTACT */
.bi-person-circle {
    font-size: 1.25rem;
    color: whitesmoke;
}

/*LOGIN */
.bi-box-arrow-in-right {
    font-size: 1.25rem;
    color: whitesmoke;
}

/* LOGOUT */
.bi-box-arrow-left {
    font-size: 1.25rem;
    color: indianred;
}

/* AUTHENTICATION */
.bi-fingerprint {
    font-size: 1.25rem;
    color: whitesmoke;
}

.bi-shield-lock {
    font-size: 1.25rem;
    color: orange !important;
}



/* Sidebar must start below the TopBar (and section toolbar, if present) */
.layout .sidebar-menu.e-sidebar {
    position: fixed;
    left: 0;
    /* if you always have a section toolbar, keep the full calc; 
     if some pages don't, use the simpler line shown below */
    top: calc(var(--topbar-h) + var(--sectionbar-h) + var(--sectionbar-border));
    height: calc(100dvh - var(--footer-h) - var(--topbar-h) - var(--sectionbar-h) - var(--sectionbar-border));
    /* simpler fallback if a page has no section toolbar:
     top: var(--topbar-h);
     height: calc(100dvh - var(--footer-h) - var(--topbar-h));
  */

    z-index: 1200; /* below the TopBar */
}

/* Ensure TopBar is above the sidebar */
.top-bar {
    z-index: 2000;
    position: relative;
}
