/*qna List*/
.qna.list .container {
    border-radius: var(--card-rounding);
    box-shadow: var(--card-shaodw);
    padding: 20px 40px;

}

.qna.list .scroll-area {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.qna.list table {
    min-width: 100%;
}

.qna.list table thead {
    border-bottom: 1px inset var(--color-gray);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray);
}

.qna.list table tbody > tr {
    border-bottom: 1px solid #ccc;
}


.qna.list table th {
    padding: 5px 15px;
}

.qna.list table th,
.qna.list table td {
    line-height: 40px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}


.qna.list table td {
    position: relative;
    padding: 15px 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.qna.list table td i {
    cursor: pointer;
}

.qna.list table td em {
    color: var(--color-error);
    font-weight: 500;
}

.qna.list table .index,
.qna.list table .writer,
.qna.list table .hit,
.qna.list table .attachment {
    width: 100px;
}

.qna.list table .index,
.qna.list table .hit {
    text-align: center;
}

.qna.list table .category {
    width: 300px;
    /*display: none;*/
}

.qna.list table .code {
    width: 150px;
}

.qna.list table .subject {
    /*width: 400px;*/
}

.qna.list table td.subject {
    text-align: start;
    display: flex;
    flex-direction: column;
}

.qna.list table td.subject > .category {
    width: fit-content;
    display: inline-block;
    line-height: normal;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 0.3rem;
    position: relative;
}

.qna.list table td.subject > a {
    padding: 0 0.6rem;
}

.qna.list table .comment {
    width: 120px;
}

.qna.list table .date {
    width: 100px;
}

.qna.list table a:hover {
    text-decoration: underline;
}

.qna.list table tr:has(a:hover) {
    background-color: var(--color-hover-back);
}

.qna.list table .empty {
    text-align: center;
    font-size: 15px;
    color: #cfcfcf;
}

.qna.list table td.empty {
    line-height: 220px;
}

.qna.list table tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--color-gray-100);
}


.qna.list table .attachment ul {
    position: absolute;
    z-index: 1;
    left: 10px;
    top: 50px;
    padding: 5px 15px;
    box-shadow: var(--card-shaodw);
    border-radius: var(--card-rounding);
    background-color: var(--color-background);
    font-size: 14px;
    line-height: 30px;
    opacity: 0;
    pointer-events: none;
    transition: all 200ms ease-in-out;
}

.qna.list table .attachment:hover ul {
    opacity: 1;
    pointer-events: all;
}

.qna.list table .attachment ul a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.qna.list table .attachment ul i {
    font-size: 14px;
}

span.notice {
    line-height: 22px;
    font-size: 14px;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: 13px;
    padding: 3px 8px;
}

/* section article table thead th.subject {
        max-width: 300px;
        width: 300px;
    }*/

/*

section article table thead th.subject {
        max-width: 200px;
        width: 200px;
    }

*/

/*qna view*/
.qna.view h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-primary);
    background-color: transparent;
    border-radius: 20px 20px 0 0;
    line-height: 1.5em;
}

.qna.view h4 .qna_label_wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qna.view h4 em {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-height: 30px;
    background-color: var(--color-primary);
    color: #fafafa;
    font-size: 0.5em;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
}

.qna.view .wrapper {
    padding: 20px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #00000009;
    border-radius: var(--card-rounding);
    box-shadow: var(--card-shaodw);
}

.qna.view .q_box {
    display: flex;
    align-items: flex-start;
    background-color: var(--color-hover-back);
    gap: 20px;
    padding: 0 20px;
    border-radius: 20px;
    padding-bottom: 20px;
}

.qna.view .q_viewbox {
    flex: 1;
}

