.board-list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.board-list thead {
    background-color: #f0f0f0;
    color: #000000;
    font-size : 14px;
    font-weight : 600;
    font-family: 'Noto Sans KR', serif;
}

.board-list th {
    border-top: 2px solid #bab9b9;
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.board-list td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    /*color: #444444;*/
    text-align: left;
    font-size : 14px;
    /*font-weight : 200;*/
    font-family: 'Noto Sans KR', serif;
}

/*.board-list .title {*/
/*    cursor: pointer;*/
/*}*/

.board-list tbody tr:hover {
    background-color: #e6f4ff; /* 연한 하늘색 */
    transition: background-color 0.3s; /* 부드럽게 전환 (선택사항) */
    cursor: pointer;
}

.board-list tbody tr.not-click {
    /*background-color: #e6f4ff; !* 연한 하늘색 *!*/
    /*transition: background-color 0.3s; !* 부드럽게 전환 (선택사항) *!*/
    cursor: default;
}

/*.view-article {*/
/*    border: 1px solid #aaa;*/
/*    padding: 15px;*/
/*    margin-bottom: 20px;*/
/*    background-color: #fafafa;*/
/*}*/

.board-view {
    /*max-width: 900px;*/
    margin: 0 auto;
    margin-bottom: 30px;
    /*padding: 16px;*/
    color: #333;
    font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
    /*border-top: 2px solid #bab9b9;*/
    /*border-bottom: 1px solid #bab9b9;*/
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 30px;
    background: #f0f0f0;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    /*border: 2px solid #bab9b9;*/
    /*border-bottom: 1px solid #e8e6e6;*/
    border-top: 2px solid #bab9b9;
    border-left: 1px solid rgba(0, 0, 0, 0.175);
    border-right: 1px solid rgba(0, 0, 0, 0.175);
}

.view-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.view-regist-date,
.view-modify-date {
    font-size: 14px;
    color: #888;
    /*margin-top: 6px;*/
}

.view-attachments {
    border-bottom: 1px solid #e8e6e6;
    /*padding: 0 0 10px 10px;*/
    gap: 1rem;
}

.board-view .divider {
    border: none;
    /*border-top: 1px solid #bab9b9;*/
    border-bottom: 1px solid #e8e6e6;
    margin: 16px 0;
}

.divider-strong {
    border: none;
    border-top: 2px solid #9e9c9c;
    margin: 16px 0;
}

.attachment-label {
    font-weight: 500;
    color: #555;
}

.attachment-items {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 3px;
}

.attachment-items li {
    margin-right: 12px;
}

.attachment-link {
    /*color: #0366d6;*/
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.attachment-link:hover {
    color: #024b9a;
    text-decoration: underline;
}

.attachment-btn {
    color: #0366d6;
    text-decoration: none;
    font-size: 14px;
}

.view-content {
    /*font-size: 16px;*/
    /*line-height: 1.7;*/
    padding: 10px 15px;
    border-radius: 0.375rem;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-top: none;
}

.form-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    /*background-color: #fff;*/
    /*border-radius: 12px;*/
    /*box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);*/
}

.file-upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: var(--bs-gray-100);
}

.file-upload-box:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.03);
}

/*.editor-container {*/
/*    border: 1px solid #dee2e6;*/
/*    border-radius: 8px;*/
/*    margin-bottom: 20px;*/
/*    overflow: hidden;*/
/*}*/
.info-card {
    /*border-left: 4px solid #0d6efd;*/
    border-radius: 8px;
    /*background: linear-gradient(to right, rgba(13, 110, 253, 0.02), transparent);*/
    background-color: #fff;
    /* Ensure inner backgrounds don't visually eat the rounded border */
    background-clip: padding-box;
}

/* Make sure the card body leaves a hairline gap so the outer border curve remains visible */
.card.info-card .card-body {
    padding-left: 1px;
    padding-right: 1px;
    border-radius: inherit;
    background-clip: padding-box;
}

/* Match left rounded corners for the first/last label column so it aligns with the card radius */
.card.info-card .info-item:first-child .info-label {
    border-top-left-radius: 8px;
}
.card.info-card .info-item:last-child .info-label {
    border-bottom-left-radius: 8px;
}

/* Ensure the last visible row gets the rounded left-bottom corner even if trailing rows are hidden */
.card.info-card .info-item:not(.d-none):not(:has(~ .info-item:not(.d-none))) .info-label {
    border-bottom-left-radius: 8px;
}
/* Remove bottom border for the last visible row (ignoring hidden rows) */
.card.info-card .info-item:not(.d-none):not(:has(~ .info-item:not(.d-none))) {
    border-bottom: none;
}

.info-item {
    /*padding: 10px 15px;*/
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.05);*/
    border-bottom: 1px solid #dddcdc;
    display: flex;
    align-items: stretch;
    height: 42px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .info-label {
    /*padding: 14px 15px;*/
    padding-left: 15px;
    font-weight: 500;
    color: #495057;
    min-width: 150px;
    display: flex;
    line-height: 1;

    align-items: center;
    background-color: #f7f7f7;
    /*border-bottom: 1px solid #ccc;*/
}

.info-item .info-label i {
    margin-right: 10px;
}

.info-item .info-value {
    padding: 10px 15px;
    font-weight: 400;
    font-size:14px !important;
    color: #212529;
    min-width: 250px;
    width: auto;
    align-items: center;
    align-content: center;
    /*background-color: #fff;*/
}


