/* 상태이력 버튼 css 추가 */
.m_tbl table tbody button.a_btn {
    width: 100%;
    font-size: 13px;
    color: #FFFFFF;
    background: #334155;
    border-radius: 3px;
}

/* 알림 전송 모달 select2 스타일 */
.select2-custom {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.select2-container--default .select2-selection--multiple:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #3b82f6 !important;
    border: 1px solid #3b82f6 !important;
    color: #ffffff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
    margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #374151 !important;
}

.select2-container--default .select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6;
    color: #ffffff;
}

.select2-container--default .select2-search--inline .select2-search__field {
    font-size: 14px;
    color: #374151;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #9ca3af;
}


/* 알림 전송 모달 textarea 스타일 */
.textarea-custom {
    resize: none;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    font-family: inherit;
    white-space: pre-wrap; /* 줄바꿈과 공백 유지 */
    word-wrap: break-word; /* 긴 단어 줄바꿈 */
}

.textarea-custom:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.textarea-custom::placeholder {
    color: #9ca3af;
}

.list_write .title::placeholder {
    color: #00000057;
}

/* 메시지 내용이 길 때 ...으로 잘리게 하는 스타일 */
td.message-content {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* 클릭 가능한 행에 호버 효과 */
.alarm-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.alarm-row:hover {
    background-color: #f5f5f5;
}

/* 확장된 행 스타일 */
.message-detail-row {
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.message-detail-content {
    padding: 15px;
    background-color: #f9f9f9;
}

.message-detail-wrapper {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-left: 4px solid #007bff;
}

.message-detail-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
    background-color: white;
    padding: 10px;
    text-align: left !important;
}

/* 확장된 행의 부모 행 스타일 */
.alarm-row.expanded {
    background-color: #e3f2fd;
}
.alarm-row.expanded:hover {
    background-color: #e3f2fd;
}

.message-detail-info {
    background-color: white;
    padding: 20px;
    max-width: 600px;
    width: 100%;
}

.detail-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.detail-label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    margin-right: 8px;
}

.detail-value {
    color: #666;
    flex: 1;
    text-align:left !important;
}

/* 관리자 등록 jsTree 커스터마이징 */
#jstree_container {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 12px 16px;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
    width: 100%;
}

#jstree_container .jstree-default .jstree-node {
    margin-left: 1.25rem;
    padding: 4px 0;
}

#jstree_container .jstree-container-ul > .jstree-node {
    margin-left: 0;
}

#jstree_container .jstree-default .jstree-icon.jstree-themeicon {
    display: none !important;
}

#jstree_container .jstree-default .jstree-ocl {
    color: #1f2937;
}

#jstree_container .jstree-default .jstree-checkbox {
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #cbd5f5;
    background-color: #ffffff;
    height: 18px;
    width: 18px;
    box-sizing: border-box;
    position: relative;
    background-image: none;
    transition: all 0.2s ease;
}

#jstree_container .jstree-default .jstree-checkbox:hover {
    border-color: #3b82f6;
}

#jstree_container .jstree-default .jstree-checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 8px;
    height: 4px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg);
    transition: opacity 0.2s ease;
    opacity: 0;
}

#jstree_container .jstree-default .jstree-anchor.jstree-checked .jstree-checkbox,
#jstree_container .jstree-default .jstree-anchor.jstree-undetermined .jstree-checkbox {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

#jstree_container .jstree-default .jstree-anchor.jstree-checked .jstree-checkbox::after {
    border-left-color: #ffffff;
    border-bottom-color: #ffffff;
    opacity: 1;
}

#jstree_container .jstree-default .jstree-anchor.jstree-undetermined .jstree-checkbox::after {
    opacity: 1;
    transform: none;
    left: 4px;
    top: 8px;
    width: 10px;
    height: 0;
    border-left: none;
    border-bottom: none;
    background-color: #ffffff;
    border-radius: 1px;
}

#jstree_container .jstree-default .jstree-anchor {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    padding: 6px 8px 6px 0;
    margin-right: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#jstree_container .jstree-default .jstree-anchor > .jstree-checkbox {
    flex-shrink: 0;
}

#jstree_container .jstree-default .jstree-anchor.jstree-clicked {
    color: #1d4ed8;
    font-weight: 600;
    background: none;
}

#jstree_container .jstree-container-ul > .jstree-node > .jstree-anchor {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* 이부분 수정 */
#jstree_container .jstree-wholerow {
    border-radius: 4px;
    height: auto !important;
    padding: 4px;
}

#jstree_container .jstree-wholerow.jstree-hovered {
    background-color: rgba(59, 130, 246, 0.08);
}

#jstree_container .jstree-wholerow.jstree-clicked {
    background-color: rgba(59, 130, 246, 0.18);
}


/* 이부분 추가 */
#jstree_container li {
    padding: 8px 0;
}

#jstree_container ul {
    padding: 4px 0;
}

.display-none {display: none;}
