/* 订单页面特有样式 */
.filter-bar {
    background-color: #f5f5f5;
    padding: 10px 15px;
    margin-bottom: 0;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-options {
    display: flex;
    align-items: center;
}

.filter-btn {
    padding: 6px 15px;
    background-color: #ff4400;
    color: #fff;
    border: 1px solid #ff4400;
    border-radius: 0;
    margin-right: 0;
    cursor: pointer;
}

.filter-btn.secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-left: none;
}

.filter-checkbox {
    margin-left: 15px;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.filter-checkbox input {
    margin-right: 5px;
}

.counter-btn {
    padding: 6px 15px;
    background-color: #03ffff;
    color: #ffffff;
    border: 1px solid #ffffff;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.pagination {
    display: flex;
    align-items: center;
}

.view-toggle {
    display: flex;
    margin-right: 10px;
}

.view-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #fff;
    margin-right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-info {
    margin-right: 10px;
}

.pagination-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #fff;
    margin-left: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-table th {
    background-color: #f9f9f9;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.order-table td {
    padding: 0 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    vertical-align: middle;
}

tr:nth-child(3n+1) td {
    border-top: 5px solid #f1f1f1;
}

.order-table tr:first-child td {
    border-top: none;
}

.product-row {
    position: relative;
}

.product-row .product-name-cell:first-child {
    /*width: 80px;*/
}

.product-row .action-cell{
    border-bottom: 0px!important;
}

.product-info {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    overflow: hidden;
}

.product-info img {
    /*width: 180px;*/
    height: 100px;
    object-fit: contain;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-type {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* 商品图片和基本信息垂直居中 */
.product-image-cell {
    vertical-align: middle;
}

.product-name-cell {
    vertical-align: middle;
}

/* 去除拆零和中包数据行中间的线条 */
.product-subrow td {
    border-top: none;
}

/* 确保同类型字段垂直对齐 */
.min-order-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.quantity-cell {
    vertical-align: middle;
}

.price-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.amount-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.action-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.quantity-control {
    display: flex;
    align-items: center;
    height: 25px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:active{
    border: 1px solid #ff4400;
    color: #ff4400;
}

.quantity-input {
    width: 40px;
    height: 25px;
    border: 1px solid #ddd;
    text-align: center;
    border-left: none;
    border-right: none;
}

.action-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link.secondary {
    color: #ff4400;
}