/* =========================================================
 * components.css — 组件样式（从 HTML 内联样式提取）
 * 包含：面板、弹窗、表单控件等组件样式
 * ========================================================= */

/* --- 同址异师检测面板 --- */
.duplicate-address-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f7fa;
    z-index: 9998;
    overflow: auto;
}

.duplicate-address-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.duplicate-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.duplicate-address-title {
    margin: 0;
    color: #9c27b0;
}

.duplicate-address-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.duplicate-address-threshold {
    font-size: 13px;
    color: #666;
}

.duplicate-address-threshold input[type="range"] {
    vertical-align: middle;
}

.duplicate-address-summary {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}

.duplicate-address-groups {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- 改派弹窗 --- */
.reassign-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.reassign-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    min-width: 420px;
    max-width: 600px;
}

.reassign-panel-title {
    margin: 0 0 16px 0;
    color: #9c27b0;
}

.reassign-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.reassign-form-group {
    margin-bottom: 16px;
}

.reassign-form-label {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 6px;
}

.reassign-engineer-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.reassign-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-confirm {
    padding: 10px 20px;
    background: #9c27b0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* --- 移动端改派弹窗适配 --- */
@media (max-width: 768px) {
    .reassign-panel {
        min-width: 320px;
        max-width: 95%;
    }
}

/* --- 阈值滑块样式 --- */
.threshold-slider {
    vertical-align: middle;
}

.threshold-value {
    color: #9c27b0;
    font-weight: 600;
    min-width: 32px;
    display: inline-block;
}

/* --- 复选框样式 --- */
.checkbox-label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    vertical-align: middle;
}

/* --- 备案信息 footer --- */
.footer-beian {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
    background: #f5f7fa;
    border-top: 1px solid #e0e0e0;
}

.beian-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* --- 移动端备案信息适配 --- */
@media (max-width: 768px) {
    .footer-beian {
        padding: 15px;
        font-size: 12px;
    }
}
