html,
body,
#app {
	height: 99%;
}



.logo {
	font-size: 24px;
	font-weight: bold;
	letter-spacing: 1px;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.user-info .user-name {
	font-weight: bold;
	font-size: 16px;
	color: white;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 60px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 0 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.el-main {
	padding: 10px;
	background-color: #f5f7fa;
	display: flex;
	flex-direction: column;
	position: relative;
}

.menu-icon {
	margin-right: 8px;
	font-size: 16px;
}

/* 自定义合计行样式 */
.custom-summary-row {
	margin-top: -1px;
	border: 1px solid #ebeef5;
	border-top: none;
}

.summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.summary-table td {
	padding: 8px 5px;
	border: 1px solid #ebeef5;
}

.summary-table td:first-child {
	border-left: none;
}

.summary-table td:last-child {
	border-right: none;
}

.el-container {
	height: 100%;
}

.sidebar {
	width: 200px;
	flex-shrink: 0;
	background-color: #ffffff;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}


/* 表单样式 */
.form-group {
	margin-bottom: 15px;
}

label {
	display: block;
	margin-bottom: 6px;
	font-weight: bold;
	color: #555;
}


/* 页面内容通用样式 */
.page-content {
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-bottom: 0px;
	height: 95%;
	min-height: 30%;
	
}

.inventory-table-section {
	height: 78%;
	overflow-y: auto;
}



.content-table-section {
	height: 85%;
	overflow-y: auto;
}

/* 动态日期列样式 */
.dynamic-date-column {
	min-width: 160px;
}

.dynamic-date-column .cell {
	padding: 8px 4px;
	text-align: center;
}



.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 12px;

	border-bottom: 1px solid #eee;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}



.action-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	margin: 10px 0;
}

.action-card {
	background-color: #f8f9fa;
	padding: 10px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
}


.action-card h4 {
	margin-bottom: 8px;
	color: #000000;
}

.action-card p {
	font-size: 13px;
	color: #666;
	margin-bottom: 15px;
	min-height: 40px;
}

/* 页脚 */
.el-footer {
	text-align: center;
	padding: 15px;
	color: #777;
}

.dialog-footer {
	margin-top: -10px;
}

/* iframe样式 */
.content-iframe {
	width: 100%;
	flex: 1;
	border: none;
	background-color: #f9fafb;
	position: relative;
}




/* 分页样式 */
.pagination {
	margin-top: 10px;

	display: flex;
	gap: 5px;
	justify-content: center;
	flex-wrap: wrap;
}


/* 面板头部样式 */
.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	background-color: #f8f9fa;
}

.panel-header h3 {
	margin: 0;
	color: #4f4f4f;
}

/* 统计详细样式 */
.stats-detailed {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

/* ================ 库存查询页面特定样式 ================ */
/* 库存状态样式 */
.stock-status-out {
	color: #dc3545;
	font-weight: bold;
}

.stock-status-low {
	color: #ffc107;
	font-weight: bold;
}

.stock-status-normal {
	color: #28a745;
	font-weight: bold;
}


.date-note-container {
	display: flex;
	align-items: center;
	width: 100%;
}


.positive-change {
	color: #28a745;
	font-weight: bold;
}

.negative-change {
	color: #dc3545;
	font-weight: bold;
}



/* 备注详情样式 */
.note-details-cell {
	padding: 4px 8px;
}

.note-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.note-detail-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2px 4px;
	border-radius: 3px;
	font-size: 11px;
	opacity: 0.7;
	transition: all 0.2s ease;
	background-color: #f5faff;
	border-left: 2px solid #28a745;
}

.note-detail-item:nth-child(2) {
	border-left: 2px solid #dc3545;
}

.note-detail-item:nth-child(3) {
	border-left: 2px solid #ffc107;
}

.note-label {
	color: #666;
	font-weight: 500;
}



/* 表头样式调整 */
#monthlyChangeHeader small {
	font-weight: normal;
	color: #666;
}

