
/*---2019.10.18 第一類砂石廠資訊查詢manufamap ---*/
.map-Content {
    overflow: hidden;
    position: relative;
  /*  height: 100%; 
     padding-top: 0;*/
    background-color: #fff;
}

.tool-panel {
    clear: both;
    position: absolute;
    z-index: 1;
    width: 415px;
    padding: 0;
    box-sizing: border-box;
}

.tool-panel-right{
    right:0;
}
.tool-panel-left{
    left: 0;
}
#OMap{
    width: auto !important;
}
#OMap.tgos-map {
    position: absolute;
    left: 0;
    right: 360px;
    width:  auto !important;
    /* height: calc(100vh - 50px) !important; 
    height: calc(100vh - 93px) !important;*/
    border: 1px solid #C0C0C0;
    z-index: 1;
}

.map-sidebar {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    background: transparent;
}
.map-sidebar.sidebar-reverse {
    flex-direction: row-reverse;
}
.map-sidebar ul {
    position: relative;
    padding: 0;
    margin: 0;
}

.map-sidebar ul li {
    /* writing-mode: vertical-rl;
    letter-spacing: 6px;
    z-index: 1; */
}

.map-sidebar ul.nav-pills>li>a {
    background: #3f3f4a;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, .4);
    margin: 5px 0;
   border-radius: 4px 0 0 4px; 
    padding: 1.25rem 15px;
    font-size: 1rem;
    line-height: 1.4;
}

.map-sidebar ul.nav-pills>li.active a {
    border-radius: 4px 0 0 4px;
    background: #fff;
    color: #333;
    z-index: 3;
    margin-right: -5px;
    padding-right: 20px;
    box-shadow: -5px 5px 5px rgba(0, 0, 0, .3);
    font-size: 1rem;
    line-height: 1.4;
}

.map-sidebar .ui-tabs-active,
.map-sidebar .ui-state-default {
    background: transparent;
    border: none;
}

.tab-content.panel-cont .ui-widget-content {
    background: #fff
}

.map-sidebar .tab-content>.tab-pane.active {
    display: block !important;
}

.tab-content.panel-cont {
    clear: both;
    position: relative;
    background: #fff;
    margin-top: 0;
    width: calc(100% - 50px);
    height: calc(100vh - 45px);
    /* box-shadow: -5px 0 8px rgba(0, 0, 0, .3); */
    border-left: 5px solid #ccc; 
    padding: 0;
     /* box-shadow: 5px 0 8px rgba(0, 0, 0, .3);
     border-right: 5px solid #ccc;
     
     --- sidebar-left----
     */
    /*overflow: inherit;*/

}

.tab-content .btn-list,
.tab-content .btn-list:hover {
    position: relative;
    top: 0;
    width: 100%;
    display: block;
    border: #fec107 solid 1px;
    padding: 12px 20px;
    color: #000000;
    background: #fec107;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
}
/* .function-cont .nav-tabs.nav-justified>li{
   writing-mode: initial;
} */
.function-cont .nav-tabs.nav-justified>li>a {
    padding: 10px 5px 5px;
    border: none;
    border-radius: 0;
    border-top: 1px solid #4d4d4d;
    background: #4d4d4d;
    color: #fff;
    letter-spacing: -.2px;
    margin-bottom: 0;
}
.function-cont .nav-tabs.nav-justified>li>a span {
    display: block;
    margin-bottom: 5px;
}

.function-cont .nav-tabs.nav-justified>.active>a,
.function-cont .nav-tabs.nav-justified>.active>a:focus {
    background: #fff;
    color: #000;
}

.function-cont .tab-content {
    margin-top: 0;
    height: 100%;
    overflow-y: auto;
    padding: 0 15px;
    /* background: #fff; */
}

.function-cont .tab-content .function-search {
    margin-top: 15px;
}

.function-search .btn-submit {
    float: right;
    margin-top: 10px;
    background: #305a94;
    color: #fff;
}
.search-box .form-inline .form-group{
    margin-right: -15px;
}

.tool-panel .tbarPinEast {
    /*position: absolute;
     right: 35px; 2019.09.24
    right: 360px;*/
    top: 40vh;
    z-index: 9999;
    font-size: 1.125em;
    color: #444;
    -webkit-writing-mode: vertical-rl;
    -moz-writing-mode: vertical-rl;
    -o-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    letter-spacing: 6px;
    cursor: pointer;
    background: #fff;
    width: 50px;
    /* padding: 15px 30px 10px; */
    padding: 15px 10px 10px 10px;
    border-radius: 5px 0 0 5px;
    border: #bfbfbf solid 1px;
    box-shadow: #00000061 0px 0px 8px;
}

@media(max-width:540px) {
    #OMap.tgos-map{
       right: 340px;
    }
    .tool-panel{
        width: 390px;
    }
    .nav-tabs.nav-justified{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
     .function-cont .nav-tabs.nav-justified>li{
                flex: 0 0 50%;
                max-width: 50%;
     }
    .function-cont .nav-tabs.nav-justified>li>a{
        height: 70px;
        letter-spacing: 0;
    }
    .function-cont .nav-tabs.nav-justified>li>a span{
        display: none;
    }
}

@media (max-width: 414px) {
  
    .tool-panel {
        width: 240px;
    }
    .function-cont .nav-tabs.nav-justified>li>a{
        font-size: .9375rem;
        letter-spacing: -.5px;
        padding: 10px 5px;
    }
}
@media (max-width: 390px) {
    .tool-panel {
        width: 225px;
    }

    .function-cont .nav-tabs.nav-justified>li>a {
        font-size: .9375rem;
        letter-spacing: -.5px;
        padding: 10px 5px;
    }
}

