/* Alpine.js x-cloak */
[x-cloak] { display: none !important; }

/* ===== 하단 액션바 전체 숨김 ===== */
#changelist-form .actions,
.actions,
[data-action-bar] {
    display: none !important;
}

/* ===== 전체 너비 100% ===== */

/* 헤더 외부 px-4 제거 */
#main > div.border-b {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 헤더 내부 container max-width 제거 */
#main > div.border-b > div {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* 콘텐츠 외부 px-4 제거 */
#main > div:not(.border-b) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 콘텐츠 container max-width 제거 */
#content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* ===== 저장 버튼 영역 너비 100% ===== */

/* 저장줄 외부 px-4 제거 */
#submit-row > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 저장줄 내부 container max-width 제거 */
#submit-row > div > div {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* ===== 라벨 + input 전체 가운데 정렬 ===== */

.field-line label {
    text-align: center !important;
    display: block;
}

.field-line input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field-line select,
.field-line textarea {
    text-align: center !important;
}

/* Select2 선택된 값 가운데 정렬 */
.field-line .select2-selection__rendered {
    text-align: center !important;
}

/* date input 가운데 정렬 */
.field-line input[type="date"] {
    text-align: center !important;
    text-align-last: center !important;
}

/* ===== 날짜 위젯 min-width 제거 + 달력 단축키 숨기기 ===== */

/* Member 폼 생년월일 */
.field-mem_birth,
.field-mem_birth *  {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
}

.field-mem_birth input {
    width: 100% !important;
    overflow: hidden;
}

/* Target 폼 생년월일 */
.field-target_birth,
.field-target_birth * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
}

.field-target_birth input {
    width: 100% !important;
    overflow: hidden;
}

.datetimeshortcuts {
    display: none !important;
}

/* ===== 열매 정보지(육) 1행 열너비 커스텀 =====
   순서: 성별 / 생년월일 / 직업 / 전공 / 섭외유형 / 섭외도구 / 상담연결방법 / 상담연결방법(상세)
   px 값을 수정하면 각 열 너비 조정 가능
*/
.field-row:has(.field-target_gender) {
    grid-template-columns:
        100px  /* 성별              */
        150px  /* 생년월일          */
        150px  /* 직업              */
        200px  /* 전공              */
        200px  /* 섭외유형          */
        200px  /* 섭외도구          */
        150px  /* 상담연결방법      */
        auto   /* 상담연결방법(상세) */
        !important;
}

/* ===== 열매 정보지(육) 2행 열너비 커스텀 =====
   순서: 거주지 / 이동시간 / MBTI / 에니어그램 / 걱정고민콤플렉스 / 스케줄 / 스케줄_상세
   px 값을 수정하면 각 열 너비 조정 가능
*/
.field-row:has(.field-target_address) {
    grid-template-columns:
        200px  /* 거주지           */
        150px  /* 이동시간         */
        120px  /* MBTI             */
        120px  /* 에니어그램       */
        150px  /* 걱정고민콤플렉스 */
        200px  /* 스케줄           */
        auto   /* 스케줄_상세      */
        !important;
}

/* ===== 열매 정보지(육) 3행 열너비 커스텀 =====
   순서: 관심사취미 / 향후계획 / 건강질환 / 건강질환상세 / 가족관계성장배경
   px 값을 수정하면 각 열 너비 조정 가능
*/
.field-row:has(.field-target_interests) {
    grid-template-columns:
        250px  /* 관심사취미      */
        250px  /* 향후계획        */
        150px  /* 건강질환        */
        250px  /* 건강질환상세    */
        auto   /* 가족관계성장배경 */
        !important;
}

/* ===== textarea 높이 축소 ===== */

.field-line textarea {
    min-height: 80px !important;
    height: 80px !important;
    resize: vertical;
}

/* ===== autocomplete 우측 more_vert 버튼 숨기기 ===== */

[x-ref^="relatedWidgetWrapper"] {
    display: none !important;
}

/* ===== autocomplete 너비 100% ===== */

