body {
    max-width: 1600px;
    min-width: 1600px;
    margin: 0 auto;
    height: 3000px;
    display: flex;
    cursor: default;
}

.ce {
    width: 120px;
    background: #9fb5c9;
    font-size: 20px;
    height: 100%;
}

.ce ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.ce ul li {
    width: 100%;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.ce ul li:hover,
.ce ul li.active {
    cursor: pointer;
    color: blue;
    background: #5e7488;
}

.zhu {
    flex: 1;
    display: flex;
}

.main-item {
    flex: 1;
    background: #89a5c0;
    display: flex;
    width: 1480px;
    flex-direction: column;
}

/* 仅用户管理页：上面列表，下面加减分 */
#xiaoxi.main-item,
#yonghu.main-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 10px 0;
    box-sizing: border-box;
}

button {
    width: 70px;
    height: 34px;
    margin-left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    gap: 10px;
}

button:hover {
    background-color: #caeb13;
    color: #e41d1d;
}

/* 用户加减分区域 */
.yonghu-action-panels {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 10px;
}

.yonghu-jiafen-jianfen {
    flex: 1;
    max-width: none;
    min-height: 140px;
    padding: 12px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.yonghu-gudong-panel {
    flex: 1;
    min-height: 140px;
    padding: 12px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.yonghu-fanli-panel {
    flex: 1.2;
    min-height: 140px;
    padding: 12px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.yonghu-jiafen-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.yonghu-jiafen-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.yonghu-jiafen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.yonghu-jf-input {
    width: 140px;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    box-sizing: border-box;
}

.yonghu-select-input {
    width: 160px;
    height: 30px;
}

#yonghu-rebate-group {
    width: 220px;
}

#yonghu-rebate-date {
    width: 160px;
}

#yonghu-rebate-status {
    display: inline-block;
    min-height: 18px;
    color: #333;
}

.yonghu-jiafen-buttons {
    justify-content: flex-start;
}

.yonghu-jiafen-buttons button {
    width: auto;
    height: 30px;
    font-size: 13px;
    padding: 0 12px;
}

/* 用户列表模块 */
.yonghu-list-item1-page button,
.yonghu-list-item1-biaoti button {
    width: auto;
    height: 28px;
    color: #000;
    border: none;
    border-radius: 4px;
    margin-top: auto;
    padding: 0 16px;
    border: #00000079 solid 1px;
    font-size: 14px;
    font-weight: normal;
}

.yonghu-list-item1 {
    width: 100%;
    height: 447px;
    display: flex;
    flex-direction: column;
    border: 1px solid #00000079;
    box-sizing: border-box;
    border-radius: 4px;
    gap: 8px;
}

.yonghu-list-item1-biaoti {
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #a7c2e2;
    border-radius: 4px;
    box-sizing: border-box;
}

.yonghu-list-item1-biaoge {
    width: 100%;
    height: 373px;
    background-color: #a7c2e2;
    border-radius: 4px;
    box-sizing: border-box;
}

.yonghu-list-item1-table {
    width: 100%;
    border-radius: 4px;
    border-collapse: collapse;
    table-layout: fixed;
}

.yonghu-list-item1-table thead {
    background-color: #86afe0;
}

.yonghu-list-item1-table th,
.yonghu-list-item1-table td {
    min-width: 50px;
    height: 34px;
    line-height: 34px;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid #00000079;
    font-size: 14px;
    font-family: inherit;
    padding: 0;
}

.yonghu-list-item1-table td {
    cursor: pointer;
}

.yonghu-list-item1-page {
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background-color: #a7c2e2;
    border-radius: 4px;
    box-sizing: border-box;
}

.yonghu-list-item1-page-numbers {
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.yonghu-list-item1-page-num.active {
    background: #1976d2 !important;
    color: #fff !important;
}

.buweihao_shengcheng {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buweihao-panel {
    width: 100%;
    padding: 12px 16px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.buweihao-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.buweihao-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.buweihao-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buweihao-range-row strong {
    color: #0c4b88;
}

.buwei-select {
    width: 240px;
    height: 32px;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    box-sizing: border-box;
}

.buweihao-actions {
    justify-content: flex-start;
}

#buwei-generate-btn {
    width: auto;
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
}

#helper-generate-btn {
    width: auto;
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
}

#buwei-generate-status {
    display: inline-block;
    min-height: 18px;
    line-height: 1.5;
}

