.container {
    display: flex;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.form-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    width: 100%;
}



/* 合并后的侧边栏样式 */
.home-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.search-conditions-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
  width: 100%;
  min-width: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* max-width: 1300px; */
    background: #f5f5f5;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    height: calc(100vh - 40px - 40px);
    overflow: hidden;
}


.sidebar.collapsed {
    width: 50px;
    max-height: 60px;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

/* 合并后的切换按钮样式 */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.sidebar.collapsed .toggle-btn {
    transform: translateY(-50%) translateY(5px);
    display: block;
}

/* 合并后的主内容区样式 */
.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    overflow: hidden;
    /* height: calc(100vh - 40px - 60px + 20px); */
    gap: 10px;
}


.sidebar.collapsed {
    max-height: 60px; /* 收缩后只显示标题栏高度 */
}

.sidebar.collapsed .search-conditions {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    display: flex; /* 确保标题栏始终显示 */
    justify-content: space-between;
    align-items: center;
}

.sidebar.collapsed .toggle-btn {
    display: block; /* 确保按钮始终可见 */
    transform: translateY(-50%) translateY(5px); /* 改为上下移动效果 */
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s;
}

.sidebar.collapsed .toggle-btn {
    display: block; /* 确保按钮始终可见 */
    transform: translateY(-50%) translateY(5px); /* 改为上下移动效果 */

}


.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    overflow: hidden;
    height: calc(100vh - 40px - 60px + 20px); /* 恢复原计算方式 */
    gap: 10px; /* 统一设置内部元素间距 */
}



