/* 客资管理系统自定义样式 */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 表格样式增强 */
table {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 640px; /* 确保表格有最小宽度 */
}

/* 确保表单元素也能适应容器宽度 */
.form-control,
.btn {
    box-sizing: border-box;
}

/* 表格样式增强 */
table {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 640px; /* 确保表格有最小宽度 */
}

table th {
    font-weight: 600;
    background-color: #343a40;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 表格容器样式 */
.table-responsive {
    overflow-x: auto;
}
/* 卡片样式增强 */
.card {
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 按钮样式增强 */
.btn {
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 表单控件样式 */
.form-control {
    border-radius: 0.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 时间线样式 */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #007bff;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #007bff;
}

/* 状态标签样式 */
.badge-status {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link {
    color: #007bff;
    transition: all 0.2s ease;
}

.page-link:hover {
    color: #0056b3;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* 工具提示样式 */
.tooltip-inner {
    max-width: 250px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    text-align: center;
    background-color: #343a40;
    border-radius: 0.25rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 移除响应式样式，保持PC端固定布局 */

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* 客户列表行悬停效果 */
.table-hover tbody tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* 确保点击操作区域不受行悬停效果影响过大 */
.table-hover tbody tr td[onclick="event.stopPropagation();"] {
    background-color: transparent;
}

/* 确保表格行有指针样式 */
table tbody tr[style*="cursor: pointer"] {
    cursor: pointer;
}