#helper-generate-status {
    display: inline-block;
    min-height: 18px;
    line-height: 1.5;
}

/* 公告发送区域 */
.gonggao_mess {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.gonggao-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gonggao-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gonggao-textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    padding: 6px 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    font-family: inherit;
}

.gonggao-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#gonggao-send-btn {
    width: auto;
    height: 30px;
    font-size: 14px;
    padding: 0 16px;
}

.gonggao-tip {
    font-size: 12px;
    color: #333;
}

.gonggao-status {
    margin-top: 4px;
    font-size: 13px;
    color: #333;
}

/* 顶部轮播文案配置区域 */
.lunbo_mess {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.lunbo-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.lunbo-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lunbo-textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    padding: 6px 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    font-family: inherit;
}

.lunbo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#lunbo-save-btn {
    width: auto;
    height: 30px;
    font-size: 14px;
    padding: 0 16px;
}

.lunbo-tip {
    font-size: 12px;
    color: #333;
}

.lunbo-status {
    margin-top: 4px;
    font-size: 13px;
    color: #333;
}

/* 新用户默认欢迎语配置区域（官方消息 / 官方客服） */
.chuangjian_guanfang_huanyingyu,
.chuangjian_kefu_huanyingyu {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.huanying-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.huanying-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.huanying-textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    padding: 6px 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    font-family: inherit;
}

.huanying-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#huanying-guanfang-save-btn,
#huanying-kefu-save-btn {
    width: auto;
    height: 30px;
    font-size: 14px;
    padding: 0 16px;
}

.huanying-tip {
    font-size: 12px;
    color: #333;
}

.huanying-status {
    margin-top: 4px;
    font-size: 13px;
    color: #333;
}

/* 客服管理区域整体布局 */
#kefu.main-item {
    padding: 10px;
    box-sizing: border-box;
}

.kefu-container {
    display: flex;
    width: 100%;
    height: 850px;
    gap: 10px;
}

