.btn-icon {
    display: none;
}
@media screen and (max-width: 1900px) {
    .select-wrap {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .import-wrap {
        padding: 30px 20px;
    }
    .upload-wrap {
        padding: 9px 20px;
    }
    .btn-text {
        display: none;
    }
    .btn-icon {
        display: flex;
    }
    .tab-wrap {
        padding: 20px;
    }
    .export-wrap-form {
        position: relative;
    }
    .import-tab {
        width: 100%;
        position: relative;
    }
    #tabel-barang tbody::before, #tabel-barang-baru tbody::before {
        height: 0;
    }
    .dt-search #dt-search-0, .dt-search #dt-search-1 {
        display: none;
    }
    .dt-search {
        margin-bottom: 0;
    }
    div.dt-container div.dt-length { 
        display: none;
    }
    div.dt-container div.dt-info,
    div.dt-container div.dt-paging { 
        text-align: center; 
    }
    table tbody tr td {
        padding: 0 !important;
    }
    table.tabel-barang thead,
    table.tabel-barang-baru thead { 
        display: none; 
    }
    table.tabel-barang tbody,
    table.tabel-barang tr,
    table.tabel-barang td,
    table.tabel-barang-baru tbody,
    table.tabel-barang-baru tr,
    table.tabel-barang-baru td { 
        display: block; 
    }
    table.tabel-barang tbody tr {
        margin: 20px 0;
        padding: 20px 0 15px 0;
        background: #FFF;
        display: grid;
        grid-template-areas:
            "image title qty"
            "sku . shelf"
            "supplier . create_time";
        align-items: center;
        row-gap: 20px;
    }
    table.tabel-barang-baru tbody tr {
        margin: 20px 0;
        padding: 20px 0 15px 0;
        background: #FFF;
        display: grid;
        grid-template-areas:
            "sku . title"
            "input_date . listing_date"
            "modal . qty"
            "total_modal . total_sales";
        align-items: center;
        row-gap: 20px;
        border: 1px solid #D4D4D4;
    }
    table.tabel-barang tbody tr {
        grid-template-columns: 80px 1fr auto;
    }
    table.tabel-barang-baru tbody tr {
        grid-template-columns: 1fr auto;
    }
    table.tabel-barang tbody tr {
        border-bottom: 1px solid #D4D4D4;
        border-left: 1px solid #D4D4D4;
        border-right: 1px solid #D4D4D4;
        border-top: 1px solid #D4D4D4;
    }
    #tabel-barang-baru tbody tr.item-row {
        border-bottom: 1px solid #D4D4D4;
        border-left: 1px solid #D4D4D4;
        border-right: 1px solid #D4D4D4;
        border-top: 0;
    }
    table.tabel-barang tbody tr td:nth-child(1),
    table.tabel-barang-baru tbody tr td:nth-child(1) { 
        display: none; 
    }
    table.tabel-barang tbody tr td.img-item  { 
        grid-area: image;
        width: 80px;
        height: 60px;
        padding-left: 20px !important;
    }
    table.tabel-barang tbody tr td.img-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    table.tabel-barang-baru tbody tr td:nth-child(2) { 
        grid-area: sku;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    table.tabel-barang tbody tr td:nth-child(3) {
        grid-area: title;
        margin-left: 20px;
        font-size: 12px;
        text-align: left !important;
    }
    table.tabel-barang-baru tbody tr td:nth-child(3) {
        grid-column: span 2;
        grid-area: title;
        text-align: left !important;
        padding-right: 20px !important;
    }
    table.tabel-barang tbody tr td:nth-child(4) {
        grid-area: qty;
        text-align: right !important;
        padding-right: 40px !important;
    }
    table.tabel-barang-baru tbody tr td:nth-child(4) {
        grid-area: input_date;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    table.tabel-barang tbody tr td:nth-child(5) { 
        grid-area: sku;
        grid-column: span 2;
        padding-left: 20px !important;
        padding-top: 15px !important;
        border-top: 1px solid #D4D4D4;
        text-align: left !important;
    }
    table.tabel-barang-baru tbody tr td:nth-child(5) {
        grid-area: listing_date;
        text-align: right !important;
        padding-right: 20px !important;
    }
    table.tabel-barang tbody tr td:nth-child(6) {
        grid-area: shelf;
        text-align: right !important;
        padding-right: 30px !important;
        padding-top: 15px !important;
        border-top: 1px solid #D4D4D4;
    }
    table.tabel-barang-baru tbody tr td:nth-child(6) {
        grid-area: modal;
        text-align: left !important;
        padding-left: 20px !important;
    }
    table.tabel-barang tbody tr td:nth-child(7) {
        grid-area: supplier;
        grid-column: span 2;
        padding-right: 20px !important;
        text-align: right !important;
    }
    table.tabel-barang-baru tbody tr td:nth-child(7) {
        grid-area: qty;
        grid-column: span 2;
        padding-right: 20px !important;
        text-align: right !important;
    }
    table.tabel-barang tbody tr td:nth-child(8) {
        grid-area: create_time;
        text-align: right !important;
        padding-right: 30px !important;
        padding-top: 15px !important;
    }
    table.tabel-barang-baru tbody tr td:nth-child(8) {
        grid-area: total_modal;
        text-align: left !important;
        padding-left: 20px !important;
    }
    table.tabel-barang-baru tbody tr td:nth-child(9) {
        grid-area: total_sales;
        grid-column: span 2;
        text-align: right !important;
        padding-right: 20px !important;
    }
    table.tabel-barang tbody tr.group-row,
    table.tabel-barang-baru tbody tr.group-row {
        display: block;
        border: none;
        margin-top: 20px;
        margin-bottom: -20px;
        padding: 15px 20px;
        background-color: #F1F1F1;
        border-bottom: 0;
        border-left: 1px solid #D4D4D4;
        border-right: 1px solid #D4D4D4;
        border-top: 1px solid #D4D4D4;
    }
    table.tabel-barang tbody tr.group-row td,
    table.tabel-barang-baru tbody tr.group-row td { 
        display: block; 
    }
    #tabel-barang colgroup col:nth-child(1),
    #tabel-barang-baru colgroup col:nth-child(1) {
        width: 100% !important;
    }
    .table>:not(caption)>*>* {
        border-bottom: 0;
    }
    #tabel-barang-baru tbody .group-row td {
        border: 0 !important;
    }
    #tabel-barang-baru tbody .group-row .group-row-title {
        font-size: 12px;
        margin-left: 0;
    }
    #tabel-barang-baru tbody .group-row .group-row-title:first-child {
        margin-left: 0;
    }
    #tabel-barang-baru tbody .group-row td {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "gr-title-l gr-title-r"
            "gr-item-l gr-item-r";
        align-items: center;
        row-gap: 5px;
    }
    #tabel-barang-baru tbody .group-row .group-row-title:nth-of-type(1) { grid-area: gr-title-l; }
    #tabel-barang-baru tbody .group-row .group-row-title:nth-of-type(2) { grid-area: gr-title-r; }
    #tabel-barang-baru tbody .group-row .group-row-item:nth-of-type(1) { grid-area: gr-item-l; }
    #tabel-barang-baru tbody .group-row .group-row-item:nth-of-type(2) { grid-area: gr-item-r; }

    .dt-layout-start {
        margin: 0 !important;
        padding: 0 !important;
    }
    .dt-layout-end {
        margin: auto !important;
    }
}
@media screen and (max-width: 767px) {
    div.dt-container .row {
        --bs-gutter-y: 0;
    }
}
@media screen and (max-width: 580px) {
    .import-wrap,
    .select-wrap {
        flex-direction: column;
        gap: 15px;
    }
    .import-wrap-form,
    .filter-wrap {
        width: 100%;
    }
    .btn-page {
        width: 100%;
        text-align: center;
    }
    .filter-wrap {
        flex-wrap: wrap;
    }
}
@media screen and (max-width: 520px) {
    .import-header-wrap {
        flex-direction: column;
    }
    .upload-wrap {
        width: 100%;
    }
    .form-upload {
        width: 100%;
    }
    .import-tab ul li {
        width: 100%;
        justify-content: center;
    }
    .import-header-title-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .import-header-title-item-right {
        justify-content: space-between;
        width: 100%;
    }
}
@media screen and (max-width: 320px) {
    .import-wrap-form,
    .form-upload {
        flex-direction: column;
        gap: 10px;
    }
    .form-delete,
    .filter-wrap select {
        width: 100%;
    }
    .btn-import,
    .btn-delete {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 100%;
    }
    .btn-text {
        display: block;
    }
}