/* 客户管理页面特定样式 - 一行一条显示 */

/* 链接按钮去除下划线 */
a.btn {
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

/* 工具栏左侧按钮组 */
.toolbar-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 金额统计卡片字体大小和特效 */
.stat-number-price {
    font-size: 24px !important;
    font-weight: bold;
    color: #fff !important;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    animation: glow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

/* 金额隐藏状态 */
.stat-number-price.hidden {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

/* 重点关注星标样式 */
.important-star {
    display: inline-block;
    color: #ffa502;
    font-size: 16px;
    margin-left: 5px;
    animation: starPulse 2s ease-in-out infinite;
    cursor: default;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 隐藏金额按钮 */
.toggle-amount-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.toggle-amount-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.toggle-amount-btn:active {
    transform: scale(0.95);
}

@keyframes glow {
    from {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }

    to {
        text-shadow:
            0 0 15px rgba(255, 255, 255, 0.8),
            0 0 25px rgba(255, 255, 255, 0.5),
            0 0 35px rgba(255, 255, 255, 0.3),
            0 0 45px rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

/* 金额卡片悬停效果 */
.stat-card-price:hover .stat-number-price {
    animation: glow 0.8s ease-in-out infinite alternate;
    transform: scale(1.08);
}

/* 表头样式 */
.client-header-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 8px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    border: 1px solid #dee2e6;
    overflow-x: auto;
    min-width: 0;
}

.client-header-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
}

.header-col {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-actions-col {
    min-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

/* 列宽度定义 */
.header-checkbox,
.data-checkbox {
    min-width: 40px;
    text-align: center;
}

.header-id,
.data-id {
    min-width: 60px;
}

.header-company,
.data-company {
    min-width: 120px;
    flex: 1;
}

.header-status,
.data-status {
    min-width: 50px;
}

.header-name,
.data-name {
    min-width: 80px;
}

.header-phone,
.data-phone {
    min-width: 100px;
}

.header-wechat,
.data-wechat {
    min-width: 100px;
}

.header-domain,
.data-domain {
    min-width: 200px;
    max-width: 250px;
}

.header-price,
.data-price {
    min-width: 80px;
}

.header-renew,
.data-renew {
    min-width: 90px;
}

.header-start,
.data-start {
    min-width: 110px;
    text-align: left;
}

.header-end,
.data-end {
    min-width: 140px;
    text-align: left;
    margin-left: -10px;
}

.header-note,
.data-note {
    min-width: 150px;
    text-align: left;
    max-width: 200px;
}

.data-note .note-icon {
    display: inline-block;
    cursor: help;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.data-note .note-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 备注tooltip样式 */
.note-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.note-tooltip.show {
    opacity: 1;
}

/* 用户管理页面列样式 */
.header-username,
.data-username {
    min-width: 120px;
}

.header-role,
.data-role {
    min-width: 100px;
}

.header-created,
.data-created {
    min-width: 160px;
    text-align: left;
}

.header-updated,
.data-updated {
    min-width: 160px;
    text-align: left;
}

.client-item {
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border-left: 4px solid #667eea;
}

.client-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.client-item.status-active {
    border-left-color: #28a745;
}

.client-item.status-inactive {
    border-left-color: #6c757d;
}

.client-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.client-info-line {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
    font-size: 14px;
    color: #333;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
}

.data-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.domain-link {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

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

.domain-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.domain-view-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.domain-view-btn:hover {
    opacity: 1;
}

.domain-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 400px;
    word-break: break-all;
    white-space: normal;
}

.domain-tooltip.show {
    opacity: 1;
}

.domain-tooltip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.client-id {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-right: 5px;
}

.client-company {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.badge-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-status.active {
    background: #d4edda;
    color: #155724;
}

.badge-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* 角色徽章样式 */
.badge-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-employee {
    background: #e7f3ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.info-segment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    white-space: nowrap;
}

.info-segment.price {
    color: #667eea;
    font-weight: 500;
}

.client-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn.edit {
    background: #667eea;
    color: white;
}

.action-btn.edit:hover {
    background: #5568d3;
}

.action-btn.email {
    background: #17a2b8;
    color: white;
}

.action-btn.email:hover {
    background: #138496;
}

.action-btn.email:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.action-btn.delete {
    background: #dc3545;
    color: white;
}

.action-btn.delete:hover {
    background: #c82333;
}

.action-btn.contract {
    background: #28a745;
    color: white;
}

.action-btn.contract:hover {
    background: #218838;
}

.action-btn.contract.no-contract {
    background: #6c757d !important;
    opacity: 0.6;
    cursor: pointer;
}

.action-btn.contract.no-contract:hover {
    background: #5a6268 !important;
    opacity: 0.8;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    margin-right: 8px;
}

.pagination-btn:last-child {
    margin-right: 0;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #adb5bd;
    margin-right: 8px;
}

/* 批量操作栏（沿用美工任务样式） */
.batch-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.batch-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-actions-left input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.batch-actions-left label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.selected-count {
    font-size: 14px;
    color: #6b7280;
    margin-left: 8px;
}

.batch-actions-right {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* 响应式设计 */
/* 移动端统计区域优化 */
@media (max-width: 768px) {
    header {
        margin-top: 15px;
    }

    .stats {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-number-price {
        font-size: 18px !important;
        word-break: break-all;
        line-height: 1.3;
    }

    .stat-label {
        font-size: 12px;
    }

    .toggle-amount-btn {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 14px;
    }

    .todo-container {
        padding: 15px;
    }

    .toolbar {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .toolbar-left {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .filter-group select,
    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
        font-size: 14px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .client-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px !important;
        overflow: visible !important;
    }

    .client-header-content {
        width: 100% !important;
        flex-direction: column;
        gap: 10px;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 确保表头列的左边距与数据列一致 */
    .client-header-content .header-col {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .header-col {
        display: block !important;
        width: 100% !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #e9ecef;
        overflow: visible !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* 手机端隐藏不需要显示的表头 */
    .header-company,
    .header-name,
    .header-phone,
    .header-status {
        display: none !important;
    }

    /* 对应的数据列也隐藏 - 使用更高优先级确保覆盖 */
    .data-col.data-company,
    .data-col.data-name,
    .data-col.data-phone,
    .data-col.data-status {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* 域名和域名所有字段左对齐，确保padding和margin完全一致 */
    .header-domain,
    .header-price {
        text-align: left !important;
        padding: 8px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .data-domain,
    .data-price {
        text-align: left !important;
        padding: 8px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 只对日期相关字段强制左对齐 */
    .header-end,
    .header-start {
        text-align: left !important;
    }

    .header-actions-col {
        width: 100%;
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid #e9ecef;
    }

    .client-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-info-line {
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        min-width: 0 !important;
    }

    .data-col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        flex-shrink: 1 !important;
        flex-grow: 0 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .data-col:last-child {
        border-bottom: none;
    }

    /* 确保日期字段完整显示 */
    .data-end,
    .data-start {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
        text-align: left !important;
    }

    /* 确保日期标题和内容对齐 */
    .header-end,
    .header-start {
        text-align: left !important;
    }

    /* 确保父容器不限制宽度，padding与表头一致 */
    .client-item {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 12px 15px !important;
    }

    /* 确保数据列的左边距与表头一致 */
    .client-info-line {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .client-info-line .data-col {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .client-row {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .client-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination {
        justify-content: center;
    }

    /* 列宽度在移动端不需要限制 */
    .header-checkbox,
    .data-checkbox,
    .header-id,
    .data-id,
    .header-company,
    .data-company,
    .header-status,
    .data-status,
    .header-name,
    .data-name,
    .header-phone,
    .data-phone,
    .header-wechat,
    .data-wechat,
    .header-domain,
    .data-domain,
    .header-price,
    .data-price,
    .header-renew,
    .data-renew,
    .header-start,
    .data-start,
    .header-end,
    .data-end {
        min-width: auto;
    }

    /* 平板电脑：确保域名和域名所有字段左对齐 */
    .header-domain,
    .header-price {
        text-align: left !important;
    }

    .data-domain,
    .data-price {
        text-align: left !important;
    }

    .header-note,
    .data-note {
        min-width: auto;
        max-width: none;
    }

    .header-checkbox,
    .data-checkbox {
        width: 100%;
        padding: 8px 0;
    }
}

/* 到期客户提醒样式 */
.expiring-clients-list {
    max-height: 500px;
    overflow-y: auto;
}

.expiring-clients-table {
    width: 100%;
}

.expiring-header-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    margin-bottom: 8px;
}

.expiring-client-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.expiring-client-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.expiring-client-row.urgent {
    border-left-color: #ff4757;
    background: #fff5f5;
}

.expiring-client-row.soon {
    border-left-color: #ffa502;
    background: #fffbf5;
}

.expiring-client-row.later {
    border-left-color: #2ed573;
    background: #f5fff5;
}

.expiring-client-row span {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.domain-col {
    font-weight: 600;
    color: #667eea;
}

.days-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-urgent {
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-soon {
    background: #ffa502;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-later {
    background: #2ed573;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {

    .expiring-header-row,
    .expiring-client-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .expiring-header-row span,
    .expiring-client-row span {
        padding: 4px 0;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* 权限选择样式 */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.permission-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.permission-item span {
    font-size: 14px;
    color: #333;
    user-select: none;
}

.permission-item input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: #667eea;
}

@media (max-width: 768px) {
    .permissions-grid {
        grid-template-columns: 1fr;
    }
}

/* 邮件富文本编辑器样式 */
.email-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #333;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

.toolbar-btn:active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 5px;
}

.email-editor-content {
    min-height: 300px;
    max-height: 500px;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    padding: 15px;
    background: #fff;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    outline: none;
}

.email-editor-content:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.email-editor-content:empty:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

.email-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.email-editor-content p {
    margin: 10px 0;
}

.email-editor-content ul,
.email-editor-content ol {
    margin: 10px 0;
    padding-left: 30px;
}

/* 平板电脑样式 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    /* 确保域名和域名所有字段左对齐 */
    .header-domain,
    .header-price {
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .data-domain,
    .data-price {
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    /* 确保表头和数据列的左边距一致 */
    .client-header-content {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .client-header-content .header-col {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .client-info-line {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .client-info-line .data-col {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

.email-editor-content a {
    color: #667eea;
    text-decoration: underline;
}

.email-editor-content a:hover {
    color: #764ba2;
}

/* 自定义确认对话框 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    /* 确保在所有浮层之上 */
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.confirm-dialog-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    position: relative;
    z-index: 20001;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-dialog-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.confirm-dialog-icon {
    font-size: 32px;
    line-height: 1;
}

.confirm-dialog-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.confirm-dialog-body {
    padding: 24px;
}

.confirm-dialog-message {
    margin: 0;
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
    white-space: pre-line;
}

.confirm-dialog-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.confirm-dialog-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-dialog-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.confirm-dialog-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-dialog-confirm:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* 响应式 - 移动端对话框 */
@media (max-width: 768px) {
    .confirm-dialog-content {
        width: 95%;
        max-width: none;
    }

    .confirm-dialog-footer {
        flex-direction: column-reverse;
    }

    .confirm-dialog-cancel,
    .confirm-dialog-confirm {
        width: 100%;
    }
}

/* 修改密码模态框样式 */
.password-modal {
    max-width: 500px;
    margin-top: 120px;
}

.password-modal .form-group {
    margin-bottom: 25px;
}

.password-modal .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.password-modal .label-icon {
    font-size: 1.1em;
}

.password-modal .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s;
    background: #f9f9f9;
}

.password-modal .form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-modal .form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #999;
}

.password-modal .error-message {
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #e74c3c;
    font-size: 0.9em;
}

.password-modal .modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.password-modal .modal-footer button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1em;
}

.password-modal .modal-footer .btn-secondary {
    background: #95a5a6;
}

.password-modal .modal-footer .btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.password-modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.password-modal .modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.password-modal .modal-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .password-modal .modal-footer {
        flex-direction: column;
    }

    .password-modal .modal-footer button {
        width: 100%;
    }
}