@import "header.css";
@import "customInput.css";
/*@import "jquery.tipsy.css";*/

@media screen /*and (min-width: 981px)*/ {
    body{
        background-color: rgb(32,24,35);
        background-repeat: 100vw;
        position: relative;
        color: white ;
        font-family: "Microsoft JhengHei";
    }
    input{
        background:transparent;
        border: 0.104vw solid rgb(88,175,192);
        color: white;
        border-radius: 0.21vw;
        font-family: "Microsoft JhengHei";
        font-size: 1.04vw;
        text-align: center;
    }
    #qlogdatetime{
        height: 1.82vw;
        width: 11.5vw;
    }
    .standardTab{
        margin-top: 4.23vw;
        width: 94.8vw;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }
    .standardDiv{
        background-color: rgb(38,46,65);
        margin-top: 0.94vw;
        display: -webkit-grid; /* Safari */
        display: grid;
        position: relative;
    }
    .standardDivTitle{
        display:block;
        font-size: 1.2vw;
        font-weight: bolder;
        padding: 0.625vw 0 0.52vw 1.2vw;
        border-bottom: 0.104vw solid rgb(60,104,151);
    }

    /*eqpatrolPage*/
    .divStoresflexItem{
        display: -webkit-flex; /* Safari */
        display: flex;
        position: relative;
        margin: 1.4vw 0 1.0vw 1.0vw;
    }
    
    #eqPatrol23Send{
        display:inline-block;
        margin: 0.15vw 0 0 1.5vw;
    }

    .svgContainer{
        position: relative;
        margin: 1vw 1.2vw 1vw 1.2vw;
        width: 92.5vw;
        display: inline-block;
        overflow-x: auto;
    }

    #eqPatrolTablesDiv{
        height: 19.3vw;
        margin-bottom: 0.94vw;
    }
    #eqPatrolTabArea{
        font-weight: bolder;
        font-size: 0.84vw;
        margin: 0.7vw 2.8vw 0 1.2vw;
    }
    .patrolTableTab{
        padding: 0 2vw 0 2vw;
        cursor: pointer;
    }
    .patrolTableTab.selectedPatrolTableTab{
        color: #59AFC0;
        border-bottom: solid 0.15625vw #59AFC0;
    }
    #eqPatrolTabHead{
        margin-left: 1.2vw; /*7.3vw if change to southTab*/
        background-color: #59AFC0;
        height: 0.15625vw;
        width: 5.93vw;
    }
    #patrolTables{
        height: 10.4vw;
        width: 94.2vw;
        overflow-x: hidden;
        overflow-y: auto;
        margin: -0.2vw 0 1vw 0;
    }

    .mainPageTableContainer{
        overflow-x: hidden;
        overflow-y: auto;
        height: 60vw;
    }

    .patrolPathDesc{
        font-size: 1.04vw;
        font-family: "Microsoft JhengHei";
        width: 13vw;
        height: 7.2vw;
        overflow: hidden;
    }
    /*eqpatrolPage*/

    /*table*/
    .infoTable {
        font-size: 0.84vw;
        display: table;
    }
    .infoTable.mainPage{
        width: 100%;
    }
    .infoTable.eqpatrol{
        padding: 0.5vw 1.8vw 1vw 1.2vw;
        width: 89vw;
        margin-left: 1.2vw;
    }
    .infoTable.eqpatrol.head{
        background: rgb(44,72,94);
        width: 88.97vw;
    }
    .infoTable.eqpatrol.info{
        background: rgb(17,25,46);
    }

    .infoTable .thead {
        font-weight: bold;
        display:table-header-group;
    }

    .infoTable .tr {
        display:table-row;
    }
    .infoTable .tr.eqpatrolheader{
        background: rgb(44,72,94);
    }
    .infoTable .tr.eqpatrolInfo{
        background: rgb(17,25,46);
    }
    .infoTable .tr.mainPage:nth-child(odd){
        background: rgb(44, 72, 94);
    }

    .infoTable .th .direction{
        font-size: 0;
    }
    .infoTable .th .direction span{
        font-size: 0.56vw;
        width: 50%;
        text-align: center;
        margin: 0 0.2vw 0 0.2vw;
    }

    .infoTable .td, .infoTable .th {
        display:table-cell;
        text-align: center;
        padding: 0.55vw 0;
    }
    .infoTable .td.eqpatrol {
        border-bottom: solid 1px #59AFC0;
    }
    .infoTable .td.eqpatrol, .infoTable .th.eqpatrol {
        width: 12.5%;
    }
    .infoTable .td.alarmInfo, .infoTable .th.alarmInfo {
        width: 10%;
    }
    .infoTable .td.alarmInfoLoc, .infoTable .th.alarmInfoLoc {
        width: 12%;
    }
    .infoTable .td.alarmInfoCode, .infoTable .th.alarmInfoCode {
        width: 8%;
    }
    .infoTable .td.alarmInfoDesc, .infoTable .th.alarmInfoDesc {
        width: 65%;
    }
    .infoTable .td.trainInfoS, .infoTable .th.trainInfoS {
        width: 8.33%;
    }
    .infoTable .td.trainInfoM, .infoTable .th.trainInfoM {
        width: 13.75%;
    }
    .infoTable .td.trainInfoL, .infoTable .th.trainInfoL {
        width: 20%;
    }
    .infoTable .td .direction{
        display: flex;
    }
    .videoplayicon0{
        width: 50%;
        cursor: pointer;
    }
    .videoplayicon0 img{
        width: 1.04vw;
    }
    .videoplayicon1{
        width: 50%;
        cursor: pointer;
    }
    .videoplayicon1 img{
        width: 1.04vw;
    }
    /*table*/

    /* Mainpage */
    .item {
        margin: 1.5vw 1.3vw 0vw;
    }

    .sub-title {
        border-left: 0.2vw solid rgb(88,175,192);
        margin-bottom: 0.52vw;
        font-weight: bolder;
    }
    .sub-title span {
        display: block;
        color: rgb(88,175,192);
        font-size: 1.04vw;
        padding-left: 0.26vw;
        line-height: 1.5;
    }
    .station-search .btn-area {
        font-size: 0;
        display: flex;
        justify-content: space-around;
    }
    .btn {
        font-family: "Microsoft JhengHei";
        font-weight: bolder;
        border: 0;
        color: #fff;
        background-color: rgb(88,175,192);
        transition: .5s;
        padding: 0.26vw 0.52vw;
        cursor: pointer;
    }
    .btn:hover{
        background-color: rgb(78,126,140);;
    }
    .btn.station {
        width: 3vw;
        font-size: 0.84vw;
        border-radius: 0.16vw;
    }
    .btn.eqPatrol23 {
        font-size: 1.05vw;
        padding: 0.26vw 1.5vw;
        margin: -0.27vw 1.5vw 0 0;
        border-radius: 0.21vw;
    }
    .btn.dcPage {
        font-size: 1.05vw;
        padding: 0.26vw 1.5vw;
        margin: -0.27vw 0 0 2vw;
        border-radius: 0.21vw;
    }
    .checkbox-area {
        display: flex;
        font-size: 0.84vw;
    }
    .checkbox-item {
        margin-right: 0.42vw;
        align-items: center;
    }
    .checkbox-item label {
        position: relative;
    }
    input[type=checkbox] {
        display: none;
    }
    input[type=checkbox]:checked ~ label > .checkbox-css {
        background-color: rgb(28, 99, 121);
    }
    input[type=checkbox]:checked ~ label::before{
        content: "";
        display: inline-block;
        width: 0.42vw;
        height: 0.84vw;
        border-right: 1px solid #fff;
        border-bottom: 1px solid #fff;
        transform: rotate(45deg);
        position: absolute;
        top: 0;
        left: 0.21vw;
    }
    .checkbox-checkmark{
        vertical-align: middle;
        display: inline-block;
        width: 0.84vw;
        height: 0.84vw;
        border-radius: 0.2625vw;
        background-color: rgb(78,126,140);
        margin-right: 0.21vw;
        transition: .3s;
    }
    .checkbox-name{
        vertical-align: middle;
        line-height: 0.84vw;
        font-weight: normal !important;
    }
    .checkbox-checkmark:hover {
        background-color: rgb(28, 99, 121);
    }
    .live {
        display: flex;
        flex-direction: row;
    }
    .live .btn {
        font-size: 1.04vw;
        width: 6.2vw;
        height: 2.083vw;
        background: transparent;
        color: #fff;
        border-radius: 0.21vw;
    }
    .live .search {
        width: 5.5vw;
        margin: 0 1.1vw 0 0.1vw;
        border: 0.104vw solid rgb(88,175,192);;
        position: relative;
    }
    #qlogpauseimg{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        height: 1.3vw;
    }
    .live .liveshow {
        border: 0.104vw solid red;
    }
    .live .btn-area {
        width: 40%;
    }
    .live .icon-area {
        width: 60%;
        display: flex;
        justify-content: space-between;
    }
    .icon-item {
        font-size: 0.84vw;
        vertical-align: middle;
        margin-right: 0.21vw;
        position: relative;
        width: 7vw;
    }
    .icon-item::before{
        content: "";
        display: inline-block;
        height: 100%;
        vertical-align: middle;
    }
    .icon-item span {
        position: absolute;
        left: 20%;
        top: 48%;
        transform: translateY(-50%);
    }
    .icon-item img {
        width: 1.04vw;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .slidecontainer{
        top: 17.5vw;
        position: absolute;
        right: 2.8vw;
        display: flex;
        align-items: center;
        z-index: 1;
    }
    .slidecontainer span{
        font-size: 1.05vw;
        color: white;
    }
    #scaleslider {
        border: none;
        width: 9vw;
    }

    #mainPageinfo {
        margin-bottom: 0.93vw;
        display: flex;
        justify-content: space-between;
    }
    .standardDiv.information{
        width: 49.5%;
        background-color: rgb(38,46,65);
    }
    
    .imgSrvstatus {
        height: 30px;
        width: 30px;
    }

    .strSrvStatus {
        font-size: xx-small;
        margin-top: 4px;
        margin-bottom: 4px;
    }
    /* Mainpage */
}