.related-widget-wrapper {
    width: 100% !important;
}

/* Select2 inline width 무력화 후 flex grow */
.related-widget-wrapper .select2-container {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

.related-widget-wrapper .select2-selection {
    width: 100% !important;
}

/* ===== 만남일 date widget min-width 제거 ===== */
.field-log_date,
.field-log_date * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
}
.field-log_date input {
    width: 100% !important;
    overflow: hidden;
}

/* ===== 최근만남일자 / 다음만남날짜 min-width 제거 ===== */
.field-target_last_meeting_date,
.field-target_last_meeting_date *,
.field-target_next_meeting_date,
.field-target_next_meeting_date * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
}
.field-target_last_meeting_date input,
.field-target_next_meeting_date input {
    width: 100% !important;
}

/* ===== 특이사항 입력창 전체 너비 ===== */
.field-target_note {
    min-width: 0 !important;
}
.field-target_note .grow.relative,
.field-target_note .max-w-2xl,
.field-target_note input {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ===== 만남내용 전체 너비 + 라벨 정렬 ===== */
.field-row:has(.field-log_detail) {
    display: block !important;
}
.field-log_detail {
    width: 100% !important;
    max-width: 100% !important;
}
.field-log_detail * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.field-log_detail textarea {
    width: 100% !important;
    text-align: left !important;
    resize: vertical;
}
.field-log_detail label {
    text-align: center !important;
    display: block !important;
}

/* ===== 잎사귀 inline 헤더 + 셀 중앙정렬 ===== */
#leaf_set-group thead th {
    text-align: center !important;
}
#leaf_set-group thead th > span {
    justify-content: center !important;
}
#leaf_set-group tbody td {
    text-align: center !important;
    vertical-align: middle !important;
}
#leaf_set-group input:not([type="hidden"]),
#leaf_set-group select {
    text-align: center !important;
    width: 100% !important;
}
#leaf_set-group .select2-container {
    width: 100% !important;
}
#leaf_set-group .select2-selection__rendered {
    text-align: center !important;
}

/* ===== 잎사귀 inline 열너비 =====
   아래 width 값을 수정해서 각 열 너비 조정
*/
#leaf_set-group .formset-wrapper {
    overflow-x: hidden !important;
}
#leaf_set-group table {
    width: 100% !important;
}
#leaf_set-group td input,
#leaf_set-group td select {
    max-width: 100% !important;
}

/* 부서/지역/팀/구역 readonly 너비 고정 */
#leaf_set-group .column-get_dept,  #leaf_set-group .field-get_dept  { width: 80px; }
#leaf_set-group .column-get_region,#leaf_set-group .field-get_region { width: 80px; }
#leaf_set-group .column-get_team,  #leaf_set-group .field-get_team  { width: 80px; }
#leaf_set-group .column-get_area,  #leaf_set-group .field-get_area  { width: 80px; }

/* 부서(첫 컬럼) 왼쪽 여백 */
#leaf_set-group .column-get_dept,
#leaf_set-group .field-get_dept { padding-left: 12px !important; }

/* wrapper div: 진한 회색 readonly 스타일 + 높이 input 맞춤
   (섭외자 change 페이지 전용 — 성도 change의 동일 id 인라인에는 미적용) */
.model-target #leaf_set-group td.field-get_dept > div,
.model-target #leaf_set-group td.field-get_region > div,
.model-target #leaf_set-group td.field-get_team > div,
.model-target #leaf_set-group td.field-get_area > div {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #e5e7eb;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* readonly div: 너비 80px 고정 */
.model-target #leaf_set-group .field-get_dept .readonly,
.model-target #leaf_set-group .field-get_region .readonly,
.model-target #leaf_set-group .field-get_team .readonly,
.model-target #leaf_set-group .field-get_area .readonly {
    width: 80px !important;
    max-width: 80px !important;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    box-sizing: border-box;
}

