﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

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

a, .btn-link {
    color: #0366d6;
}

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

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

/*表格单元格编辑*/
.editable-cell {
    position: relative;
}

.editable-cell-value-wrap {
    padding: 5px 12px;
    cursor: pointer;
}

.editable-row:hover .editable-cell-value-wrap {
    padding: 4px 11px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    height: 30px;
}

[data-theme='dark'] .editable-row:hover .editable-cell-value-wrap {
    border: 1px solid #434343;
}

/*表格列背景色*/
.table-background-color {
    background-color: lightcyan;
}
/* ===== 2026-10-17 用户指令：合计栏吸底 / 表格内部滚动（统计页 + 提现记录 + 提现明细） ===== */
.ant-table-summary > td,
.ant-table-summary td {
    position: -webkit-sticky !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;
    background: #FAFAFA !important;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, .10) !important;
}
.ant-table-content:has(.ant-table-summary),
body:has(.wr-foot) .ant-table-content,
body:has(.pd-foot) .ant-table-content {
    max-height: calc(100vh - 320px) !important;
    overflow: auto !important;
}
.ant-table-content:has(.ant-table-summary) .ant-table-thead > tr > th,
body:has(.wr-foot) .ant-table-thead > tr > th,
body:has(.pd-foot) .ant-table-thead > tr > th {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 19 !important;
    background: #FAFAFA !important;
}

/* ===== 2026-10-17 v2：表格内部滚动 + 表头吸顶 + 底部合计条吸底（不依赖 :has()） ===== */
.ant-table-content, .ant-table-body { max-height: calc(100vh - 300px) !important; overflow: auto !important; }
.ant-table-thead > tr > th { position: -webkit-sticky !important; position: sticky !important; top: 0 !important; z-index: 19 !important; background: #FAFAFA !important; }
.ant-table-summary > td, .ant-table-summary td { position: -webkit-sticky !important; position: sticky !important; bottom: 0 !important; z-index: 20 !important; background: #FAFAFA !important; box-shadow: 0 -3px 8px rgba(0,0,0,.10) !important; }
.wr-foot, .pd-foot { position: -webkit-sticky !important; position: sticky !important; bottom: 0 !important; z-index: 30 !important; box-shadow: 0 -3px 8px rgba(0,0,0,.10) !important; }

/* ===== 2026-10-17 v3：底部合计条**绝对固定**（sticky 只在进入视口后才粘，筛选后会滑到底才出现） ===== */
.wr-foot, .pd-foot {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 8 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,.12) !important;
}
body { padding-bottom: 78px !important; }

/* ===== 2026-10-17 v4：底栏只占右侧内容区（不盖左侧导航栏），并让出页脚位置 ===== */
.wr-foot, .pd-foot {
    position: fixed !important;
    left: 100px !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 8 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,.12) !important;
}
body { padding-bottom: 132px !important; }

/* ===== 2026-10-17 v5：内容区(Content)自身定高滚动 + 底栏 sticky（只在页面内，不横跨侧边栏） ===== */
.ant-layout-content {
    max-height: calc(100vh - 96px) !important;
    overflow: auto !important;
}
.wr-foot, .pd-foot {
    position: -webkit-sticky !important;
    position: sticky !important;
    left: auto !important;
    right: auto !important;
    bottom: 0 !important;
    z-index: 30 !important;
    margin: 0 0 0 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,.12) !important;
}
body { padding-bottom: 0 !important; }

/* ===== 2026-10-17 v6：Content 高度微调（Header 64 + Footer 40 + 余量），确保页脚始终可见 ===== */
.ant-layout-content {
    max-height: calc(100vh - 140px) !important;
    overflow: auto !important;
}

/* ===== 2026-10-17：收单数据采集 底部合计栏（吸底） ===== */
.cd-foot {
    position: -webkit-sticky !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 30 !important;
    display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: flex-end;
    margin-top: 8px; padding: 10px 16px; background: #fffbe6; border: 1px solid #ffe58f;
    box-shadow: 0 -4px 12px rgba(0,0,0,.12);
}
.cd-foot b { color: #d46b08; font-size: 16px; }

/* ===== 2026-10-17：采集页合计栏改按钮 + 贴紧表格 + 内容区加高 ===== */
.cd-foot { margin-top: 0 !important; gap: 10px !important; padding: 8px 12px !important; }
.cd-foot .cd-btn {
    border: 1px solid #ffd591; background: #fff; color: #614700;
    border-radius: 14px; padding: 3px 12px; font-size: 13px; cursor: pointer;
    line-height: 22px; transition: all .15s;
}
.cd-foot .cd-btn:hover { border-color: #fa8c16; color: #d46b08; }
.cd-foot .cd-btn.on { background: #fa8c16; border-color: #fa8c16; color: #fff; }
.cd-foot .cd-btn.on b { color: #fff; }
.cd-foot .cd-btn b { color: #d46b08; font-weight: 700; }
.ant-layout-content { max-height: calc(100vh - 108px) !important; }
