.card-layout {
    width: 100%;
    height: 68vh !important;
}

@media screen and (height: 1080px) {
    .card-layout {
        height: 72.5vh !important;
    }
}

.main-layout{
    display: grid;
    grid-template-areas:
    "robot-3 robot-3 robot-2 robot-2 robot-1 robot-1"
    "ai-robot-3 rb-robot-3 ai-robot-2 rb-robot-2 ai-robot-1 rb-robot-1";
    grid-template-columns: 17.4% 15% 17.4% 15% 17.4% 15%;
    grid-template-rows: 27rem 12rem;
    grid-gap: 0.5rem;
}

@media screen and (height: 1080px) {
    .main-layout{
        grid-template-rows: 33rem 15.3rem;
    }
}

.robot-3{
    grid-area: robot-3;
    background: #515151;
    border: 2px solid #000000;
}

.robot-2{
    grid-area: robot-2;
    background: #515151;
    border: 2px solid #000000;
}

.robot-1{
    grid-area: robot-1;
    background: #515151;
    border: 2px solid #000000;
}

.ai-robot-3{
    grid-area: ai-robot-3;
    background: #515151;
    border: 2px solid #000000;
}

.rb-robot-3{
    grid-area: rb-robot-3;
    background: #515151;
    border: 2px solid #000000;
}

.ai-robot-2{
    grid-area: ai-robot-2;
    background: #515151;
    border: 2px solid #000000;
}

.rb-robot-2{
    grid-area: rb-robot-2;
    background: #515151;
    border: 2px solid #000000;
}

.ai-robot-1{
    grid-area: ai-robot-1;
    background: #515151;
    border: 2px solid #000000;
}

.rb-robot-1{
    grid-area: rb-robot-1;
    background: #515151;
    border: 2px solid #000000;
}

.header-card{
    width: 100%;
    padding: 0.2rem;
    font-size: 1.2rem;
    background: #B7B7B7;
    color: #000000;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #000000 !important;
}

.body-card{
    width: 100%;
    height: 27.3rem;
    padding: 0.5rem;
}

@media screen and (height: 1080px) {
    .body-card{
        height: 33.3rem;
    }
}

.icon-robot{
    width: 100%;
    height: 5.7rem;
    position: relative;
}

@media screen and (height: 1080px) {
    .icon-robot{
        height: 11.5rem;
    }
}

.table-1{
    width: 100%;
    margin-bottom: 0.5rem;
}

.table-1 th,
.table-1 td{
    padding: 0.4rem 0rem;
}

.table-1 thead,
.table-1 thead tr th{
    border: 1px solid #000000;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #303030;
    background: #7AC4E3;
}

.table-1 tbody,
.table-1 tbody tr td{
    border: 1px solid #000000;
    text-align: center;
    font-size: 0.8rem;
    color: #303030;
    background: #B6D1DC;
}

.table-1 tbody .pattern td{
    font-size: 0.6rem;
}

.card-table{
    display: grid;
    grid-template-areas:
    "m-tb1 m-tb2";
    grid-template-columns: 70% 28%;
    grid-template-rows: auto;
    grid-gap: 0.5rem;
}

.m-tb1{
    grid-area: m-tb1;
}

.m-tb2{
    grid-area: m-tb2;
}

.table-2{
    width: 100%;
    margin-bottom: 0.2rem;
}

.table-2 th{
    padding: 7px 0rem;
}

.table-2 td{
    padding: 0.4rem 0rem;
}

.table-2 thead,
.table-2 thead tr th{
    border: 1px solid #000000;
    text-align: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #303030;
    background: #7AC4E3;
}

.table-2 tbody,
.table-2 tbody tr td{
    border: 1px solid #000000;
    text-align: center;
    font-size: 0.8rem;
    color: #303030;
    background: #B6D1DC;
}

.table-3{
    width: 100%;
    margin-bottom: 0rem;
}

.table-3 th,
.table-3 td{
    padding: 0.4rem 0rem;
}

.table-3 thead,
.table-3 thead tr th{
    border: 1px solid #303030;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #303030;
    background: #6D6D6D;
}

.table-3 tbody,
.table-3 tbody tr td{
    border: 1px solid #303030;
    text-align: center;
    font-size: 0.8rem;
    color: #303030;
    background: #B6B6B6;
}

