@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background: url('background.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

table {
    border-spacing: 0;
    border-collapse: collapse;
}

.logo{
    font-size: 2em;
    color: #fff;
    user-select: none;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
}

.navigation a:hover::after {
    transform: scaleX(1);
}

.navigation .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

.navigation .btnLogin-popup:hover {
    background: #fff;
    color: #162938;
}

.navigation .btnPass-popup {
    width: 200px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

.navigation .btnPass-popup:hover {
    background: #fff;
    color: #162938;
}

.search-table {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    position: relative;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wrapper .form-box.login{
    transition: transform .18s ease;
    transform: translateX(0);
}

.wrapper.active .form-box.login{
    position: none;
    transform: translateX(-400px);
}

.wrapper .form-box.changepass{
    position: absolute;
    transition: none;
    transform: translateX(400px);
}

.wrapper.active .form-box.changepass{
    transition: transform .18s ease;
    transform: translateX(0);
}

.wrapper-warehouse {
    left: 25%;
    position: relative;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wrapper-category {
    left: 25%;
    position: relative;
    width: 400px;
    height: 360px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wrapper-popup {
    left: 30%;
    display: none;
    position: relative;
    width: 300px;
    height: 330px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wrapper-popup .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.wrapper-file .icon-download {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-right-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.wrapper-file {
    left: 25%;
    display: none;
    position: relative;
    width: 300px;
    height: 330px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wrapper-file .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.wrapper-warehouse .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.wrapper-category .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.wrapper-dropdown {
    margin-bottom: 20px;
    left: 50%;
    position: relative;
    width: fit-content;
    height: fit-content;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    padding: 20px;
    overflow: hidden;
    translate: -50%;
}

.wrapper-table {
    position: relative;
    width: fit-content;
    height: fit-content;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.wrapper-search {
    position: relative;
    margin-right: 30px;
    width: max-content;
    height: max-content;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    max-width: 400px;
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
}

.wrapper-warehouse .form-box {
    width: 100%;
    padding: 40px;
}

.wrapper-category .form-box {
    width: 100%;
    padding: 40px;
}

.wrapper-file .form-box {
    width: 100%;
    padding: 20px;
}

figcaption{
    text-align: center;
}

.buttons-container { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    margin: 10px;
    width:auto;
    overflow:hidden;
}

.form-box h2 {
    font-size: 2em;
    color: #162938;
    text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #162938;
    margin: 30px 0;

}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: 5px;
}

.input-box input {
    width: 100;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #162938;
    font-weight: 600;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #162938;
    line-height: 57px;
}

.btn {
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
}

.btn:hover {
    background: #fff;
    color: #162938;
}

.btn-add-submit {
    top: 100%;
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
}

.btn-btn {
    position: relative;
    width: 450px;
    height: 250px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    font-size: 50px;
}

.btn-btn:hover {
    background: #162938;
    color: #fff;
}

.btn-search {
    margin-bottom: 10px;
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
}

.btn-delete {
    color: #fff;
    display: inline-block;
    background: #162938;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.btn-submit {
    color: #fff;
    display: inline-block;
    background: #162938;
    text-decoration: none;
    padding: 10px;
    width: 20%;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
}

#btn-cancel {
    color: #fff;
    display: inline-block;
    background: #162938;
    text-decoration: none;
    padding: 10px;
    width: 20%;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
}

.btn-submit:hover {
    color: #161616;
    background: #fff;
}

.btn-crosscheck {
    color: #fff;
    display: inline-block;
    background: #162938;
    text-decoration: none;
    height: 100%;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 20px;
    margin-left: 5px;
    font-size: 20px;
}

.btn-crosscheck:hover {
    color: #161616;
    background: #fff;
}

.btn-export {
    width: 50%;
    color: #fff;
    display: inline-block;
    background: #162938;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.btn-export:hover {
    color: #161616;
    background: #fff;
}

.btn-add {
    width: 100%;
    color: #fff;
    display: inline-block;
    background: #162938;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.btn-add:hover {
    color: #161616;
    background: #fff;
}


.btn-delete:hover {
    color: #fff;
    background: #9b1f1f;
}

#btn-cancel:hover {
    color: #fff;
    background: #9b1f1f;
}

.btn-search:hover {
    background: #fff;
    color: #162938;
}

.btn-btn:hover {
    background: #162938;
    color: #fff;
}

.dynamic-table {
    border-collapse: collapse;
    max-width: 30px 0;
    font-size: 1em;
    min-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.dynamic-table thead tr {
    background-color: #162938;
    color: #fff;
    text-align: left;
    font-weight: bold;
}

.dynamic-table th,
.dynamic-table td {
    padding: 12px 15px;
    max-width: 300px;
} 

.dynamic-table tbody tr {
    border-bottom: 1px solid #162938;
}

.dynamic-table tbody  tr:nth-last-of-type{
    border-bottom: 2px solid #162938;
}

br {   
    content: "A" !important;
    display: block !important;
    margin-bottom: 1.5em !important;
}
.select-container {
    display: flex;
    justify-content: center;
    position: relative;
    min-width: max-content;
    height: 50px;
}

.select-container.container{
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: max-content;
    height: 50px;
}

.select-box {
    border: none;
    appearance: none;
    padding: 0 30px 0 15px;
    width: max-content;
    height: 100%;
    color: #fff;
    background-color: #162938;
    font-size: 20px;
    border-radius: 20px;
    padding-right: 20px;
    cursor: pointer;
}

.select-box:hover {
    color: #162938;
    background-color: #fff;
}


.dynamic-table_wrapper > div:nth-child(3) > div.dt-layout-cell.dt-layout-end > div > nav > button.dt-paging-button{
    padding: 5px 15px;
    background-color: transparent;
    font-size: 18px;
    color: #fff;
    border-radius: 10px;
    font-weight: 500;
}

.dynamic-table_wrapper > div:nth-child(3) > div.dt-layout-cell.dt-layout-end > div > nav > button.dt-paging-button:hover {
    background: #162938;
    color: #fff;
}

.dynamic-table_wrapper > div:nth-child(3) > div.dt-layout-cell.dt-layout-end > div > nav > button.dt-paging-button.current{
    background: #fff;
    color: #fff;
}

.dynamic-table_wrapper > div:nth-child(3) > div.dt-layout-cell.dt-layout-end > div > nav > button.dt-paging-button.disabled:hover {
    background-color: transparent;
}

.btn-page.active, .btn-page:hover {
    color: #fff;
    background: #162938;
}

.dt-search > label{
    color: #162938;
    font-size: 20px;
    font-weight: 500;
}

#dt-search-0{
    border:#162938;
    background: #fff;
    color: #162938;
    font-size: 15px;
    font-weight: 400;
    border-radius: 10px;
}

.btn-extend{
    border: none;
    appearance: none;
    padding: 0 20px 0 20px;
    height: 100%;
    color: #fff;
    background-color: #162938;
    font-size: 20px;
    border-radius: 20px;
    margin-left: 5px;
    cursor: pointer;
}

.btn-extend:hover{
    color: #162938;
    background-color: #fff;
}

.input-box-date {
    position: relative;
    width: 70%;
    height: 50px;
    margin: 30px 0;
    background: #162938;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
}

.input-box-date input:focus~label,
.input-box-date input:valid~label {
    top: 5px;
}

.form-box-date h2 {
    font-size: 2em;
    color: #162938;
    text-align: center;
}

.input-box-date input {
    background: #162938;
    width: 100;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
}

.select-date {
    position: relative;
    width: 100%;
    height: 50px;
    background: #162938;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.select-date input:focus~label,
.select-date input:valid~label {
    top: 5px;
}

.select-date input {
    background: #162938;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
}

.input-box-group {
    position: relative;
    width: 80%;
    height: 50px;
    border-bottom: 2px solid #162938;
    margin: 30px 0;
    margin-right: auto;
    margin-left: auto;
}

.input-box-group label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

.input-box-group input:focus~label,
.input-box-group input:valid~label {
    top: 5px;
}

.input-box-group input {
    width: 100;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #162938;
    font-weight: 600;
}

::-webkit-calendar-picker-indicator{
    background-color: #fff;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    color-scheme: #162938;
}

#toastBox {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.toast {
    width: 400px;
    height: 80px;
    background: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: moveleft 0.5s linear forwards;
    z-index: 1;
}

.btn-upload {
    padding: 5px 15px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    float: right;
    margin-left: 50px;
}

.btn-upload:hover {
    background: #fff;
    color: #162938;
}

label.upload{
    display: block;
    color: #162938;
    text-align: center;
    padding: 80px 60px;
    margin-bottom: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px dashed #162938;
    cursor: pointer;
}

label.upload:hover{
    color: #fff;
    border: 1px dashed #fff;
}

@keyframes moveleft{
    100%{
        transform: translateX(0);
    }
}

.toast.success ion-icon{
    margin: 0 20px;
    font-size: 35px;
    color: green;
}

.toast.error ion-icon {
    margin: 0 20px;
    font-size: 35px;
    color: red;
}

.toast.invalid ion-icon {
    margin: 0 20px;
    font-size: 35px;
    color: orange
}

.toast.success::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: green;
    animation: anim 3s linear forwards;
}

.toast.error::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    animation: anim 3s linear forwards;
    background: red;
}

.toast.invalid::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    animation: anim 3s linear forwards;
    background: orange
}

@keyframes anim {
    100% {
        width: 0;
    }
}

#scanner-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    justify-content:center;
    align-items:center;
    text-align: center;
    color: #162938;
    font-size: 25px;
    z-index:9999;
}

#wrapper-scanner{
    position: relative;
    width: 30%;
    height: 40%;
    background-color: #e5f0f6;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

#close-scanner{
    position:absolute;
    top:8px;
    right:15px;
    cursor:pointer;
    font-size:25px;
}

#scanner-container{
    position:relative;
    width:300px;
    height:250px;
    margin:auto;
}

#scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: red;
    top: 0;
    left: 0;
    animation: scanAnimation 2s linear infinite;
    box-shadow: 0 0 8px red;
    z-index: 10;
    display: none;
}

@keyframes scanAnimation {
    0% { top: 0; }
    50% { top: 90%; }
    100% { top: 0; }
}

#reader {
    width: 100%;
    max-width: 500px;   /* optional */
    margin: auto;
    position: relative;
}

#reader video {
    width: 100% !important;
    height: auto !important;
    display: block;
}
#scanner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scanner-btn {
    position: absolute;
    right: 0;           
    top: 0;
    height: 100%;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #162938;
}

.scanner-btn ion-icon {
    font-size: 22px;
}

.hidden {
    display: none;
}
.filters {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

@media (max-width: 950px) {
    body{
        padding: 10px 20px;
        margin-top: 150px;
        flex-direction: column;
    }
    .btn-btn{
        width: 350px;
        height: 150px;
        font-size: 30px;
    }
    .search-table{
        flex-direction: column;
        max-width: 350px;
    }
    .wrapper-search{
        justify-content: none;
        align-items: none;
        left: 4%;
        margin-bottom: 10px;
        font-size: 15px;
        max-width: 350px;
    }

    .dynamic-table{
        min-width: 300px;
        font-size: 10px;
    }
    .wrapper-dropdown{
        left: 50%;
        height: 100%;
        flex-direction: column;
    }
    .select-container{
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 250px;
    }
    .filters {
        display: flex;
        flex-direction: column;   /* stack selects */
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .select-box {
        width: 100%;
        max-width: 300px;
        height: 40px;
    }
    .btn-crosscheck{
        margin-top: 5px;
        padding-top: 0px;
        padding-left: 20px;
        padding-right: 20px;
        height: 40px;
    }
    .btn-extend {
        margin-top: 5px;
        padding-top: 0px;
        padding-left: 20px;
        padding-right: 20px;
        height: 40px;
    }
    header {
        padding: 20px 50px;
        background: #162938;
        font-size: 12px;
        border-radius: 20px;
        align-items: center;
    }
    .wrapper-popup{
        left: 0%;
    }

    .wrapper-warehouse{
        left: 0%;
    }

    .wrapper-category {
        left: 0%;
    }

    .btn-submit{
        margin-left: 10px;
        font-size: 15px;
        width: 30%;
    }

    #btn-cancel{
        margin-left: 10px;
        font-size: 15px;
        width: 30%;
    }
    .toast{
        width: 200px;
    }
}
@media(max-width: 1150px){
    #wrapper-scanner{
        width: 300px;
    }
}