html,body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
body{
    background-color: #F2F3F7;
    margin: 0;
    padding: 0;
}
.mainContainer{
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 10px 40px;
}
.main-div{
    background-color: white;
    width: 70%;
    margin-top: 1rem;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 60px;
    margin-bottom: 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.main-div input{
    border: none;
    background-color: #E8F0FE;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}
.main-div input:focus{
    outline: 3px solid lightblue;
}
.ReviewInvoice{
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    width: 20%;
}
.ReviewInvoice button{
    width: 100%;
    height: 40px;
    background-color: #0D6EFD;
    outline: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    margin-bottom: 10px;
}
.cont{
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid lightgray;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    height: 40px;
    margin-top: 10px;
}
.cont input{
    width: 85%;
    height: 75%;
    border: none;
    padding-left: 8px;
    outline: none;
}
.cont span{
    height: 100%;
    width: 20%;
    font-size: 20px;
}
.div_2{
    width:30%;
}
#date span{
    font-weight: bolder;
}
.flex_class{
    margin-top: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.billing{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 30px;
}
.BillTo{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 50vw;
}
.BillFrom{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 50vw;
}
.item{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.items{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 68vw;
    gap: 1rem;
}
hr{
    width: 68vw;
    border: none;
    background-color: lightgray;
    height: 1px;
}
.newHR{
    width: 400px;
    border: none;
    background-color: lightgray;
    height: 1px;
}
.data1{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 30%;
}
.data{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 65%;
}
#remove{
    background-color: red;
}
.input{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    gap: 1rem;
}
.input input{
    width: 15%;
}
.list{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 30%;
}
.input button{
    margin-top: 8px;
    padding: 8px 10px;
    background-color: #DC3545;
    outline: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
i{
    color: white;
}
#AddFields{
    width: 100px;
    height: 40px;
    background-color: #0D6EFD;
    outline: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
}
textarea{
    border: none;
    background-color: #E8F0FE;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    width: 97%;
    height: 150px;
    resize: vertical;
}
textarea:focus{
    outline: 3px solid lightblue;
}
#my_modal{
    width: 800px;
    height: auto;
    border: none;
    border-radius: 5px;
    padding: 20px;
}
#my_modal button{
    background-color: transparent;
    border: none;
}
#my_modal button i{
    color: black;
    font-size: 20px;
    cursor: pointer;
}
.close{
    display: flex;
    justify-content: flex-end;
}
/*  */
.Topband{
    background-color: #E8F0FE;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}
.Billdata{
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
.Billdata div{
    width: 30%;
}
table{
    width: 100%;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
#butDiv{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
#butDiv button{
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
}
#download{
    border: 1px solid #0D6EFD;
    color: #0D6EFD;
}
#sendInv{
    color: white;
}
#butDiv #download i{
    color: #0D6EFD;
    font-size: 15px;
}
#butDiv #sendInv i{
    color: white;
    font-size: 13px;
}
.Stotal,.SubT,.DiscD{
    font-weight: bolder;
}
.TotalB{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.spanList{
    display: flex;
    flex-direction: column;
}
.spanList div{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 10px;
}
.total{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.totalList{
    display: flex;
    flex-direction: column;
}
.TotalCls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10rem;
}
.cont select{
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    text-align: center;
}
#calculate{
    width: 150px;
    height: 40px;
    background-color: #0D6EFD;
    outline: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
}

/* Media Query */
@media (max-width:768px) {
    .mainContainer{
        display: flex;
        flex-direction: column;
        padding: 2px;
    }
    .main-div{
        width: 100vw;
    }
    .ReviewInvoice{
        width: 100%;
    }
    .item{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .items{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 68vw;
        gap: 2rem;
    }
    hr{
        width: 100%;
    }
    .data1{
        width: 100px;
    }
    .total{
        display: flex;
        flex-direction: column;
    }
    .ReviewInvoice{
        width: 100%;
    }
    .data1{
        width: 100%;
    }
    .list{
        width: 100%;
    }
    .data{
        width: 100%;
    }
    .input{
        width: 100%;
    }
    .input input{
        width: 30px;
    }
    .data input{
        width: 70px;
    }
}