/* 左侧用户列表 */
.kefu-user-list {
    width: 260px;
    min-width: 220px;
    max-width: 320px;
    background-color: #a1c3e2;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.kefu-user-list-header {
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.kefu-user-list-body {
    flex: 1;
    overflow-y: auto;
}

.kefu-user-item {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kefu-user-item:hover,
.kefu-user-item.active {
    background-color: #86afe0;
}

.kefu-user-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kefu-user-item-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kefu-user-item-uid {
    font-size: 12px;
    color: #333;
}

.kefu-user-unread {
    margin-left: auto;
    min-width: 18px;
    padding: 0 4px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    background-color: #ff4d4f;
    color: #fff;
    font-size: 12px;
    text-align: center;
    display: inline-block;
}

.kefu-user-unread.hidden {
    display: none;
}

.kefu-user-item-bottom {
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右侧聊天面板 */
.kefu-chat-panel {
    flex: 1;
    min-width: 0;
    background-color: #a1c3e2;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.kefu-chat-header {
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 15px;
    font-weight: 600;
}

.kefu-chat-history {
    flex: 1;
    padding: 10px 12px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kefu-chat-empty {
    text-align: center;
    color: #333;
    font-size: 14px;
    margin-top: 40px;
}

.kefu-chat-message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kefu-chat-message.kefu-self {
    align-self: flex-end;
    text-align: right;
}

.kefu-chat-message.kefu-other {
    align-self: flex-start;
}

.kefu-chat-bubble {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 14px;
    word-break: break-all;
}

.kefu-chat-message.kefu-self .kefu-chat-bubble {
    background-color: #d1e9ff;
}

.kefu-chat-time {
    font-size: 11px;
    color: #333;
}

.kefu-chat-image {
    max-width: 220px;
    max-height: 220px;
    border-radius: 6px;
    display: block;
}

.kefu-chat-input {
    padding: 8px 10px;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kefu-input-text {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    padding: 6px 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    font-family: inherit;
}

.kefu-chat-input-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#kefu-choose-image-btn,
#kefu-send-btn {
    width: auto;
    height: 30px;
    font-size: 14px;
    padding: 0 16px;
}

/* 群客服：群主 / 财务 单独管理，不与官方客服混用 */
#qun_kefu.main-item {
    padding: 14px;
    box-sizing: border-box;
}

.qun-kefu-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 720px;
    max-height: 920px;
    gap: 14px;
    overflow: hidden;
}

.qun-kefu-sidebar {
    width: 320px;
    min-width: 280px;
    max-width: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.qun-kefu-role-list {
    background: linear-gradient(180deg, #bdd8ef 0%, #a8cae8 100%);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(64, 96, 128, 0.14);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 134px;
    max-height: 190px;
    overflow-y: auto;
    flex: 0 0 auto;
}

.qun-kefu-role-item {
    padding: 12px 14px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(56, 88, 120, 0.12);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.58);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 64px;
    box-sizing: border-box;
}

.qun-kefu-role-item:last-child {
    border-bottom: 1px solid rgba(56, 88, 120, 0.12);
}

.qun-kefu-role-item:hover,
.qun-kefu-role-item.active {
    background-color: #f6fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(72, 108, 148, 0.12);
}

.qun-kefu-role-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f3144;
    line-height: 1.2;
}

.qun-kefu-role-main {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qun-kefu-role-meta {
    font-size: 12px;
    color: #4e6478;
    margin-top: 5px;
    line-height: 1.25;
}

.qun-kefu-role-meta-uid {
    color: #5d7388;
}

.qun-kefu-role-unread {
    flex: 0 0 auto;
    align-self: center;
    min-width: 24px;
    padding: 0 7px;
    height: 24px;
    line-height: 24px;
    border-radius: 12px;
    background-color: #ff4d4f;
    color: #fff;
    font-size: 12px;
    text-align: center;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.28);
}

.qun-kefu-role-unread.hidden {
    display: none;
}

#qun_kefu .kefu-user-list {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, #bdd8ef 0%, #a8cae8 100%);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(64, 96, 128, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#qun_kefu .kefu-user-list-header {
    height: 44px;
    line-height: 44px;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 600;
    color: #23384d;
    background: rgba(255, 255, 255, 0.2);
}

#qun_kefu .kefu-user-list-body {
    padding: 8px 0;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

#qun_kefu .kefu-user-item {
    margin: 0 8px 8px;
    padding: 11px 12px 10px;
    min-height: 82px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(56, 88, 120, 0.08);
    background-color: rgba(255, 255, 255, 0.42);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#qun_kefu .kefu-user-item:hover,
#qun_kefu .kefu-user-item.active {
    background-color: #f7fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(72, 108, 148, 0.1);
}

#qun_kefu .kefu-user-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#qun_kefu .kefu-user-item-name {
    display: block;
    max-width: none;
    color: #1f3144;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

#qun_kefu .qun-kefu-member-main {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#qun_kefu .kefu-user-item-uid {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
}

#qun_kefu .kefu-user-item-uid,
#qun_kefu .kefu-user-item-bottom {
    color: #4d6278;
}

#qun_kefu .kefu-user-item-bottom {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.25;
}

#qun_kefu .kefu-user-unread {
    flex: 0 0 auto;
    align-self: center;
    margin-left: 0;
    margin-top: 0;
}

#qun_kefu .kefu-chat-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #bdd8ef 0%, #a7cae9 100%);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(64, 96, 128, 0.16);
}

#qun_kefu .kefu-chat-header {
    min-height: 56px;
    height: auto;
    padding: 12px 18px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #213447;
    background: rgba(255, 255, 255, 0.16);
}

#qun_kefu .kefu-chat-history {
    min-height: 0;
    padding: 18px 20px 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%),
        linear-gradient(135deg, #b8d5ee 0%, #a4c6e4 100%);
}