/* 열너비 */
#leaf_set-group .column-mem,    #leaf_set-group .field-mem        { width: 150px; }
#leaf_set-group .column-leaf_role, #leaf_set-group .field-leaf_role     { width: 100px; }
#leaf_set-group .column-leaf_relationship, #leaf_set-group .field-leaf_relationship { width: 160px; }
#leaf_set-group .column-leaf_trust_level,  #leaf_set-group .field-leaf_trust_level  { width: 100px; }

/* 삭제 컬럼 최소 너비 강제 */
#leaf_set-group td.delete,
#leaf_set-group th:last-child        { width: 1px !important; white-space: nowrap; }

/* ===== 잎사귀 inline 기존행 제목줄(original title tr) 숨기기 ===== */
#leaf_set-group tbody.original > tr:not(.form-row):not(.hidden):not(.row-form-errors):not(.form-nested) {
    display: none !important;
}

/* ===== 성도(Member) change의 섭외자 inline: 내용 가운데 정렬 =====
   (readonly 값이 div로 감싸져 td text-align이 안 먹는 경우 대비) */
.model-member #leaf_set-group tbody td,
.model-member #leaf_set-group tbody td > div,
.model-member #leaf_set-group tbody td .readonly {
    text-align: center !important;
    justify-content: center !important;
}

/* ===== 성도(Member) 섭외자 inline 열너비 =====
   섭외자 change(target/…/change)의 '개강 및 진행현황' 행 너비에 맞춤
   개강 200 / 지역 120 / 이름 100 / 단계 130 / 상태 100 / 탈락사유 350 / 탈락사유(상세) auto / 역할 100 */
.model-member #leaf_set-group .column-get_class,
.model-member #leaf_set-group .field-get_class              { width: 200px !important; }
.model-member #leaf_set-group .column-get_region,
.model-member #leaf_set-group .field-get_region             { width: 120px !important; }
.model-member #leaf_set-group .column-get_name,
.model-member #leaf_set-group .field-get_name               { width: 100px !important; }
.model-member #leaf_set-group .column-get_stage,
.model-member #leaf_set-group .field-get_stage              { width: 130px !important; }
.model-member #leaf_set-group .column-get_status,
.model-member #leaf_set-group .field-get_status             { width: 100px !important; }
.model-member #leaf_set-group .column-get_out_reason,
.model-member #leaf_set-group .field-get_out_reason         { width: 350px !important; }
.model-member #leaf_set-group .column-get_out_reason_detail,
.model-member #leaf_set-group .field-get_out_reason_detail  { width: auto !important; }
.model-member #leaf_set-group .column-get_role,
.model-member #leaf_set-group .field-get_role               { width: 100px !important; }

/* ===== 성도(Member) change의 MOU / 해외후원 / 활동자여부 inline: 헤더 + 내용 가운데 정렬 ===== */
#mou_set-group thead th,
#overseassupport_set-group thead th,
#activitystatuslog_set-group thead th {
    text-align: center !important;
}
#mou_set-group thead th > span,
#overseassupport_set-group thead th > span,
#activitystatuslog_set-group thead th > span {
    justify-content: center !important;
}
#mou_set-group tbody td,
#mou_set-group tbody td > div,
#mou_set-group tbody td .readonly {
    text-align: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}
#overseassupport_set-group tbody td,
#overseassupport_set-group tbody td > div,
#overseassupport_set-group tbody td .readonly,
#activitystatuslog_set-group tbody td,
#activitystatuslog_set-group tbody td > div,
#activitystatuslog_set-group tbody td .readonly {
    text-align: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}
#overseassupport_set-group tbody td input:not([type="hidden"]):not([type="checkbox"]),
#overseassupport_set-group tbody td select,
#activitystatuslog_set-group tbody td input:not([type="hidden"]):not([type="checkbox"]),
#activitystatuslog_set-group tbody td select {
    text-align: center !important;
    text-align-last: center !important;
}

/* ===== 성도(Member) change: 해외후원(좌) + 활동자여부(우) 좌우 2단 배치 ===== */
.sdm-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}
.sdm-inline-row > div {
    flex: 1 1 360px;
    min-width: 0;
}

