/* 物料管理页面样式 */
.material-main {
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: auto;
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.material-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.material-actions {
    display: flex;
}

.btn-add,
.btn-batch-delete,
.btn-import,
.btn-export {
    height: 36px;
    padding: 0 15px;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
    border: none;
    cursor: pointer;
}

.btn-add {
    background-color: #52c41a;
}

.btn-batch-delete {
    background-color: #f5222d;
}

.btn-import {
    background-color: #2fb3ff;
}

.btn-export {
    background-color: #722ed1;
}

.material-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.material-tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.material-tabs li {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.material-tabs li.active {
    color: #2fb3ff;
}

.material-tabs li.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background-color: #2fb3ff;
}

.material-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 240px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    margin-right: 10px;
}

.search-btn {
    height: 36px;
    padding: 0 15px;
    background-color: #2fb3ff;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.filter-items {
    display: flex;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.filter-item span {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.filter-item select {
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    min-width: 120px;
}

.date-filter {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    min-width: 100px;
    cursor: pointer;
    background-color: #fff;
    position: relative;
}

.date-filter::after {
    content: '\25BC';
    position: absolute;
    right: 10px;
    font-size: 10px;
    color: #999;
}

.material-overview {
    display: flex;
    margin-bottom: 20px;
}

.overview-card {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
    margin-right: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.overview-card:last-child {
    margin-right: 0;
}

.overview-card:nth-child(1) {
    border-left: 3px solid #1890ff;
}

.overview-card:nth-child(2) {
    border-left: 3px solid #52c41a;
}

.overview-card:nth-child(3) {
    border-left: 3px solid #fa8c16;
}

.overview-card:nth-child(4) {
    border-left: 3px solid #f5222d;
}

.card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.card-value {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.material-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.material-table table {
    width: 100%;
    border-collapse: collapse;
}

.material-table th,
.material-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.material-table th {
    color: #666;
    font-weight: normal;
    background-color: #f9f9f9;
}

.material-table td {
    color: #333;
}

.material-table th:first-child,
.material-table td:first-child {
    width: 50px;
    text-align: center;
}

.select-all,
.select-item {
    width: 16px;
    height: 16px;
}

.btn-edit,
.btn-delete {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    border: none;
    cursor: pointer;
}

.btn-edit {
    color: #fff;
    background-color: #1890ff;
}

.btn-delete {
    color: #fff;
    background-color: #f5222d;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pagination li.active a {
    background-color: #2fb3ff;
    color: #fff;
    border-color: #2fb3ff;
}

.pagination li.disabled a {
    color: #ccc;
    cursor: not-allowed;
}

.pagination li:not(.active):not(.disabled):hover a {
    background-color: #f9f9f9;
}

@media screen and (max-width: 1200px) {
    .material-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .material-actions {
        margin-top: 10px;
    }
    
    .material-search {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-items {
        margin-top: 10px;
    }
    
    .filter-item {
        margin-left: 0;
        margin-right: 20px;
    }
    
    .material-overview {
        flex-wrap: wrap;
    }
    
    .overview-card {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 15px;
    }
    
    .material-table {
        overflow-x: auto;
    }
} 