.material-inout-table {
    width: 100%;
    margin-top: 10px;
}

/* 从右侧滑出的模态框样式 */
.modal.right.fade .modal-dialog {
    right: -320px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.show .modal-dialog {
    right: 0;
}

.modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 450px;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
}

.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0;
}

.modal-header {
    background-color: #337ab7;
    color: white;
}

.product-info {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.product-info h5 {
    margin: 0;
    font-weight: bold;
    color: blue;
}

/* 调整表格列宽 */
.material-inout-table th:first-child,
.material-inout-table td:first-child {
    width: 15%;
    min-width: 70px;
}

.material-inout-table th:nth-child(2),
.material-inout-table td:nth-child(2),
.material-inout-table th:nth-child(3),
.material-inout-table td:nth-child(3),
.material-inout-table th:nth-child(4),
.material-inout-table td:nth-child(4),
.material-inout-table th:nth-child(5),
.material-inout-table td:nth-child(5),
.material-inout-table th:nth-child(6),
.material-inout-table td:nth-child(6),
.material-inout-table th:nth-child(7),
.material-inout-table td:nth-child(7) {
    width: 60px; /* 除账期外的其他列宽度为60px */
    text-align: center; /* 文本居中对齐 */
}

.material-inout-table tr td:nth-child(2),
.material-inout-table tr td:nth-child(3),
.material-inout-table tr td:nth-child(4),
.material-inout-table tr td:nth-child(5) {
    color: blue;
}

.material-inout-table tr td:nth-child(6),
.material-inout-table tr td:nth-child(7) {
    color: red;
}

/* 设置表头字体颜色 */
.material-inout-table thead tr th {
    color: black;
}

/* 设置合计行字体为红色 */
.material-inout-table tbody tr:last-child td {
    /*color: violet;*/
}

/* 合计行样式 */
.material-inout-table tfoot tr td {
    font-weight: bold;
}

/* 库存显示 */
.warehouse-inventory-info {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.warehouse-inventory-info h5 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.warehouse-inventory-info table {
    font-size: 0.9em;
}

.warehouse-inventory-info table th,
.warehouse-inventory-info table td {
    padding: 4px 8px;
}
