html,
body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
}


/* 主视图部分 */

#main_area {
    height: calc(100%);
    display: flex;
}


/* 左侧元器件栏 */

#comp_Bar {
    /* flex: 0 125px;
    margin: 3px 0.3rem 0 1.2rem; */
    /* height: 100%; */
    overflow: auto;
    display: flex;
    flex-direction: column;
}

#comp_spec {
    text-align: center;
}

#comp_spec p {
    margin: 8px 0;
}

#comp_pane {
    height: 460px;
    /* background-color:#DEE8F6;
    border: 1px solid #A6A7A7; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#comp_pane>a {
    /* 消除button的默认样式 */
    margin: 0 auto;
    margin-top: 10px;
    width: 147px;
    height: 60px;
    display: block;
    background: rgba(217, 235, 250, 1);
    border: 1px solid rgba(102, 102, 102, 1);
    border-radius: 2px;
    cursor: pointer;
}

#comp_pane>a.current {
    background: #0081E3;
}

#comp_pane>a>p {
    margin: 0;
    padding: 0;
}

#comp_pane>a>.compImg {
    width: 30px;
    height: 40px;
    margin-left: 5px;
    float: left;
    margin-top: 5px;
    text-align: center;
}

#comp_pane>a>.compImg img {
    height: 100%;
    max-width: 100%;
}

#comp_pane>a>.compNews {
    width: 100px;
    float: right;
    font-size: 12px;
    margin-top: 10px;
    margin-right: 5px;
}

#comp_pane>a:hover {
    background: #0081E3;
    color: #ffffff;
    border: 1px solid #0081E3;
}


/* 导线及工具栏 */

#left_Bar {
    flex: 0 170px;
    /* height: 100%; */
    overflow: auto;
    display: flex;
    flex-direction: column;
    background-color: #f1f7fc;
}

#wire_spec {
    height: 45px;
    border: 1px solid #cdd2d6;
    text-align: center;
    line-height: 5px;
}


/* 
#wire_spec>p:last-child{
    margin-top: -5%;
    font-weight: 800;
} */

#list_pane {
    height: 460px;
    width: 170px;
    /* background-color:#DEE8F6;
    border: 1px solid #A6A7A7; */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
}

#list_pane>button {
    /* 消除button的默认样式 */
    margin: 0 auto;
    margin-top: 10px;
    padding: 0;
    border: 1px solid rgba(102, 102, 102, 1);
    border-radius: 2px;
    background-color: #D8EBFC;
    color: #ffffff;
    /* 消除默认点击蓝色边框效果 */
    outline: none;
    width: 147px;
    height: 60px;
    display: block;
    background-repeat: no-repeat !important;
    background-position: 50% 50%;
}

#list_pane>button:hover {
    cursor: pointer;
    border: 1px solid #0181D2;
    background-color: #0181D2;
}

#list_pane>button.active {
    border: 1px solid #0181D2;
    background-color: #0181D2;
}

#list_pane>button#btn_multimeter {
    color: black;
}

#list_pane>button#btn_multimeter:hover {
    color: white;
}

#list_pane>button#btn_multimeter>img {
    width: 30px;
    height: auto;
    margin-top: -5px;
    margin-left: -50px;
}

#list_pane>button#btn_multimeter>p {
    margin-top: -35px;
    margin-left: 40px;
}

#list_pane>button#btn_clampmeter {
    color: black;
}

#list_pane>button#btn_clampmeter:hover {
    color: white;
}

#list_pane>button#btn_clampmeter>img {
    width: 30px;
    height: auto;
    margin-top: -5px;
    margin-left: -50px;
}

#list_pane>button#btn_clampmeter>p {
    margin-top: -35px;
    margin-left: 40px;
}

#btn_pane {
    position: fixed;
    top: 22px;
    right: 22px;
    cursor: pointer;
}

#btn_edit_cir {
    display: none;
}

#btn_pane #btn_edit_cir {
    background-image: url('../images/buttonGather.png');
    background-position: 0 -34px;
    width: 76px;
    height: 34px;
    border: none;
    outline: none;
    border-radius: 5px;
}

#btn_pane #btn_edit_cir:hover {
    background-image: url('../images/buttonGather.png');
    background-position: -76px -34px;
    width: 76px;
    height: 34px;
    border: none;
    outline: none;
    border-radius: 5px;
}

#btn_pane #btn_simu_run {
    background-image: url('../images/buttonGather.png');
    background-position: 0 0;
    width: 76px;
    height: 34px;
    border: none;
    outline: none;
    border-radius: 5px;
}

#btn_pane #btn_simu_run:hover {
    width: 76px;
    height: 34px;
    background-image: url('../images/buttonGather.png');
    background-position: 76px 0;
}

#btn_zoom_in {
    position: fixed;
    width: 76px;
    height: 34px;
    top: 72px;
    right: 22px;
    cursor: pointer;
    background-image: url('../images/buttonGather.png');
    background-position: 0 -68px;
}