.editor-view-contents {
    padding: 10px 15px;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-label .icon {
    margin-right: 8px;
    color: #0d6efd;
    width: 20px;
    text-align: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-with-icon {
    padding-left: 40px !important;
}

.badge-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
}

.attachment-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

/* 테이블 헤더 정렬 UI (버튼 수직 스택, 최소 폭) */
.th-sort {
    display: inline-grid;
    grid-template-columns: auto 16px; /* 텍스트, 버튼 스택 */
    align-items: center;
    column-gap: 5px;
    white-space: nowrap;
}
.th-sort .th-label {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-weight: 600;
    line-height: 1;
}
.th-sort .sort-col {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
    align-items: center;
}
.sort-btn {
    width: 14px;
    height: 14px;
    border: 0;
    /*border: 1px solid #e0e6ed;*/
    border-radius: 3px;
    /*background: #fff;*/
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all .15s ease;
}
.sort-btn:hover {
    /*background: #f2f6fb;*/
    color:darkblue;
    /*color: #467fb8;*/
    /*border-color: #cdd7e3;*/
}
.sort-btn i.bi-caret-up-fill {
    font-size: 0.75rem;
    pointer-events: none;
    line-height: 1;
    padding:5px 5px 0 5px;
}
.sort-btn i.bi-caret-down-fill {
    font-size: 0.75rem;
    pointer-events: none;
    line-height: 1;
    padding:0 5px 5px 5px;
}
.sort-btn.active {
    /*background: #467fb8;*/
    color: #0d6efd;
    /*border-color: #467fb8;*/
    pointer-events: none; /* 활성(정렬됨) 버튼은 클릭 불가 */
}
.sort-btn[disabled] {
    opacity: .85;
    cursor: default;
    pointer-events: none;
}
/* 정렬 중인 컬럼 제목 강조 */
th.sorted .th-label {
    color: #467fb8;
}



/*.board-view .info-row {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    gap: 2rem;*/
/*    align-items: center;*/
/*    font-size: 0.95rem;*/
/*    border-bottom: 1px solid #e8e6e6;*/
/*    !*border-right:none;*!*/
/*}*/

/*.board-view .info-item {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 1rem;*/
/*    line-height: 1;*/
/*}*/

/*.board-view .info-label {*/
/*    background-color: #f0f0f0;*/
/*    padding: 2px 8px;*/
/*    border-radius: 12px;*/
/*    font-size: 14px;*/
/*    font-weight: 500;*/
/*    color: #333;*/
/*    white-space: nowrap;*/
/*    display: flex;*/
/*    align-items: center;  !* 수직 정렬 *!*/
/*    height: 24px;*/
/*}*/

/*.board-view .info-rect-label {*/
/*    background-color: #f0f0f0;*/
/*    border-right:1px solid #f0f0f0;*/
/*    padding: 20px 8px;*/
/*    !*border-radius: 12px;*!*/
/*    font-size: 14px;*/
/*    font-weight: 500;*/
/*    color: #333;*/
/*    white-space: nowrap;*/
/*    display: flex;*/
/*    align-items: center;  !* 수직 정렬 *!*/
/*    height: 24px;*/
/*}*/

/*.board-view .header-info-label  {*/
/*    background-color: #fff;*/
/*    padding: 2px 8px;*/
/*    border-radius: 12px;*/
/*    !*font-size: 14px;*!*/
/*    !*font-weight: 500;*!*/
/*    !*color: #333;*!*/
/*    !*white-space: nowrap;*!*/
/*    !*display: flex;*!*/
/*    !*align-items: center;  !* 수직 정렬 *!*!*/
/*    !*height: 24px;*!*/
/*}*/

/*.board-view .info-value {*/
/*    color: #444;*/
/*    white-space: nowrap;*/
/*    display: flex;*/
/*    align-items: center; !* 수직 정렬 *!*/
/*    height: 24px;*/
/*    padding: 2px 8px;*/
/*}*/

/* 반응형 대응 */
@media (max-width: 768px) {
    .board-list {
        border: none;
    }

    .board-list thead {
        display: none;
    }

    .board-list tbody tr {
        border-bottom: 1px solid #ccc;
        padding: 8px 0;
    }

    .board-list td {
        border: none;
        padding: 2px 10px;
    }

    /* 첫 줄 - flex로 */
    /*.board-list td:nth-child(1),*/
    /*.board-list td:nth-child(2) {*/
    /*    display: inline-flex;*/
    /*    align-items: center;*/
    /*}*/
    .board-list td:nth-child(1) {
        margin-right: 10px;
        padding: 0;
    }

    .board-list td:nth-child(2)::before {
        content: '';
    }

    .board-list td:nth-child(1) span.num-badge {
        display: inline-block;
        background-color: #a3a2a2;
        color: #fff;
        border-radius: 45%;
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-weight: bold;
        font-size: 12px;
    }

    .board-list td:nth-child(2) {
        flex: 1;
        font-weight: bold;
        font-size: 1em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4em;
        max-height: 2.8em;
    }

    /* 두번째 줄 - 작성일 */
    .board-list td:nth-child(3) {
        display: block;
        font-size: 0.9em;
        color: #666;
        margin-top: 3px;
        /*padding-left: 40px; !* 번호 자리 만큼 *!*/
    }

    /* 조회수 숨김 */
    .board-list td:nth-child(4) {
        display: none;
    }

    .view-title {
        font-size: 18px;
    }

    .attachment-btn {
        font-size: 13px;
        padding: 2px 5px;
    }

    .btn-list {
        font-size: 15px;
        padding: 7px 16px;
    }

}