﻿.navFontSize {
    font-size: 1.20rem;
    font-weight: bold
}

    .navFontSize li {
        margin-right: 50px;
    }


.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* semi-transparent background */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.estLocked {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.estUnlocked {
}

.blur-backgroundM {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.navStripe {
    background-color: #00a1eb;
    height: 5px;
}

.moShadowM {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}


.moCardBody {
    font-size: 11px;
    background-color: #eeeeee;
}

.moCardBodyB {
    font-size: 11px;
    background-color: #eeeeee;
    color: #000;
}

.moCardBodyW {
    font-size: 11px;
    background-color: #ffffff;
    color: #000;
}

.moRed {
    color: #193773;
}

.moWhite {
    color: #ffffff;
}

.moRedHeader {
    color: #fff;
    background-color: #00a1eb;
    /* background-color: #84a9bf;*/
    font-size: 1.15rem;
}

.moBBHeader {
    color: #fff;
    background-color: #193773;
    font-size: 1.15rem;
}

.headerModal {
    color: #fff;
    background-color: #193773;
    /*background-color: #000;*/
    font-size: 1.15rem;
}

.moBlnkBtn {
    background-color: transparent;
    padding: 0px;
    box-shadow: none !important;
    border-color: transparent;
}


.moRedSelect {
    color: #fff;
    background-color: #f47911;
    border: 1px solid #000;
    border-radius: 7px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    font-size: 0.875rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .moRedSelect:hover {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none;
    }

    .moRedSelect:focus {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        outline: none;
        box-shadow: none;
    }

    .moRedSelect option {
        color: #000;
        background-color: #fff;
    }

.custom-blue-button {
    width: 20px;
    height: 20px;
    background-color: #193773;
    padding: 0;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-blue-button:disabled {
        opacity: 0.7;
    }

.bbBlueBtnM {
    color: #fff;
    background-color: #193773;
    border-color: #000;
    border-radius: 7px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

    .bbBlueBtnM:hover {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
    }

    .bbBlueBtnM:active {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
    }

    .bbBlueBtnM:focus {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
    }

    .bbBlueBtnM:not(:hover):not(:focus):not(:active) {
        color: #fff;
        background-color: #193773;
        border-color: #000;
        border-radius: 7px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

.moRedBtnM {
    color: #fff;
    /* background-color: #00a1eb;*/
    background-color: #193773;
    border-color: #000;
    border-radius: 7px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

    .moRedBtnM:hover {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
    }

    .moRedBtnM:active {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
    }

    .moRedBtnM:focus {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
    }

    .moRedBtnM:not(:hover):not(:focus):not(:active) {
        color: #fff;
        /* background-color: #00a1eb;*/
        background-color: #193773;
        border-color: #000;
        border-radius: 7px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

.moRedBtnMxs {
    color: #fff;
    background-color: #193773;
    border-color: #000;
    border-radius: 7px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 9px;
    padding: 2px !important;
}

    .moRedBtnMxs:hover {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
        font-size: 9px;
        padding: 2px !important;
    }

    .moRedBtnMxs:active {
        color: #000;
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
        font-size: 9px;
        padding: 2px !important;
    }

    .moRedBtnMxs:focus {
        color: #000;
        /*background-color: #76aa2a;*/
        background-color: #6F7380;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
        font-size: 9px;
        padding: 2px !important;
    }

    .moRedBtnMxs:not(:hover):not(:focus):not(:active) {
        color: #fff;
        /* background-color: #00a1eb;*/
        background-color: #193773;
        border-color: #000;
        border-radius: 7px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

.moGrayBtnM {
    color: #fff;
    background-color: #6F7380;
    border-color: #000;
    border-radius: 7px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

    .moGrayBtnM:hover {
        color: #fff;
        background-color: #193773;
        border-color: #000;
        box-shadow: none !important;
    }

    .moGrayBtnM:active {
        color: #fff;
        background-color: #193773;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
    }

    .moGrayBtnM:focus {
        color: #fff;
        background-color: #193773;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
    }

    .moGrayBtnM:not(:hover):not(:focus):not(:active) {
        color: #fff;
        background-color: #6F7380;
        border-color: #000;
        border-radius: 7px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

.moGrayBtnMxs {
    color: #fff;
    background-color: #6F7380;
    border-color: #000;
    border-radius: 7px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 9px;
    padding: 2px !important;
}

    .moGrayBtnMxs:hover {
        color: #fff;
        background-color: #193773;
        border-color: #000;
        box-shadow: none !important;
        font-size: 9px;
        padding: 2px !important;
    }

    .moGrayBtnMxs:active {
        color: #fff;
        background-color: #193773;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
        font-size: 9px;
        padding: 2px !important;
    }

    .moGrayBtnMxs:focus {
        color: #fff;
        background-color: #193773;
        border-color: #000;
        box-shadow: none !important;
        outline: 0px !important;
        font-size: 9px;
        padding: 2px !important;
    }


.video-container {
    /* width is set as 100% here. any width can be specified as per requirement */
    width: 100%;
    padding-top: 56.25%;
    height: 0px;
    position: relative;
}

.video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}


/*------DRAWER MODAL STYLING----*/

.drawerM-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.drawerM-header-dup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    background-color: #6F7380;
    color: #fff;
}


.drawerM-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.drawerM-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.drawerM-panel {
    background: white;
    width: 500px;
    max-width: 90vw;
    max-height: 90vh;
    height: auto;
    padding: 1rem;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px 0 0 8px;
    overflow-y: auto;
    animation: slideInRight 0.3s ease-out;
}

.drawerM-content {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

.drawerM-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 999;
}

    /* Show when opening */
    .drawerM-backdrop.open .drawerM-panel {
        animation: slideInRight 0.3s ease-out forwards;
    }

    /* Show when closing */
    .drawerM-backdrop.closing .drawerM-panel {
        animation: slideOutRight 0.3s ease-in forwards;
    }

/* Animate out */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animate in */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* LIGHT WEIGHT CUSTOM TREE */

.simple-tree-wrapper-admin {
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
}

.simple-tree-wrapper {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
}

.tree-nodeLw {
    padding: 4px 0;
    margin-bottom: 6px;
}

.nodetextLw {
    flex: 1;
}

.nodeEditLw {
    display: flex;
    gap: 4px;
}

@keyframes mic-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

.mic-blinking {
    animation: mic-blink 1s steps(2, end) infinite;
}


@media (prefers-reduced-motion: reduce) {
    .mic-blinking {
        animation: none;
    }
}

.mobile-only {
    display: none;
}

@media (pointer: coarse) {
    .mobile-only {
        display: inline-block;
    }
}

.qty-hit {
    padding: .35rem .6rem;
    min-width: 2.25rem;
    line-height: 1.25;
}

.upload-drop-area {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    z-index: 1;
}

    .upload-drop-area:hover,
    .upload-drop-area.dragover {
        background-color: #f9f9f9;
    }

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
    z-index: 1;
}

.upload-button {
    background-color: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

.upload-text {
    color: #666;
}

/* =========================================================
   Web shell (TopNav + Sidebar layout)
   ========================================================= */
.web-shell {
    min-height: 100dvh;
    display: flex;
    background: var(--bg-app);
}

.web-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* main content padding */
.web-content {
    padding: var(--s-6);
    min-width: 0;
}

/* Sidebar styling (desktop) */
.web-sidebar-dark {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.web-sidebar {
    width: 240px;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.08);
}

/* Top nav should stay above content */
.web-topnav {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--bg-surface);
}

/* =========================================================
   Phase 2: App Shell (Sidebar + Main + Topbar)
   ========================================================= */

.z-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 260px 1fr;
    background: var(--bg-app);
}

.z-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100dvh;
    position: sticky;
    top: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.08);
}

    /* If your sidebar content needs scrolling */
    .z-sidebar .sidebar-nav {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;       
    }

/* Main area */
.z-main {
    min-width: 0;
    background: var(--bg-app);
}

/* Topbar surface */
.z-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

/* Main content padding */
.z-content {
    padding: var(--s-6);
    min-width: 0;
}

/* Mobile content padding */
.z-mobile-content {
    padding: var(--s-4);
    background: var(--bg-app);
    min-height: calc(100dvh - 120px); /* keeps it from feeling cramped */
}

/* =========================================================
   Top Nav (token-driven, no Bootstrap)
   ========================================================= */

.web-topnav {
    background: transparent; /* z-topbar provides the surface */
}

.web-topnav__inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: 0 var(--s-6);
}

.web-topnav__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.web-topnav__logo {
    max-height: 42px;
    width: auto;
    display: block;
}

.web-topnav__right {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

/* =========================================================
   Sidebar nav look (keeps your existing markup)
   ========================================================= */

.sidebar-nav {
    list-style: none;
    margin: 0;
}

.sidebar-link.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--sidebar-text);
    text-decoration: none;
}

    .sidebar-link.nav-link:hover {
        background: var(--sidebar-hover);
        color: #fff;
    }

    .sidebar-link.nav-link.active {
        background: rgba(255,255,255,0.12);
        color: #fff;
    }

/* Your existing icon/text wrappers */
.bottom-ico {
    width: 22px;
    display: flex;
    justify-content: center;
}

.bottom-txt {
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
}

/* Optional: smaller labels in sidebar if you want */
@media (max-width: 1100px) {
    .z-shell {
        grid-template-columns: 240px 1fr;
    }
}


/* =========================================================
   Sidebar component styling (desktop + offcanvas)
   ========================================================= */

.z-sidebar__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding: var(--s-5) var(--s-3);
}

/* Brand area */
.z-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 14px;
}

    .z-sidebar__brand:hover {
        background: rgba(255,255,255,0.06);
    }

.z-sidebar__logo {
    max-height: 42px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* turns dark logo light if needed */
    opacity: 0.95;
}

/* Make the nav area fill and scroll if needed */
.z-sidebar .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
}

