body{
    overflow: auto;
}

body::-webkit-scrollbar {
  width: 1px;
}

*{
    box-sizing: border-box;
}

.screen{
    display: none;
    width: 100%;
}

body[havejob="0"] .screen[havejob="0"]{
    display: inline-block;
}
body[havejob="0"] .screen[havejob="0"] div{
    text-align: center;
    margin: 1em;
    padding-bottom: 7em;
}
body[havejob="1"][program="1"] .screen[havejob="1"][program="1"],
body[havejob="1"][program="5"] .screen[havejob="1"][program="5"]
{
    display: flex;
}

body[havejob="1"] .home_menu{
    display:none;
}

#division{
    text-align: center;
    font-size: 2.5em;
    position: absolute;
    top: 0px;
    width: 100%;
}

.user{
    position: relative;
    display: inline-block;
    width: calc(50% - 2.5vw);
    margin-top: 3em;
}

.videoControls{
    position: absolute;
    display: inline-block;
    width: 4vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 3em;
}

.videoControls button{
    width: 2.5vw;
    min-width: 2.5vw;
    height: 2.5vw;
    min-height: 2.5vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-repeat: no-repeat no-repeat;
    background-position: center center;
}

.videoControls button img{
    width: 80%;
    height: 80%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0!important;
}

button.play{
    
}

button.pause{
    
}

body[videoPlaying="0"] button.pause{display: none;}
body:not([videoPlaying="0"]) button.play{display: none;}

.user[corner="r"]{left:0; text-align: left;}
.user[corner="b"]{
    text-align: right; 
    margin-left: 5vw;/* calc(5vw - (100vw - 100%));*/
}

.user > ddiv{
    text-align: center;
}
body[blueExists="0"] .user[corner="b"]{
    display:none;
}

.user iframe{
    width: 100%;
    /*height: 27vw;*/
    aspect-ratio: 16/9;
}

.pattern{
    padding: 1vw 0;
}

table[activetable][table_name^="POINTS"]{
    width: 100%;
    max-width: 100%;
}
table[activetable][table_name^="POINTS"] td{
    /*text-overflow: ellipsis;*/
    overflow: hidden;
}

.pages.noprint{display:none;}

.table_container{width: 100%; margin-left: 0!important;}

table[activetable][table_name^="POINTS"] td[fieldname] {max-width: 2em; min-width: 2em;}
table[activetable][table_name^="POINTS"] td[fieldname="MOVE"]{max-width: 2em; min-width: 2em;}
table[activetable][table_name^="POINTS"] td[fieldname="SHORT_DESC"]{max-width: calc(47vw - 14em); text-overflow: ellipsis; overflow:hidden;}

.additional_penalties{
    width: 100%;
    text-align: center;
    margin-top: 0.3em;
    font-size: 2em;
}

.patternControls{
    width: 100%;
    display: table;
}

.patternControls > div{
    display: table-row;
    height: 5em;
    width: 100%;
}
.patternControls > div > div{
    display: table-cell;
    vertical-align: middle;
    padding: 0.3em;
}

.patternControls > div >div:nth-child(1){
    width: 9em;
    text-align: left;
}

.patternControls > div.remarks >div:nth-child(1){
    width: 18em;
    position: absolute;
    margin-top:1em
}

.patternControls > div >div:nth-child(2){
    width: 9em;
    position: relative;
}


.patternControls > div >div:nth-child(3){
    width: calc(100% - 18em);
    position: relative;
    padding-left: 1em;
}

.patternControls > div > div:nth-child(2) div.incButton{
    width: 2em;
    height: 2em;
    min-width: 2em;
    min-height: 2em;
    margin: 0.2em;
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    border: 2px solid grey;
    border-radius: 5px;
    text-align:center;
    font-size: 1em;
    padding-top: 0.15em;
    user-select: none;
}

.patternControls > div > div:nth-child(2) div.incButton[inc="1"]{
    right:0;
}
.patternControls > div > div:nth-child(2) div.incButton[inc="-1"]{
    left: 0;
}
.patternControls > div > div:nth-child(2) .points{
    font-size: 2em;
    width: 1.5em;
    height: auto;
    text-align: center;
    color: white;
    position: absolute;
    display: inline-block;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
}

.patternControls > div >div:nth-child(3) textarea{
    left:1em;
    height: 4em;
    width: calc(100% - 1em);
    margin:0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    resize: none;
}

.user[corner="b"] .send{
    display: none; 
    height: 5em;
    position: absolute;
    bottom: -6em;
    right: calc(100% + 2.5vw);
    transform: translateX(50%);
}

.user[corner="r"] .send{
    height: 5em;
    position: absolute;
    bottom: -6em;
    left: calc(100% + 2.5vw);
    transform: translateX(-50%);
}

.user[corner="r"] .send button{
/*    left: 100%;
    transform: translateX(-50%);
    position: absolute;*/
}

tr[fieldName="txt"]{
    width: 350px;
    display:block;
}
tr[fieldName="txt"] td:last-child{
    display: none;
}

tr[fieldName="txt"] td:first-child{
    width: calc(100% - 20px);
    height: 100%;
    display:block;
    text-align: center;
}


.toast{
    position: fixed;
    display: inline-block;
    transform: translate(-50%,-50%);
    left: 50vw;
    top: 50vh;
    font-size: 50px;
    text-shadow: 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white;

}

#table_POINTS_5_R td[fieldname="ACTION"] .inViewCheckbox{
    pointer-events: none;
}

.screen[program="5"] .patternSelect{ display: none;}

#table_POINTS_5_R{
    position: absolute;
    right: -40vw;
    top: 0;
    width: 35vw;
}

.screen[program="5"] .user[corner="r"]{
    width: 60vw;
}

.screen[program="5"] .send{
    left: 82.5vw;
    bottom: 0;
}

#table_POINTS_5_R thead{ display: none;}

#table_POINTS_5_R tbody tr{
    background-color: #770000;
    height: 4vh;
    font-size: 1.7vh;
    margin-bottom: 1vw;
    cursor: pointer;
}

#table_POINTS_5_R tbody tr[field_action="1"]{
    background-color: #007700;
}
#table_POINTS_5_R tbody td{
    background-color: inherit !important;
    text-align: center;
    padding-top: 0.7vh;
}

#table_POINTS_5_R td[fieldname="ACTION"] {
    display:none;
}

#table_POINTS_5_R td[fieldname="TIMING"],
#table_POINTS_5_R td[fieldname="MOVE"] 
{
    width:15%;
}
#table_POINTS_5_R td[fieldname="SHORT_DESC"] {
    width: 70%;
    
}