#qun_kefu .kefu-chat-empty {
    color: #39526a;
    font-size: 15px;
}

#qun_kefu .kefu-chat-message {
    max-width: 62%;
}

#qun_kefu .kefu-chat-bubble {
    padding: 9px 12px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(74, 107, 145, 0.08);
}

#qun_kefu .kefu-chat-message.kefu-self .kefu-chat-bubble {
    background-color: #dff0ff;
}

#qun_kefu .kefu-chat-time {
    color: #4e6780;
    margin-top: 2px;
}

#qun_kefu .kefu-chat-input {
    padding: 12px 18px 16px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.18);
}

#qun_kefu .kefu-input-text {
    min-height: 74px;
    border-radius: 10px;
    border: 1px solid rgba(90, 119, 148, 0.22);
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

#qun_kefu .kefu-chat-input-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

#qun-kefu-choose-image-btn,
#qun-kefu-send-btn {
    min-width: 96px;
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
    white-space: nowrap;
    cursor: pointer;
}

#qun-kefu-choose-image-btn {
    background-color: #ffffff;
    color: #30506e;
    box-shadow: 0 4px 12px rgba(65, 97, 128, 0.08);
}

#qun-kefu-send-btn {
    background: linear-gradient(180deg, #2a7de1 0%, #1763bf 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(23, 99, 191, 0.28);
}

@media (max-width: 960px) {
    .qun-kefu-container {
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .qun-kefu-sidebar {
        width: 100%;
        max-width: none;
        height: auto;
        overflow: visible;
    }

    #qun_kefu .kefu-user-list {
        min-height: 280px;
    }

    #qun_kefu .kefu-chat-panel {
        min-height: 520px;
        height: auto;
    }
}

/* 群管理：创建群表单（整块都在这里） */
#qun.main-item {
    box-sizing: border-box;
}

.qun-create {
    width: 100%;
    padding: 14px 18px 18px;
    box-sizing: border-box;
    background-color: #a1c3e2;
}

.qun-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.qun-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.qun-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qun-form-row+.qun-form-row {
    margin-top: 4px;
}

.qun-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* 手动发包区域 */
#fabao.main-item {
    padding: 18px 22px 20px;
    box-sizing: border-box;
}

.fabao-layout {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.fabao-card {
    width: 100%;
    padding: 14px 16px 16px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(44, 77, 114, 0.08);
}

.fabao_quyu {
    max-width: 700px;
}

.fabao_random_quyu {
    max-width: 520px;
}

.fabao-header {
    margin-bottom: 14px;
    text-align: center;
}

.fabao-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3d;
    letter-spacing: 0.5px;
}

.fabao-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fabao-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 22px rgba(44, 77, 114, 0.08);
    backdrop-filter: blur(6px);
}

.fabao-row-block {
    align-items: center;
}

.fabao-label {
    width: 84px;
    min-width: 84px;
    font-size: 13px;
    font-weight: 700;
    color: #23384d;
    padding-top: 0;
    line-height: 1.3;
}

.fabao-input {
    width: 200px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(64, 97, 132, 0.24);
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.98);
    color: #223548;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 2px 8px rgba(60, 93, 128, 0.04);
}

.fabao-panel-box,
.fabao_leishuzi,
.fabao_shuliang {
    flex: 1;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
}

.fabao-panel-placeholder {
    font-size: 13px;
    color: #58708a;
}

.fabao-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fabao-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fabao-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.fabao-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fabao-count-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fabao-count-btn {
    width: 46px;
    min-width: 46px;
    height: 40px;
    margin-left: 0;
    padding: 0;
    border: 1px solid rgba(64, 97, 132, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #223548;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(60, 93, 128, 0.05);
}

.fabao-count-btn.active {
    background: linear-gradient(180deg, #2f7bd2 0%, #1f63b2 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 99, 178, 0.22);
}

.fabao-input-small,
.fabao-select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(64, 97, 132, 0.24);
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.98);
    color: #223548;
    box-shadow: 0 2px 8px rgba(60, 93, 128, 0.04);
}

