/* Workflow Dashboard Styles */
.workflow-dashboard {
    padding: 2rem 0;
}

.workflow-section {
    margin-bottom: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.section-title {
    color: var(--nexus-primary, #0066cc);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.workflow-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.workflow-card-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.workflow-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.workflow-card-body {
    padding: 1.25rem;
}

.workflow-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.workflow-card-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.workflow-card-actions {
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
}

.workflow-status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workflow-status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.workflow-status-badge.in-progress {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #74b9ff;
}

.workflow-status-badge.approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #00b894;
}

.workflow-status-badge.uploaded {
    background: #e2e3e5;
    color: #495057;
    border: 1px solid #636e72;
}

.workflow-comment-box {
    background: #e3f2fd;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    border-left: 4px solid #2196f3;
    line-height: 1.4;
}

.workflow-empty-state {
    text-align: center;
    color: #6c757d;
    padding: 3rem;
    font-style: italic;
    background: white;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.workflow-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.workflow-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 120px;
}

.workflow-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--nexus-primary, #0066cc);
}

.workflow-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-card-actions {
        flex-direction: column;
    }
    
    .workflow-stats {
        justify-content: center;
    }
}

/* Button enhancements for workflow actions */
.btn-workflow {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-workflow:hover {
    transform: translateY(-1px);
}

.btn-approve {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-approve:hover {
    background: #218838;
    border-color: #1e7e34;
}

.btn-return {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-return:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.btn-review {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-review:hover {
    background: #138496;
    border-color: #117a8b;
}