.header-bawah{
    width: 100%;
    background: #8E8E8E;
    border-bottom: 2px solid #000000;
    padding: 0.2rem;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.body-bawah{
    width: 100%;
    height: 10rem;
    overflow-y: auto;
}

@media screen and (height: 1080px) {
    .body-bawah{
        height: 13.5rem;
    }
}

.table-alarm-ind,
.table-alarm-bell{
    width: 100%;
}

table.table-alarm-ind div{
    width: 100%;
    color: #FFFFFF;
    text-align: center;
    font-weight: bold;
}

.table-alarm-ind tr td{
    font-size: 0.8rem;
    padding: 0.2rem;
    color: #FFFFFF;
}

.table-alarm-ind tr td:nth-child(4){
    color: #BABABA;
}

.table-alarm-bell tr td{
    font-size: 0.8rem;
    padding: 0.2rem;
    color: #FFFFFF;
    border: 1px solid #000000;
}

.table-alarm-bell tr[data-status=st1] td:nth-child(3){
    background: #CC7E7E;
    font-weight: bold;
    color: #000000;
    font-style: italic;
    text-align: center;
}

.table-alarm-bell tr[data-status=st1] td:nth-child(3)::before{
    content: 'Pass';
}

.table-alarm-bell tr td:nth-child(3),
.table-alarm-bell tr[data-status=st0] td:nth-child(3){
    background: #7EABCC;
    font-weight: bold;
    color: #000000;
    font-style: italic;
    text-align: center;
}

.table-alarm-bell tr td:nth-child(3)::before,
.table-alarm-bell tr[data-status=st0] td:nth-child(3)::before{
    content: 'Gear';
}

.body-bawah::-webkit-scrollbar{
    width: 0.6rem;
}

/* Track */
.body-bawah::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #818181; 
    border-radius: 10px;
}
   
/* Handle */
.body-bawah::-webkit-scrollbar-thumb {
    background: #464646; 
    border-radius: 10px;
    border: 1px solid #000000;
}
  
/* Handle on hover */
.body-bawah::-webkit-scrollbar-thumb:hover {
    background: #464646; 
}

.labeling{
    position: absolute;
    width: 9rem;
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
    color: #000000;
    background: #B7B7B7;
    border: 1px solid #000000;
    padding: 0rem 0.2rem;
}

.labeling:nth-child(1){
    left: 0rem;
    top: 0.5rem;
}

.labeling:nth-child(2){
    left: 0rem;
    top: 2.3rem;
}

.labeling:nth-child(3){
    left: 0rem;
    top: 4rem;
}

.labeling:nth-child(4){
    right: 0rem;
    top: 0.5rem;
}

.labeling:nth-child(5){
    right: 0rem;
    top: 2.3rem;
}

.label-icon{
    position: absolute;
    top: 0rem;
    left: 12rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #828282;
    border: 2px solid #000000;
    width: 5rem;
    height: 5.5rem;
}

.label-icon i{
    content: url('../tools/robot.svg');
    width: 60%;
}

@media screen and (height: 1080px) {
    .labeling:nth-child(1),
    .labeling:nth-child(4){
        top: 2rem;
    }
    
    .labeling:nth-child(2),
    .labeling:nth-child(5){
        top: 4rem;
    }
    
    .labeling:nth-child(3){
        top: 6rem;
    }

    .label-icon{
        top: 2rem;
    }
    
}

.btn-drpdown{
    border: 1px solid #212121;
    border-radius: 0rem;
    color: #FFFFFF;
    background: #3C3C3C;
    font-size: 0.5rem;
    padding: 0rem 0.5rem;
}

