/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #409eff;
    color: white;
}

.btn-primary:hover {
    background: #66b1ff;
}

.btn-primary:disabled {
    background: #c0c4cc;
    cursor: not-allowed;
}

.btn-danger {
    background: #f56c6c;
    color: white;
}

.btn-danger:hover {
    background: #f78989;
}

.btn-success {
    background: #67c23a;
    color: white;
}

.btn-success:hover {
    background: #85ce61;
}

.btn-export {
    background: #67c23a;
    color: white;
}

.btn-export:hover {
    background: #85ce61;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.data-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #606266;
}

.data-table tr:hover {
    background: #f5f7fa;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-page {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.btn-page:hover:not(.disabled) {
    color: #409eff;
    border-color: #409eff;
}

.btn-page.disabled {
    color: #c0c4cc;
    cursor: not-allowed;
}

.page-info {
    margin: 0 10px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 4px;
    min-width: 400px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #909399;
}

.modal-close:hover {
    color: #606266;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #ebeef5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #606266;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #409eff;
}

/* 输入框组 */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

/* 搜索输入框 */
.search-input {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

/* 日期输入框 */
.date-input {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

/* 工具条 */
.page-toolbar {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 筛选栏 */
.filter-bar {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 状态标签 */
.status-tabs {
    display: flex;
    gap: 10px;
}

.status-tab {
    padding: 8px 16px;
    border: 1px solid #dcdfe6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.status-tab:hover {
    color: #409eff;
    border-color: #409eff;
}

.status-tab.active {
    background: #409eff;
    color: white;
    border-color: #409eff;
}

/* 角色复选框样式 */
.role-checkboxes {
    padding: 8px 0;
}

.role-checkbox-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
    cursor: pointer;
    line-height: 1.5;
}

.role-checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}

.role-checkbox-item span {
    flex: 1;
    user-select: none;
}

/* 表格容器 */
.table-container {
    background: white;
    border-radius: 4px;
    overflow: auto;
}

/* 展开/收起按钮 */
.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #409eff;
    padding: 4px 8px;
}

.expand-btn:hover {
    color: #66b1ff;
}

