@charset "utf-8";

/* ========================================
   write.skin.php 인라인 스타일 정리
   ======================================== */

/* 타이틀 영역 */
.title_style {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* 관리자 버튼 컨테이너 */
.admin-btn-container_style {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* 관리자 리스트 버튼 */
.admin-list-btn_style {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* 관리자 설정 버튼 */
.admin-config-btn_style {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white!important;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* 첨부파일 섹션 */
.attach-section_style {
    width: 100%;
    margin-top: 30px;
    clear: both;
}

/* 첨부파일 헤더 */
.attach-header_style {
    position: relative;
    margin-bottom: 15px;
    min-height: 40px;
}

/* 첨부파일 타이틀 */
.attach-title-wrap_style {
    margin: 0;
    padding-right: 10px;
}

/* 샘플 다운로드 버튼 컨테이너 */
.sample-download-container_style {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 샘플 다운로드 버튼 */
.sample-download-btn_style {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color:#fff!important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.sample-download-btn_style:hover {
    background: #0056b3;
}

/* 첨부파일 리스트 컨테이너 */
.attach-files-container_style {
    margin-top: 15px;
    width: 100%;
}

/* 첨부파일 행 */
.attach-file-row_style {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    width: 100%;
}

/* 첨부파일 번호 */
.attach-num_style {
    background: #007bff;
    color: white;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    flex-shrink: 0;
}

/* 첨부파일 제목 */
.attach-title-text_style {
    min-width: 150px;
    font-size: 15px;
    color: #222;
    flex-shrink: 0;
}

/* 첨부파일 입력 래퍼 */
.attach-input-wrap_style {
    flex: 1;
}

/* 첨부파일 입력 필드 */
.attach-file-input_style {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 14px;
    box-sizing: border-box;
}

/* 첨부파일 동의 박스 */
.attach-agree-box_style {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px; width:100% ;float:left 
}

/* 첨부파일 동의 텍스트 */
.attach-agree-text_style {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* 동의 섹션 */
.agree-section_style {
    width: 100%;
    margin-top: 30px;
    clear: both;
}

/* 동의 설명 */
.agree-desc_style {
    overflow: hidden;
}

/* 동의 설명 좌측 */
.agree-desc-left_style {
    float: left;
}

/* 동의 설명 우측 */
.agree-desc-right_style {
    float: right;
}

/* 동의 폼 그룹 */
.agree-form-group_style {
    width: 100%;
    clear: both;
    margin-top: 15px;
}

/* 동의 테이블 */
.notice-table_style {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; background-color: #FFF
} 

/* 동의 테이블 번호 셀 */
.notice-td-num_style {
    width: 40px;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

/* 동의 테이블 내용 셀 */
.notice-td-content_style {
    padding: 10px;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

/* 동의 테이블 체크 셀 */
.notice-td-check_style {
    width: 80px;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

/* 에디터 숨김 */
.editor-hidden_style {
    display: none;
}

/* 하단 버튼 영역 */
.bottom-buttons-wrap_style {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

/* 저장 버튼 */
.btn-submit_style {
    padding: 15px 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit_style:hover {
    background: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 리스트 버튼 */
.btn-list_style {
    display: inline-block;
    padding: 15px 50px;
    background: #333;
    color: #fff!important;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-list_style:hover {
    background: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ========================================
   write_edit.php 팝업 전용 스타일
   ======================================== */

/* 팝업 버튼 영역 */
.popup-button-area_style {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

/* 팝업 글보기 버튼 */
.popup-view-btn_style {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-view-btn_style:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 팝업 닫기 버튼 */
.popup-close-btn_style {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-close-btn_style:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 취소 버튼 */
.btn-cancel_style {
    display: inline-block;
    padding: 15px 50px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel_style:hover {
    background: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.info_tx{ font-size:calc(var(--tx-sm-size) * 0.9);width:100%; float: left;  color: #666; margin-top: 15px }
.info_tx.fc{  color: var(--primary);  }
.info_tx.fc_point{ color: var(--primary);  }
.info_tx.fc_red{ color: #FF1111  }
.info_tx.fc_blue{ color: #1B79D0  }


/* 구분 -----------------------------------*/
/**** pc ****/
@media only all and (min-width:768px) {
	.field-guide-text:has(.g_span2) {
  grid-column: span 2;
}
	
.field-guide-text:has(.g_span3) {
  grid-column: span 3;
}



.field-guide-text:has(.g_span4) {
  grid-column: span 4;
}


.field-guide-text:has(.g_span5) {
  grid-column: span 5;
}
}
/**** pc2 ****/
@media all and (max-width:1280px) and (min-width:768px) {
		.field-guide-text:has(.g_span2) {
  grid-column: span 2;
}
	
.field-guide-text:has(.g_span3) {
  grid-column: span 2;
}



.field-guide-text:has(.g_span4) {
  grid-column: span 2;
}


.field-guide-text:has(.g_span5) {
  grid-column: span 2;
}
	
}
/**** 모바일 ****/
@media only all and (max-width:767px) {
	
			.field-guide-text:has(.g_span2) {
  grid-column: span 1;
}
	
.field-guide-text:has(.g_span3) {
  grid-column: span 1;
}



.field-guide-text:has(.g_span4) {
  grid-column: span 1;
}


.field-guide-text:has(.g_span5) {
  grid-column: span 1;
}
	
}
/**** 모바일2 ****/
@media only all and (max-width:400px) {
}
/* 구분 //end -----------------------------------*/

.ssn13-wrap{display: flex;flex-direction: row; justify-content: space-between;}


.attach-section .part_desc{width: 100%; border: 1px solid #eee; padding-bottom: 10px ; padding: 20px; border-radius: 10px; background-color: #f7f7f7}
/* 어르신의 문제행동  특별 css */
.attach-file-row{  width: 100%; border-bottom: 1px solid #eee; padding-bottom: 10px}
.attach-title{width: 30%}
.inputcombo-title{font-size:calc(var(--tx-sm-size) * 0.9);
}

/* ========================================
   첨부파일 UI 개선 (반응형)
   ======================================== */

/* 첨부파일 행 - PC */
.attach-file-row.attach-file-row_style {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}
.attach-file-row.attach-file-row_style.has-file {
    background: #f0faf0;
    border-color: #c3e6cb;
}

/* 행 헤더 (번호 + 제목 + 파일명) */
.attach-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}
.attach-row-header .attach-num {
    background: #007bff;
    color: white;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    text-align: center;
    line-height: 28px;
    font-size: 13px;
    flex-shrink: 0;
}
.attach-row-header .attach-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

/* 기존 파일명 표시 (헤더에서) */
.attach-existing-filename {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #28a745;
    background: #d4edda;
    padding: 4px 10px;
    border-radius: 4px;
    max-width: 300px;
    overflow: hidden;
}
.attach-existing-filename i {
    flex-shrink: 0;
    color: #28a745;
}
.attach-existing-filename .filename-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.attach-existing-filename .filesize-text {
    flex-shrink: 0;
    font-size: 11px;
    color: #666;
}

/* 행 바디 (파일 입력 + 기존파일 정보) */
.attach-row-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.attach-row-body .attach-input-wrap {
    width: 100%;
}
.attach-row-body .attach-file-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}
.attach-row-body .attach-file-input:hover {
    border-color: #007bff;
}

/* 기존 파일 정보 영역 */
.attach-existing-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #e8f5e9;
    border-radius: 6px;
    flex-wrap: wrap;
}
.existing-file-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    max-width: calc(100% - 80px);
}
.existing-file-link:hover {
    text-decoration: underline;
}
.existing-file-link i {
    flex-shrink: 0;
}
.existing-file-link .filename-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.existing-file-link .filesize-text {
    flex-shrink: 0;
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

/* 삭제 라벨 */
.attach-delete-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #dc3545;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.attach-delete-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #dc3545;
}
.attach-delete-label span {
    font-weight: 500;
}

/* 교체 안내 */
.attach-replace-hint {
    margin: 0;
    font-size: 11px;
    color: #888;
}

/* ========================================
   첨부파일 모바일 반응형
   ======================================== */
@media only all and (max-width: 768px) {
    .attach-file-row.attach-file-row_style {
        padding: 12px;
    }

    .attach-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .attach-row-header .attach-num,
    .attach-row-header .attach-title {
        display: inline-flex;
    }
    .attach-row-header > div:first-child {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* 모바일에서 기존 파일명 표시 */
    .attach-existing-filename {
        width: 100%;
        max-width: none;
    }
    .attach-existing-filename .filename-text {
        max-width: calc(100% - 100px);
    }

    /* 기존 파일 정보 - 세로 배치 */
    .attach-existing-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .existing-file-link {
        max-width: 100%;
        width: 100%;
    }
    .attach-delete-label {
        align-self: flex-end;
    }
}

@media only all and (max-width: 480px) {
    .attach-row-header .attach-title {
        font-size: 13px;
    }
    .attach-existing-filename {
        font-size: 11px;
        padding: 3px 8px;
    }
    .attach-existing-filename .filename-text {
        max-width: calc(100% - 80px);
    }
    .existing-file-link {
        font-size: 12px;
    }
}