.sidebar.collapsed {
    width: 50px;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-header {
    display: none; /* 修改这里，将flex改为none */
}

.sidebar.collapsed .search-conditions {
    display: none;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reset-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.reset-btn:hover {
    background-color: #e0e0e0;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.data-section, .wish-section {
    margin-bottom: 10px; /* 统一设置底部边距 */
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.data-section {
    flex: 1;
    max-height: none; /* 默认展开 */
    overflow: auto;
    transition: all 0.3s;
}

.data-section.collapsed {
    max-height: 120px; /* 收缩时显示标题+两行 */
    overflow: hidden;
}

.wish-section {
    flex: 1;
    max-height: 120px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.wish-display {
    flex: 1;
    overflow: auto;
    /* max-width: 1200px; 添加最大宽度限制 */
    margin: 0 auto; /* 居中显示 */
    padding: 0 20px; /* 添加内边距 */
}

.wish-section.expanded {
    max-height: none;
    height: 100%; /* 确保填满可用空间 */
}

.section-toggle {
    flex: 1;
    margin: 0 5px;
    padding: 8px 0;
    text-align: center;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;

}

.section-toggle:hover {
    background-color: #ff69b4;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s;
}




.page-header {
    background-color: #1976d2;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
}

.search-conditions {
    height: calc(100% - 60px);
    overflow: hidden; /* 移除内部滚动条 */
}

.button-group {
    display: flex;
    justify-content: space-between; /* 水平均匀分布 */
    margin: 10px 0;
    width: 100%;
}

.wish-button, .section-toggle, .search-btn {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    /* height: 36px; */
    text-align: center;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wish-button:hover, .section-toggle:hover {
    background-color: #ff69b4;
}

.wish-button.active, 
.wish-button.active:hover,
.section-toggle.active {
    background-color: #ff1493 !important;
}



.button-group {
    display: flex;
    width: 100%;
    gap: 10px;
}

.range-settings {
    display: flex;
    gap: 15px;
    align-items: center;
}

.range-settings > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
}

/* 统一表单元素高度 */
input[type="text"],
input[type="number"],
select {
    height: 36px;
    padding: 8px 12px;
    box-sizing: border-box;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 确保专业表格中的输入框也保持一致 */
.professional-table input,
.professional-table select {
    height: 36px;
    padding: 8px 12px;
    box-sizing: border-box;
}

/* 确保range-settings中的选择框也保持一致 */
.range-settings select {
    height: 36px;
    padding: 8px 12px;
    box-sizing: border-box;
}
.range-settings select {
    width: 100%;
    margin-top: 5px;
}

/* .range-settings label {
    margin-bottom: 5px;
} */

.range-settings input[type="radio"] {
    margin-right: 5px;
}

.search-btn {
    flex: 1;
    margin: 0;
    padding: 8px 0;  /* 保持上下内边距一致 */
    height: auto;  /* 添加此行确保高度自适应 */
    min-height: 36px;  /* 设置最小高度 */
    text-align: center;
    background-color: #c403a7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-btn:hover {
    background-color: #ff69b4;
}
.search-btn.active {
    background-color: #ff1493 !important;
}
.form-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.form-column {
    flex: 1;
    min-width: 200px;
}
/* 删除重复的flex定义 */
/*
.form-columns {
    flex-direction: column;
}
*/



/* 增强grid布局规则 */
.form-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
    gap: 10px;
    width: 100%;
}

/* 确保父容器宽度 */
.search-conditions-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.form-column {
    width: 100%;
    margin-bottom: 15px;
}

.professional-table {
    width: 90%;
    border-collapse: collapse;
    margin: 10px 0;
}

.professional-table th, 
.professional-table td {
    padding: 3px;
    border: 1px solid #ddd;
    text-align: center;
}

.professional-table th {
    background-color: #f5f5f5;
}


datalist option {
    padding: 5px;
    background-color: white;
}


.resizable {
    position: relative;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
}

.resizable::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
}

.resizable:hover::after {
    background: #ccc;
}

/* 确保志愿表和数据展示表格样式和功能完全一致 */
.wish-table{
    width: 100%;
    max-width: 1200px; /* 添加最大宽度限制 */
    margin: 10px auto;
    border-collapse: collapse;
    table-layout: auto;
    display: block;
    overflow: auto;
    max-height: 500px; /* 设置最大高度 */
    overflow-x: auto; /* 添加水平滚动条 */
    overflow-y: auto; /* 添加垂直滚动条 */
} 
.data-table {
    width: 100%;
    max-width: 1200px; /* 与标题同宽 */
    margin: 10px auto;
    border-collapse: collapse;
    table-layout: auto;
    display: block;
    overflow: auto;
    max-height: 500px; /* 原为800px，增加50% */
    overflow-x: auto; /* 添加水平滚动条 */
    overflow-y: auto; /* 添加垂直滚动条 */
}

.wish-table thead,
.data-table thead,
.wish-table tbody,
.data-table tbody {
    display: table;
    width: 100%;
    table-layout: auto;
}


.wish-table th, 
.data-table th {
    background-color: #f5f5f5;
}

/* 确保拖动功能完全一致 */
.wish-table th::after,
.data-table th::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
}

.wish-table th:hover::after,
.data-table th:hover::after {
    background: #ccc;
}

.wish-table .resizable,
.data-table .resizable {
    min-width: 100px;
    max-width: 300px;
}
.wish-table th,
.data-table th {
    white-space: nowrap;
}
.sidebar-header {
    padding: 5px 0;
    margin-bottom: 5px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}


.form-group.flex-row {
    width: 90%;
}

.form-group.flex-row label {
    min-width: 50px;
}

.range-settings.flex-row {
    flex-grow: 1;
}



.section-toggle {
    margin: 5px 0; /* 统一外边距 */
}


.wish-button:hover {
    background-color: #ff69b4; /* 深红色悬停效果 */
}

.wish-button.active, 
.wish-button.active:hover,
.section-toggle.active {
    background-color: #ff1493 !important;
}

/* 新增自定义排序按钮类 */
.custom-sort-button {
    flex: 1;
    width: 100%;
    margin: 0 5px;
    padding: 8px 12px;
    /* height: 36px; */
    text-align: center;
    background-color: #67c23a; /* 只修改初始背景色为绿色 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 保持与wish-button相同的悬停效果 */
.custom-sort-button:hover {
    background-color: #ff69b4;
}

/* 保持与wish-button相同的激活状态 */
.custom-sort-button.active,
.custom-sort-button.active:hover {
    background-color: #ff1493 !important;
}

.button-group {
    display: flex;
    width: 100%;
    gap: 10px;
}

/* 确保4个操作按钮水平布局 */
.button-group > .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 10px !important;
}

/* 增加条件和删除条件按钮容器样式 */
.button-group > .add-remove-buttons {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
}

.button-group > .add-remove-buttons .add-btn,
.button-group > .add-remove-buttons .remove-btn {
    flex: 1 !important;
    width: 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;
}

/* 大屏下分两行 */
@media (min-width: 769px) {
    /* 第一行：增加条件和删除条件 */
    .button-group > .add-remove-buttons {
        display: flex !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .button-group > .add-remove-buttons .add-btn,
    .button-group > .add-remove-buttons .remove-btn {
        flex: 1 !important;
        width: 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
    }

    /* 第二行：4个操作按钮 */
    .button-group > .action-buttons .search-btn,
    .button-group > .action-buttons .wish-button,
    .button-group > .action-buttons .remove-btn {
        flex: 1 !important;
        width: 25% !important;
        min-width: 25% !important;
        max-width: 25% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

/* 小屏下分两行 */
@media (max-width: 768px) {
    /* 第一行：增加条件和删除条件 */
    .button-group > .add-remove-buttons {
        display: flex !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .button-group > .add-remove-buttons .add-btn,
    .button-group > .add-remove-buttons .remove-btn {
        flex: 1 !important;
        width: 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
    }

    /* 第二行：4个操作按钮垂直排列 */
    .button-group > .action-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .button-group > .action-buttons .search-btn,
    .button-group > .action-buttons .wish-button,
    .button-group > .action-buttons .remove-btn {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

.range-settings {
    display: flex;
    gap: 15px;
    align-items: center;
}

.range-settings > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
}

.range-settings > div:last-child {
    margin-right: 0;
}

.range-settings select {
    width: 100%;
    margin-top: 5px;
}

.range-settings label {
    margin-bottom: 5px;
}

.range-settings input[type="radio"] {
    margin-right: 5px;
}


.form-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.form-column {
    flex: 1;
    min-width: 100px;
}


/* 增强grid布局规则 */
.form-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)) !important;
    gap: 15px;
    width: 100%;
}


.form-column {
    width: 100%;
    margin-bottom: 15px;
}

.professional-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.professional-table th, 
.professional-table td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: center;
}



.professional-table input {
    min-width: 60px;  /* 确保至少能显示4个中文字符 */
    box-sizing: border-box;
}
datalist option {
    padding: 5px;
    background-color: white;
}

.resizable-table {
    width: auto;
    table-layout: auto;
    border-spacing: 0;
}
.resizable-table th, 
.resizable-table td {
  border: 1px solid #ddd; /* 如果有边框需求 */
}
.resizable {
    position: relative;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
}

.resizable::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
}

.resizable:hover::after {
    background: #ccc;
}

/* 确保志愿表和数据展示表格样式和功能完全一致 */
.wish-table, 
.data-table {
    width: 100%;
    max-width: 1200px; /* 与标题同宽 */
    margin: 10px auto;
    border-collapse: collapse;
    table-layout: auto;
    display: block;
    overflow: auto;
    max-height: 500px; /* 设置最大高度 */
    overflow-x: auto; /* 添加水平滚动条 */
    overflow-y: auto; /* 添加垂直滚动条 */
}

.wish-table thead,
.data-table thead,
.wish-table tbody,
.data-table tbody {
    display: table;
    width: 100%;
    table-layout: auto;
}


.wish-table th, 
.data-table th {
    background-color: #f5f5f5;
}

/* 确保拖动功能完全一致 */
.wish-table th::after,
.data-table th::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
}

.wish-table th:hover::after,
.data-table th:hover::after {
    background: #ccc;
}

.wish-table .resizable,
.data-table .resizable {
    min-width: 100px;
    max-width: 300px;
}
.wish-table th,
.data-table th {
    white-space: nowrap;
}
.sidebar-header {
    padding: 5px 0;
    margin-bottom: 5px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}


html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 新增按钮样式 */
.admin-btn {
    padding: 5px 10px;
    background-color: #009cb8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.admin-btn:hover {
    background-color: #f308eb;
}
.admin-btn2 {
    padding: 5px 10px;
    background-color: #4501ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.admin-btn2:hover {
    background-color: #f308eb;
}
.add-btn {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.remove-btn {
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-btn:hover {
    background-color: #45a049;
}

.remove-btn:hover {
    background-color: #d32f2f;
}
.highlight-row {
  background-color: #e1f5fe !important;
  transition: background-color 0.3s;
}

/* 修改已选中行的样式，使用更显眼的颜色，并修正选择器 */
.wish-table .el-table__row.table-row-selected {
  background-color: #e1f5fe !important; /* 浅珊瑚色，非常显眼 */
  border: 2px solid #FF69B4 !important; /* 加粗边框以增强视觉效果 */
}

.custom-table .el-table__row.current-row > td:not(.negative-value):not(.major-group-bg-0):not(.major-group-bg-1) {
    background-color: #e1f5fe !important; /* 自定义选中行背景色 */}

/* 添加通用表格选中样式，确保在所有表格中都生效 */
.el-table__row.table-row-selected {
  background-color: #e1f5fe !important;
  border: 2px solid #FF69B4 !important;

}

/* 确保选中行不覆盖特殊列的颜色 */
.el-table__row.table-row-selected td.negative-value,
.el-table__row.table-row-selected td.major-group-bg-0,
.el-table__row.table-row-selected td.major-group-bg-1 {
  background-color: inherit !important;
}

/* 志愿表特定样式 - 确保选中行不覆盖特殊列颜色 */
.wishtable .el-table__row.table-row-selected td.negative-value,
.wishtable .el-table__row.table-row-selected td.major-group-bg-0,
.wishtable .el-table__row.table-row-selected td.major-group-bg-1 {
  background-color: inherit !important;
}


/* 确保表头能够在缩小后自动换行 */
.el-table__header th .cell {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: auto !important; /* 自动高度以适应多行 */
  overflow: hidden !important;
  white-space: normal !important; /* 允许自动换行 */
  text-overflow: ellipsis !important; /* 超出显示省略号 */
  padding: 5px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  word-break: break-word !important; /* 允许单词拆分换行 */
  -webkit-line-clamp: 5 !important; /* 最多显示4行 */
  line-clamp: 5 !important; /* 标准属性，实现更好兼容性 */
  -webkit-box-orient: vertical !important;
  display: -webkit-box !important;
  line-height: 1.4 !important; /* 设置合适的行高 */
}

/* 表头行高适应内容 */
.el-table__header th,
.el-table__header th.is-leaf {
  height: auto !important; /* 自动高度 */
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background-color: #409EFF !important; /* 确保表头背景是蓝色 */
  color: white !important; /* 确保文字是白色 */
}

/* 确保特殊列样式正确应用 */
.special-school-name,
.special-major-name,
.special-major-remark {
  width: auto !important; /* 允许自动宽度 */
  min-width: 80px !important; /* 设置最小宽度 */
}

/* 普通列宽度设置 */
.el-table__header th:not(.special-school-name):not(.special-major-name):not(.special-major-remark),
.el-table__header th.is-leaf:not(.special-school-name):not(.special-major-name):not(.special-major-remark) {
  width: 30px !important; /* 一个字宽度 */
  min-width: 30px !important;
  max-width: 30px !important;
}

/* 确保Element UI表格的样式不会覆盖我们的设置 */
.el-table th {
  background-color: #1976d2 !important; /* 确保表头背景是蓝色 */
  color: white !important; /* 确保文字是白色 */
}

:deep(.el-table th.is-leaf) {
  background-color: #1976d2 !important;
  color: white !important;
}

:deep(.el-table th > .cell) {
  color: white !important;
  white-space: normal !important; /* 允许自动换行 */
  -webkit-line-clamp: 5 !important; /* 最多显示4行 */
  line-clamp: 5 !important; /* 标准属性，实现更好兼容性 */
}
.form-column {
    width: 100%;
    margin-bottom: 15px;
}

.professional-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.professional-table th, 
.professional-table td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: center;
}



.professional-table input {
    min-width: 60px;  /* 确保至少能显示4个中文字符 */
    box-sizing: border-box;
}
datalist option {
    padding: 5px;
    background-color: white;
}

.resizable-table {
    width: auto;
    table-layout: auto;
    border-spacing: 0;
}
.resizable-table th, 
.resizable-table td {
  border: 1px solid #ddd; /* 如果有边框需求 */
}
.resizable {
    position: relative;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
}

.resizable::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
}

.resizable:hover::after {
    background: #ccc;
}

/* 确保志愿表和数据展示表格样式和功能完全一致 */
.wish-table, 
.data-table {
    width: 100%;
    max-width: 1200px; /* 与标题同宽 */
    margin: 10px auto;
    border-collapse: collapse;
    table-layout: auto;
    display: block;
    overflow: auto;
    max-height: 500px; /* 设置最大高度 */
    overflow-x: auto; /* 添加水平滚动条 */
    overflow-y: auto; /* 添加垂直滚动条 */
}

.wish-table thead,
.data-table thead,
.wish-table tbody,
.data-table tbody {
    display: table;
    width: 100%;
    table-layout: auto;
}
.wish-table th, 
.data-table th,
.wish-table td,
.data-table td {
    padding: 5px;
    border: 1px solid #fea3e4;
    text-align: left;
    position: relative;
    white-space: nowrap;
}

.wish-table th, 
.data-table th {
    background-color: #fea3e4;
}

/* 确保拖动功能完全一致 */
.wish-table th::after,
.data-table th::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
}

.wish-table th:hover::after,
.data-table th:hover::after {
    background: #ccc;
}

.wish-table .resizable,
.data-table .resizable {
    min-width: 100px;
    max-width: 300px;
}
.wish-table th,
.data-table th {
    white-space: nowrap;
}
.sidebar-header {
    padding: 5px 0;
    margin-bottom: 5px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}
/* 增强分页按钮样式，添加背景色和边框 */
.large-pagination .el-pager li {
    min-width: 36px;  /* 稍微减小按钮宽度 */
    height: 36px;    /* 稍微减小按钮高度 */
    line-height: 36px; /* 调整行高 */
    margin: 0 6px;   /* 适当调整按钮间距 */
    font-size: 14px; /* 减小字体大小 */
    border-radius: 4px; /* 保持圆角 */
    background-color: #ffffff; /* 保持背景色 */
    border: 2px solid #409EFF; /* 保持边框 */
    cursor: pointer; /* 鼠标指针样式 */
}

.large-pagination .el-pager li:not(.disabled):hover {
    color: #ffffff;  /* 鼠标悬停文字颜色 */
    background-color: #4046ff; /* 鼠标悬停背景色 */
    font-weight: bold; /* 鼠标悬停加粗 */
    border-color: #5940e6; /* 鼠标悬停边框颜色 */
}

.large-pagination .el-pager li.active {
    min-width: 40px;  /* 活动页按钮稍微宽一点 */
    height: 40px;    /* 活动页按钮稍微高一点 */
    line-height: 40px; /* 活动页行高 */
    font-size: 16px; /* 活动页字体稍大，但比原来小 */
    font-weight: bold; /* 活动页加粗 */
    color: #ffffff; /* 活动页文字颜色 */
    background-color: #409EFF; /* 活动页背景色 */
    border-color: #3a8ee6; /* 活动页边框颜色 */
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3); /* 添加阴影效果 */
}

