.div1 {
    width:80%;
    height: 600px;
    overflow: scroll;
    border: 1px solid #777777;
}

.div1 table {
    border-spacing: 0;
}

.div1 th {
    border-left: none;
    border-right: 1px solid #bbbbbb;
    padding: 5px;
    width: 80px;
    min-width: 80px;
    position: sticky;
    top: 0;
    background: #7ebc12;
    color: #e0e0e0;
    font-weight: normal;
}

.div1 td {
    border-left: none;
    border-right: 1px solid #bbbbbb;
    border-bottom: 1px solid #bbbbbb;
    padding: 5px;
    width: 80px;
    min-width: 80px;
}

.div1 th:nth-child(2),
.div1 td:nth-child(2) {
    position: sticky;
    right: 0;
    width: 160px;
    min-width: 150px;
}

.div1 th:nth-child(3),
.div1 td:nth-child(3) {
    position: sticky;
    /* 1st cell left/right padding + 1st cell width + 1st cell left/right border width */
    /* 0 + 5 + 150 + 5 + 1 */
    right: 150px;
    width: 160px;
    min-width: 150px;
}

.div1 td:nth-child(2),
.div1 td:nth-child(3) {
    background: #ffebb5;
}

.div1 th:nth-child(2),
.div1 th:nth-child(3) {
    z-index: 2;
}
.div2 {
   
    overflow: no-display;
    
}
/**************************************************************************************************/
.div01 {
    width:80%;
    
    
    border: 1px solid #777777;
}

.div01 table {
    border-spacing: 0;
}

.div01 th {
    border-left: none;
    border-right: 1px solid #bbbbbb;
    padding: 5px;
    width: 80px;
    min-width: 80px;
    position: static;
    top: 0;
    background: #7ebc12;
    color: #e0e0e0;
    font-weight: normal;
}

.div01 td {
    border-left: none;
    border-right: 1px solid #bbbbbb;
    border-bottom: 1px solid #bbbbbb;
    padding: 5px;
    width: 80px;
    min-width: 80px;
}

.div01 th:nth-child(2),
.div01 td:nth-child(2) {
    position: static;
    right: 0;
    width: 160px;
    min-width: 150px;
}

.div01 th:nth-child(2) {
    position: static;
    /* 1st cell left/right padding + 1st cell width + 1st cell left/right border width */
    /* 0 + 5 + 150 + 5 + 1 */
    right: 150px;
    width: 160px;
    min-width: 150px;
}

.div01 td:nth-child(2) {
    background: #ffebb5;
}

.div01 th:nth-child(2) {
    z-index: 2;
}