.trainDesc{
    font-size: 1.04vw;
    font-family: "Microsoft JhengHei";
    width: 11vw;
    height: 8.5vw;
    overflow: hidden;
}

/*scroll bar*/
/* width */
::-webkit-scrollbar {
    width: 7px;
  }
  /* Track */
  ::-webkit-scrollbar-track {
    border-radius: 7px;
    background: rgb(17,25,46);; 
  }
  /* Handle */
  ::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 4px grey; 
    background: rgb(39,46,65); 
    border-radius: 7px;
  }
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555; 
  }
/*scroll bar*/

/*slider*/
.slider {
    -webkit-appearance: none;
    width: 9vw;
    height: 0.78vw;
    border-radius: 0.26vw;
    background: rgb(60,104,151);
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
  }
  
  .slider:hover {
    opacity: 1;
  }
  
  .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.3vw;
    height: 1.3vw;
    border-radius: 50%; 
    background: #58AFC0;
    cursor: pointer;
  }
  
  .slider::-moz-range-thumb {
    width: 1.3vw;
    height: 1.3vw;
    border-radius: 50%; 
    background: #58AFC0;
    cursor: pointer;
  }
/*slider*/

/*延誤計算*/
.choosenBtnDc{
    background-color: red;
}
#formulaOption{
    display: grid;
    width: 90vw;
    margin: 1vw 0 1vw 2vw;
    font-size: 0.84vw;
    font-family: "Microsoft JhengHei";
  }