/* 商品出入库数据表样式 */
.recent-records-section {
	margin-top: 20px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	padding: 20px;
	display: flex;
	flex-direction: column;
	min-height: 200px;
	max-height: 500px;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	overflow: hidden;
}

.recent-records-section .section-header {
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.record-type-in {
	background-color: #d4edda;
	color: #155724;
}

.record-type-out {
	background-color: #f8d7da;
	color: #721c24;
}

/* 筛选行样式 */
.filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
}

.filter-group {
	display: flex;
	flex-direction: column;
	min-width: 180px;
}



.filter-group .form-control {
	height: 32px;
	padding: 4px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.filter-group .btn {
	height: 32px;
	padding: 0 16px;
	margin-right: 8px;
}


/* 警告框样式 */
.alert {
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 15px;
	display: none;
}

.alert-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-danger {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert-warning {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}


/* 抽屉内容样式 */
.drawer-content {
	padding: 20px;
}

/* ================ 商品管理页面特定样式 ================ */


.products-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #ebeef5;
}



.products-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}


.stock-normal {
	color: #303133;
	font-weight: normal;
}

.negative-stock {
	color: #f56c6c;
	font-weight: normal;
}

/* 操作列样式 */
.action-column {
	text-align: center;
}

.product-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
}


/* 分类管理样式 */
.category-list-container {
	max-height: 300px;
	overflow-y: auto;
	margin: 15px 0;
	border: 1px solid #ebeef5;
	border-radius: 4px;
	padding: 10px;
}

.category-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid #ebeef5;
	transition: background-color 0.3s;
}

.category-item:last-child {
	border-bottom: none;
}

.category-item:hover {
	background-color: #f5f7fa;
}

.category-info {
	display: flex;
	flex-direction: column;
}

.category-name {
	font-weight: normal;
	color: #303133;
	margin-bottom: 4px;
}

.category-count {
	font-size: 12px;
	color: #909399;
	font-weight: normal;
}

.category-actions {
	display: flex;
	gap: 8px;
}



/* 提示框样式 */
.products-alert {
	margin-bottom: 20px;
	font-size: 15px;
}




/* 商品详情样式 */
.product-detail-row {
	margin-bottom: 15px;
}



.product-detail-value {
	color: #303133;
	font-weight: normal;
}

/* 状态标签 */
.status-tag {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: normal;
}

.status-normal {
	background-color: #f0f9eb;
	color: #67c23a;
}

.status-warning {
	background-color: #fdf6ec;
	color: #e6a23c;
}

.status-danger {
	background-color: #fef0f0;
	color: #f56c6c;
}

/* 加载状态 */
.loading-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 200px;
}

.product-select-info {
	display: flex;
	flex-direction: column;
}

/* ================ 出入库页面特定样式 ================ */
/* 入库页面统计卡片 */
.note-stat-card:nth-child(4) {
	border-left-color: #67c23a;
	/* 绿色 - 生产 */
}

.note-stat-card:nth-child(5) {
	border-left-color: #f56c6c;
	/* 红色 - 退货 */
}

.note-stat-card:nth-child(6) {
	border-left-color: #e6a23c;
	/* 黄色 - 归还 */
}

/* 出库页面统计卡片 */
.stat-card.stock-out {
	border-left: 4px solid #f56c6c;
}

.note-stat-card.stock-out:nth-child(4) {
	border-left-color: #67c23a;
	/* 绿色 - 销售 */
}

.note-stat-card.stock-out:nth-child(5) {
	border-left-color: #f56c6c;
	/* 红色 - 货损 */
}

.note-stat-card.stock-out:nth-child(6) {
	border-left-color: #e6a23c;
	/* 黄色 - 借出 */
}



/* 下拉菜单选项选中样式 */
.el-select-dropdown__item.selected {
	color: #409eff;
	font-weight: bold;
}