#btn_zoom_in:hover {
    background-image: url('../images/buttonGather.png');
    background-position: -76px -68px;
}

#btn_zoom_out {
    position: fixed;
    width: 76px;
    height: 34px;
    top: 122px;
    right: 22px;
    cursor: pointer;
    background-image: url('../images/buttonGather.png');
    background-position: 0 -102px;
}

#btn_zoom_out:hover {
    background-image: url('../images/buttonGather.png');
    background-position: -76px -102px;
}

#view_2d {
    flex: 1 400px;
    box-shadow: 5px 5px 250px 100px #c7e3f9 inset;
    background-image: radial-gradient(#ffffff, #ffffff, #c7e3f9);
    overflow: auto;
}

canvas {
    display: block;
}

select#selectPid {
    display: block;
    width: 170px;
    height: 45px;
    border: 1px solid rgba(226, 226, 226, 1);
    box-shadow: 0px 2px 3px 0px rgba(51, 51, 51, 0.21);
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    line-height: inherit;
    color: inherit;
    cursor: default;
    font-size: 14px;
    position: relative;
    z-index: 3;
    padding-left: 10px;
    background: url(images/selectTriangle.png) 150px no-repeat;
    background-color: rgba(241, 247, 252, 1);
}

select#selectPid option {
    height: 44px;
    line-height: 44px;
}

.selectBox {
    display: none;
    width: 100%;
    background-color: #F1F7FC;
}


/* 弹出元器件列表 */

#popupCompList {
    z-index: 2;
    display: none;
    position: absolute;
    left: 224px;
    top: 51px;
    padding: 10px 15px;
    min-height: 260px;
    max-width: 930px;
    background-color: rgb(32, 41, 47);
    box-shadow: 0 1px 1px #888, 1px 0 1px #ccc;
}

#popupCompList>p {
    color: #ccc;
    margin: 4px 5px 12px 5px;
}

#popupCompList>button {
    /* 消除button的默认样式 */
    margin: 0 0 6px 0;
    padding: 0;
    border: 0px solid transparent;
    background-color: transparent;
    color: #ffffff;
    outline: none;
    margin: 5px;
}


/*自定义菜单的css代码*/

#myMenu {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 1px 1px #888, 1px 0 1px #ccc;
    padding: 4px;
    /*自定义菜单相对与body元素进行定位*/
    position: absolute;
}

.menuItem {
    min-width: 80px;
    margin: 1px 0;
    padding: 3px 16px;
    cursor: pointer;
    font-size: 14px;
}

.menuItem:hover {
    background-color: #bbbbbb;
}


/* 万用表 */

#multiMeterDlg {
    z-index: 10;
    display: none;
    position: absolute;
    background-color: #b9f0d2;
    box-shadow: 0 1px 1px #888, 1px 0 1px #ccc;
}

#multiMeterDlg>img,
#multiMeterDlg>div {
    position: absolute;
}

#multiMeterDlg #blackPen {
    left: 36px;
    top: 355px;
}

#multiMeterDlg #closeBtn {
    left: 181px;
    top: 2px;
}

#multiMeterDlg #redPen {
    left: 116px;
    top: 355px;
}

#multiMeterDlg #dial {
    position: absolute;
    width: 114px;
    height: 114px;
    left: 43px;
    top: 131px;
    /* background-color: #ccc; */
}

#multiMeterDlg #knob {
    display: block;
    margin: 0 auto;
}

#multiMeterDlg #value {
    position: absolute;
    width: 130px;
    height: 36px;
    left: 32px;
    top: 34px;
    margin: 0;
    padding-right: 3px;
    background-color: rgb(141, 156, 136);
    ;
    text-align: right;
    font-size: 28px;
}

#multiMeterDlg #msgTip {
    position: absolute;
    display: none;
    width: 154px;
    height: 60px;
    left: 19px;
    top: 18px;
    padding: 2px;
    background-color: rgb(230, 230, 230);
    ;
    color: rgb(200, 32, 32);
    border: 1px solid yellow;
    border-radius: 4px;
    font-size: 14px;
}


/* 钳形表 */


/* #btn_clampmeter{
    display: none !important ; 
}
#clampMeterDlg{
    display: none;
} */

#clampMeterDlg {
    z-index: 10;
    min-height: 160px;
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #888;
    border-radius: 4px;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

#clampMeterDlg>img {
    display: block;
}

#clampMeterDlg #closeBtn {
    margin: 2px 2px 2px auto;
}

#clampMeterDlg #meterHead {
    width: 108px;
    height: 28px;
    margin: 8px auto;
    background-image: url('/data/tools/clampmeter/takeback.png');
}

#clampMeterDlg #value {
    position: absolute;
    width: 52px;
    height: 27px;
    left: 102px;
    top: 64px;
    margin: 0;
    padding-right: 3px;
    background-color: rgb(141, 156, 136);
    text-align: right;
    font-size: 20px;
}

#eldlg_property img {
    display: block;
    margin: 0 auto;
}