/* aplyfm.css - 统一表格样式 */


/* 全局样式调整 */
body {
    font-size: 14px;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1140px;
    padding: 20px 15px;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header h4, .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 24px;
    background-color: #fff;
}

/* 表单元素样式 */
.form-control, .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* 标签样式 */
.form-label {
    font-size: 14px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.btn i {
    margin-right: 0.5rem;
}

/* 表格样式 */
/* 表格容器样式 */
.table-responsive {
    overflow-x: auto;
    min-height: 0%; /* 修复 Safari 中的滚动问题 */
}

/* 表格基础样式 */
.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed !important;
}

/* 表格单元格样式 */
.table th,
.table td {
    padding: 0.1rem;
    vertical-align: middle;
    border: 1px solid #dee2e6;
    min-width: 50px; /* 设置最小宽度 */
    max-width: none; /* 移除最大宽度限制 */
}

/* 输入框样式 */
.table .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 30px;
    border: none;
    background-color: transparent;
}

/* 文本换行样式 */
.table td,
.table th,
.table .form-control {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
}

/* 确保 card-body 不会影响表格布局 */
.card-body {
    padding: 0;
}

/* 表格内容居中对齐 */
.table .text-center {
    text-align: center !important;
}

/* 移除输入框聚焦时的外边框 */
.table .form-control:focus {
    outline: none;
    box-shadow: none;
}

/* 项目申报情况部分的文本框统一高度 */
.project-description textarea {
    min-height: 200px;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 表单组间距 */
.g-3 {
    --bs-gutter-y: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 16px;
    }
    
    .col-md-4, .col-md-6, .col-md-8 {
        margin-bottom: 12px;
    }
}

/* 确保所有按钮高度一致 */
.btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* 修复按钮内部图标和文本的对齐 */
.btn i {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

/* 页面导航按钮样式 */
.prev-page,
.next-page {
    min-width: 80px;
}

.current-page-indicator {
    margin-left: 1rem;
    font-size: 14px;
}

/* 表单页面样式 */
.form-page {
    display: none;
}

.form-page:first-child {
    display: block;
}

/* 推荐意见和评审意见页面样式 */
.opinion-section {
    margin-bottom: 2rem;
}

.opinion-section textarea {
    min-height: 300px;
}

.signature-section {
    text-align: right;
    margin-top: 2rem;
}

.signature-line {
    display: inline-block;
    width: 200px;
    border-bottom: 1px solid #000;
    margin-bottom: 0.5rem;
}

.date-line {
    margin-top: 1rem;
}

/* 附件上传样式 */
.attachment-container {
    margin-bottom: 1.5rem;
}

.file-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    flex: 1;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    overflow: hidden;
}

/* 主要信息表格样式 */
.card.border-primary {
    border-color: #0d6efd !important;
}

.card-header.bg-primary {
    background-color: #0d6efd !important;
    color: #ffffff;
    padding: 12px 20px;
}

.card-header.bg-primary h5 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.text-primary {
    color: #0d6efd !important;
}

/* 个人信息表格样式 */
.card.border-info {
    border-color: #0dcaf0 !important;
}

.card-header.bg-info {
    background-color: #0dcaf0 !important;
    color: #ffffff;
    padding: 12px 20px;
}

.card-header.bg-info h5 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.text-info {
    color: #0dcaf0 !important;
}

/* 工作经历表格样式 */
.card.border-success {
    border-color: #198754 !important;
}

.card-header.bg-success {
    background-color: #198754 !important;
    color: #ffffff;
    padding: 12px 20px;
}

.card-header.bg-success h5 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.text-success {
    color: #198754 !important;
}

/* 其他表格样式 */
.card.border-warning {
    border-color: #ffc107 !important;
}

.card-header.bg-warning {
    background-color: #ffc107 !important;
    color: #212529; /* 深色文字，确保在黄色背景上可见 */
    padding: 12px 20px;
}

.card-header.bg-warning h5 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

.text-warning {
    color: #ffc107 !important;
}

/* 危险/重要表格样式 */
.card.border-danger {
    border-color: #dc3545 !important;
}

.card-header.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff;
    padding: 12px 20px;
}

.card-header.bg-danger h5 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.text-danger {
    color: #dc3545 !important;
}

/* 表单元素样式 */
.form-control, .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.form-label {
    font-size: 14px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.fw-bold {
    font-weight: 600 !important;
}

/* 阴影效果 */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 表格内容间距 */
.card-body {
    padding: 20px;
}

.row.g-3 {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: 1rem;
}

/* 图标样式 */
.fas {
    margin-right: 0.5rem;
} 