.model-details .row-4
{
	Margin-top: 20px;
}
.model-details .row-5
{
	border:none;
}
/* 分页控件样式 */
.paging{
	text-align:center;
}
.pagination .active a{
	background-color:#005197;
	border-color:#005197;
}

.model-details-product-title{
	padding:15px 0px;
	font-size:18px;
	border-bottom:1px #005197 solid;
	color:#005197;
	margin-bottom:10px;
	margin-top:10px;
	text-align:center;
}

.thumbnail-cell {
    max-width: 150px;
}

.active2 {
	color: #ffffff !important;
	background-color: #007bff !important;
}

#buttonContainer {
  display: flex; /* 使用 Flexbox 布局 */
  justify-content: space-between; /* 让子元素平均分布在容器中 */
  align-items: center; /* 垂直居中对齐 */
  margin-top: 20px; /* 设置容器底部边距 */
  margin-bottom: 20px; /* 设置容器底部边距 */
}

#buttonContainer button,
.buttonContainer p {
  margin-right: 10px; /* 设置按钮和段落之间的右边距 */
}

/* 根据需要设置缩略图的最大宽度和高度 */
.thumbnail-cell img {
    max-width: 70px; /* 设置最大宽度 */
    max-height: 70px; /* 设置最大高度 */
}
.thumbnail-container {
    position: relative;
    overflow: hidden;
}


.thumbnail {
    width: 100px; /* 设置缩略图的宽度 */
    height: auto; /* 根据宽度自动调整高度 */
    border: 1px solid #ddd; /* 缩略图边框样式 */
    transition: transform 0.3s ease; /* 添加放大效果的过渡动画 */
}

.thumbnail:hover {
    transform: scale(1.2); /* 鼠标悬停时放大缩略图 */
}
#foodTypeList {
    max-height: none; /* 移除高度限制 */
    overflow-y: visible; /* 确保所有内容可见 */
}
/* 添加以下样式 */
.table {
    table-layout: fixed;
    width: 100%;
}


.table thead th {
    width: auto; /* 或指定固定宽度 */
    min-width: 100px; /* 设置最小宽度 */
    white-space: nowrap; /* 防止文本换行 */
    position: sticky;
    top: 0;
    background-color: #f8f9fa; /* 表头背景色 */
    z-index: 10;
}

/* 为每列指定固定宽度或比例 */
.table thead th:nth-child(1) { width: 5%; }  /* 选择列 */
.table thead th:nth-child(2) { width: 10%; } /* 缩略图 */
.table thead th:nth-child(3) { width: 18%; } /* 英文名称 */
.table thead th:nth-child(4) { width: 15%; } /* 中文名称 */
.table thead th:nth-child(5) { width: 10%; } /* 规格 */
.table thead th:nth-child(6) { width: 10%; } /* 单价 */
.table thead th:nth-child(7) { width: 10%; }  /* 单位 */
.table thead th:nth-child(8) { width: 9%; } /* 购买数量 */
.table thead th:nth-child(9) { width: 8%; } /* 金额 */


/* 防止单元格内容换行 */
.table td, .table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quantity-input {
    width: 70px !important;
    display: inline-block !important;
    padding: 6px 8px !important;
}
/* 禁用状态的样式 */
.food-checkbox:disabled,
.quantity-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


#selectedFoodModal {
    transition: all 0.3s ease;
}

/* 模态框容器样式（保持您的左侧定位） */
#selectedFoodModal .modal-dialog {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    width: 750px;
    max-width: 100vw;
    height: 100vh;
    transform: none;
}

/* 表格百分比布局 */
#selectedFoodModal .table {
    table-layout: fixed;
    width: 100%;
}

/* 表头固定 */
#selectedFoodModal .table thead th {
    position: static; /* 默认流式布局 */
    padding: 15px 15px 10px; /* 减少底部内边距 */
    border-bottom: 1px solid #eee;
    background: white;
}

/* 通用单元格样式 */
#selectedFoodModal .table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    padding: 8px 12px;
}

/* 百分比列宽设置 */
#selectedFoodModal .table td:nth-child(1),  /* 序号 */
#selectedFoodModal .table th:nth-child(1) {
    width: 9%;
    min-width: 50px;
    text-align: center;
}

#selectedFoodModal .table td:nth-child(2),  /* 英文名称 */
#selectedFoodModal .table th:nth-child(2) {
    width: 20%;
    min-width: 150px;
}

#selectedFoodModal .table td:nth-child(3),  /* 中文名称 */
#selectedFoodModal .table th:nth-child(3) {
    width: 15%;
    min-width: 100px;
}

#selectedFoodModal .table td:nth-child(4),  /* 规格 */
#selectedFoodModal .table th:nth-child(4) {
    width: 10%;
    min-width: 100px;
}

#selectedFoodModal .table td:nth-child(5),  /* 价格 */
#selectedFoodModal .table th:nth-child(5) {
    width: 10%;
    min-width: 80px;
    text-align: right;
}

#selectedFoodModal .table td:nth-child(6),  /* 单位 */
#selectedFoodModal .table th:nth-child(6) {
    width: 10%;
    min-width: 60px;
    text-align: center;
}

#selectedFoodModal .table td:nth-child(7),  /* 数量 */
#selectedFoodModal .table th:nth-child(7) {
    width: 9%;
    min-width: 80px;
    text-align: center;
}

#selectedFoodModal .table td:nth-child(8),  /* 金额 */
#selectedFoodModal .table th:nth-child(8) {
    width: 10%;
    min-width: 90px;
    text-align: right;
}

#selectedFoodModal .table td:nth-child(9),  /* 操作 */
#selectedFoodModal .table th:nth-child(9) {
    width: 7%;
    min-width: 60px;
    text-align: center;
}

#selectedFoodModal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100vh; /* 占满整个视口高度 */
}

/* 2. 标题区域设置 */
#selectedFoodModal .modal-header {
    position: relative; /* 取消所有固定定位 */
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: white;
    flex-shrink: 0; /* 禁止标题区域压缩 */
    z-index: 1; /* 确保显示层级 */
}
/* 模态框内容区域 */
#selectedFoodModal .modal-body {
    /*padding: 15px;*/
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    padding: 0 10px; /* 移除顶部内边距 */
}

/* 悬停显示完整内容 */
#selectedFoodModal .table td:hover {
    overflow: visible;
    white-space: normal;
    background: white;
    z-index: 100;
    position: relative;
}

#selectedFoodModal .modal-footer {
    padding: 12px 15px;
    margin-top: 0; /* 移除额外外边距 */
}