/* ===== 개강 및 진행현황 행 열너비 커스텀 =====
   1행: 지역 / 이름 / 개강 / 이월사유 / 단계 / 상태 / 탈락사유 / 탈락사유(상세)
   2행: 수신서작성여부 / OT참석여부 / 최근만남일자 / 다음만남일자 / 다음만남시간 / 만남목적 / 특이사항
   px 값을 수정하면 각 열 너비 조정 가능
*/
.field-row:has(.field-enrolled_class) {
    align-items: center !important;
    grid-template-columns:
        120px  /* 지역           */
        100px  /* 이름           */
        200px  /* 개강           */
        150px  /* 이월사유       */
        130px  /* 단계           */
        100px  /* 상태           */
        350px  /* 탈락사유       */
        auto   /* 탈락사유(상세) */
        !important;
}

/* 상태 select min-width(min-w-20=80px) 제거 → 70px 열에 맞춤 */
.field-target_status,
.field-target_status * {
    min-width: 0 !important;
    max-width: 100% !important;
}
.field-target_status select {
    width: 100% !important;
}

/* 개강 및 진행현황 2행: 수신서작성여부 / OT참석여부 / 최근만남일자 / 다음만남일자 / 다음만남시간 / 만남목적 / 특이사항 */
.field-row:has(.field-target_last_meeting_date) {
    align-items: center !important;
    grid-template-columns:
        130px  /* 수신서작성여부 */
        130px  /* OT참석여부     */
        150px  /* 최근만남일자   */
        150px  /* 다음만남일자   */
        150px  /* 다음만남시간   */
        200px  /* 만남목적       */
        auto   /* 특이사항       */
        !important;
}

/* ===== 단계 열 너비 고정 ===== */
#result_list th.column-display_stage,
#result_list td.field-display_stage {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    overflow: hidden !important;
    text-align: center !important;
}
#result_list td.field-display_stage select {
    width: 90px !important;
    max-width: 90px !important;
    font-size: 0.78rem !important;
    padding: 3px 2px !important;
    border-radius: 6px !important;
    border: 2px solid #7c3aed !important;
    background: #faf5ff !important;
    color: #4c1d95 !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-align-last: center !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 1px 4px rgba(124,58,237,0.15) !important;
}

/* ===== 상태 열 너비 고정 ===== */
#result_list th.column-display_status,
#result_list td.field-display_status {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* ===== 단계 셀 배경색 ===== */
#result_list td:has(span[data-stage="찾기"])    { background: #ede9fe !important; }
#result_list td:has(span[data-stage="진찾"])    { background: #ddd6fe !important; }
#result_list td:has(span[data-stage="합자"])    { background: #c4b5fd !important; }
#result_list td:has(span[data-stage="상담"])    { background: #a78bfa !important; }
#result_list td:has(span[data-stage="육따기"])  { background: #8b5cf6 !important; color: #fff !important; }
#result_list td:has(span[data-stage="따기"])    { background: #7c3aed !important; color: #fff !important; }
#result_list td:has(span[data-stage="복음방"])  { background: #6d28d9 !important; color: #fff !important; }
#result_list td:has(span[data-stage="센터확정"]){ background: #5b21b6 !important; color: #fff !important; }
#result_list td:has(span[data-stage="센터등록"]){ background: #4c1d95 !important; color: #fff !important; }

/* ===== 폼 에러: 배너·텍스트 숨기고 빨간 테두리만 표시 ===== */
.errornote,
.errorlist {
    display: none !important;
}

.errors input:not([type="checkbox"]):not([type="hidden"]),
.errors select,
.errors textarea {
    border-color: #ef4444 !important;
}

.errors .select2-selection,
.errors .related-widget-wrapper .select2-selection {
    border-color: #ef4444 !important;
}

/* ===== 전체 목록 컬럼/헤더 가운데 정렬 ===== */
#result_list th,
#result_list td {
    text-align: center !important;
    vertical-align: middle !important;
}
#result_list thead th > *,
#result_list thead th a,
#result_list thead th span {
    justify-content: center !important;
    text-align: center !important;
}

