/* 通用表格样式 */
.table-responsive-fixed {
    height: 800px;
}

.table-header-id {
    width: 60px;
}

.table-header-image {
    width: 80px;
}

.table-header-name {
    width: 150px;
}

.table-header-title {
    width: 200px;
}

.table-header-code {
    width: 120px;
}

.table-header-qr {
    width: 100px;
}

.table-header-category {
    width: 120px;
}

.table-header-price {
    width: 120px;
}

.table-header-size {
    width: 150px;
}

.table-header-weight {
    width: 100px;
}

.table-header-quantity {
    width: 100px;
}

.table-header-status {
    width: 100px;
}

.table-header-message {
    width: 150px;
}

.table-header-time {
    width: 120px;
}

.table-header-operation {
    width: 150px;
}

.table-header-type {
    width: 120px;
}

.table-header-remark {
    width: 120px;
}

.table-header-shipping {
    width: 120px;
}

.table-header-box {
    width: 100px;
}

.table-header-product {
    width: 100px;
}

.table-header-shipped {
    width: 100px;
}

.table-header-inbound {
    width: 120px;
}

.table-header-headway {
    width: 150px;
}

.table-header-inbound-type {
    width: 120px;
}

.table-header-inbound-status {
    width: 120px;
}

.table-header-box-count {
    width: 100px;
}

.table-header-product-count {
    width: 100px;
}

.table-header-shipped-count {
    width: 100px;
}

.table-header-inbound-count {
    width: 100px;
}

.table-header-available {
    width: 100px;
}

.table-header-ordered {
    width: 100px;
}

.table-header-returned {
    width: 100px;
}

.table-header-lost {
    width: 100px;
}

.table-header-name {
    width: 150px;
}

.table-header-type {
    width: 120px;
}

.table-header-client-id {
    width: 120px;
}

.table-header-stock-sync {
    width: 100px;
}

.table-header-order-sync {
    width: 100px;
}

.table-header-status {
    width: 100px;
}

.table-header-message {
    width: 150px;
}

.table-header-time {
    width: 120px;
}

.table-header-operation {
    width: 150px;
}

.table-header-mark {
    width: 120px;
}

.table-header-product-info {
    width: 120px;
}

.table-header-product-count {
    width: 100px;
}

.table-header-dimension {
    width: 150px;
}

.table-header-weight {
    width: 100px;
}

.table-header-express {
    width: 120px;
}

.table-header-remark {
    width: 120px;
}

.table-header-time {
    width: 120px;
}

.table-header-status {
    width: 100px;
}

.table-header-operation {
    width: 150px;
}

/* 图片样式 */
.img-circle-fixed {
    width: 50px;
    height: 50px;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.action-buttons .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.action-buttons .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.action-buttons .btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.action-buttons .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.action-buttons .btn-info:hover {
    background-color: #117a8b;
    border-color: #117a8b;
}

/* 按钮图标样式 */
.action-buttons .btn i {
    margin-right: 0.25rem;
}


/* 商品图片样式 - 固定尺寸 */
.sku-image {
    display: flex;
    justify-content: left;
    align-items: left;
    width: 100%;
    height: 100%;
}

.sku-img-circle-fixed {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.sku-img-circle-fixed:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 图片加载失败时的默认样式 */
.sku-img-circle-fixed[src*="prod-1.jpg"] {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
}

/* 图片放大预览遮罩层 */
.image-preview-mask {
    position: fixed;
    top: 0;
    left: 20vw;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);  /* 半透明黑色遮罩 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;  /* 确保弹窗在最上层 */
}

/* 预览图片外层容器：核心Flex居中 + 占满父容器宽高 + 清除默认滚动 */
.image-preview-content {
    width: 100%; /* 新增：占满父容器宽度，否则居中无参考 */
    height: 60vh; /* 新增：设置固定高度（适配弹窗，可根据需求调，比如70vh/80vh） */
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    overflow: hidden;        /* 新增：防止图片超出容器出现滚动 */
    margin: 0 auto;          /* 新增：容器自身水平居中（适配弹窗） */
}
/* 预览图片核心样式：居中 + 自适应 + 保持比例 */
.preview-img {
    max-width: 100%;  /* 图片最大宽度不超过容器，防止撑破 */
    max-height: 100%; /* 图片最大高度不超过容器，防止撑破 */
    object-fit: contain; /* 关键：保持图片原始比例，不拉伸、不变形 */
    display: block;   /* 清除图片默认行内元素的底部留白 */
    margin: 0 auto;   /* 兜底：即使Flex失效，图片自身也水平居中 */
}

/* 关闭按钮 */
.image-preview-close {
    position: absolute;
    top: -20px;
    right: -20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.image-preview-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}