/* Workday Incidents CSS - Fase 5 */
.wdi-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}
.wdi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.wdi-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Kanban / List Layout */
.wdi-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.wdi-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
}
.wdi-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.wdi-list {
    display: grid;
    gap: 1rem;
}
.wdi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wdi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.wdi-card-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.wdi-ticket-id { font-weight: 700; color: var(--primary-color); }
.wdi-ticket-type { font-size: 1.1rem; font-weight: 600; }
.wdi-ticket-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pending { background: #fef08a; color: #854d0e; }
.status-review { background: #fed7aa; color: #c2410c; }
.status-approved { background: #bbf7d0; color: #166534; }
.status-rejected { background: #fecaca; color: #991b1b; }
.status-cancelled { background: #e2e8f0; color: #475569; }

/* Detail View Layout */
.wdi-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}
.wdi-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}
.wdi-panel h3 { margin-top: 0; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

/* Timeline / Comments */
.wdi-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.wdi-comment {
    display: flex;
    gap: 1rem;
}
.wdi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center; justify-content: center;
    font-weight: 700;
}
.wdi-bubble {
    background: var(--bg-body);
    padding: 1rem;
    border-radius: 8px;
    flex-grow: 1;
}
.wdi-bubble-header {
    display: flex; justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem; color: var(--text-muted);
}
.wdi-bubble-header strong { color: var(--text-color); }

/* Forms */
.wdi-form-group { margin-bottom: 1rem; }
.wdi-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.wdi-form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 6px; }

/* Modal */
.wdi-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.wdi-modal {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    width: 100%; max-width: 600px;
    max-height: 90vh; overflow-y: auto;
}
