/* Case Detail View Styles */

.case-detail-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Case Overview Card */
.case-overview-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.case-info-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-100);
}

.case-info-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

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

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: var(--gray-900);
    font-weight: 500;
}

.patient-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.patient-link:hover {
    text-decoration: underline;
}

/* Case Tabs (Reusing similar structure to patient tabs) */
.case-tabs {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

/* Financials Summary */
.financials-summary {
    background: var(--gray-50);
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: 1px solid var(--gray-200);
}

.total-cost {
    font-size: 18px;
    color: var(--gray-800);
}

.total-cost strong {
    font-size: 24px;
    color: var(--primary-color);
    margin-left: 8px;
}

.empty-text {
    color: var(--gray-500);
    font-style: italic;
    padding: 10px 0;
}

/* Status Badges */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background-color: #d1fae5;
    color: #065f46;
}

.status-closed {
    background-color: #e5e7eb;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .financials-summary {
        justify-content: flex-start;
    }
}