.table-wrapper{
    width: 100%;
    height: calc(100% - 82px);
    overflow: auto;
}

.table-parts {
    width: 100%;
    border-collapse: collapse;
}

.table-parts thead{
    background: white;
    position: sticky;
    top: 0;
}

.table-parts tbody{
}

/* Checkbox styling in parts table: grey box with white checkmark */
.table-parts input[type="checkbox"]{
    accent-color: #B3B3B3; /* fallback for browsers honoring accent-color */
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #B3B3B3;
    border-radius: 3px;
    background: #FFFFFF;
    cursor: pointer;
    vertical-align: middle;
    margin-bottom: 1px;
}

.table-parts input[type="checkbox"]:checked{
    background-color: #B3B3B3; /* box color */
    border-color: #B3B3B3;
    /* white checkmark as inline SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 3 7-7' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}

.table-parts input[type="checkbox"]:focus-visible{
    outline: 2px solid #CFCFCF;
    outline-offset: 2px;
}

.table-parts thead th {
    padding-top: 30px;
    padding-bottom: 10px;
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    line-height: 18px;
    color:#636363;
}

.table-parts tbody tr:hover{
   background: #FAFAFA;
}

.table-parts tbody td{
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    padding: 5px 0;
}

.table-parts tbody td:first-child{
    padding-left: 32px;
}
.table-parts tbody td:last-child{
    padding-right: 32px;
}

.table-parts thead th:nth-child(4),
.table-parts tbody td:nth-child(4){
    width: 120px;
    min-width: 120px;
    text-align: right;
}

.table-parts thead th:first-child{
    padding-left: 32px;
}

.table-parts thead th:last-child{
    padding-right: 32px;
}


.table-parts .center{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-parts .right{
    text-align: center;
}

.table-parts__count-control{
    display: flex;
}

.table-parts__control:hover {
    transform: scale(1.1);
}

.table-parts__count {
    font-weight: 400;
    font-size: 13px;
    width: 38px;
}

.table-right {
    display: flex;
    flex-wrap: wrap;
    height: calc(100% - 80px);
}

@media (max-width:1277px) {
     .table-right {
        height: calc(100% - 320px);
     } 
}

@media (max-width:709px) {
    .table-wrapper {
     height: auto;
    }
    .table-right {
        height: auto;
    }

    .table-parts tbody td:first-child{
    padding-left: 12px;
}
.table-parts tbody td:last-child{
    padding-right: 12px;
}

.table-parts thead th:first-child{
    padding-left: 12px;
}

.table-parts thead th:last-child{
    padding-right: 12px;
}
}