.fabao-lei-input {
    width: 220px;
    max-width: 100%;
}

.fabao-lei-grid {
    max-width: 240px;
}

.fabao-split-row {
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    margin-left: -84px;
}

.fabao-preview-box {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(64, 97, 132, 0.18);
    box-sizing: border-box;
    font-size: 12px;
    line-height: 18px;
    color: #58708a;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.fabao-preview-inline {
    flex: 1;
}

.fabao-preview-box.is-error {
    color: #8a2f2f;
    border-color: rgba(173, 74, 74, 0.35);
    background: rgba(255, 243, 243, 0.95);
}

.fabao-preview-box.is-ready {
    color: #24415e;
    border-color: rgba(53, 109, 180, 0.26);
    background: rgba(246, 250, 255, 0.96);
}

.fabao-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 2px;
    padding-left: 116px;
}

.fabao-form-simple .fabao-row:last-child {
    margin-bottom: 0;
}

.fabao-actions-simple {
    padding-left: 116px;
}

.fabao-actions-status {
    padding-top: 10px;
    padding-left: 0;
    width: 100%;
    margin-left: 0;
}

#random-fabao-status-box {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow: hidden;
}

#random-fabao-status-box p {
    margin: 0;
}

#random-fabao-status-box p+p {
    margin-top: 4px;
}

#random-fabao-status {
    font-weight: 700;
}

#random-fabao-status.is-error {
    color: #8a2f2f;
}

#random-fabao-status.is-ready {
    color: #24415e;
}

.fabao-actions button {
    width: auto;
    min-width: 118px;
    height: 42px;
    margin-left: 0;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
}

