body {
    font-family: Poppins;
}
p,
h5,
form {
    margin: 0;
}
h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: #000000;
}
.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}
.tab-content {
    position: relative;
}
.import-wrap {
    display: flex;
    flex-direction: column;
    padding: 40px 100px 30px 100px;
    border-bottom: 1px solid #D4D4D4;
}
.import-header-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}
.import-header-title-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.custom-header-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 0 12px;
    position: relative;
}
.custom-header-title::before {
    position: absolute;
    content: '';
    left: -12px;
    top: 3px;
    height: 80%;
    width: 5px;
    background-color: #4934B2;
}
.import-header-title-item-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}
.custom-header-datetime {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #000000;
}
.import-wrap-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.import-wrap-form-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.import-wrap form {
    margin: 0;
}
.export-wrap-form {
    position: absolute;
    top: 8px;
    z-index: 3;
}
.form-upload {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 0;
}
.upload-wrap {
    border: 1px dashed #4934B2;
    border-radius: 8px;
    background-color: #F4F2FF;
    padding: 8px 20px;
    cursor: pointer;
    position: relative;
    width: 220px;
}
.upload-wrap .upload-text,
.upload-wrap .upload-text-2 {
    color: #4934B2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.upload-wrap .upload-text p,
.upload-wrap .upload-text-2 p {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}
.selected-file-name-modal {
    font-size: 16px;
    word-break: break-all;
}
.selected-file-remove-modal {
    background:#FDECEC;
    color:#C0392B;
    border:0;
    border-radius:8px;
    padding:4px 8px;
    cursor:pointer;
    font-size: 16px;
}
#selected-file-modal {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
}
.upload-wrap .upload-icon {
    width: 20px;
    height: 20px;
    background-color: #4934B2;
    border-radius: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.upload-wrap .upload-input,
.import-wrapper .upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
.user-upload-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.user-upload-select {
    cursor: pointer;
    border-radius: 8px;
    background-color: #E5E5E5;
    color: #000000;
    padding: 8px 40px 8px 20px;
    border: 0;
    outline: none;
    appearance: none;
    background-image: url('../../assets/images/arrow-down.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.btn-import, .btn-delete, .btn-page {
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 1.4;
    border: 0;
    text-decoration: none;
}
.btn-import {
    background-color: #4934B2;
    color: #FFFFFF; 
}
.btn-delete {
    background-color: #E5E5E5;
    color: #8F8F8F;
}
.btn-page {
    background-color: #D6D0FA;
    color: #000000;
    text-decoration: none;
}
.tab-wrap {
    padding: 40px 100px 100px;
    margin: 0 auto;
    max-width: 1925px;
    display: flex;
    flex-direction: column;
}
.card-wrap {
    padding: 40px 100px 100px;
    margin: 0 auto;
    max-width: 1925px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.select-wrap {
    position: absolute;
    top: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 3;
    width: 81.5%;
}
.filter-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.filter-wrap select {
    cursor: pointer;
    border-radius: 8px;
    background-color: #E5E5E5;
    color: #000000;
    padding: 8px 30px 8px 24px;
    border: 0;
    appearance: none;
    background-image: url('../../assets/images/arrow-down.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px 20px;
    font-size: 14px;
    font-weight: 500;
}
.import-tab {
    padding: 40px 100px 0 100px;
}
.import-tab ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.import-tab ul li {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E9E9E9;
    padding: 8px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-family: Poppins;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #000000;
    transition: all 0.3s ease-in-out;
}
.import-tab ul li:hover, .import-tab ul li.active {
    background-color: #D6D0FA;
}
.card {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}
.selected-file {
    display: none;
    z-index: 10;
    position: relative;
}
.selected-file-name,
.selected-file-name-2 {
    font-size: 12px;
    word-break: break-all;
}
.selected-file-remove,
.selected-file-remove-2 {
    background:#FDECEC;
    color:#C0392B;
    border:0;
    border-radius:8px;
    padding:4px 8px;
    cursor:pointer;
    font-size: 12px;
}
#selected-file-modal {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
}
.icon-invert-color {
    filter: invert(1);
}

/* custom loader */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}
.loading-overlay.hidden {
    display: none;
}
.loader {
    width: 48px;
    height: 48px;
    display: block;
    margin: 15px auto;
    position: relative;
    color: #FFF;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: scale(0.5) translate(0, 0);
    background-color: #4934B2;
    border-radius: 50%;
    animation: animloader 1s infinite ease-in-out;
}
.loader::before {
    background-color: #D6D0FA;
    transform: scale(0.5) translate(-48px, -48px);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 
@keyframes animloader {
    50% {
        transform: scale(1) translate(-50%, -50%);
    }
}

/* datatable custom style */
table {
    border-collapse: collapse;
    border-spacing: 20px;
}
table thead tr th {
    background-color: #F4F1FF !important;
}
table thead tr th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
table thead tr th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
table thead tr th .dt-column-header .dt-column-title {
    color: #000000;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
}
table tbody tr:nth-child(odd) td {
    background-color: #FFFFFF !important;
}
table tbody tr:nth-child(even) td {
    background-color: #F8F8F8 !important;
}
table tbody tr:first-child {
    border-top-style: hidden;
}
table tbody tr td {
    padding: 20px 5px !important;
    text-align: left;
    vertical-align: middle;
    font-weight: 500;
    font-size: 14px;
    line-height: 1
}
table tbody tr td a {
    color: #4934B2;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}
.dt-type-numeric.sorting_1 {
    text-align: center !important;
}
.dt-type-numeric,
.dt-type-date {
    text-align: left !important;
}
#tabel-barang tbody::before,
#tabel-barang-baru-2 tbody::before {
    content: "";
    display: block;
    height: 20px;
}
#tabel-barang_info.dt-info {
    display: none;
}
.dt-layout-table {
    margin-top: 0 !important;
}
.dt-search {
    margin-bottom: 40px;
}
.dt-search label {
    display: none;
}
.dt-search #dt-search-0,
.dt-search #dt-search-1 {
    background-color: #F4F4F4;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    width: 300px;
    padding: 8px 8px 8px 45px;
    color: #000000;
    background-image: url('../images/search.png');
    background-repeat: no-repeat;
    background-position: 18px center;
}
.dt-search #dt-search-0::placeholder,
.dt-search #dt-search-1::placeholder {
    color: #8F8F8F;
}
.dt-paging,
.dt-info,
.dt-length {
    margin-top: 22px !important;
}
.dt-paging .pagination {
    gap: 5px;
}
.dt-paging .pagination .dt-paging-button .page-link,
.dt-paging .pagination .dt-paging-button .page-link.previous,
.dt-paging .pagination .dt-paging-button .page-link.next {
    background-color: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 5px;
    color: #000000;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
}
.dt-paging .pagination .dt-paging-button .page-link.previous,
.dt-paging .pagination .dt-paging-button .page-link.next {
    padding: 6px 10.4px;
}
.dt-length #dt-length-0,
.dt-length #dt-length-1 {
    padding: 2px 22px 2px 9px ;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 4px;
    border: 1px solid #D9D9D9;
    background-position: right 6px center;
    margin-right: 9px;
}
.dt-length label,
.dt-info {
    color: #8F8F8F;
    font-weight: 500 !important;
    font-size: 12px;
    line-height: 1;
}
#tabel-barang-baru-2 tbody .group-row td:first-child {
    background-color: #F4F4F4 !important;
}
#tabel-barang-baru-2 tbody .item-row td {
    text-align: center;
}
#tabel-barang-baru-2 tbody .group-row .group-row-title {
    color: #8F8F8F;
    margin-left: 48px;
}
#tabel-barang-baru-2 tbody .group-row .group-row-title:first-child {
    margin-left: 20px;
}
.img-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
#tabel-barang-baru-2 tbody .group-row td {
    border-top: 1px solid #D4D4D4;
    border-bottom: 1px solid #D4D4D4;
}
#tabel-barang-baru-2 tbody .group-row:first-child {
    border-top-style: solid;
}
table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
    box-shadow: unset;
}
/* table tbody tr.group-row:first-child {
    border-top: none;
} */
/* end custom table */

