/* 移动端进销存管理样式 */

.inventory-summary {
    margin-bottom: 24px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-header h3 {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.trend-up {
    font-size: 14px;
    font-weight: 600;
}

.summary-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.summary-detail {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 12px;
    opacity: 0.8;
}

.detail-item .value {
    font-size: 18px;
    font-weight: 600;
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.action-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-wrapper.scan {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.icon-wrapper.sales {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.icon-wrapper.stock {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.icon-wrapper.transfer {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.action-icon span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* 库存预警 */
.alert-section {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.badge.danger {
    background: #fef2f2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.alert-item.critical {
    border-left: 3px solid #dc2626;
}

.alert-item.warning {
    border-left: 3px solid #f59e0b;
}

.alert-content {
    flex: 1;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.alert-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.alert-level {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

.alert-item.critical .alert-level {
    background: #fef2f2;
    color: #dc2626;
}

.alert-item.warning .alert-level {
    background: #fef3c7;
    color: #d97706;
}

.alert-message {
    font-size: 13px;
    color: #6b7280;
}

/* 销售数据 */
.sales-section {
    margin-bottom: 24px;
}

.sales-chart {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chart-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.chart-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.bar-fill {
    width: 24px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: height 0.3s;
}

.chart-bar.active .bar-fill {
    background: linear-gradient(180deg, #f093fb 0%, #f5576c 100%);
}

.bar-label {
    font-size: 10px;
    color: #9ca3af;
}

/* 热销商品 */
.top-products {
    margin-bottom: 24px;
}

.product-list {
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-rank {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.product-info {
    flex: 1;
}

.product-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.product-info p {
    font-size: 12px;
    color: #6b7280;
}

.product-sales {
    text-align: right;
}

.sales-count {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.sales-label {
    font-size: 11px;
    color: #6b7280;
}

/* 待处理事项 */
.pending-tasks {
    margin-bottom: 80px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.task-icon.procurement {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.task-icon.transfer {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.task-content {
    flex: 1;
}

.task-content h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.task-content p {
    font-size: 12px;
    color: #6b7280;
}

.btn-small {
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