.delayFormulaOpt{
    margin-bottom: 0.4vw;
    border-bottom: solid 1px rgb(59,86,115);
    padding-bottom: 0.4vw;
}
.btn-area.dc {
    margin: 1vw;
    font-size: 0;
    display: flex;
    justify-content: space-around;
}

#delayResult{
    padding: 1vw 2vw;
}

#enterTrainInfo{
    margin: 1vw 2vw;
    display: flex;
}
.varInfoRow{
    margin-right: 2vw;
    display: flex;
    font-size: 0.84vw;
}
.varInfoRow.result{
    margin-bottom: 1vw;
}

input.dc{
    font-size: 0.84vw;
    margin: 0 1vw 0 0.5vw;
    height: 1.2vw;
    width: 5.2vw;
}
input.dc.date{
    width: 7.5vw;
}
input.resultval{
    width: 3.5vw;
}
#formulaVarsArea{
    display: flex;
    margin-left: 1.75vw;
}

.varInfoCol{
    display: grid;
    margin: 0.25vw;
    position: relative;
}
.varInfoCol .title{
    font-size: 1.05vw;
    text-align: center;
    margin-bottom: 1vw;
}
.varInfoCol .title.varname{
    width: 9.5vw;
}
.varInfoCol .title.operator{
   width: auto;
}

input.dc.varInfoColchild{
    margin: 0vw auto 0.5vw;
}
.input.radio:checked ~ .checkmark {
    background-color: red;
}
#formulaCalBtn{
    margin: 1vw 43vw;
}
/*延誤計算*/

/*異常區段選取*/
.selectAbnline {
    cursor: pointer;
    stroke:#fff;
}

.selectAbnCross-line {
    stroke:#fff;
}

.selectAbnRed {
    stroke: #f00;
}

.selectAbnCar-number {
    width: 70px;
    border: 2px solid rgb(88,175,192);
    display: block;
    border-radius: 5px;
    padding: 2px;
    margin: 4px;
    background-color: rgb(38,46,65);
    font-size: 12pt;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.selectAbnbtn {
    background-color: rgb(88,175,192);
    color: #fff;
    margin: 5px;
    padding: 2px 20px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
}
/*異常區段選取*/

/*異常調度策略*/
#dicisionDesc{
    display: flex;
    margin: 1vw 1.2vw 0vw 1.2vw;
    font-size: 1.04vw;
    font-family: "Microsoft JhengHei";
}
.descVar{
    border-bottom: 1px solid #fff;
}
/*異常調度策略*/