.fabao-split-btn {
    min-width: 42px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(64, 97, 132, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #223548;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(60, 93, 128, 0.05);
}

.fabao-split-btn:hover {
    background: linear-gradient(180deg, #2f7bd2 0%, #1f63b2 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 99, 178, 0.22);
}

.fabao-split-btn:active {
    transform: translateY(1px);
}

#fabao-send-btn {
    background: linear-gradient(180deg, #2f7bd2 0%, #1f63b2 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 99, 178, 0.22);
}

#random-fabao-send-btn,
#random-fabao-auto-btn {
    background: linear-gradient(180deg, #2f7bd2 0%, #1f63b2 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 99, 178, 0.22);
}

#random-fabao-send-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#random-fabao-auto-btn.is-running {
    background: linear-gradient(180deg, #d26a2f 0%, #b2551f 100%);
    box-shadow: 0 8px 18px rgba(178, 95, 31, 0.22);
}

/* 流水管理区域 */
#liushui.main-item {
    padding: 10px;
    box-sizing: border-box;
}

.liushui-page {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.liushui-sidebar {
    width: 300px;
    min-width: 300px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.liushui-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liushui-panel {
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    padding: 10px;
    box-sizing: border-box;
}

.liushui-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.liushui-panel-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.liushui-muted {
    font-size: 12px;
    color: #334;
}

#liushui-refresh-btn {
    width: auto;
    height: 30px;
    font-size: 14px;
    padding: 0 14px;
}

.liushui-filter-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.liushui-filter-label+.liushui-select {
    margin-bottom: 10px;
}

.liushui-select {
    width: 100%;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #c0c4cc;
    padding: 0 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.liushui-group-meta {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}

.liushui-date-filter-panel {
    padding-top: 8px;
    padding-bottom: 8px;
}

.liushui-date-filter-row {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.liushui-date-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #334;
}

.liushui-date-input {
    width: 160px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #c0c4cc;
    padding: 0 8px;
    font-size: 14px;
    box-sizing: border-box;
}

#liushui-apply-date-btn,
#liushui-reset-date-btn {
    width: auto;
    height: 34px;
    padding: 0 16px;
    font-size: 14px;
}

.liushui-member-panel {
    flex: 0 0 auto;
    height: 700px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.liushui-member-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.liushui-member-list::-webkit-scrollbar {
    width: 8px;
}

.liushui-member-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.liushui-member-list::-webkit-scrollbar-thumb {
    background: rgba(49, 81, 125, 0.45);
    border-radius: 999px;
}

.liushui-member-list::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 81, 125, 0.62);
}

.liushui-member-item {
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.liushui-member-item:hover,
.liushui-member-item.active {
    background: #86afe0;
}

.liushui-member-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.liushui-member-name {
    font-size: 15px;
    font-weight: 600;
    color: #223;
}

.liushui-member-role {
    font-size: 12px;
    color: #25364d;
}

.liushui-member-meta,
.liushui-member-stats {
    font-size: 12px;
    color: #334;
    line-height: 1.5;
}

.liushui-summary-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.liushui-card {
    background: rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.liushui-card-label {
    font-size: 11px;
    color: #445;
    margin-bottom: 4px;
}

.liushui-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2b3d;
}

.liushui-card-value.positive {
    color: #147a41;
}

.liushui-card-value.negative {
    color: #be3d2f;
}

.liushui-table-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.liushui-table-wrap {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.liushui-content>.liushui-table-panel {
    flex: 0 0 auto;
    height: 700px;
    min-height: 0;
}

.liushui-content>.liushui-table-panel .liushui-table-wrap {
    height: auto;
}

.liushui-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    table-layout: fixed;
    background: rgba(255, 255, 255, 0.55);
}

.liushui-table-compact {
    min-width: 900px;
}

.liushui-table th,
.liushui-table td {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
    color: #223;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liushui-table th {
    background: #86afe0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.liushui-empty,
.liushui-empty-cell {
    font-size: 13px;
    color: #445;
    text-align: center;
    padding: 24px 10px;
}

.liushui-double-grid {
    flex: 0 0 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.liushui-double-grid .liushui-table-panel {
    height: 700px;
    min-height: 0;
}

.liushui-double-grid .liushui-table-panel .liushui-table-wrap {
    height: auto;
}

.liushui-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
}

.liushui-tag.hit {
    background: rgba(220, 92, 73, 0.15);
    color: #c44e3e;
}

.liushui-tag.normal {
    background: rgba(76, 117, 173, 0.15);
    color: #31517d;
}

.liushui-amount-positive {
    color: #147a41;
    font-weight: 600;
}

.liushui-amount-negative {
    color: #be3d2f;
    font-weight: 600;
}

.liushui-ledger-biz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(76, 117, 173, 0.12);
    color: #31517d;
    font-size: 12px;
    font-weight: 600;
}

.liushui-ledger-biz.exact-reward {
    background: rgba(236, 176, 43, 0.22);
    color: #9a5b00;
}

.liushui-ledger-row-exact-reward {
    background: rgba(255, 236, 186, 0.32);
}

#shang_xia.main-item {
    padding: 10px;
    box-sizing: border-box;
}

.shangxia-page {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.shangxia-sidebar {
    width: 320px;
    min-width: 320px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shangxia-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shangxia-panel {
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    padding: 10px;
    box-sizing: border-box;
}

.shangxia-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.shangxia-panel-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.shangxia-muted {
    font-size: 12px;
    color: #334;
}

#shangxia-refresh-btn,
#shangxia-apply-btn,
#shangxia-reset-btn {
    width: auto;
    height: 32px;
    font-size: 14px;
    padding: 0 14px;
}

.shangxia-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.shangxia-type-btn {
    width: auto;
    height: 32px;
    margin-left: 0;
    padding: 0 12px;
    font-size: 13px;
    font-weight: normal;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.55);
    color: #223;
}

.shangxia-type-btn.active {
    background: #31517d;
    color: #fff;
}

.shangxia-filter-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.shangxia-select {
    width: 100%;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #c0c4cc;
    padding: 0 8px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.shangxia-date-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shangxia-date-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #334;
}

.shangxia-date-input {
    width: 140px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #c0c4cc;
    padding: 0 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.shangxia-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.shangxia-filter-meta {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}

.shangxia-user-panel {
    height: 700px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shangxia-user-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.shangxia-user-item {
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shangxia-user-item:hover,
.shangxia-user-item.active {
    background: #86afe0;
}

.shangxia-user-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shangxia-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #223;
}

.shangxia-user-meta,
.shangxia-user-stats {
    font-size: 12px;
    color: #334;
    line-height: 1.5;
}

.shangxia-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.shangxia-card {
    background: rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.shangxia-card-label {
    font-size: 11px;
    color: #445;
    margin-bottom: 4px;
}

.shangxia-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2b3d;
}

.shangxia-card-value.positive {
    color: #147a41;
}

.shangxia-card-value.negative {
    color: #be3d2f;
}

.shangxia-table-panel {
    height: 1440px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shangxia-table-wrap {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.shangxia-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    table-layout: fixed;
    background: rgba(255, 255, 255, 0.55);
}

.shangxia-table th,
.shangxia-table td {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
    color: #223;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shangxia-table th {
    background: #86afe0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.shangxia-empty,
.shangxia-empty-cell {
    font-size: 13px;
    color: #445;
    text-align: center;
    padding: 24px 10px;
}

.shangxia-biz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.shangxia-biz.admin-add {
    background: rgba(20, 122, 65, 0.15);
    color: #147a41;
}

.shangxia-biz.admin-sub {
    background: rgba(190, 61, 47, 0.15);
    color: #be3d2f;
}

/* 群类型这一行：左侧文字不占满整行 */
.qun-form-row-inline .qun-label {
    flex: 0 0 auto;
}

.qun-label-block {
    align-items: flex-start;
    flex-direction: column;
}

.qun-label-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qun-input {
    flex: 1;
    max-width: 420px;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    box-sizing: border-box;
}

.qun-input-short {
    max-width: 120px;
}

.qun-textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    padding: 6px 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
    font-family: inherit;
}

.qun-checkbox {
    width: 16px;
    height: 16px;
}

.qun-form-actions {
    justify-content: flex-start;
}

.qun-tips {
    font-size: 12px;
    color: #333;
}

/* 群管理：奖励规则输入区域（40 行规则列表） */
.qun-jiangli-guize {
    margin-top: 6px;
    padding: 8px 10px;
    box-sizing: border-box;
    background-color: #b4cbea;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 1000px;
    max-height: 360px;
    overflow-y: auto;
}

.qun-jiangli-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 奖励规则里 3 个输入并排，平均分配宽度 */
.qun-jiangli-row .qun-input {
    flex: 1;
    max-width: none;
}

.qun-jiangli-header {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.qun-jiangli-col-index {
    width: 40px;
    text-align: center;
}

.qun-jiangli-col {
    flex: 1;
    text-align: center;
}

.qun-jiangli-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qun-jiangli-index {
    width: 40px;
    text-align: center;
    font-size: 13px;
}

#fanli.main-item {
    padding: 10px;
    box-sizing: border-box;
    min-height: 100vh;
}

.fanli-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.fanli-panel {
    width: 100%;
    flex: 1;
    min-height: 0;
    padding: 12px 16px 16px;
    box-sizing: border-box;
    background-color: #a1c3e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.fanli-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.fanli-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.fanli-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fanli-date-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.fanli-date-input {
    width: 160px;
    height: 30px;
    padding: 4px 6px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #c0c4cc;
    font-size: 14px;
}

#fanli-refresh-btn {
    width: auto;
    height: 30px;
    font-size: 14px;
    padding: 0 12px;
}

.fanli-meta {
    margin-bottom: 8px;
    color: #5b6570;
    font-size: 13px;
}

.fanli-table-wrap {
    width: 100%;
    flex: 1;
    min-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #a7c2e2;
    border-radius: 6px;
    border: 1px solid #00000079;
}

.fanli-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.fanli-table th,
.fanli-table td {
    border: 1px solid #00000079;
    padding: 0 6px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.fanli-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #86afe0;
}

.fanli-row-summary {
    background: #d7e6f7;
    font-weight: 600;
}

.fanli-amount-positive {
    color: #0a7c32;
    font-weight: 600;
}

.fanli-empty-cell {
    text-align: center;
    color: #5b6570;
    background: #c6d8eb;
}