/* ================ 仓库管理页面特定样式 ================ */
[v-cloak] {
	display: none;
}

.stat-card-blue {
	background: #f0f9ff;
	border-left: 4px solid #409EFF;
}

.stat-card-green {
	background: #f0f9eb;
	border-left: 4px solid #67C23A;
}

.stat-card-orange {
	background: #fdf6ec;
	border-left: 4px solid #E6A23C;
}

.stat-card-blue .stat-value {
	color: #409EFF;
}

/* 商品分类统计内容样式 */
.category-stats-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* 确保loading状态可见 */
.loading-state {
    text-align: center;
    color: #909399;
    padding: 20px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    color: #909399;
    padding: 20px;
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    color: #F56C6C;
    padding: 20px;
}

.stat-value {
	color: #409EFF;
}

.stat-card-green .stat-value {
	color: #67C23A;
}

.stat-card-orange .stat-value {
	color: #E6A23C;
}



.empty-data {
	text-align: center;
	padding: 40px;
	color: #909399;
	font-size: 15px;
}

.empty-icon {
	font-size: 48px;
	margin-bottom: 16px;
	display: block;
}

.empty-records .empty-icon {
	font-size: 36px;
}



.warehouse-basic-info {
	margin-bottom: 10px;
}

.warehouse-stats {
	margin-bottom: 30px;
}

.filter-section {
	margin-bottom: 20px;
}

.section-title {
	margin-bottom: 16px;
	color: #303133;
	font-size: 15px;
}

.record-basic-info {
	margin-bottom: 20px;
}


/* ================ 仪表板页面特定样式 ================ */
.dashboard-container {
	padding: 20px;
	background-color: #f5f7fa;
	min-height: 100vh;
}

.dashboard-title {
	margin: 0 0 20px 0;
	color: #303133;
}

.el-card {
	border-radius: 8px;
	border: none;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.el-card__header {
	border-bottom: 1px solid #EBEEF5;
	padding: 15px 20px;
}

.el-card__body {
	padding: 20px;
}



.chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.chart-title {
	font-size: 16px;
	font-weight: bold;
}

.chart-section {
	display: flex;
	
	gap: 12px;
	height: 220px;
	
}


.chart-container {
	position: relative;
	margin-top: 20px;
	width: 30%;
	padding: 10px;
	background-color: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-bottom: 10px;
}


.chart-container2 {
	position: relative;
	margin-top: 20px;
	width: 70%;
	
	padding: 10px;
	background-color: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-bottom: 10px;
}

.filter-container {
	display: flex;
	gap: 15px;
	align-items: center;
}

.filter-group {
	display: flex;
	align-items: center;
}

.filter-label {
	margin-right: 8px;
	color: #606266;
}

.recent-records {
	max-height: 300px;
	overflow-y: auto;
}

.record-item {
	padding: 10px;
	border-bottom: 1px solid #EBEEF5;
	margin: 0;
	font-size: 14px;
}

.record-item:last-child {
	border-bottom: none;
}

.record-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}

.record-details {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}

.record-date {
	color: #606266;
	font-weight: bold;
}

.record-id {
	color: #409EFF;
}

.record-quantity {
	color: #67C23A;
	font-weight: bold;
}

.record-customer {
	color: #E6A23C;
}

.category-stat-item {
	padding: 10px;
	border-bottom: 1px solid #EBEEF5;
	margin-bottom: 5px;
}

.category-stat-item:last-child {
	border-bottom: none;
}

.category-stat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}

.category-name {
	font-weight: bold;
	color: #303133;
}

.category-count {
	color: #409EFF;
	font-weight: bold;
}

.category-stat-value {
	margin-top: 5px;
	color: #606266;
	font-size: 13px;
}

.category-total-value {
	color: #67C23A;
	font-weight: bold;
}

.loading-state,
.empty-state {
	text-align: center;
	color: #909399;
	padding: 20px;
}

