/* 组件样式文件 */

/* 材料详情页面美化样式 */
.material-detail-enhanced {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.detail-header-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(161, 22, 22, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.title-section {
    flex: 1;
}

.material-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    margin-top: 8px;
}

.status-badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-enhanced.approved {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-enhanced.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge-enhanced.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.submitter-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.submitter-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.submitter-details {
    flex: 1;
}

.submitter-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.submitter-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    opacity: 0.9;
}

.employee-id, .branch {
    display: block;
}

.detail-info-card,
.detail-review-card,
.detail-content-card,
.detail-attachments-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    color: #64748b;
    font-size: 18px;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.card-content {
    padding: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label i {
    color: #94a3b8;
    font-size: 14px;
}

.info-value {
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.review-item-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-item-enhanced.full-width {
    grid-column: 1 / -1;
}

.review-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-label i {
    color: #94a3b8;
    font-size: 14px;
}

.review-value {
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
}

.content-text {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.attachment-item i.fa-file {
    color: #64748b;
    font-size: 16px;
}

.attachment-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.download-btn i {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .material-title {
        font-size: 24px;
    }
    
    .info-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .detail-header-card {
        padding: 20px;
    }
}

/* 美化编辑分类模态框样式 */
.modal-overlay-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay-enhanced.show {
    opacity: 1;
    visibility: visible;
}

.modal-enhanced {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay-enhanced.show .modal-enhanced {
    transform: scale(1) translateY(0);
}

/* 添加分类弹窗 - 更宽的样式 */
.add-category-modal {
    max-width: 600px;
    width: 95vw;
}

.add-category-modal .modal-body-enhanced {
    padding: 32px;
}

.add-category-modal .form-group-enhanced {
    margin-bottom: 24px;
}

.add-category-modal .form-label-enhanced {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-category-modal .form-input-enhanced,
.add-category-modal .form-textarea-enhanced {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.add-category-modal .form-input-enhanced:focus,
.add-category-modal .form-textarea-enhanced:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(161, 22, 22, 0.1);
}

.add-category-modal .form-textarea-enhanced {
    resize: vertical;
    min-height: 100px;
}

.add-category-modal .checkbox-group-enhanced {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.add-category-modal .checkbox-label-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.add-category-modal .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.add-category-modal .checkbox-input-enhanced:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.add-category-modal .checkbox-description {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.modal-header-enhanced {
    background: var(--gradient-primary);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.modal-title-content {
    flex: 1;
}

/* ✅ 优化：移除!important，使用高特异性选择器 */
.modal-overlay .modal-dialog .modal-title,
.modal-dialog .modal-title,
.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.modal-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: white;
}

.modal-close-enhanced {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.modal-close-enhanced:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modal-body-enhanced {
    padding: 32px 24px;
    background: #fafbfc;
}

.form-enhanced {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label-enhanced i {
    color: #6b7280;
    font-size: 14px;
}

.input-wrapper,
.textarea-wrapper {
    position: relative;
}

.form-input-enhanced,
.form-textarea-enhanced {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.form-input-enhanced:focus,
.form-textarea-enhanced:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(161, 22, 22, 0.1);
}

.form-textarea-enhanced {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.input-focus-border,
.textarea-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-input-enhanced:focus + .input-focus-border,
.form-textarea-enhanced:focus + .textarea-focus-border {
    transform: scaleX(1);
}

.checkbox-group-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-label-enhanced:hover {
    border-color: var(--color-primary);
    background: #f8fafc;
}

.checkbox-input-enhanced {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-input-enhanced:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.checkbox-input-enhanced:checked + .checkbox-custom i {
    opacity: 1;
    transform: scale(1);
}

.checkbox-custom i {
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.checkbox-text i {
    color: #6b7280;
    font-size: 14px;
}

.checkbox-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    padding-left: 32px;
    line-height: 1.4;
}

.modal-footer-enhanced {
    padding: 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-direction: row;
    justify-content: center;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* 取消按钮样式 - 使用更具体的选择器替代 !important */
.btn-enhanced.btn-cancel,
.modal-footer .btn-cancel,
.modal-footer-enhanced .btn-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: 2px solid #6b7280;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    min-width: 120px;
    padding: 12px 24px;
}

.btn-enhanced.btn-cancel:hover,
.modal-footer .btn-cancel:hover,
.modal-footer-enhanced .btn-cancel:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
}

/* 注意：按钮的基础样式在 main.css 的 @layer components 中定义 */
/* 这里只定义增强样式，不使用 !important，通过更具体的选择器提高优先级 */
.btn-enhanced.btn-primary,
.modal-footer .btn-primary,
/* ✅ 统一按钮样式：使用main.css中的统一样式系统 */
/* 移除重复定义，统一使用main.css中的按钮样式 */
/* 如需特定模块样式，使用页面容器作用域，例如： */
/* .modal-footer-enhanced .btn-primary { ... } */

.btn-enhanced.btn-primary:hover,
.modal-footer .btn-primary:hover,
.modal-footer-enhanced .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(161, 22, 22, 0.4);
}

.btn-enhanced.btn-primary:active,
.modal-footer .btn-primary:active,
.modal-footer-enhanced .btn-primary:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .modal-enhanced {
        margin: 16px;
        width: calc(100vw - 32px);
    }
    
    .modal-header-enhanced {
        padding: 20px;
    }
    
    .modal-body-enhanced {
        padding: 24px 20px;
    }
    
    .modal-footer-enhanced {
        padding: 20px;
        flex-direction: column;
    }
    
    .btn-enhanced {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        flex-direction: row;
    }
    
    .modal-title-section {
        gap: 12px;
    }
    
    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* 归档管理页面样式 */
.section-description {
    color: #6b7280;
    font-size: 14px;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #9ca3af;
}

.empty-content i {
    font-size: 48px;
    color: #d1d5db;
}

.empty-content p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #6b7280;
}

.empty-content small {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* 字段管理样式 */
.field-management-modal {
    max-width: 800px;
    width: 90%;
}

.field-management-content {
    padding: 20px 0;
}

.field-list-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.field-list-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.field-list-section h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.fields-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.field-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.field-info {
    flex: 1;
}

.field-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.field-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.field-type {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.required-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.field-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

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

.field-actions .action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.field-actions .edit-field {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.field-actions .edit-field:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: scale(1.1);
}

.field-actions .delete-field {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.field-actions .delete-field:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.1);
}

.empty-fields {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: white;
    border: 2px dashed #e9ecef;
    border-radius: 10px;
}

.empty-fields i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-fields p {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #666;
}

.empty-fields small {
    font-size: 14px;
    color: #999;
}

/* 分类管理增强样式 */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-info i {
    color: #3498db;
    font-size: 16px;
}

.field-count {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .field-management-modal {
        width: 95%;
        margin: 10px;
    }
    
    .field-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .field-actions {
        align-self: flex-end;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .field-header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* 动态字段样式 */
.dynamic-fields-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.dynamic-fields-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dynamic-fields-section h4::before {
    content: "📋";
    font-size: 18px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-label:hover, .checkbox-label:hover {
    background-color: #f8f9fa;
}

.radio-label input[type="radio"], .checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.radio-text, .checkbox-text {
    font-size: 14px;
    color: #495057;
}

.required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 2px;
}

.file-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* 选项输入区域样式 */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options-input-wrapper {
    position: relative;
}

.options-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.options-hint i {
    color: #2196f3;
    font-size: 14px;
}

.options-hint span {
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
}

/* 字段类型选择联动动画 */
#fieldOptionsGroup {
    transition: all 0.3s ease;
    overflow: hidden;
}

#fieldOptionsGroup.show {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* 注意：.table-container 的基础定义在 main.css 中，这里不再重复定义 */
/* 如需特定样式，请使用更具体的选择器，如 .component-specific .table-container */

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.table-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.results-count {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.page-size {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    background: var(--white);
}

.table-content {
    overflow-x: auto;
}

/* ===== 基础表格样式 ===== */
/* 注意：这是表格的基础样式定义，所有页面应使用此基础样式 */
/* 页面特定的表格样式应使用更具体的选择器，如 .members-table, .points-table 等 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: var(--font-size-sm);
}

.table td {
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.table thead {
    background: var(--gray-50);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: var(--primary-light);
}

.table tbody tr.selected {
    background: var(--secondary-light);
}

.table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.table tbody tr:nth-child(even):hover {
    background: var(--primary-light);
}

/* 积分规则表格专用样式 */
.rules-table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rules-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.rules-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.rules-table tbody tr:hover {
    background: #f9fafb;
}

.rules-table tbody tr:last-child td {
    border-bottom: none;
}

/* 积分数字样式 */
.rules-table .points {
    font-weight: 700;
    color: #dc2626;
    font-size: 16px;
}

/* 状态徽章样式 */
.rules-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    justify-content: center;
}

.rules-table .status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.rules-table .status-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.rules-table .status-badge i {
    font-size: 12px;
}

/* 操作按钮样式 */
.rules-table .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rules-table .action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.rules-table .action-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.rules-table .action-btn.edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.rules-table .action-btn.edit:hover {
    background: #bfdbfe;
    color: #1e40af;
}

.rules-table .action-btn.toggle {
    background: #fef3c7;
    color: #d97706;
}

.rules-table .action-btn.toggle:hover {
    background: #fde68a;
    color: #b45309;
}

.rules-table .action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.rules-table .action-btn.delete:hover {
    background: #fecaca;
    color: #b91c1c;
}

.table-footer {
    display: flex;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* 分页组件 */
.pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.page-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-ellipsis {
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* 搜索和筛选组件 */
.search-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.filter-group input,
.filter-group select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: end;
}

/* 复选框组件 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

/* 状态标签组件 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: var(--warning-color);
    color: var(--white);
}

.status-badge.approved {
    background: var(--accent-color);
    color: var(--white);
}

.status-badge.rejected {
    background: var(--danger-color);
    color: var(--white);
}

.status-badge.active {
    background: var(--accent-color);
    color: var(--white);
}

.status-badge.inactive {
    background: var(--gray-500);
    color: var(--white);
}

.status-badge.locked {
    background: var(--danger-color);
    color: var(--white);
}

/* 头像组件 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--white);
    background: var(--primary-color);
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar.online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border: 2px solid var(--white);
    border-radius: 50%;
}

.avatar.offline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--gray-400);
    border: 2px solid var(--white);
    border-radius: 50%;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: var(--spacing-xs);
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.2s;
    font-size: var(--font-size-sm);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-btn.view:hover {
    border-color: var(--info-color);
    color: var(--info-color);
    background: rgba(2, 132, 199, 0.1);
}

.action-btn.edit:hover {
    border-color: var(--warning-color);
    color: var(--warning-color);
    background: rgba(217, 119, 6, 0.1);
}

.action-btn.delete:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: rgba(220, 38, 38, 0.1);
}

.action-btn.print:hover {
    border-color: #6f42c1;
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.1);
}

/* 模态框组件 - 统一样式系统 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal,
.modal-dialog {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: var(--z-modal-content);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

/* ✅ 排除 modal-overlay-enhanced 作用域，避免与 development_integrated.css 冲突 */
.modal-overlay-enhanced .modal-dialog {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.modal-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 模态框尺寸变体 */
.modal-sm {
    max-width: 420px;
    width: 90vw;
}

.modal-md {
    max-width: 600px;
    width: 90vw;
}

/* 如果 modal-md 包含"确认退出"标题，则使用固定小尺寸 */
.modal-overlay:has(.modal-md .modal-title:contains("确认退出")) .modal-md,
.modal-overlay .modal-md:has(.modal-title:contains("确认退出")) {
    width: 420px !important;
    max-width: 420px !important;
    min-width: 420px !important;
}

.modal-lg {
    max-width: 800px;
    width: 90vw;
}

.modal-xl {
    max-width: 1200px;
    width: 95vw;
}

/* 退出登录确认模态框优化样式 - 固定尺寸 */
.modal-overlay:has(.modal-sm) .modal-sm {
    width: 420px !important;
    max-width: 420px !important;
    min-width: 420px !important;
}

/* 退出登录确认模态框 - 通过 JavaScript 添加的类 */
.modal-overlay .modal.logout-confirm-modal,
.modal.logout-confirm-modal {
    width: 420px !important;
    max-width: 420px !important;
    min-width: 420px !important;
}

.modal-sm .modal-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 18px 24px;
    border-radius: 12px 12px 0 0;
}

.modal-sm .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.modal-sm .modal-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-sm .modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: none;
}

.modal-sm .modal-body {
    padding: 28px 24px;
    font-size: 16px;
    color: #1f2937;
    line-height: 1.6;
    text-align: center;
}

.modal-sm .modal-footer {
    padding: 16px 24px;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.modal-sm .modal-footer .btn {
    min-width: 100px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-sm .modal-footer .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modal-sm .modal-footer .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-sm .modal-footer .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
}

.modal-sm .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 响应式：仅在极小屏幕上才允许缩小 */
@media (max-width: 480px) {
    .modal-overlay:has(.modal-sm) .modal-sm {
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        min-width: calc(100vw - 40px) !important;
    }
}

/* 优化：减少标题栏与内容区之间的间隙 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: white;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: rotate(90deg);
}

/* 优化：内容区布局，减少与标题栏的间隙 */
.modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
    flex: 1;
    margin-top: 0; /* 移除顶部边距，减少间隙 */
}

/* 优化：底部按钮布局 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
    margin-top: 0;
    border-radius: 0 0 12px 12px;
}

/* 表单组件 */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: border-color 0.2s;
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4b5563;
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.1);
}

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

.form-help {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

.form-error {
    font-size: var(--font-size-xs);
    color: var(--danger-color);
    margin-top: var(--spacing-xs);
}

/* 文件上传组件 */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-upload.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-upload-icon {
    font-size: var(--font-size-3xl);
    color: var(--gray-400);
    margin-bottom: var(--spacing-md);
}

.file-upload-text {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.file-upload-hint {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.file-list {
    margin-top: var(--spacing-md);
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.file-icon {
    color: var(--primary-color);
}

.file-name {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.file-size {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.file-remove {
    color: var(--danger-color);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.file-remove:hover {
    background: var(--danger-color);
    color: var(--white);
}

/* 通知组件 */
.notification {
    position: fixed;
    top: calc(var(--header-height, 100px) + 20px) !important; /* 位于顶部导航栏下方，留20px间距 */
    right: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    min-width: 300px;
    z-index: 10003 !important; /* 确保通知在所有元素之上，包括顶部导航栏(10000)和下拉菜单(10002) */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: visible !important; /* 确保内容不被裁剪 */
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--accent-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification.info {
    border-left: 4px solid var(--info-color);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.notification-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-800);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.notification-close:hover {
    background: var(--gray-200);
}

.notification-message {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.4;
}

/* 加载组件 */
.loading {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态组件 */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: var(--font-size-3xl);
    color: var(--gray-300);
    margin-bottom: var(--spacing-md);
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

/* 标签组件 */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.tag.primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.tag.success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-color);
}

.tag.warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning-color);
}

.tag.danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger-color);
}

/* 进度条组件 */
.progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.progress-bar.success {
    background: var(--accent-color);
}

.progress-bar.warning {
    background: var(--warning-color);
}

.progress-bar.danger {
    background: var(--danger-color);
}

/* 工具提示组件 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    margin-bottom: var(--spacing-xs);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gray-800);
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-filters {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .filter-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .filter-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .table-actions,
    .table-info {
        justify-content: center;
    }
    
    .modal {
        margin: var(--spacing-md);
        max-width: calc(100vw - 2rem);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .notification {
        right: var(--spacing-sm);
        left: var(--spacing-sm);
        min-width: auto;
    }
}