@media screen and (height: 720px){
    .btn-drpdown{
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .d-flex.justify-content-end.p-2{
        padding: 0rem 0.3rem !important;
    }

    .d-flex.justify-content-start.p-2{
        padding: 0rem 0.3rem !important;
    }
}

.btn-drpdown:hover,
.btn-drpdown.show{
    background: #FFFFFF !important;
    color: #3C3C3C !important;
}

.but-drop{
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  margin-bottom: 0.5rem;
}

.but-drop:hover{
    background: #3C3C3C;
    color: #FFFFFF;
}

/* date-picker costum */
.datepicker-top-left::before, 
.datepicker-top-left::after, 
.datepicker-top-right::before, 
.datepicker-top-right::after{
    display: none;
}

.datepicker-top-left,
.datepicker-top-right{
    border-top-color: transparent !important;
}

.datepicker-dropdown {
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    -webkit-box-shadow: 0 3px 6px transparent;
    box-shadow: 0 3px 6px transparent;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    position: absolute;
    z-index: 1;

    top: 20%;
    left: 60%;
}

.datepicker-panel>ul{
    width: 100%;
}

.datepicker-panel>ul>li[data-view="month prev"],
.datepicker-panel>ul>li[data-view="month next"],
.datepicker-panel>ul>li[data-view="year prev"],
.datepicker-panel>ul>li[data-view="year next"],
.datepicker-panel>ul>li[data-view="years prev"],
.datepicker-panel>ul>li[data-view="years next"]{
    width: 20%;
}

.datepicker-panel>ul>li[data-view="month current"],
.datepicker-panel>ul>li[data-view="year current"],
.datepicker-panel>ul>li[data-view="years current"]{
    width: 60%;
    padding: 1rem 0rem;
}

.datepicker-panel>ul>li[data-view="years prev"],
.datepicker-panel>ul>li[data-view="year prev"],
.datepicker-panel>ul>li[data-view="month prev"],
.datepicker-panel>ul>li[data-view="years next"],
.datepicker-panel>ul>li[data-view="year next"],
.datepicker-panel>ul>li[data-view="month next"],
.datepicker-panel>ul>li[data-view="next"]{
    font-size: 2.5rem;
}

.datepicker-panel>ul>li[data-view="years current"],
.datepicker-panel>ul>li[data-view="year current"],
.datepicker-panel>ul>li[data-view="month current"]{
    font-size: 1.5rem;
}

.datepicker-container{
    width: 25rem;
    padding: 1rem;
}

.datepicker-panel>ul{
    font-size: 1.5rem;
}

.datepicker-panel>ul>li{
    width: 3.5rem;
    height: 4rem;
}

.datepicker-panel>ul>li[data-view="day"],
.datepicker-panel>ul>li[data-view="day picked"],
.datepicker-panel>ul>li[data-view="day prev"],
.datepicker-panel>ul>li[data-view="day next"],
.datepicker-panel>ul>li[data-view="day"],
.datepicker-panel>ul>li[data-view="month picked"],
.datepicker-panel>ul>li[data-view="month prev"],
.datepicker-panel>ul>li[data-view="month next"],
.datepicker-panel>ul>li[data-view="month"],
.datepicker-panel>ul>li[data-view="year picked"],
.datepicker-panel>ul>li[data-view="year prev"],
.datepicker-panel>ul>li[data-view="year next"],
.datepicker-panel>ul>li[data-view="year"]{
    padding: 1rem 0rem;
}

.datepicker-panel>ul[data-view="years"]>li, 
.datepicker-panel>ul[data-view="months"]>li {
    width: 6rem;
    height: 6.5rem;
    line-height: 4rem;
}

/* Dtae Range Picker */
.daterangepicker.ltr .left .daterangepicker_input{
    padding-right: 0rem;
}

.form-date-range{
    text-align: center;
    font-size: 0.9rem;
    padding: 0.1rem 0.1rem;
    background: var(--var-bg-form-date-range);
    color: var(--color-bg-date-range);
    border: 1px solid var(--var-bg-form-date-range);
    cursor: pointer;
}

.daterangepicker .calendar{
    max-width: 100%;
}
.daterangepicker table {
    font-size: 1.5rem;
}

.daterangepicker.dropdown-menu.ltr.show-calendar.opensright{
    top: 15%;
    left: 25%;
    right: 25%;
    width: 50%;
}

.grid-daterangepicker{
    display: grid;
    padding: 0.5rem;
    grid-template-areas:
    "left right"
    "ranges ranges";
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto;
    grid-gap: 0.5rem;
}

.left{
    grid-area: left;
}

.right{
    grid-area: right;
}

.ranges{
    grid-area: ranges;
    margin-top: 1rem;
}


.daterangepicker.opensright:after,
.daterangepicker.opensright:before{
    display: none;
}

.btn-apply{
    background: #16A086;
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
    color: white;
    border: 1px solid #16A086;
    font-size: 1.5rem;
}

.btn-apply:hover{
    border: 1px solid #16A086;
    background: white;
    color: #16A086;
}

.btn-clear{
    background: #dc3545;
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
    color: white;
    border: 1px solid #dc3545;
    font-size: 1.5rem;
}

.btn-clear:hover{
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
}

.btn-set{
    color: #C7C7C7;
    font-size: 1.1rem;
    margin-right: 0.6rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.btn-set:hover{
    color: #FFFFFF;
}

.btn-save{
    background: #495058;
    border: 1px solid #495058;
    color: #FFFFFF;
}

.btn-save:hover{
    background: #FFFFFF !important;
    color: #495058 !important;
    border: 1px solid #495058 !important;
}

.btn-cancel{
    background: #9C9C9C;
    border: 1px solid #9C9C9C;
    color: #FFFFFF;
}

.btn-cancel:hover{
    background: #FFFFFF !important;
    color: #9C9C9C !important;
    border: 1px solid #9C9C9C !important;
}

.modal-header{
    text-align: center;
    background: #495058;
    color: #FFFFFF;
    justify-content: center;
}

.form-costum,
.form-costum:focus{
    border: 1px solid #495058;
    background: #FFFFFF;
    color: #495058;
}

.datepicker-container.datepicker-dropdown{
    z-index: 10000 !important;
}

.card-pump-table{
    display: grid;
    grid-template-areas:
    "cpt-1 cpt-2";
    grid-template-columns: 49% 49%;
    grid-template-rows: auto;
    grid-gap: 0.5rem;
}

.cpt-1{
    grid-area: cpt-1;
}

.cpt-2{
    grid-area: cpt-2;
}

.card-pump-table[data-status=st1] .cpt-1 .table-3 thead tr .st-pump-1{
    background: #4CAF50;
}

.card-pump-table[data-status=st2] .cpt-1 .table-3 thead tr .st-pump-2{
    background: #4CAF50;
}

.card-pump-table[data-status=st3] .cpt-2 .table-3 thead tr .st-pump-3{
    background: #4CAF50;
}

.card-pump-table[data-status=st4] .cpt-2 .table-3 thead tr .st-pump-4{
    background: #4CAF50;
}