/*
list
*/
.notice-board-wrap {
    margin-bottom: 80px;
}

.notice-board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-board-desc {
    color: #777;
    font-size: 14px;
}

.notice-table-wrap table.dataTable tbody td {
    vertical-align: middle;
}

.notice-table-wrap .title-cell {
    white-space: normal !important;
    word-break: keep-all;
    padding-top: 20px;
    padding-bottom: 20px;
}

.notice-table-wrap .dataTables_filter input {
    min-width: 220px;
}

.notice-board-top .btn-write {
    min-width: 110px;
}

.notice-table-wrap table.dataTable th.check-col,
.notice-table-wrap table.dataTable td.check-col {
    width: 50px !important;
    min-width: 50px !important;
    text-align: center;
}

.board-title-wrap {
    line-height: 1.5;
}

.board-title-main {
    display: block;
}

.board-title-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #777;
    white-space: normal;
    word-break: keep-all;
}

table.dataTable.table-hover>tbody>tr:hover>* {
    background-color: rgba(35, 136, 237,0.01);
}

@media (max-width: 767.98px) {
    .notice-board-top {
        align-items: stretch;
    }

    .notice-board-top .d-flex {
        width: 100%;
    }

    .notice-board-top .btn,
    .notice-board-top .btn-write {
        flex: 1 1 auto;
    }

    .notice-table-wrap table.dataTable td,
    .notice-table-wrap table.dataTable th {
        font-size: 13px;
        padding: 10px 6px;
    }

    .notice-table-wrap .title-cell {
        min-width: 220px;
    }
}

div.dataTables_wrapper div.dataTables_processing {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    color: #212529;
    padding: 3rem !important;   /* Bootstrap p-5 ´À³¦ */
    margin-top: 0 !important;
    height: auto !important;
    width: auto !important;
    min-width: 260px;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}


/*
view
*/
.board-view-wrap {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.board-view-head {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.board-view-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-all;
    margin-bottom: 15px;
}

.board-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.board-view-body {
    padding: 40px 30px;
    min-height: 250px;
    line-height: 1.9;
    word-break: break-all;
    color: #222;
    font-size: 0.9em;
}

.board-view-body p {
    font-size: 1.0em;
}

.board-view-body a {
    color:#2388ED;
}

.board-view-body img {
    max-width: 100%;
    height: auto;
}

.board-view-file {
    padding: 25px 30px;
    border-top: 1px solid #e9ecef;
    background: #fafafa;
}

.board-view-file h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.board-view-file ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-view-file li {
    margin-bottom: 8px;
}

.board-view-file a {
    color: #007bff;
    text-decoration: none;
}

.board-view-file a:hover {
    text-decoration: underline;
}

.board-view-btns {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.board-view-btns .left-btns,
.board-view-btns .right-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.board-view-image-preview {
    padding: 25px 30px;
    border-top: 1px solid #e9ecef;
    background: #fff;
}

.board-view-image-preview h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.board-view-image-preview .img-item {
    margin-bottom: 25px;
}

.board-view-image-preview .img-item:last-child {
    margin-bottom: 0;
}

.board-view-image-preview .img-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    word-break: break-all;
}

.board-view-image-preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}

.board-comment-wrap {
    margin-top: 25px;
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
}

.board-comment-head {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    font-size: 18px;
    font-weight: 700;
}

.board-comment-body {
    padding: 20px 25px;
}

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}

.comment-item:last-child {
    border-bottom: 0;
}

.comment-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.comment-content {
    white-space: pre-line;
    word-break: break-all;
    color: #333;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

/*
write
*/
.board-write-wrap {
    margin-bottom: 50px;
}

.board-form-table {
    width: 100%;
    border-top: 2px solid #343a40;
    table-layout: fixed;
}

.board-form-table th,
.board-form-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.board-form-table th {
    width: 160px;
    background: #f8f9fa;
    font-weight: 600;
    word-break: keep-all;
}

.board-form-table .form-control,
.board-form-table .custom-select,
.board-form-table .form-control-file {
    max-width: 100%;
    width: 100%;
}

.quill-wrap,
#editor {
    background: #fff;
}

#editor {
    height: 400px;
}

.board-btns {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.board-btns .left-btns,
.board-btns .right-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-upload-row .btn {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .board-write-wrap {
        margin-bottom: 35px;
    }

    .board-form-table,
    .board-form-table tbody,
    .board-form-table tr,
    .board-form-table th,
    .board-form-table td {
        display: block;
        width: 100%;
    }

    .board-form-table tr {
        border-bottom: 1px solid #e9ecef;
    }

    .board-form-table th {
        border-bottom: 0;
        padding: 12px 12px 6px 12px;
        background: #f8f9fa;
        min-width: auto;
        max-width: none;
    }

    .board-form-table td {
        padding: 6px 12px 12px 12px;
        border-bottom: 0;
    }

    .file-upload-row {
        flex-direction: column;
        align-items: stretch;
    }

    .file-upload-row .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .form-check.form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

    #editor {
        height: 280px;
    }

    .board-btns,
    .board-btns .left-btns,
    .board-btns .right-btns {
        display: block;
        width: 100%;
    }

    .board-btns .left-btns .btn,
    .board-btns .right-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }

    .ql-toolbar.ql-snow {
        padding: 6px;
    }

    .ql-toolbar.ql-snow .ql-formats {
        margin-right: 6px;
        margin-bottom: 6px;
    }
}

/*
edit
*/
.board-write-wrap {
    margin-bottom: 50px;
}

.board-form-table {
    width: 100%;
    border-top: 2px solid #343a40;
    table-layout: fixed;
}

.board-form-table th,
.board-form-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.board-form-table th {
    width: 160px;
    background: #f8f9fa;
    font-weight: 600;
    word-break: keep-all;
}

.board-form-table .form-control,
.board-form-table .custom-select,
.board-form-table .form-control-file {
    max-width: 100%;
    width: 100%;
}

.quill-wrap,
#editor {
    background: #fff;
}

#editor {
    height: 400px;
}

.board-btns {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.board-btns .left-btns,
.board-btns .right-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-upload-row .btn {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .board-write-wrap {
        margin-bottom: 35px;
    }

    .board-form-table,
    .board-form-table tbody,
    .board-form-table tr,
    .board-form-table th,
    .board-form-table td {
        display: block;
        width: 100%;
    }

    .board-form-table tr {
        border-bottom: 1px solid #e9ecef;
    }

    .board-form-table th {
        border-bottom: 0;
        padding: 12px 12px 6px 12px;
        background: #f8f9fa;
        min-width: auto;
        max-width: none;
    }

    .board-form-table td {
        padding: 6px 12px 12px 12px;
        border-bottom: 0;
    }

    .file-upload-row {
        flex-direction: column;
        align-items: stretch;
    }

    .file-upload-row .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .form-check.form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

    #editor {
        height: 280px;
    }

    .board-btns,
    .board-btns .left-btns,
    .board-btns .right-btns {
        display: block;
        width: 100%;
    }

    .board-btns .left-btns .btn,
    .board-btns .right-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }

    .ql-toolbar.ql-snow {
        padding: 6px;
    }

    .ql-toolbar.ql-snow .ql-formats {
        margin-right: 6px;
        margin-bottom: 6px;
    }
}