/**
 * 그룹 컨테이너 공통 스타일
 * 세 파일에서 공통으로 사용되는 그룹 컨테이너 스타일
 */

/* 그룹 컨테이너 */
.group-container {
    position: relative;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin-bottom: 1rem;
}

.group-container.static-group {
    border: 2px solid var(--primary-color);
    background: var(--primary-light);
}

.group-container.repeatable-group {
    border: 2px solid var(--accent-color);
    background: #f0f9f6;
}

/* 그룹 헤더 */
.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid var(--primary-color);
    flex-shrink: 0;
}

.group-container.repeatable-group .group-header {
    background: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.group-header h5 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 그룹 내 필드 컨테이너 (그리드 레이아웃) */
.group-fields-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 10px;
    gap: 2px;
    position: relative;
    flex-grow: 1;
    overflow: visible;
}