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

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

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

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


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

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

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

.employee.list table td.subject {
    text-align: start;
}

.employee.list table td.subject > .category {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    margin-right: 0.5em;
}

.employee.list table td.role {
    white-space: pre-wrap;
    text-align: start;
}


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

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

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

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

.employee.list table .subject {
    overflow: hidden;
}

.employee.list table .date {
    width: 200px;
}

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

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

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

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


.employee.list table .attachment ul {
    display: none;
    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;


}

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

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

.employee.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;
    }

*/

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

@media all and (max-width: 768px) {
    .bbs-categories ul {
        font-size: 1rem;
    }

    .employee.list table th, .employee.list table td {
        text-align: start;
        max-width: none;
        line-height: 30px;
    }

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

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

    .employee.list table tbody tr {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        padding: 5px 0;
    }

    .employee.list table tbody tr:not(:last-child) {
        border-bottom: 1px solid #ddd;
    }

    .employee.list table td {
        padding: 0;
        display: grid;
        grid-template-columns: 70px 1fr;
    }

    .employee.list table td::before {
        content: attr(data-title);
        display: inline-block;
        width: 80px;
        font-weight: 600;
    }

    .employee.list table .subject {
        width: calc(100% - 60px);
        max-width: none;
    }

    .employee.list table .index {
        width: 50px;
    }

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

    .employee.list table td i {
        font-size: 1.2rem;
    }
}

@media all and (max-width: 500px) {
    .employee.list .container {
        padding: 20px;
    }

    .bbs-categories ul {
        gap: 1.5rem;
    }

    /*.employee.list table th, .employee.list table td{*/
    /*    line-height: 30px;*/
    /*}*/
    /*.employee.list table thead{*/
    /*    display: none;*/
    /*}*/
    /*.employee.list .container{*/
    /*    padding: 15px 20px;*/
    /*    background-color: var(--color-white);*/
    /*}*/
    /*.employee.list table thead{*/
    /*    display: none;*/
    /*}*/
    /*.employee.list table tbody tr{*/
    /*    width: 100%;*/
    /*    display: flex;*/
    /*    flex-wrap: wrap;*/
    /*    row-gap: 5px;*/
    /*    padding: 5px 0;*/
    /*}*/
    /*.employee.list table td{*/
    /*    padding: 0;*/
    /*}*/
    /*.employee.list table .subject{*/
    /*    width: calc(100% - 60px);*/
    /*    max-width: none;*/
    /*}*/
    /*.employee.list table .index{*/
    /*    width: 50px;*/
    /*}*/
    /*.employee.list table .writer,*/
    /*.employee.list table .hit,*/
    /*.employee.list table .attachment,*/
    /*.employee.list table .date{*/
    /*    line-height: 20px;*/
    /*    padding: 5px;*/
    /*    color: #999;*/
    /*    width: auto;*/
    /*}*/
}