.qna.view .q_box h5.qna_label {
    line-height: 1.5em;
    font-weight: 600;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

.qna.view .q_box > h5 {
    color: var(--color-primary);
    margin-top: 20px;
    background-color: #fff;
    border: 2px solid var(--color-primary);
    padding: 0 20px;
    font-size: 1.8rem;
}

.qna.view .content {
    padding: 50px 20px;
}

.qna.view .qna_comment {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    position: relative;
}

.qna.view .qna_comment > h5 {
    color: #fafafa;
    background-color: var(--color-primary);
    padding: 0 15px;
    font-size: 1.5rem;
}

.qna.view .qna_comment .comment_view {
    padding: 0 15px;
    flex: 1;
}

.qna.view .qna_comment .comment_view > ul .writer {
    font-size: 0.9em;
    font-weight: 400;
    color: #555;
}

.qna.view .qna_comment .comment_view > ul .writer > span {
    display: inline-block;
}

.qna.view .qna_comment .comment_view > ul li {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 20px 5px;

}
.qna.view .qna_comment .comment_view > ul li:not(:last-child){
    border-bottom: 1px solid #eee;
}
.qna.view .qna_comment .comment_view > ul li .comment_content {
    flex: 1;
}
.qna.view .qna_comment .comment_view > ul li .comment_actions{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.qna.view .qna_comment .comment_view > ul li .comment_actions button {
    padding: 5px 15px;
    background: #111;
    color: #fefefe;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    font-size: .9rem;
}
.qna.view .qna_comment .comment_view > ul .comment {
    margin-top: 10px;
}



.qna.view .qna_comment .comment_view > form {
    padding-top: 20px;
    align-items: center;
    border-top: 1px solid #eee;
}
.qna.view .qna_comment .comment_view > form .refresh{
    display: none;
}
.qna.view .qna_comment .comment_view > form.edit .refresh{
    display: inline-block;
}
.qna.view .qna_comment .comment_view textarea {
    resize: none;
}
.qna.view .qna_comment .comment_view > form button{
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    font-size: .9rem;
}
.qna.view .qna_comment .comment_view > form button[type="submit"] {
    background: var(--color-primary);
    color: #fefefe;
}
.qna.view .qna_comment .comment_view > form button.refresh{
    background: var(--color-info);
    color: #fefefe;
}

.qna.view .wrapper .actions {
    margin-top: 20px;
    border-top: 2px solid var(--color-primary);
}

@media all and (max-width: 1024px) {
    .qna.list table .index,
    .qna.list table .writer,
    .qna.list table .hit,
    .qna.list table .date,
    .qna.list table .attachment {
        width: 100px;
    }

    .qna.view h4 {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.5rem;
        line-height: 1.5em;
        text-align: center;
        word-break: keep-all;
    }
}

@media all and (max-width: 768px) {
    .qna.list table th, .qna.list table td {
        text-align: center;
        max-width: none;
    }

    .qna.list table .index,
    .qna.list table .hit {
        width: 60px;
    }

    .qna.list table th, .qna.list table td {
        line-height: 30px;
    }

    .qna.list .container {
        padding: 15px 20px;
        background-color: var(--color-white);
    }

    .qna.list table thead {
        display: none;
    }

    .qna.list table tbody tr {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        row-gap: 5px;
        padding: 5px 0;
        border-radius: 10px;
    }

    .qna.list table tbody > tr:last-child {
        border-bottom: 0;
    }

    .qna.list table td {
        padding: 0 0.6rem;
    }

    .qna.list table .subject {
        width: calc(100% - 30px);
        max-width: none;
        padding: 0;
    }

    .qna.list table .index,
    .qna.list table .code,
    .qna.list table .category {
        width: fit-content;
    }

    .qna.list table .writer,
    .qna.list table .hit,
    .qna.list table .attachment,
    .qna.list table .date {
        line-height: 20px;
        padding: 5px;
        color: #999;
        width: auto;
        font-size: 0.9rem;
    }

    /*view*/
    .qna.view .wrapper {
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
    }

    .qna.view .q_box {
        gap: 15px;
    }

    .qna.view .q_box > h5 {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    .qna.view h4 em {
        font-size: 0.6em;
        line-height: 30px;
    }

    .qna.view .qna_comment {
        gap: 10px;
    }

    .qna.view .qna_comment .comment_view > form {
        flex-direction: column;
        gap: 10px;
    }

    .qna.view .qna_comment .comment_view > form label:has(textarea) {
        width: 100%;
    }

    .qna.view .qna_comment .comment_view > form label textarea {
        height: 4rem;
    }
}

@media all and (max-width: 500px) {
    /*.qna.list table th, .qna.list table td{*/
    /*    line-height: 30px;*/
    /*}*/
    /*.qna.list .container{*/
    /*    padding: 15px 20px;*/
    /*    background-color: var(--color-white);*/
    /*}*/
    /*.qna.list table thead{*/
    /*    display: none;*/
    /*}*/
    /*.qna.list table tbody tr{*/
    /*    width: 100%;*/
    /*    display: flex;*/
    /*    flex-wrap: wrap;*/
    /*    row-gap: 5px;*/
    /*    padding: 5px 0;*/
    /*}*/
    /*.qna.list table td{*/
    /*    padding: 0;*/
    /*}*/
    /*.qna.list table .subject{*/
    /*    width: calc(100% - 60px);*/
    /*    max-width: none;*/
    /*}*/
    /*.qna.list table .index{*/
    /*    width: 50px;*/
    /*}*/
    /*.qna.list table .writer,*/
    /*.qna.list table .hit,*/
    /*.qna.list table .attachment,*/
    /*.qna.list table .date{*/
    /*    line-height: 20px;*/
    /*    padding: 5px;*/
    /*    color: #999;*/
    /*    width: auto;*/
    /*}*/
    .qna.view h4 {
        font-size: 1.3rem;
        padding-bottom: 10px;
    }

    .qna.view h4 em {
        max-height: 25px;
        font-size: 0.9rem;
    }

    .qna.view .q_box > h5.qna_label {
        display: none;
    }

    .qna.view .content {
        padding: 40px 20px;
    }

    .qna.view .qna_comment {
        gap: 5px;
    }

    .qna.view .qna_comment > h5 {
        font-size: 1.2rem;
        padding: 0 12px;
    }

    .view .content {
        padding: 40px 20px;
    }
}