.zong-view {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 8px;
}

.zong-view .ext-panel {
    margin-bottom: 0;
}

.summary-panel .ext-panel-body {
    padding: 0;
}

.summary-panel,
.grid-panel {
    min-height: 0;
}

.summary-panel {
    flex: 0 0 auto;
}

.grid-panel {
    flex: 1 1 0;
    min-height: 0;
}

.ext-panel.grid-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grid-panel .ext-panel-collapse.not-collapsible {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grid-panel .ext-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-line,
.action-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.tool-input,
.tool-select {
    height: 26px;
    border: 1px solid var(--ext-field-border);
    background: #fff;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 12px;
}

.positive {
    color: #2e8b57;
    font-weight: 600;
}

.negative {
    color: #c83838;
    font-weight: 600;
}

.wan-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(100px, 1fr));
    gap: 4px;
    align-content: start;
}

.wan-item {
    border: 1px solid var(--ext-grid-cell-border);
    background: #fff;
    border-radius: 2px;
    /* min-height: 33px; */
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 64px;
    align-items: center;
    padding: 4px 4px;
    gap: 0 2px;
    cursor: pointer;
}

.wan-item:hover {
    background: #f6fbff;
    border-color: #8eb9df;
}

.item-index {
    color: #666;
    font-size: 12px;
}

.item-code {
    min-width: 30px;
    overflow: hidden;
    text-align: center;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-value {
    text-align: right;
    font-weight: 600;
}

.item-bet {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 10px;
    line-height: 1.2;
    color: #8798ab;
}

.empty-block {
    min-height: 300px;
    display: grid;
    place-items: center;
    color: #888;
}

.dialog-form {
    display: grid;
    gap: 8px;
}

@media (max-width: 1200px) {
    .wan-grid {
        grid-template-columns: repeat(8, minmax(100px, 1fr));
    }
}

@media (max-width: 760px) {
    .wan-grid {
        grid-template-columns: repeat(6, minmax(100px, 1fr));
    }
}

.chu-view {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
}

.chu-view .ext-panel {
    margin-bottom: 0;
}

.top-panel {
    min-height: 0;
}

.chu-view .ext-panel-body {
    padding: 0;
}

.tabs-bar {
    border-bottom: 1px dashed var(--ext-toolbar-separator);
}

.query-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
}

.tool-select {
    height: 26px;
    border: 1px solid var(--ext-field-border);
    background: #fff;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 12px;
    min-width: 140px;
}

.quick-label {
    color: #666;
    font-size: 12px;
}

.table-panel {
    min-height: 0;
}

.op-link {
    border: none;
    background: transparent;
    color: #1d5ea6;
    cursor: pointer;
    padding: 0 4px;
}

.op-link.danger {
    color: #c83838;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.detail-textarea {
    width: 100%;
    min-height: 320px;
    max-height: 65vh;
    border: 1px solid var(--ext-field-border);
    border-radius: 2px;
    padding: 8px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.report-view {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
}

.report-view .ext-panel {
    margin-bottom: 0;
}

.report-view .ext-panel-body {
    padding: 0;
}

.head-panel {
    min-height: 0;
}

.tool-select {
    height: 26px;
    border: 1px solid var(--ext-field-border);
    background: #fff;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 12px;
    min-width: 140px;
}

.quick-label {
    color: #666;
    font-size: 12px;
}

.table-panel {
    min-height: 0;
}

.profit-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
}

.profit-link:disabled {
    cursor: default;
}

.report-view .summary-row td {
    font-weight: 700;
    background: #f8e6fd;
    border-top: 1px solid #f8e6fd;
    border-bottom: 1px solid #f8e6fd;
}

.report-view td.cell-win {
    background: var(--ext-grid-row-alt);
}

.positive {
    color: #2e8b57;
}

.negative {
    color: #c83838;
}

.plan-view {
    height: 100%;
    min-height: 0;
}

.dialog-form {
    display: grid;
    gap: 8px;
}

