input:focus {
    border: 0;
    outline: none;
}

.btn_box {
    display: flex;
    align-items: center;
    padding: 10px 30px;
    text-align: center;
    background: #2eaaa6;
}

.btn_box span,
.btn_box i {
    color: #fff;
}

.btn_box i {
    margin-left: 10px;
    font-size: 13px;
}

.search_body {
    position: relative;
}

.search_body:after {
    content: '';
    display: block;
    clear: both
}

.search_body p,
.search_body span {
    font-size: 14px;
}

.search_body .total {
    display: inline-block;
    vertical-align: middle;
}

.search_body .search_box {
    display: flex;
    align-items: center;
}

.search_body .search_box p,
.search_body .search_box input {
    margin-right: 10px;
}

.search_body .search_box input {
    border: 1px solid #767676;
}

.search_body .total {
    position: relative;
    top: 5px;
}

.search_body .search_box {
    float: right;
}

.search_body .search_box input {
    width: 150px;
    height: 38px;
    padding: 10px;
    border: 1px solid #767676;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-spacing: 1px;
    margin-top: 26px;
}

caption {
    display: none;
}

.table tr {
    border-top: 1px solid #B3B3B3;
}

.table tr:last-child {
    border-bottom: 1px solid #B3B3B3;
}

.table th,
.table td {
    padding: 12px 4px;
    font-size: 14px;
    text-align: center;
    color: #767676
}

.table th {
    background: #F5F5F5;
}

.table td a {
    font-size: 14px;
    color: #333;
    display: block
}

/* 공지사항 - 제목 한 줄 말줄임 */
#main.notice .table {
    table-layout: fixed;
}

#main.notice .table tbody td:nth-child(2) {
    text-align: left;
}

#main.notice .table tbody td:nth-child(2) a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paging {
    margin-top: 10px;
}

.paging ul {
    text-align: center;
}

.paging ul li {
    display: inline-block;
    vertical-align: middle;
}

.paging ul li a {
    padding: 6px 10px;
    font-size: 14px;
    margin: 0 -2px;
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.paging ul li.active a {
    opacity: 1;
}

/* 게시글 상세 */
#main.notice_view .view_head {
    border-top: 2px solid #222;
    border-bottom: 1px solid #ddd;
    padding: 32px 24px;
}

#main.notice_view .view_head .category {
    display: inline-block;
    color: #2eaaa6;
    font-weight: 600;
    margin-bottom: 12px;
}

#main.notice_view .view_head .title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    word-break: keep-all;
}

#main.notice_view .view_head .meta {
    color: #888;
    font-size: 14px;
}

#main.notice_view .view_head .meta span {
    margin-right: 16px;
}

#main.notice_view .view_body {
    padding: 40px 24px;
    min-height: 240px;
    border-bottom: 1px solid #ddd;
}

#main.notice_view .view_body .content {
    line-height: 1.7;
    color: #333;
    word-break: keep-all;
}

#main.notice_view .view_body .content img {
    width: auto;
    max-width: 100%;
    height: auto;
}

#main.notice_view .view_btm {
    text-align: center;
    margin-top: 40px;
}

#main.notice_view .view_btm .btn_list {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid #222;
    color: #222;
    font-weight: 500;
    transition: all .2s ease-in-out;
}

#main.notice_view .view_btm .btn_list:hover {
    background: #222;
    color: #fff;
}

/* 비급여 진료비용 */
#main.nonpay .tab_group {
    display: flex;
    border: 1px solid #d4dde6;
    background-color: #fff;
    margin-bottom: 30px;
}

#main.nonpay .tab_group .tab_menu {
    flex: 1;
}

#main.nonpay .tab_group .tab_menu a {
    display: block;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    color: #767676;
    transition: background .2s, color .2s;
}

#main.nonpay .tab_group .tab_menu a.on {
    background: #62a6a4;
    color: #fff;
    font-weight: 500;
}

#main.nonpay .tab_group .tab_menu {
    border-right: 1px solid #d4dde6;
}

#main.nonpay .tab_group .tab_menu:last-child {
    border-right: none;
}

#main.nonpay .table_default {
    width: 100%;
    margin-top: 0;
    border-spacing: 0;
    border: 1px solid #e4e4e4;
    border-top: 3px solid #62a6a4;
    background-color: #fff;
    letter-spacing: 0;
}

#main.nonpay .table_default th,
#main.nonpay .table_default td {
    padding: 8px;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid #ededed;
    border-right: 1px solid #ededed;
}

#main.nonpay .table_default th:last-child,
#main.nonpay .table_default td:last-child {
    border-right: 0;
}

#main.nonpay .table_default thead th {
    background: #f4f6f6;
    font-weight: 500;
    border-bottom: 1px solid #d6e1dc;
    border-right: 1px solid #d6e1dc;
}

#main.nonpay .table_default thead th:last-child {
    border-right: 0;
}

#main.nonpay .table_default tbody tr:last-child td {
    border-bottom: 0;
}

#main.nonpay .table_default tbody tr:hover td {
    background: #f7faf9;
}

#main.nonpay .page_navigation {
    margin-top: 30px;
}

#main.nonpay .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

#main.nonpay .pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 14px;
    color: #767676;
    border-radius: 4px;
    transition: background .2s, color .2s;
}

#main.nonpay .pagination li a.active {
    background: #62a6a4;
    color: #fff;
}

@media(max-width:780px) {
    #main.nonpay .tab_group {
        margin-bottom: 20px;
    }

    #main.nonpay .tab_group .tab_menu a {
        padding: 5px;
        font-size: 13px;
    }

    #main.nonpay .table_default th,
    #main.nonpay .table_default td {
        padding: 5px;
        font-size: 12px;
    }
}

@media(max-width:780px) {
    .search_body {
        display: flex;
        flex-direction: column-reverse;
    }

    .search_body .search_box {
        float: none;
        margin-bottom: 24px;
    }

    .search_body .search_box input {
        width: 100%;
    }

    .table th,
    .table td {
        font-size: 12px;
    }

    /* 공지사항 - 모바일에서 이름 컬럼 숨김 및 너비 조정 */
    #main.notice .table thead th:nth-child(3),
    #main.notice .table tbody td:nth-child(3),
    #main.notice .table colgroup col:nth-child(3) {
        display: none;
    }

    #main.notice .table colgroup col:nth-child(2) {
        width: 50%;
    }

    #main.notice .table colgroup col:nth-child(4) {
        width: 20%;
    }

    .btn_box {
        padding: 10px 15px;
    }

    /* 게시글 상세 */
    #main.notice_view .view_head {
        padding: 24px 16px;
    }

    #main.notice_view .view_head .title {
        font-size: 18px;
    }

    #main.notice_view .view_body {
        padding: 24px 16px;
    }
}