/* 客户身份识别表样式 */
.client-identification-section {
    max-width: 1000px;
    margin: 0 auto;
}

.identification-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.identification-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"] {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

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

.form-actions {
    margin-top: 2rem;
    text-align: right;
}

/* 预览和打印区域样式 */
.identification-preview {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.identification-preview .editor-toolbar {
    margin-bottom: 1.5rem;
    text-align: right;
}

/* 客户身份识别表主容器 */
.identification-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.6;
    page-break-inside: avoid;
}

/* 表格无边框，只有内容区域有边框 */
.identification-table th,
.identification-table td {
    border: 1px solid #000;
    padding: 6px;
    text-align: left;
    vertical-align: top;
}

/* 移除表头背景色 */
.identification-table th {
    background-color: transparent;
    font-weight: normal;
    text-align: center;
}

/* 公司logo样式 */
.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

/* 标题样式 */
.table-title {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

/* 说明文字样式 */
.table-description {
    font-size: 10pt;
    line-height: 1.4;
    margin: 1rem 0;
    text-align: justify;
}

/* 行样式 */
.table-row {
    display: flex;
    width: 100%;
}

/* 列样式 */
.table-col {
    flex: 1;
    padding: 6px;
    border: 1px solid #000;
}

/* 左侧标签列 */
.label-col {
    width: 120px;
    font-weight: bold;
    text-align: right;
    padding-right: 10px;
}

/* 中间勾选列 */
.checkbox-col {
    width: 40px;
    text-align: center;
}

/* 右侧输入列 */
.input-col {
    flex: 1;
}

/* 长文本输入列 */
.long-input-col {
    flex: 2;
}

/* 单选按钮行 */
.radio-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 单选按钮选项 */
.radio-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 受益所有人类型容器 */
.beneficial-owner-types {
    margin: 0.5rem 0;
}

/* 声明样式 */
.declaration {
    font-weight: bold;
    margin: 1rem 0;
    text-align: left;
}

/* 签章区域样式 */
.signature-area {
    margin-top: 2rem;
    text-align: right;
    padding-right: 2rem;
}

/* 签章行 */
.signature-row {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* 签章框 */
.signature-box {
    text-align: center;
    min-width: 200px;
}

/* 签章线 */
.signature-line {
    border-bottom: 1px solid #000;
    height: 30px;
    margin: 0.5rem 0;
}

/* 业务经办人签字区域 */
.agent-signature {
    margin-top: 2rem;
    text-align: left;
}

/* 打印样式 */
@media print {
    /* 隐藏不需要打印的元素 */
    .sidebar,
    .page-header,
    .form-section,
    .editor-toolbar {
        display: none !important;
    }

    /* 重置页面样式 */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: white !important;
    }

    /* 主内容区域样式 */
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* 预览区域样式 */
    .identification-preview {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: 100vh !important;
        background: white !important;
    }

    /* 客户身份识别表样式 */
    .identification-table {
        font-size: 11pt !important;
        width: 100% !important;
        min-height: 100vh !important;
        page-break-inside: avoid !important;
    }

    /* 表格边框样式 */
    .identification-table th,
    .identification-table td {
        border: 1px solid #000 !important;
        padding: 5px !important;
    }

    /* 确保表格占满A4纸 */
    .identification-table {
        height: 100% !important;
    }

    /* 强制A4纸张大小 */
    @page {
        size: A4 portrait;
        margin: 0;
    }
}