/* 上一页/下一页按钮样式 */
.large-pagination .el-pagination__prev,
.large-pagination .el-pagination__next {
    min-width: 36px;  /* 稍微减小按钮宽度 */
    height: 36px;    /* 稍微减小按钮高度 */
    line-height: 36px; /* 调整行高 */
    border-radius: 4px; /* 保持圆角 */
    background-color: #ffffff; /* 保持背景色 */
    border: 2px solid #409EFF; /* 保持边框 */
}

.large-pagination .el-pagination__prev:hover,
.large-pagination .el-pagination__next:hover {
    color: #ffffff;  /* 鼠标悬停文字颜色 */
    background-color: #409EFF; /* 鼠标悬停背景色 */
    border-color: #3a8ee6; /* 鼠标悬停边框颜色 */
}

/* 禁用状态样式 */
.large-pagination .el-pager li.disabled {
    background-color: #f5f5f5; /* 禁用背景色 */
    border-color: #dcdfe6; /* 禁用边框颜色 */
    color: #c0c4cc; /* 禁用文字颜色 */
}

.large-pagination .el-pagination__prev.is-disabled,
.large-pagination .el-pagination__next.is-disabled {
    background-color: #f5f5f5; /* 禁用背景色 */
    border-color: #dcdfe6; /* 禁用边框颜色 */
    color: #c0c4cc; /* 禁用文字颜色 */
}

/* 专业组单元格背景色 */
.major-group-bg-0 {
  background-color: #37b9f5 !important;
}

.major-group-bg-1 {
  background-color: #aea2fc !important;
}

/* 志愿表中的专业组单元格背景色 - 增强特异性 */
.wishtable .major-group-bg-0 {
  background-color: #37b9f5 !important;
}

.wishtable .major-group-bg-1 {
  background-color: #aea2fc !important;
}

/* 负值单元格样式 */
.negative-value {
  background-color: #ffeded !important;
  color: #ff0000 !important;
}