/* ===== 행 클릭 커서 ===== */
#result_list tbody tr { cursor: pointer; }
/* 교사 목록은 행 클릭 이동을 막았으므로 기본 커서 */
.model-tutor #result_list tbody tr { cursor: default; }

/* ===== Schedule 인라인 가운데 정렬 ===== */
#schedule_set-group th,
#schedule_set-group td,
[id^="schedule_set"] th,
[id^="schedule_set"] td {
    text-align: center !important;
    vertical-align: middle !important;
}
#schedule_set-group input[type="text"],
#schedule_set-group input[type="date"],
#schedule_set-group select,
[id^="schedule_set"] input[type="text"],
[id^="schedule_set"] input[type="date"],
[id^="schedule_set"] select {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Schedule inline 헤더 컬럼 가운데 정렬 (Unfold 실제 DOM 대응) */
th.column-sche_start_date,
th.column-sche_end_date,
th.column-sche_detail,
th.column-sche_checked {
    text-align: center !important;
}
/* outer flex span만 width:100% + justify-center 적용 (inner span엔 적용 안 함) */
th.column-sche_start_date > span,
th.column-sche_end_date > span,
th.column-sche_detail > span,
th.column-sche_checked > span {
    justify-content: center !important;
    width: 100% !important;
}

/* 개강주차여부 열 너비 확보 (헤더 텍스트 5글자 + 여백) */
th.column-sche_checked,
td.field-sche_checked {
    min-width: 140px !important;
    width: 140px;
}

/* 토글 컨테이너 가운데 정렬: outer flex → justify-center, inner grow 제거 */
td.field-sche_checked > div {
    justify-content: center !important;
}
td.field-sche_checked > div > div {
    flex-grow: 0 !important;
}

/* 토글 input 자체도 block + auto margin으로 보조 */
td.field-sche_checked input[type="checkbox"] {
    margin: 0 auto !important;
    display: block !important;
}

/* ===== Schedule 인라인: 기존 항목 제목 행 숨기기 ===== */
#schedules-data tbody.original > tr:not(.form-row):not(.form-delete) {
    display: none !important;
}

/* ===== Schedule 인라인: 주차 선택 드롭다운 가운데 정렬 ===== */
th.week-select-th {
    text-align: center !important;
}
td.week-select-td {
    text-align: center !important;
    vertical-align: middle !important;
}
td.week-select-td select.week-select {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* ===== Pill 필터 (섭외자 admin) ===== */
.sdm-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: background .15s, color .15s, border-color .15s;
}
.sdm-pill.sdm-pill-on {
    background: #CA8A04;
    color: #fff;
    border-color: transparent;
}
.sdm-pill:hover:not(.sdm-pill-on) {
    background: #e5e7eb;
}

/* ===== 공지 폼 레이아웃 ===== */

/* 폼 전체 너비 60% */
.model-notice.change-form #content {
    max-width: 60% !important;
}

/* 1행: 일자(160px) / 분류(140px) / 작성자(200px) / 고정(100px) */
.field-row:has(.field-notice_date) {
    grid-template-columns: 160px 140px 200px 100px !important;
    align-items: center !important;
}

/* 일자 date input min-width 제거 */
.field-notice_date,
.field-notice_date * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
}
.field-notice_date input {
    width: 100% !important;
}

/* 고정 토글 가운데 정렬 */
.field-notice_pinned {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}

/* 2행: 제목 전체 너비 */
.field-row:has(.field-notice_title) {
    display: block !important;
}
.field-notice_title {
    width: 100% !important;
    max-width: 100% !important;
}
.field-notice_title * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.field-notice_title input {
    width: 100% !important;
}

/* 3행: 내용 전체 너비 + 높이 확보 */
.field-row:has(.field-notice_content) {
    display: block !important;
}
.field-notice_content {
    width: 100% !important;
    max-width: 100% !important;
}
.field-notice_content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.field-notice_content textarea {
    width: 100% !important;
    min-height: 300px !important;
    height: 300px !important;
    text-align: left !important;
    resize: vertical;
}
.field-notice_content label {
    display: block !important;
    text-align: center !important;
}

