/* ===== 高风险客户提醒：工作台红条 / 每日首弹 / 高风险清单页 ===== */
#creditRiskBanner {
    flex: 0 0 auto;
}

.cr-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #a31515;
    background: linear-gradient(90deg, #c62828, #e53935);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.cr-banner:hover,
.cr-banner:focus-visible {
    background: #b71c1c;
    outline: none;
}

.cr-banner-icon {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.cr-banner-text {
    flex: 1 1 auto;
    min-width: 0;
}

.cr-banner-names {
    font-weight: 500;
}

.cr-banner-cta {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.95;
}

.cr-banner-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.cr-banner-close:hover,
.cr-banner-close:focus-visible {
    background: rgba(255, 255, 255, 0.32);
    outline: none;
}

@media (max-width: 640px) {
    .cr-banner {
        gap: 6px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .cr-banner-cta {
        display: none;
    }

    .cr-banner-close {
        width: 26px;
        height: 26px;
    }
}

.cr-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.cr-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
}

.cr-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    overflow: auto;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cr-modal-title {
    color: #b91c1c;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.cr-modal-sub {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.cr-modal-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #f1f5f9;
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cr-modal-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.cr-modal-name {
    min-width: 0;
    overflow: hidden;
    color: #1f2937;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cr-modal-risk {
    flex: 0 0 auto;
    color: #b91c1c;
    font-size: 12px;
}

.cr-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.cr-btn:hover {
    background: #f9fafb;
}

.cr-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cr-btn-primary {
    border-color: #c62828;
    background: #c62828;
    color: #fff;
}

.cr-btn-primary:hover {
    background: #b71c1c;
}

.cr-btn-small {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.cr-list-body {
    margin: 0;
    background: #f5f6f8;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.cr-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 16px 40px;
}

.cr-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cr-page-head h1 {
    margin: 0;
    color: #991b1b;
    font-size: 22px;
    line-height: 1.3;
}

.cr-page-sub {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.cr-page-sub strong {
    color: #b91c1c;
}

.cr-page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cr-status {
    min-height: 20px;
    margin: 12px 0 8px;
    color: #b91c1c;
    font-size: 13px;
}

.cr-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cr-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: 13px;
}

.cr-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.cr-table td {
    padding: 10px 12px;
    border-top: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
}

.cr-table tbody tr:hover {
    background: #fff8f8;
}

.cr-customer {
    color: #111827;
    font-weight: 600;
    white-space: nowrap;
}

.cr-reasons {
    min-width: 220px;
}

.cr-suggestion {
    min-width: 180px;
    color: #4b5563;
}

.cr-muted {
    color: #6b7280;
    white-space: nowrap;
}

.cr-empty {
    padding: 28px 12px;
    color: #6b7280;
    text-align: center;
}

.cr-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cr-risk-high {
    background: #fde2e1;
    color: #b91c1c;
}

.cr-risk-normal {
    background: #eef2f7;
    color: #475569;
}

@media (max-width: 640px) {
    .cr-page {
        padding: 14px 10px 28px;
    }

    .cr-page-head h1 {
        font-size: 19px;
    }

    .cr-table th,
    .cr-table td {
        padding: 8px 10px;
    }
}
