main.board {
    padding: 3rem 0;
}

main.board div {
    font-size: 14px;
}

.board_section {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.board_section .board_top {
    display: flex;
    flex-direction: column;
}

.board_section .board_top .total {
    text-align: right;
}

.board_section .board_top .board_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.board_section .board_top .board_header h2 {
    color: #777;
    font-family: "s-c-d", Helvetica, Arial, sans-serif;
    font-weight: 300;
}

.board_section .board_top .searchBox {
    position: relative;
}

.board_section .board_top .searchBox i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 상태 스타일 */
.status-pending,
.status-completed,
.status-hold {
    font-size: 14px;
    font-weight: 500;
}

.status-pending {
    color: #464e9e;
}

.status-completed {
    color: #6ebdbf;
}

.status-hold {
    color: #999;
}

/* board_view */
.board_view_info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: #f6f6f6;
    padding: 20px 10px;
    border-top: 1px solid #bbb;
    border-bottom: 1px dashed #bbb;
}

.board_view_info .left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.board_view_info .left .title {
    font-size: 16px;
    color: #333;
}

.board_view_info .left .info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.board_view_info .left .info span {
    font-size: 12px;
    padding-right: 10px;
    border-right: 1px solid #bbb;
    color: #555;
}

.board_view_info .right {
    align-self: flex-end;
}

.board_view_info .right .date {
    font-size: 12px;
    color: #555;
}

.board_content {
    padding: 50px 0;
}

.board_content p {
    color: #555;
}

.board_button {
    margin-top: 50px;
    width: 100%;
    text-align: center;
}

.board_button.line_btn {
    text-align: right;
}

.talk_write .board_button.line_btn {
    text-align: center;
}

.board_button button {
    background: #83878a;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
    color: white;
    font-size: 14px;
    padding: 8px 14px;
    cursor: pointer;
}

.board_button.line_btn button {
    background-color: #fff;
    border-radius: 32px;
    border: 2px solid #333;
    color: #333;
}

.back_btn {
    background: #83878a;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
    color: white;
    font-size: 14px;
    padding: 8px 14px;
    cursor: pointer;
}

/* dxDataGrid */
.dx-header-row {
    background-color: #f4f3f1;
    border-bottom: 1px solid #aaa;
}

.talk .dx-header-row {
    background-color: #444 !important;
}

.talk .dx-header-row div {
    color: #fff !important;
}

.dx-datagrid-rowsview .dx-row {
    border-bottom: 1px solid #ccc !important;
}

.dx-datagrid-rowsview .dx-row.dx-row-lines:first-child {
    border-top: 1px solid #ccc !important;
}

.dx-datagrid .dx-row > td {
    font-family: "s-c-d", Helvetica, Arial, sans-serif !important;
    font-weight: 300 !important;
    color: #444 !important;
    font-size: 14px !important;
    border-bottom: none !important;
}

.dx-datagrid .dx-datagrid-table .dx-header-row > td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* 비밀번호 모달 */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.password-modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.password-modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.password-modal-content p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.password-modal-content input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.password-modal-content input:focus {
    outline: none;
    border-color: #464e9e;
}

.password-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.password-modal-buttons button {
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.password-modal-buttons .confirm-btn {
    background-color: #464e9e;
    color: #fff;
}

.password-modal-buttons .confirm-btn:hover {
    background-color: #3a4182;
}

.password-modal-buttons .cancel-btn {
    background-color: #999;
    color: #fff;
}

.password-modal-buttons .cancel-btn:hover {
    background-color: #777;
}

/* 온라인 상담 상세 */

.talk_view .board_button {
    margin: 20px 0;
}

.talk_content {
    width: 100%;
    padding: 50px 20px;
    border-bottom: 1px solid #ddd;
}

.talk_comment {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}

.talk_comment .comment_header {
    font-size: 18px;
    font-weight: 500;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.talk_comment .comment_content {
    padding: 30px 20px 50px
}

.talk_write .write-area {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.talk_write .write-area .form-label {
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.talk_write .write-area .form-label label {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
}

.talk_write .write-area .form-label label span {
    font-size: 12px;
    color: red;
}

.talk_write .write-area .form-label input,
.talk_write .write-area .form-label textarea {
    background-color: #f1f1f1;
    border: none;
    outline: none;
}

.talk_write .write-area .form-label input:not([type="checkbox"]) {
    width: 100%;
    max-width: 300px;
    border-radius: 50px;
    padding: 8px 15px;
}

.talk_write .write-area .form-label textarea {
    width: 100%;
    height: 150px;
    resize: none;
    padding: 20px;
}

.talk_write .write-area .form-label .category-checkbox-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.talk_write .write-area .form-label .category-checkbox-group label {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

.talk_write .write-area .form-label .image-preview {
    max-width: 200px;
}

.talk_write .write-area .form-label .image-preview img {
    max-width: 100%;
}

.talk_write .write-area .form-label .image-preview .delete-image-btn {
    background-color: #d99c61;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 50px;
    margin-top: 10px;
}

/* 모바일 스타일 */

@media (max-width:1140px) {
    .board_section {
        padding: 0 20px;
    }
}

/* 모바일 제목 셀 스타일 */
.mobile-title-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-title-cell .title-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-title-cell .title-info {
    display: flex;
    gap: 8px;
    color: #888;
}

.mobile-title-cell .title-info span {
    position: relative;
    padding-right: 8px;
    font-size: 12px;
    color: #666;
}

.mobile-title-cell .title-info span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #ccc;
}