.edit-dialog-body {
    max-height: 72vh;
    overflow: auto;
    padding: 0 2px 4px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

.base-form {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--ext-panel-border, #c8d6e4);
    border-radius: 4px;
    padding: 8px 10px;
}

.rules-groups-container {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.rule-group-section {
    border: 1px solid var(--ext-panel-border, #b8c9dc);
    background: var(--ext-panel-bg, #fff);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(35, 74, 116, 0.06);
}

.group-title {
    padding: 7px 10px;
    background: linear-gradient(180deg, #d7e5f4 0%, #c8d9ec 100%);
    border-bottom: 1px solid var(--ext-panel-border, #b8c9dc);
    font-size: 13px;
    font-weight: 700;
    color: #244b72;
}

.rules-flex-container {
    padding: 6px 10px 8px;
}

.rule-item-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dotted #c8d6e4;
}

.rule-item-box:last-child {
    border-bottom: none;
}

.rule-info {
    width: 96px;
    flex-shrink: 0;
}

.rule-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ext-primary-dark, #2a72b5);
}

.rule-price {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--ext-text-muted, #777);
}

.rule-inputs {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 5px 8px;
}

.input-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    background: #f9fbfe;
    border: 1px solid #e4ecf5;
    border-radius: 3px;
    white-space: nowrap;
}

.sub-name {
    font-size: 11px;
    color: #6f8094;
}

.money-input {
    width: 68px;
    padding: 2px 5px;
    border: 1px solid #b9cadc;
    border-radius: 2px;
    font-size: 12px;
    background: #fff;
}

.money-input:focus {
    outline: none;
    border-color: var(--ext-primary-dark, #2a72b5);
    box-shadow: 0 0 0 1px rgba(42, 114, 181, 0.2);
}

.plan-view .ext-window-footer {
    border-top: 1px solid var(--ext-panel-border, #c8d6e4);
    background: #f4f8fd;
}

@media (max-width: 1200px) {
    .rules-groups-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .edit-dialog-body {
        max-height: 68vh;
        padding-right: 0;
    }

    .rule-item-box {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .rule-info {
        width: auto;
    }

    .rule-inputs {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    }

    .input-item {
        white-space: normal;
    }
}

.message-view {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
}

.setting-panel .ext-panel-body {
    padding: 0;
}

.section-panel {
    margin-bottom: 0;
}

.query-panel {
    position: relative;
    z-index: 30;
}

.query-panel .ext-panel-body {
    padding: 8px;
}

.query-filters .ext-form-field {
    margin-bottom: 0;
}

.setting-row {
    font-weight: 700;
}

.setting-row,
.query-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-weight: 700;
}

.query-row {
    justify-content: space-between;
    gap: 8px 12px;

    padding-bottom: 8px;
    border-bottom: 1px solid var(--ext-panel-border, #d9e3ee);
}

.query-filters,
.query-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.query-filters {
    flex: 1;
    min-width: 520px;
}

.query-tree-select {
    width: 180px;
    min-width: 180px;
}

.query-tree-select .field-body {
    min-width: 0;
}

.query-tree-select .ext-tree-select-trigger {
    height: 24px;
    min-height: 24px;
    padding: 0 6px;
    box-sizing: border-box;
}

.query-tree-select .ext-tree-select-dropdown {
    width: 100%;
    min-width: 100%;
    z-index: 1200;
}

.query-panel .ext-panel-collapse,
.query-panel .ext-panel-body,
.query-panel .ext-tree-select-wrap {
    overflow: visible;
}

.query-actions {
    justify-content: flex-end;
}

.spacer {
    flex: 1;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ext-text-color, #2f3a4a);
}

.blue-check {
    color: var(--ext-primary-dark, #2a72b5);
    font-weight: 600;
}

.radio-like {
    gap: 2px;
}

.label {
    font-size: 12px;
    color: var(--ext-text-color, #66778c);
}

.unit {
    font-size: 11px;
    color: var(--ext-text-color, #8392a3);
}

.compact-input {
    height: 24px;
    border: 1px solid var(--ext-field-border, #b6c4d4);
    border-radius: 2px;
    padding: 0 6px;
    font-size: 12px;
    color: var(--ext-text-color, #2f3a4a);
    background: #fff;
}

.compact-input.small {
    width: 52px;
}

.compact-input.select {
    min-width: 128px;
}

.compact-input.keyword {
    min-width: 128px;
}

.warn-btn {
    background: #f0b24f;
    border-color: #d99e42;
    color: #fff;
}

.warn-btn:hover {
    filter: brightness(0.98);
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.stat-card {
    min-width: 86px;
    border: 1px solid var(--ext-panel-border, #c6d4e2);
    border-radius: 2px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3f9 100%);
    padding: 4px 8px;
    cursor: pointer;
}

.stat-card.active {
    border-color: #e15a27;
    background: #fff2df;
}

.secondary-status-box {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ext-panel-border, #d9e3ee);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.secondary-left {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid #dbe4ee;
}

.secondary-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.sub-status-item {
    border: 1px solid #d1dce8;
    background: #fdfaf5;
    border-radius: 3px;
    padding: 2px 10px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 74px;
}

.sub-status-item.light {
    background: #fff;
}

.sub-status-item.active {
    border-color: #f56c6c;
    background: #fff0f0;
}

.sub-label {
    font-size: 11px;
    color: #8798ab;
    line-height: 1.15;
}

.sub-count {
    margin-top: 1px;
    font-size: 16px;
    color: #d24747;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: #6f8093;
    text-align: center;
}

.stat-values {
    margin-top: 2px;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
}

.stat-values.pair {
    font-size: 18px;
}

.num.warning {
    color: #d9822b;
}

.num.neutral {
    color: #61758f;
}

.num.success {
    color: #1e8f2d;
}

.num.danger {
    color: #d33f3f;
}

.slash {
    color: #90a0b2;
    padding: 0 3px;
}

.pale {
    background: #e6a23c;
    border-color: #e6a23c;
    color: #fff;
}

.success-btn {
    background: #59b15c;
    border-color: #4ca34f;
    color: #fff;
}

.msg-grid {
    min-height: 0;
    position: relative;
    z-index: 1;
}

.msg-grid .ext-grid-wrapper {
    height: 100%;
    min-height: 0;
}

.msg-grid .ext-grid {
    min-height: 0;
}

.msg-grid .ext-grid tbody tr.win-row:not(.selected):not(.current-row) {
    background: #f5d3d3;
}

.msg-grid .ext-grid tbody tr.win-row:not(.selected):not(.current-row):hover {
    background: #f5d3d3 !important;
}

.msg-content {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-content-link {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 100%;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.msg-content-link:hover .msg-content {
    text-decoration: underline;
}

.money-link {
    color: #2748ff;
    font-weight: 600;
}

.win-money {
    color: #d24747;
    font-weight: 700;
}

.status-text {
    font-weight: 700;
}

.status-text.danger {
    color: #e5534b;
}

.status-text.success {
    color: #2f9d47;
}

.status-text.warning {
    color: #bf6f00;
}

.remark-text {
    color: #d24747;
}



.msg-content-dialog {
    min-height: 36vh;
    max-height: 65vh;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    background: #fdf6ec;
    border: 1px solid #faecd8;
    border-radius: 4px;
    padding: 10px;
    font-weight: 600;
}

.msg-content-dialog::selection {
    background-color: lightblue;
    color: white;
}

.stat-textarea {
    width: 100%;
    height: 120px;
    resize: none;
    border: 1px solid var(--ext-field-border, #b6c4d4);
    border-radius: 3px;
    padding: 8px;
    line-height: 1.45;
    font-size: 13px;
}

.stat-compare-box {
    margin-top: 10px;
    border-top: 1px dashed #d7e0eb;
    padding-top: 10px;
}

.stat-compare-title {
    font-size: 12px;
    color: #4f6074;
    margin-bottom: 6px;
    font-weight: 700;
}

.stat-input-textarea {
    width: 100%;
    height: 84px;
    resize: vertical;
    border: 1px solid var(--ext-field-border, #b6c4d4);
    border-radius: 3px;
    padding: 8px;
    line-height: 1.45;
    font-size: 13px;
}

.stat-compare-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.stat-result-textarea {
    margin-top: 8px;
    width: 100%;
    height: 120px;
    resize: vertical;
    border: 1px solid var(--ext-field-border, #b6c4d4);
    border-radius: 3px;
    padding: 8px;
    line-height: 1.45;
    font-size: 13px;
    background: #fbfdff;
}

.stat-compare-table-wrap {
    margin-top: 8px;
    max-height: 218px;
    overflow: auto;
    border: 1px solid var(--ext-panel-border, #d2dce8);
    border-radius: 3px;
    background: #fff;
}

.stat-compare-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.stat-compare-table th,
.stat-compare-table td {
    border: 1px solid var(--ext-panel-border, #d2dce8);
    padding: 3px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-compare-table th[scope="row"] {
    background: #eef4fb;
    color: #2f3a4a;
    font-weight: 700;
    position: sticky;
    left: 0;
    z-index: 1;
}

.stat-compare-table .stat-index-row {
    background: #eef5fc;
    color: #24476b;
}

.stat-compare-table .stat-order-row {
    background: #f6fbf8;
    color: #2c3e50;
}

.stat-compare-table .stat-customer-row {
    background: #fffaf0;
    color: #4a3a22;
}

.stat-compare-table .stat-index-row > * {
    border-top: 2px solid #c9d9ea;
}

.stat-compare-table .stat-index-row th[scope="row"] {
    background: #dce9f7;
    color: #24476b;
}

.stat-compare-table .stat-index-row th:not([scope="row"]) {
    background: #eaf2fb;
    color: #24476b;
    font-weight: 700;
}

.stat-compare-table .stat-order-row th[scope="row"] {
    background: #e6f2ea;
    color: #2b6b3d;
}

.stat-compare-table .stat-customer-row th[scope="row"] {
    background: #fdf0dc;
    color: #8a5a13;
}

.stat-cell-match {
    background: #eaf7ee;
    color: #237a3d;
}

.stat-cell-mismatch {
    background: #fdecec;
    color: #b93a3a;
    font-weight: 700;
}

.stat-cell-missing {
    background: #f4f6f8;
    color: #9aa7b5;
}

.reopen-lottery-dialog {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* justify-content: center; */
}

.reopen-lottery-label {
    font-size: 13px;
    color: #4e5968;
}

.order-dialog-body {
    max-height: 70vh;
    overflow: auto;
}

.order-bottom-split {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.4fr);
    gap: 8px;
}

.order-message-pane,
.order-order-pane {
    border: 1px solid var(--ext-panel-border, #d4deea);
    border-radius: 3px;
    padding: 8px;
    background: #fff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.split-title {
    font-size: 13px;
    font-weight: 700;
    color: #2f3a4a;
    margin-bottom: 8px;
}

.split-title.with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-base-info {
    display: flex;
    font-size: 12px;
    padding: 8px 10px;
    border: 1px solid var(--ext-panel-border, #d4deea);
    background: #fff;
    border-radius: 3px;
}

.order-base-info > div {
    flex: 1;
    align-items: center;
}

.base-label {
    color: #6f8093;
}

.order-message-box {
    border: 1px solid #e8d9c1;
    background: #fdf8ef;
    border-radius: 3px;
    padding: 4px 4px;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    flex: 1;
    overflow: auto;
    color: #2f3a4a;
    font-weight: 600;
    font-size: 15px;
    font-family: "Segoe UI", Tahoma, "Microsoft YaHei", Arial, sans-serif;
}

.order-message-box::selection {
    background-color: lightblue;
    color: white;
}

.order-table-wrap {
    /* border: 1px solid var(--ext-panel-border, #c9d6e4); */
    flex: 1;
    overflow: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.order-table th,
.order-table td {
    border: 1px solid var(--ext-panel-border, #d2dce8);
    padding: 4px 4px;
    font-size: 12px;
    text-align: center;
}

.order-table th {
    background: #eef4fb;
    color: #2f3a4a;
}

.order-table .code-cell {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-row,
.empty-order-detail {
    color: #8ea0b5;
    text-align: center;
    padding: 20px 0;
}

.update-dialog-body {
    display: flex;
    flex-direction: column;
    height: 72vh;
    max-height: 72vh;
    overflow: hidden;
}

.update-split-layout {
    flex: 1;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.update-edit-section,
.update-preview-section {
    border: 1px solid var(--ext-panel-border, #d4deea);
    border-radius: 3px;
    background: #fff;
    padding: 8px;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.update-section-list {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}

.update-section-list.is-loading {
    pointer-events: none;
}

.update-loading-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #2f3a4a;
    background: rgba(255, 255, 255, 0.75);
}

.loading-dot {
    width: 14px;
    height: 14px;
    border: 2px solid #b8c8da;
    border-top-color: #3a6ea5;
    border-radius: 50%;
    animation: update-split-spin 0.7s linear infinite;
}

@keyframes update-split-spin {
    to {
        transform: rotate(360deg);
    }
}

.update-original-textarea {
    width: 100%;
    min-height: 120px;
    max-height: 180px;
    resize: vertical;
    margin: 0 0 8px;
    padding: 8px;
    border: 1px solid #e8d9c1;
    border-radius: 3px;
    background: #fdf8ef;
    color: #2f3a4a;
    font-size: 13px;
    line-height: 1.45;
}

.update-section-card {
    border: 1px solid #d9e3ee;
    border-radius: 3px;
    padding: 8px;
    background: #fdfefe;
}

.update-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #2f3a4a;
    font-size: 12px;
    font-weight: 700;
}

.section-actions {
    display: flex;
    gap: 6px;
}

.update-textarea {
    width: 100%;
    min-height: 80px;
    max-height: 120px;
    resize: vertical;
    border: 1px solid var(--ext-field-border, #b6c4d4);
    border-radius: 3px;
    padding: 8px;
    line-height: 1.45;
    font-size: 13px;
}

.section-summary {
    color: #d24747;
    font-weight: 600;
}

.section-tip {
    margin-top: 6px;
    font-size: 11px;
    color: #6f8093;
}

.detail-selected-row td {
    background: #fff3e0;
}

.wechat-view {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overflow-x: hidden;
}

.wechat-layout {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 8px;
}

.client-panel,
.detail-panel {
    margin-bottom: 0;
}

.client-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.client-panel .ext-panel-body {
    flex: 1;
    min-height: 0;
    padding: 0;
}

.client-list {
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 6px;
}

.client-card {
    border: 1px solid var(--ext-panel-border, #d0d8e0);
    border-radius: 6px;
    padding: 8px 9px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92),
        rgba(246, 250, 255, 0.95)
    );
    box-shadow: 0 1px 2px rgba(24, 53, 86, 0.08);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.client-card:hover {
    border-color: rgba(58, 120, 186, 0.42);
    box-shadow: 0 4px 10px rgba(31, 79, 130, 0.16);
    transform: translateY(-1px);
}

.client-card.active {
    border-color: var(--ext-primary-dark, #2a72b5);
    box-shadow:
        0 0 0 1px rgba(42, 114, 181, 0.3),
        0 4px 12px rgba(25, 75, 124, 0.18);
}

.client-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.client-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.client-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ext-primary-dark, #2a72b5);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-pill {
    min-width: 50px;
    text-align: center;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.online-pill.ok {
    color: #2e7d32;
    background: rgba(67, 160, 71, 0.12);
    border-color: rgba(67, 160, 71, 0.35);
}

.online-pill.off {
    color: #546e7a;
    background: rgba(120, 144, 156, 0.12);
    border-color: rgba(120, 144, 156, 0.35);
}

.meta-wrap {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.client-card-foot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 26px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-pill.ok {
    color: #2e7d32;
    background: rgba(67, 160, 71, 0.12);
    border-color: rgba(67, 160, 71, 0.35);
}

.status-pill.off {
    color: #546e7a;
    background: rgba(120, 144, 156, 0.12);
    border-color: rgba(120, 144, 156, 0.35);
}

.right-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12px;
    padding: 6px 2px;
}

.label {
    color: var(--ext-text-muted, #666);
}

.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.group-layout {
    min-height: 0;
    overflow: hidden;
}

.group-grid {
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.group-grid .ext-grid-wrapper {
    height: 100%;
    min-height: 0;
}

.group-grid .ext-grid {
    min-height: 0;
}

.dialog-form {
    display: grid;
    gap: 8px;
}

.tag-info {
    display: inline-block;
    min-width: 50px;
    text-align: center;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid rgba(42, 114, 181, 0.3);
    background: rgba(42, 114, 181, 0.12);
    color: var(--ext-primary-dark, #2a72b5);
}

.tag-warning,
.tag-success {
    display: inline-block;
    min-width: 50px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid transparent;
    text-align: center;
}

.tag-gray {
    display: inline-block;
    min-width: 50px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid rgba(120, 144, 156, 0.3);
    background: rgba(120, 144, 156, 0.12);
    color: #546e7a;
    text-align: center;
}

.wx-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 0;
}

.wx-avatar {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--ext-panel-border, #c9d4e0);
}

.wx-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #5f6d7d;
    background: #edf2f7;
}

.wx-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.wx-name {
    color: var(--ext-text-color, #2f3a4a);
}

.wx-sub {
    color: var(--ext-text-muted, #8a98a8);
    font-size: 11px;
}

.copy-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-link {
    border: none;
    background: transparent;
    color: var(--ext-primary-dark, #2a72b5);
    cursor: pointer;
    font-size: 11px;
    padding: 0;
}

.copy-link:hover {
    text-decoration: underline;
}

.group-op-link {
    border: none;
    background: transparent;
    color: #5f6c7b;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.group-op-link:hover {
    text-decoration: underline;
}

.group-op-link.danger {
    color: #d24747;
}

.toolbar-link {
    cursor: pointer;
}

.toolbar-link:hover {
    color: var(--ext-primary-dark, #2a72b5);
}

.colorful-text {
    font-weight: 700;
    background: linear-gradient(90deg, #00948c, #e35930, #ceac2b, #00948c);
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation:
        colorful-text-animation 3s linear infinite,
        breathing 1.5s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes colorful-text-animation {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes breathing {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.tag-warning {
    background: rgba(245, 124, 0, 0.12);
    color: #bf6f00;
    border-color: rgba(245, 124, 0, 0.35);
}

.tag-success {
    background: rgba(67, 160, 71, 0.12);
    color: #2e7d32;
    border-color: rgba(67, 160, 71, 0.35);
}

.tag-danger {
    display: inline-block;
    min-width: 50px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    text-align: center;
    border: 1px solid rgba(211, 63, 63, 0.35);
    background: rgba(211, 63, 63, 0.12);
    color: #d24747;
}

.tool-input,
.table-select,
.table-number {
    padding: 2px 4px;
    border: 1px solid var(--ext-field-border, #b0b7c3);
    font-size: 11px;
    border-radius: 1px;
}

.table-select {
    width: 100%;
}

.table-number {
    width: 72px;
    text-align: center;
}

.group-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.group-avatar {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--ext-panel-border, #c9d4e0);
}

.group-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-time {
    color: var(--ext-text-muted, #8a98a8);
    font-size: 11px;
}

.empty-tip {
    color: var(--ext-text-muted, #888);
    font-size: 12px;
    padding: 12px;
}

@media (max-width: 1280px) {
    .wechat-layout {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 1024px) {
    .wechat-view {
        overflow-y: auto;
    }

    .wechat-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .wechat-layout {
        height: auto;
        min-height: 100%;
    }

    .client-list {
        max-height: 260px;
    }
}

.lottery-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #1f5f95;
    background: #e6f1fb;
    border: 1px solid #b9d4ed;
}

.result-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.result-ball {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--ext-primary) !important;
}

.pending-text {
    font-size: 12px;
    color: #8a8a8a;
}

.temp-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #eef4fb 0%, #e4edf9 60%, #dce8f7 100%);
}

.temp-login-card {
    width: 100%;
    max-width: 460px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(30, 70, 120, 0.18);
    padding: 36px 28px;
    text-align: center;
}

.temp-login-card .spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 3px solid rgba(42, 114, 181, 0.2);
    border-top-color: #2a72b5;
    animation: spin 0.8s linear infinite;
}

.temp-login-card .title {
    margin: 0;
    color: #1e3652;
    font-size: 22px;
    font-weight: 700;
}

.temp-login-card .desc {
    margin: 10px 0 0;
    color: #5d6f86;
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 消息详情 / AI 结果补充 */
.detail-section {
    margin-top: 10px;
}

.detail-label {
    margin-bottom: 4px;
    color: var(--ext-primary-dark, #2a72b5);
    font-size: 12px;
    font-weight: 700;
}

.detail-pre {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--ext-grid-border, #d0d0d0);
    background: #fbfcfe;
    color: var(--ext-text-color, #333);
    font-family: Consolas, Monaco, "SFMono-Regular", monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 220px;
    overflow: auto;
}

/* 消息页状态卡片（照搬参考项目 MessageView 的状态筛选样式） */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 8px 8px;
}

.stat-card {
    min-width: 86px;
    border: 1px solid var(--ext-panel-border, #c6d4e2);
    border-radius: 2px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3f9 100%);
    padding: 4px 8px;
    cursor: pointer;
}

.stat-card.active {
    border-color: #e15a27;
    background: #fff2df;
}

.secondary-status-box {
    margin: 0 8px 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ext-panel-border, #d9e3ee);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.secondary-left {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid #dbe4ee;
}

.secondary-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.sub-status-item {
    border: 1px solid #d1dce8;
    background: #fdfaf5;
    border-radius: 3px;
    padding: 2px 10px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 74px;
}

.sub-status-item.light {
    background: #fff;
}

.sub-status-item.active {
    border-color: #f56c6c;
    background: #fff0f0;
}

.sub-label {
    font-size: 11px;
    color: #8798ab;
    line-height: 1.15;
}

.sub-count {
    margin-top: 1px;
    font-size: 16px;
    color: #d24747;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: #6f8093;
    text-align: center;
}

.stat-values {
    margin-top: 2px;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
}

.stat-values.pair {
    font-size: 18px;
}

.num.warning {
    color: #d9822b;
}

.num.neutral {
    color: #61758f;
}

.num.success {
    color: #1e8f2d;
}

.num.danger {
    color: #d33f3f;
}

.slash {
    color: #90a0b2;
    padding: 0 3px;
}

/* 报表：同一彩种的留盘/中奖列共用背景色 */
.ext-grid thead th.report-col-d3,
.ext-grid tbody td.report-col-d3 {
    background: #eef6ff;
}

.ext-grid thead th.report-col-pl3,
.ext-grid tbody td.report-col-pl3 {
    background: #eefaf0;
}

.ext-grid thead th.report-col-d3-sjh,
.ext-grid tbody td.report-col-d3-sjh {
    background: #fff7e8;
}

.ext-grid thead th.report-col-pl3-sjh,
.ext-grid tbody td.report-col-pl3-sjh {
    background: #f5f0ff;
}

/* 报表彩种列有自己的背景色，悬停时让整行单元格统一显示 hover 色 */
.report-grid tbody tr:hover:not(.selected):not(.current-row) > td {
    background: var(--ext-grid-row-hover) !important;
}

/* 报表单击行选中 */
.report-grid tbody tr.report-row {
    cursor: pointer;
}

.report-grid tbody tr.selected > td {
    background: var(--ext-grid-row-selected) !important;
}

/* 选中行仍保留盈亏红绿配色 */
.report-grid tbody tr.selected td.money-positive {
    color: #3a9e3a;
}

.report-grid tbody tr.selected td.money-negative {
    color: #d05050;
}

/* 盈亏：正数绿色，负数红色 */
.money-positive,
.ext-grid td.money-positive {
    color: #3a9e3a;
}

.money-negative,
.ext-grid td.money-negative {
    color: #d05050;
}

/* 报表合计行使用中性背景，不参与彩种列配色 */
.ext-grid tfoot tr.report-total-row td {
    background: #e9eef5;
    font-weight: 700;
    padding: 4px 8px;
}

/* 消息页查询：群树选择（对齐原项目 ExtTreeSelect）与单选组 */
.ext-tree-select-wrap {
  position: relative;
}

.ext-tree-select-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid var(--ext-field-border, #b5b8c8);
  background: var(--ext-field-bg, #fff);
  cursor: pointer;
  font-size: 12px;
  min-height: 24px;
  border-radius: 1px;
  min-width: 120px;
  max-width: 260px;
}

.ext-tree-select-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ext-tree-select-placeholder {
  flex: 1;
  color: #999;
}

.ext-tree-select-arrow {
  font-size: 10px;
  color: #666;
}

.ext-tree-select-clear {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #6b7787;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.ext-tree-select-trigger:hover .ext-tree-select-clear,
.ext-tree-select-trigger:focus-within .ext-tree-select-clear {
  opacity: 1;
  pointer-events: auto;
}

.ext-tree-select-clear:hover {
  background: #e8eef7;
}

.ext-tree-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  border: 1px solid var(--ext-field-border, #b5b8c8);
  background: var(--ext-panel-body-bg, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-height: 260px;
  display: flex;
  flex-direction: column;
}

.ext-tree-select-search {
  padding: 4px;
  border-bottom: 1px solid var(--ext-field-border, #b5b8c8);
}

.ext-tree-select-search input {
  width: 100%;
  padding: 3px 6px;
  border: 1px solid var(--ext-field-border, #b5b8c8);
  font-size: 11px;
  border-radius: 1px;
  box-sizing: border-box;
}

.ext-tree-select-tree {
  overflow-y: auto;
  flex: 1;
  padding: 2px 0;
}

.ext-tree-select-empty {
  padding: 12px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

.ext-tree-select-node {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ext-text-color, #333);
  white-space: nowrap;
}

.ext-tree-select-node:hover {
  background: var(--ext-grid-row-hover, #d9eaf7);
}

.ext-tree-select-node.selected {
  background: var(--ext-grid-row-selected, #c2d9f0);
  font-weight: 600;
}

.ext-tree-select-expand {
  display: inline-block;
  width: 14px;
  font-size: 8px;
  text-align: center;
  transition: transform 0.15s;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
}

.ext-tree-select-expand.expanded {
  transform: rotate(90deg);
}

.ext-tree-select-expand-placeholder {
  display: inline-block;
  width: 14px;
  flex-shrink: 0;
}

.ext-tree-select-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-tree-select-check {
  margin: 0 2px 0 0;
}

.group-tree-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.inline-radio {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--ext-text-color, #333);
  cursor: pointer;
}

.update-section-error {
  margin-top: 4px;
  color: #d24747;
  font-size: 12px;
  font-weight: 600;
}

.zong-tools {
    flex: 0 0 auto;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--ext-toolbar-border);
}

.zong-tools .zong-tools-num {
    width: 110px;
}

.zong-tools .zong-tools-short {
    width: 56px;
}

.zong-tools-check {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.zong-tools-hit {
    color: #c83838;
}

.zong-invest-value {
    color: #2a72b5;
    font-weight: 600;
}

.zong-tools-window {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
}

.zong-tools-window .ext-panel-body {
    padding: 10px;
}

.zong-batch-window {
    width: 460px;
}

.zong-batch-modes,
.zong-batch-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zong-batch-line .tool-input {
    flex: 1;
}

.zong-batch-sum strong {
    color: #c83838;
}

.zong-batch-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #e3e3e3;
    font-size: 12px;
}

.zong-batch-list b {
    color: #222;
}