/* modal style */
.modal-dialog {
    max-width: min-content;
}
.modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.modal-close {
    background-color: #D6D0FA;
    border-radius: 8px;
    border: 0;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
}
.modal-content {
    height: auto;
    border: 0;
}
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.filter-select-year {
    position: relative;
}
.bulan-wrap {
    overflow: auto;
}
.table-bulan {
    width: 100%;
}
.table-bulan thead tr th {
    padding: 7px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}
.table-bulan thead tr th:first-child {
    min-width: 180px;
}
.table-bulan tbody tr {
    border-bottom: 1px solid #D4D4D4;
}
.table-bulan tbody tr td {
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    border-left: 1px solid #D4D4D4;
    border-right: 1px solid #D4D4D4;
}
.table-bulan tbody tr td:first-child {
    font-size: 16px;
    font-weight: 600;
    border-left: 0;
}
.table-bulan tbody tr td:last-child {
    border-right: 0;
}

/* modal import style */
.form-upload-import {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}
.import-wrapper {
    border: 1px dashed #4934B2;
    padding: 20px;
    width: 400px;
    height: 200px;
    border-radius: 8px;
    position: relative;
}
.import-wrapper .upload-label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    height: 100%;
}
.import-wrapper .upload-label span {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #000000;
}
.import-warning p {
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    color: #C0392B;
}

/* modal view excel */
.modal-content-view-excel {
    max-width: 1600px;
    max-height: 800px;
}
.modal-body-view-excel {
    overflow: auto;
}

/* modal tahunan */
.table-bulan.tabel-tahunan-modal thead tr th {
    padding: 7px 25px;
}

/* sidebar menu style */
.sidebar-menu-wrapper {
    position: fixed;
    right: 0;
    top: 0;
    width: 350px;
    height: 100%;
    background-color: #F4F4F4;
    z-index: 1000;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
}
.sidebar-menu-wrapper.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}
.sidebar-menu-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
}
.sidebar-menu-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}
.btn-open-sidebar-menu {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
}
.btn-close-sidebar-menu {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
}
.btn-open-sidebar-menu img,
.btn-close-sidebar-menu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu-item {
    padding: 10px 15px;
    border-bottom: 1px solid #D4D4D4;
}
.sidebar-menu-item:last-child {
    border-bottom: 0;
}
.sidebar-menu-link {
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.sidebar-menu-link:hover {
    color: #4934B2;
}