.error-state {
	color: #F56C6C;
	text-align: center;
	padding: 20px;
}

/* ================ 标题样式 ================ */
h2 {
	margin: 0;
	color: #333;
	font-size: 20px;
	font-weight: bold;
}

h4 {
	margin-top: 15px;
	margin-bottom: 5px;
	border-bottom: 1px solid #dcdadb;
	padding-bottom: 5px;
}


/* ================ Element UI 组件样式 ================ */
.el-row {
	margin-bottom: 20px;
}

.el-row:last-child {
	margin-bottom: 0;
}




.el-select {
	vertical-align: middle;
}

.el-tag {
	font-weight: bold;
}

.el-alert {
	border-radius: 4px;
	font-size: 15px;
}

.alert-margin {
	margin-bottom: 20px;
}

.el-drawer__body {
	overflow-y: auto;
}


/* 表格字号 */
table {
	font-size: 14px;
}

.statistics-row {
	text-align: center;
}

.stat-value {
	font-size: 24px;
	font-weight: bold;
	color: #5555ff;
}


.finance-stat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

.finance-stat-card {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
	border-left: 4px solid #409EFF;
}

.finance-stat-card.income {
	border-left-color: #67C23A;
}

.finance-stat-card.expense {
	border-left-color: #F56C6C;
}

.finance-stat-card.balance {
	border-left-color: #E6A23C;
}

.finance-stat-title {
	font-size: 14px;
	color: #606266;
	margin-bottom: 10px;
}

.finance-stat-value {
	font-size: 24px;
	font-weight: bold;
	color: #303133;
}

.finance-stat-value.positive {
	color: #67C23A;
}

.finance-stat-value.negative {
	color: #F56C6C;
}

.finance-stat-desc {
	font-size: 12px;
	color: #909399;
	margin-top: 5px;
}

.finance-detail-drawer .el-drawer__header {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #ebeef5;
}

.finance-detail-tabs {
	margin-bottom: 20px;
}

.finance-detail-summary {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.finance-detail-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.finance-detail-row:last-child {
	margin-bottom: 0;
}

.finance-detail-label {
	color: #606266;
}

.finance-detail-value {
	font-weight: bold;
	color: #303133;
}

.finance-detail-value.positive {
	color: #67C23A;
}

.finance-detail-value.negative {
	color: #F56C6C;
}



.finance-date-range-picker {
	width: 280px;
}

.finance-filter-select {
	width: 150px;
}

.finance-table-summary {
	background: #f5f7fa;
}

.finance-table-summary .el-table__row {
	font-weight: bold;
}

.finance-empty-state {
	text-align: center;
	padding: 40px 0;
	color: #909399;
}

.finance-empty-icon {
	font-size: 48px;
	margin-bottom: 16px;
	display: block;
}

.finance-loading {
	text-align: center;
	padding: 40px 0;
	color: #409EFF;
}

.finance-pagination {
	margin-top: 15px;
	display: flex;
	justify-content: flex-end;
}

.finance-export-btn {
	margin-left: 10px;
}

.finance-type-badge {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
}

.finance-type-badge.purchase {
	background-color: #f0f9eb;
	color: #67c23a;
}

.finance-type-badge.sales {
	background-color: #fef0f0;
	color: #f56c6c;
}

.finance-type-badge.production {
	background-color: #f0f9ff;
	color: #409eff;
}

.finance-type-badge.return {
	background-color: #fdf6ec;
	color: #e6a23c;
}

.finance-type-badge.damage {
	background-color: #fef0f0;
	color: #f56c6c;
}

.finance-type-badge.borrow {
	background-color: #fdf6ec;
	color: #e6a23c;
}

/* 净额颜色样式 */
.positive-amount {
	color: #28a745;
	/* 绿色 */
}

.negative-amount {
	color: #dc3545;
	/* 红色 */
}

.zero-amount {
	color: #000000;
	/* 黑色 */
}