

/*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;
}
.qna.view h4 em{
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 0.5em;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
}

@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;
    }
}
@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;
    }
    .qna.list table tbody > tr:last-child{
        border-bottom: 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;
        font-size: 0.9rem;
    }

    .qna.view h4{
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.5rem;
    }
    .qna.view h4 em{
        font-size: 0.6em;
        line-height: 30px;
    }
}
@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;*/
    /*}*/
}