/* Common Detail Panel Styles */
/* Used by: SongDetail, CongregationDetail, TalkDetail, SpeakerDetail, UserDetail, PlanningDetail, InvitationDetail */
/* All detail panels should use the "detail-panel" class on their root element */

/* Detail Panel - applies to all detail panels */
.detail-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 0;
    width: 100%;
    height: 100%;
}

    .detail-panel .detail-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

/* Detail Header */
    .detail-panel .detail-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        border-bottom: 1px solid var(--border-color, #e5e7eb);
        background: var(--bg-secondary, #f9fafb);
        flex-shrink: 0;
    }

/* Title row with close button */
        .detail-panel .detail-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary, #1f2937);
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

/* Header Actions Container */
    .detail-panel .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

/* Detail Content - scrollable area */
    .detail-panel .detail-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        min-height: 0;
    }

/* Form sections inside detail panels should match detail-section style */
    .detail-panel .form-section h3 {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-secondary, #6b7280);
        text-transform: uppercase;
        margin: 0 0 0.75rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .detail-panel {
        width: 100%;
    }

        .detail-panel .detail-header {
            padding: 12px;
        }

            .detail-panel .detail-header h2 {
                font-size: 16px;
            }

        .detail-panel .detail-content {
            padding: 16px;
        }
}

/* Remarks History */
.remarks-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.remarks-entry {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fafafa;
}

.remarks-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.remarks-entry-header .remarks-date {
    font-size: 0.8rem;
    color: #666;
}

.remarks-entry-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: start;
}

.remarks-content {
    min-width: 0;
}

.remarks-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.remarks-actions .btn {
    padding: 2px 6px;
    font-size: 0.75rem;
}

.remarks-text {
    font-size: 0.9rem;
    color: #333;
    white-space: pre-wrap;
}

.remarks-edit-input {
    width: 100%;
    min-height: 60px;
    font-size: 0.9rem;
    resize: vertical;
}
