@import 'FreightHub.Client.3mi73tsqcl.bundle.scp.css';
@import '_content/FreightHub.UI/FreightHub.UI.xbrnwup8y6.bundle.scp.css';
@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';

/* /Components/Layout/Footer.razor.rz.scp.css */
.app-footer[b-91uvzbhfvt] {
    margin-top: auto; /* 关键：配合 Flexbox 将 footer 推到底部 */
}

.d-flex.gap-3 a[b-91uvzbhfvt] {
    transition: transform 0.2s ease-in-out, color 0.2s;
}

    .d-flex.gap-3 a:hover[b-91uvzbhfvt] {
        transform: translateY(-3px);
    }

.footer-legal-links a:hover[b-91uvzbhfvt] {
    text-decoration: underline !important;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-v85r2ovdn0] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh; /* 锁定高度为视口高度 */
    overflow: hidden; /* 禁止外层滚动 */
}

main[b-v85r2ovdn0] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0; 
}
/* 关键：中间内容区域 */
.content[b-v85r2ovdn0] {
    flex: 1; /* 占据剩余的所有空间 */
    overflow-y: auto; /* 如果内容超出，只在这里显示滚动条 */
    padding-bottom: 1.5rem; /* 给底部留一点呼吸空间 */
}
.footer-legal-links a:hover[b-v85r2ovdn0] {
    color: #0d6efd !important;
    text-decoration: underline !important;
}

/* 底部组件作为 flex 的最后一项，会因为 content 的 flex:1 被推到最下面 */
.app-footer[b-v85r2ovdn0] {
    flex-shrink: 0;
    background-color: #fff; /* 建议设置背景色，避免内容滚动到后面时透出来 */
    z-index: 10; /* 确保在内容之上 */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); /* 可选：加一点阴影增加层次感 */
}

.sidebar[b-v85r2ovdn0] {
    background-color: #e0e0e0;
    overflow: hidden;
}

.top-row[b-v85r2ovdn0] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .top-row[b-v85r2ovdn0]  a, .top-row[b-v85r2ovdn0]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-v85r2ovdn0]  a:hover, .top-row[b-v85r2ovdn0]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-v85r2ovdn0]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-v85r2ovdn0] {
        justify-content: space-between;
    }

    .top-row[b-v85r2ovdn0]  a, .top-row[b-v85r2ovdn0]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-v85r2ovdn0] {
        flex-direction: row;
    }

    .sidebar[b-v85r2ovdn0] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        transition: width 0.18s ease;
    }

    /* 折叠成图标栏：只留图标，悬停用 title 提示名字 */
    .page.sidebar-collapsed .sidebar[b-v85r2ovdn0] {
        width: 64px;
    }

    .page.sidebar-collapsed[b-v85r2ovdn0]  .nav-text {
        display: none;
    }

    .page.sidebar-collapsed[b-v85r2ovdn0]  .navbar-brand {
        display: none;
    }

    /* 品牌名隐藏后，品牌条里只剩汉堡按钮：去掉行首缩进并把内容居中，64px 里才真正对准中线 */
    .page.sidebar-collapsed[b-v85r2ovdn0]  .sidebar .top-row {
        padding-left: 0 !important;
    }

    .page.sidebar-collapsed[b-v85r2ovdn0]  .sidebar .top-row .container-fluid {
        justify-content: center !important;
    }

    .page.sidebar-collapsed[b-v85r2ovdn0]  .nav-item {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .page.sidebar-collapsed[b-v85r2ovdn0]  .nav-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .page.sidebar-collapsed[b-v85r2ovdn0]  .bi {
        margin-right: 0;
        top: 0;
        width: 1rem;
        text-align: center;
    }

    .top-row[b-v85r2ovdn0] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-v85r2ovdn0]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-v85r2ovdn0], article[b-v85r2ovdn0] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-v85r2ovdn0] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-v85r2ovdn0] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* 头部按钮只在手机显示：桌面端的折叠入口在菜单树顶部 */
.fh-sidebar-toggle--header[b-v85r2ovdn0] {
    display: inline-flex;
}

@media (min-width: 641px) {
    .fh-sidebar-toggle--header[b-v85r2ovdn0] {
        display: none;
    }
}

/* 手机端：侧栏变成从左侧滑出的抽屉 + 半透明遮罩（桌面端这些规则不生效） */
@media (max-width: 640.98px) {
    .sidebar[b-v85r2ovdn0] {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        width: 250px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .page.sidebar-open .sidebar[b-v85r2ovdn0] {
        transform: translateX(0);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    }

    .fh-sidebar-backdrop[b-v85r2ovdn0] {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.45);
        z-index: 1040;
    }

    .page.sidebar-open .fh-sidebar-backdrop[b-v85r2ovdn0] {
        display: block;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* 侧栏内部样式。折叠/抽屉的布局规则在 MainLayout.razor.css 里（那边持有 .page 与 .sidebar）。 */
.top-row[b-xog3aoxljs] {
    min-height: 3.5rem;
    background-color: #b0b0b0;
}

.navbar-brand[b-xog3aoxljs] {
    font-size: 1.1rem;
}

/* 只作用于菜单项里的图标：这组 top/margin 是为了把图标和 3rem 行高的文字对齐，
   如果套到菜单树顶部的汉堡上，会把按钮顶高，折叠成图标栏后（那一栏会重置 top）又落下来。 */
.nav-item .bi[b-xog3aoxljs] {
    display: inline-block;
    position: relative;
    width: 0.75rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -0.8rem;
    background-size: cover;
}

.nav-item[b-xog3aoxljs] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-xog3aoxljs] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-xog3aoxljs] {
        padding-bottom: 1rem;
    }

    .nav-item[b-xog3aoxljs]  .nav-link {
        color: #495057;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-xog3aoxljs]  a.active {
    background-color: rgba(0,0,0,0.08);
    color: #212529;
}

.nav-item[b-xog3aoxljs]  .nav-link:hover {
    background-color: rgba(0,0,0,0.05);
    color: #000;
}

/* 不论桌面还是手机，菜单区都自己滚动；手机抽屉的高度由 MainLayout 限定。
   移动浏览器地址栏会改变可视高度，所以优先用 dvh，老浏览器回退到 100vh。 */
.nav-scrollable[b-xog3aoxljs] {
    display: block;
    height: calc(100vh - 3.5rem);
    height: calc(100dvh - 3.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-3m025y2gdt],
.components-reconnect-repeated-attempt-visible[b-3m025y2gdt],
.components-reconnect-failed-visible[b-3m025y2gdt],
.components-pause-visible[b-3m025y2gdt],
.components-resume-failed-visible[b-3m025y2gdt],
.components-rejoining-animation[b-3m025y2gdt] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-retrying[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-failed[b-3m025y2gdt],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-3m025y2gdt] {
    display: block;
}


#components-reconnect-modal[b-3m025y2gdt] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-3m025y2gdt 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-3m025y2gdt 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-3m025y2gdt 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-3m025y2gdt]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-3m025y2gdt 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-3m025y2gdt {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-3m025y2gdt {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-3m025y2gdt {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-3m025y2gdt] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-3m025y2gdt] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-3m025y2gdt] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-3m025y2gdt] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-3m025y2gdt] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-3m025y2gdt] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-3m025y2gdt] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-3m025y2gdt 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-3m025y2gdt] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-3m025y2gdt {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
