/* 全选按钮样式（保存按钮左侧） */
.select-all-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 10px; /* 与保存按钮保持间距 */
}

.select-all-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

/* 全选激活状态 */
.select-all-btn.active {
    background-color: #dc3545; /* 红色表示取消全选状态 */
}

/* 企业卡片中的套餐信息样式 */
.menu-info {
    margin: 5px 0;
    color: #444;
    font-size: 14px;
}

/* 任一套餐（menuid=0）的红字加粗样式 */
.menu-info .any-combo {
    color: #dc3545; /* 红色 */
    font-weight: bold; /* 加粗 */
}

/* 普通套餐的ID样式 */
.menu-info .menu-id {
    color: #666;
    font-size: 0.9em;
}

/* 右侧套餐卡片选中样式强化 */
.combo-config-card.selected {
    border: 2px solid #007bff;
    padding: 3px;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); /* 选中光晕效果 */
}

/* 右侧全选按钮容器样式 */
.select-all-container {
    padding: 10px 20px;
    text-align: right; /* 靠右显示 */
}

/* 其他原有样式保持不变... */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f5f7;
    margin: 0;
}
.container {
    max-width: none;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    box-shadow: none;
}
header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header h1 {
    margin: 0;
    font-size: 18px;
    margin-left: 15px;
}
.back-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}
main {
    padding: 0 20px 20px 20px;
}
.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}
.pagination .page-nav-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #555;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
}
.pagination .page-nav-button:hover:not(:disabled) {
    background-color: #f0f0f0;
}
.pagination .page-nav-button:disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}
.pagination .page-info {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    min-width: 120px;
    text-align: center;
}
.loading-text, .error-text {
    text-align: center;
    color: #888;
    padding: 20px;
}
.company-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.company-card:hover {
    background-color: #f5f5f5;
}
.company-card.selected {
    border: 2px solid #007bff;
    padding: 13px;
    background-color: #f0f7ff;
}
.info .name-mobile {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}
.info .name-mobile span {
    font-weight: normal;
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}
.info p {
    margin: 5px 0;
    color: #444;
}
.actions .employee-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.actions .employee-button:hover {
    background-color: #218838;
}
.actions .remove-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 10px;
}
.actions .remove-button:hover {
    background-color: #c82333;
}
.pagination .add-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 15px;
}
.pagination .add-button:hover {
    background-color: #0069d9;
}
.content-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}
.left-content {
    width: 40%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}
.right-content {
    width: 60%;
}
.op-container {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header-actions {
    display: flex;
    align-items: center;
}
.nav-btn {
    text-decoration: none;
    background-color: #5bc0de;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right: 10px;
}
.nav-btn:hover {
    background-color: #46b8da;
    transform: translateY(-2px);
}
.save-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.save-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}
.op-main-content {
    display: flex;
    gap: 15px;
    padding: 10px 15px 15px;
    overflow: hidden;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    flex-grow: 1;
}
.config-panel {
    flex-grow: 1;
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 610px;
}
.card-group-display {
    flex-grow: 1;
    height: auto;
    overflow-y: auto;
}
.combo-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.combo-config-card {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}
.combo-config-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.combo-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 6px;
}
.combo-info {
    text-align: center;
    padding: 0 8px;
    margin-bottom: 6px;
}
.combo-info h3 {
    margin: 0 0 3px;
    font-size: 1.0em;
    font-weight: 600;
}
.combo-info .description {
    font-size: 0.75em;
    color: #7f8c8d;
    margin-bottom: 5px;
    max-height: 3.0em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.combo-info .price {
    font-size: 1.0em;
    font-weight: bold;
    color: #e67e22;
}