/* =========================================================
   Offcanvas skin to match dark sidebar
   ========================================================= */

.z-offcanvas {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.z-offcanvas__header {
    background: var(--sidebar-bg);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.z-offcanvas__title {
    font-weight: var(--fw-bold);
    letter-spacing: 0.01em;
}

.z-offcanvas__body {
    background: var(--sidebar-bg);
}

/* Bootstrap close button visibility on dark */
.z-offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

    .z-offcanvas .btn-close:hover {
        opacity: 1;
    }


/* =========================================================
   Phase 2: Sidebar Nav (WebSidebarNav.razor)
   ========================================================= */

.z-sidebar .sidebar-nav,
.z-offcanvas .sidebar-nav {
    padding: 0 !important; /* shell controls padding */
    margin: 0;
    list-style: none;
}

/* Reset Bootstrap nav-link look in our sidebar */
.z-sidebar .sidebar-link.nav-link,
.z-offcanvas .sidebar-link.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--sidebar-text);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent; /* enables crisp active outline */
    box-shadow: none;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

/* Icon column */
.z-sidebar .bottom-ico,
.z-offcanvas .bottom-ico {
    width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

    /* FontAwesome icon sizing consistency */
    .z-sidebar .bottom-ico i,
    .z-offcanvas .bottom-ico i {
        font-size: 16px;
        line-height: 1;
    }

/* Label */
.z-sidebar .bottom-txt,
.z-offcanvas .bottom-txt {
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
    font-size: var(--text-md);
}

/* Hover */
.z-sidebar .sidebar-link.nav-link:hover,
.z-offcanvas .sidebar-link.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* Active pill (NavLink adds .active) */
.z-sidebar .sidebar-link.nav-link.active,
.z-offcanvas .sidebar-link.nav-link.active {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}

/* Slight “press” feedback */
.z-sidebar .sidebar-link.nav-link:active,
.z-offcanvas .sidebar-link.nav-link:active {
    transform: translateY(1px);
}

/* Make Bootstrap .nav-pills not inject its own active background */
.z-sidebar .nav-pills .nav-link.active,
.z-offcanvas .nav-pills .nav-link.active {
    background: rgba(255,255,255,0.12) !important;
}

/* Optional: dim items that are not active */
.z-sidebar .sidebar-link.nav-link:not(.active),
.z-offcanvas .sidebar-link.nav-link:not(.active) {
    color: var(--sidebar-text);
}
