/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px; /* Margin bottom by footer height */
}

.container {
  max-width: 1800px;
}

.pricing-header {
  max-width: 700px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px; /* Set the fixed height of the footer here */
  line-height: 60px; /* Vertically center the text there */
  background-color: #f5f5f5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-sm {
    padding: 3px 6px;
    font-size: 12px;
}

.input-sm {
    height: 20px; /* 调整为您期望的高度 */
    font-size: 14px; /* 可选：调整字体大小以匹配高度 */
    padding: 5px; /* 可选：调整内边距以适应更小的高度 */
}

.table {
    width: 98%; /* 表格占满整个容器 */
    max-width: 98%; /* 防止表格超出 */
    table-layout: fixed; /* 确保手动列宽生效 */
    word-wrap: break-word; /* 处理长文本 */
}

.table th, .table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.table thead th {
    background-color: #f8f9fa;
}

.table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Form container */
form {
    max-width: 800px;
    margin: 0 auto; /* Center the form */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form labels */
form label {
    margin-right: 15px;
    font-weight: bold;
    text-align: right;
    width: 150px;
    display: inline-block;
}

/* Form inputs */
form input, form textarea, form select {
    width: calc(100% - 170px); /* Adjust width based on label width */
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in width */
}

/* Checkbox alignment */
form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Space between form groups */
}

form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and label */
    white-space: nowrap; /* Prevent label wrapping */
}

form .checkbox-group input[type="checkbox"] {
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove padding */
    vertical-align: middle; /* Center checkbox vertically */
}

/* Buttons */
form button {
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form.d-inline {
    margin: 0;
    padding: 0;
    border: none; /* 移除边框 */
    background: transparent; /* 移除背景色 */
    display: inline; /* 保持内联样式 */
}

form button:hover {
    background-color: #0056b3;
}

form a {
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #6c757d;
    border-radius: 4px;
    text-decoration: none;
}

form a:hover {
    background-color: #5a6268;
}

/* 下拉菜单样式 */
#skuResults,
#orderResults {
    position: absolute;
    left: 0;
    top: calc(100% + 2px); /* 紧贴输入框 */
    max-height: 200px; /* 限制高度 */
    overflow-y: auto; /* 滚动条 */
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* 显示在最上方 */
    width: 100%; /* 宽度与输入框一致 */
    padding: 0;
    margin: 0;
}

#skuResults li,
#orderResults li {
    list-style: none;
    padding: 8px 12px;
    cursor: pointer;
}

.list-group {
    position: absolute;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: block; /* 默认隐藏 */
}

#skuResults li:hover,
#orderResults li:hover {
    background-color: #f1f1f1;
}

<style>
    .table-bordered th, .table-bordered td {
        text-align: center;
        vertical-align: middle;
    }
</style>

textarea {
    vertical-align: middle; /* 让 textarea 和文本垂直居中对齐 */
}

label {
    display: inline-block;  /* 确保 label 和 textarea 在一行 */
    vertical-align: middle; /* 让 label 和 textarea 对齐 */
    margin-bottom: 5px; /* 给 label 添加一点底部间距 */
}