/* ===== 공지 목록 열너비 =====
   아래 width 값을 수정해서 각 열 너비 조정
*/
th.column-get_notice_date,
td.field-get_notice_date  { min-width: 150px !important; width: 150px !important; white-space: nowrap !important; }

th.column-notice_category,
td.field-notice_category  { min-width: 100px !important; width: 100px !important; white-space: nowrap !important; }

th.column-notice_author,
td.field-notice_author    { min-width: 120px !important; width: 120px !important; white-space: nowrap !important; }

th.column-notice_title,
th.field-notice_title,
td.field-notice_title     { min-width: 300px !important; width: 300px !important; max-width: 300px !important; white-space: nowrap !important; overflow: hidden !important; }

th.column-get_notice_content,
td.field-get_notice_content { width: auto !important; }

/* ===== 성도(Member) 기본정보 행 열너비 커스텀 =====
   1행: 지파 / 교회 / 부서 / 지역 / 팀 / 구역 / 직책 / 사명자여부 / 전도사명자여부 / 이름 / 성별
   2행: 생년월일 / 연락처 / MBTI / 에니어그램 / 교사종류 / 활동자여부 / 복음방창출가능자 / 총수 / 인도교사섬김이
   px 값을 수정하면 각 input 너비 조정 가능
*/
.field-row:has(.field-mem_tribe) {
    align-items: center !important;
    grid-template-columns:
        150px  /* 지파         */
        150px  /* 교회         */
        150px  /* 부서         */
        150px  /* 지역         */
        140px  /* 팀           */
        150px  /* 구역         */
        150px  /* 직책         */
        150px  /* 사명자여부   */
        150px  /* 전도사명자여부 */
        140px  /* 이름         */
        90px   /* 성별         */
        !important;
}

.field-row:has(.field-mem_mbti) {
    align-items: center !important;
    grid-template-columns:
        150px  /* 생년월일       */
        160px  /* 연락처         */
        150px  /* MBTI           */
        150px  /* 에니어그램     */
        150px  /* 교사종류       */
        150px  /* 활동자여부     */
        150px  /* 복음방창출가능자 */
        150px  /* 총수           */
        150px  /* 인도/교사/섬김이 */
        !important;
}

/* 성별/활동자여부 select / 복음방창출가능자 input min-width(min-w-20=80px) 제거
   → 좁은 열에서도 select가 셀 너비에 맞아 화살표가 우측에 정렬됨 */
.field-mem_gender,
.field-mem_gender *,
.field-mem_mission,
.field-mem_mission *,
.field-mem_mission_evangelist,
.field-mem_mission_evangelist *,
.field-mem_activity_status,
.field-mem_activity_status *,
.field-display_gospel_room_creator,
.field-display_gospel_room_creator *,
.field-display_total_count,
.field-display_total_count *,
.field-display_role_count,
.field-display_role_count * {
    min-width: 0 !important;
    max-width: 100% !important;
}
.field-mem_gender select,
.field-mem_mission select,
.field-mem_mission_evangelist select,
.field-mem_activity_status select,
.field-display_gospel_room_creator input,
.field-display_total_count input,
.field-display_role_count input {
    width: 100% !important;
}

/* ===== MOU 기본정보 행 열너비: 전부 auto (내용 기준 자동) ===== */
.field-row:has(.field-mou_apply_date) {
    align-items: center !important;
    grid-template-columns: repeat(8, auto) !important;
}
/* 성도(autocomplete select2)는 JS가 좁은 인라인 width를 넣어 열이 작아짐 → 넓혀줌 */
.field-row:has(.field-mou_apply_date) .field-mem .select2-container {
    width: 100% !important;
    min-width: 180px !important;
}

/* ===== 헤더 브레드크럼/백버튼/구분선 숨기기 ===== */

#header-inner h1,
#header-inner a.mr-3,
#header-inner span.w-px {
    display: none !important;
}
