* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.new-btn{
    padding: 10px 35px;
    font-size: 16px;
    border: 1px solid #000;
    margin-top: 32px;
    cursor: pointer;
}

.details-sheet {
    display: flex;
    width: 100%;
    padding: 10px;
}

.details-sheet table {
    border-collapse: collapse;
}

.details-sheet th,
.details-sheet td {
    padding: 5px;
    text-align: left;
    border: 1px solid #000000;
    width: fit-content;
    white-space: nowrap;
}

.details-sheet th {
    background-color: #f2f2f2;
    pointer-events: none;
    text-align: center;
    font-weight: bold;
}

.details-sheet .single-product {
    padding: 15px;
    border: 1px solid black;
}

.details-sheet .single-product .heading {
    margin: 0;
    margin-bottom: 5px;
    text-align: center;
}

.details-sheet .code {
    padding: 5px;
    display: flex;
    width: 100%;
}

.details-sheet .code table ,
.details-sheet .search-product .search-code table{
    width: 100%;
    border: 1px solid #000000;
}
.details-sheet .search-product:has(.remove-row) .search-code table{
    width: calc(100% - 37px);
}

.details-sheet .code table td ,
.details-sheet .search-product table td{
    width: 50%;
    font-size: 20px;
    font-weight: 600;
}
.details-sheet .search-product .search-code table td input{
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    text-align: start;
}

.details-sheet .costing,
.details-sheet .selling ,
.details-sheet .search-product{
    width: fit-content;
    margin-top: 50px;
    position: relative;
}

.details-sheet .costing td:nth-child(3),
.details-sheet .costing th:last-child {
    background-color: rgba(255, 255, 0, 0.308);
}

.details-sheet .selling td:nth-child(4),
.details-sheet .selling th:nth-child(4),
.details-sheet .selling td:nth-child(5),
.details-sheet .selling th:nth-child(5),
.details-sheet .selling td:nth-child(8),
.details-sheet .selling th:nth-child(8),
.details-sheet .selling td:nth-child(9),
.details-sheet .selling th:nth-child(9) {
    background-color: rgba(255, 255, 0, 0.308);
}

.add-row{
    position: absolute;
    right: 0px;
    top: 0;
    width: 25px;
    height: 25px;
    border: 1px solid #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.costing:has(.remove-row) .add-row,
.selling:has(.remove-row) .add-row,
.search-product:has(.remove-row) .add-row{
    right: 40px;
}

.add-row img{
    width: 15px;
    height: 15px;
    display: block;
}

.details-sheet .sheet tr td {
    cursor: pointer;
    white-space: nowrap !important;
}

table input {
    font-size: 16px;
    outline: none;
    border: none;
    background: transparent;
    width: 70px;
    max-width: 100%;
    min-width: 50px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}

.selected-row {
    background-color: lightgreen;
}

.selected-row td {
    color: #000000 !important;
}

.costing tr,
.selling tr,
.search-product tr{
    position: relative;
}

td:has(.remove-row) {
    border: none;
}

.remove-row {
    width: 25px;
    height: 25px;
    border: 1px solid #000000;
    display: flex;
    justify-content: center;
    border-radius: 5px;
}

.remove-row:after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-image: url(./image/minus.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 15px;
    height: 15px;
    cursor: pointer;
    z-index: 99999;
}
.error-message {
    font-size: 18px;
    margin: 10px 0 0px;
    position: absolute;
    bottom: 0;
    background: #ffffff;
    width: 100%;
    border: 1px solid #000000;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}


