﻿.sqlconsolePanel .form-item {
    line-height: 24px;
    width: 100%;
    clear: both;
    margin-bottom: 20px;
}

.sqlconsolePanel.mask {
    position: relative;
}
.sqlconsolePanel.mask:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}
.sqlconsolePanel .form-item.last {
    margin-bottom: 0;
}
.sqlconsolePanel .form-item.short-left {
    width: 45%;
    float: left;
    clear: left;
}
.sqlconsolePanel .form-item.short-right {
    width: 45%;
    float: right;
    clear: right;
}
.sqlconsolePanel .form-item span.caption {
    display: block;
    width: 120px;
    font-weight: bold;
}
.sqlconsolePanel .form-item span.caption.inline {
    display: inline-block;
    float: left;
    vertical-align: middle;
    height: 42px;
    line-height: 42px;
}
.sqlconsolePanel .form-item > span.caption.middle {
    margin-bottom: 10px;
}
.sqlconsolePanel .form-item span.caption.required:after {
    content: "*";
    color: red;
    margin-left: 4px;
}
.sqlconsolePanel .form-item input:not([type="file"]),
.sqlconsolePanel .form-item select {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background-color: #fff;
    border: 1px solid #bfbfbf;
    outline: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    padding: 12px;  
    width: 100%;  
}

.sqlconsolePanel .form-item span.caption.inline + div {
    margin-left: 120px;
    position: relative;
}
.sqlconsolePanel .form-item span.caption.inline + div a.btn-trash {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('../images/query-trash.png') no-repeat center center;
    position: absolute;
    left: -36px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.sqlconsolePanel .fileupload-wrapper { /* Notes(by Richard): here must set !important */
    overflow: hidden !important;
    margin: 0;
    width: auto !important;
    display: inline-block;
	position: relative;
    vertical-align: middle;
}

.sqlconsolePanel .fileupload-wrapper > a.uploadbtn {
    display: inline-block;
    float: none;
    width: auto;
    border: 1px solid #0286c5;
    color: #0286c5;
    font-weight: bold;
    -ms-border-radius: 3px;
    border-radius: 3px;
    padding: 9px 9px;
    cursor: pointer;
    min-width: 75px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
}

.sqlconsolePanel .fileupload-wrapper > input[type="file"] { /* force file upload style here, cause some module just override */
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    direction: ltr;
    cursor: pointer;
    height: 100%;
	font-size: 200px;
}

.sqlconsolePanel {
    margin: 128px 30px 30px 30px;
    padding: 25px;
    border: 1px solid #e6e6e6;
    background-color: #fff;
}
.sqlconsolePanel .query-form {
    position: relative;
    overflow: hidden;
}
.sqlconsolePanel .form-item.item-query {
    position: relative;
}
.sqlconsolePanel .form-item.item-query .fileupload-wrapper {
    width: 120px;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.sqlconsolePanel .form-item.item-query .caption {
    position: absolute;
    margin-right: -120px;
    left: 0;
}
.sqlconsolePanel .form-item.item-query div {
    margin: 0 145px 0 120px;
}
.sqlconsolePanel .form-item.item-query div select {
    width: 100%;
}
.sqlconsolePanel .form-item #monaco-editor-sql{ height: 220px;}

.sqlconsolePanel .actions {
    text-align: center;
}
.sqlconsolePanel .popup {
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    position: absolute;
    -webkit-box-shadow: 0px 0px 20px 0px rgba(204,204,204,0.7);
    -ms-box-shadow: 0px 0px 20px 0px rgba(204,204,204,0.7);
    box-shadow: 0px 0px 20px 0px rgba(204,204,204,0.7);
    z-index: 99;
}
.sqlconsolePanel .savequery-popup {
    padding: 7px 30px;
    height: 96px;
    bottom: 0;
    left: 46px;
    z-index: 1000;
}

.sqlconsolePanel .savequery-popup span {
    display: block;
    height: 30px;
    line-height: 30px;
}
.sqlconsolePanel .savequery-popup div {
    width: 260px;
    height: 32px;
    border: 1px solid #41a4d4;
    -ms-border-radius: 0;
    border-radius: 0;
}
.sqlconsolePanel .savequery-popup div input {
    border: none;
    outline: none;
    width: 164px;
}
.sqlconsolePanel .savequery-popup div .btn {
    display: inline-block;
    float: right;
    width: 32px;
    height: 32px;
}
.sqlconsolePanel .savequery-popup div .btn.save {
    background: url('../images/query-save.png') no-repeat;
}
.sqlconsolePanel .savequery-popup div .btn.cancel {
    background: url('../images/query-cancel.png') no-repeat;
}

.sqlconsolePanel .splitter {
    height: 5px;
    background-color: #00a4e4;
    margin: 30px -25px;
    padding: 0;
}

.sqlconsolePanel .results-container {
    overflow: hidden;
}
.sqlconsolePanel .results-container .header {
    border-bottom: 1px solid #ccc;
    clear: both;
    height: 40px;
    position: relative;
}

.sqlconsolePanel .results-container .header .result-tabs {
}
.sqlconsolePanel .results-container .header .result-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    clear: both;
    height: 37px;
}

.sqlconsolePanel .results-container .header .result-tabs ul li {
    float: left;
    margin-right: 20px;
    height: 100%;
}
.sqlconsolePanel .results-container .header .result-tabs ul li.selected {
    border-bottom: 3px solid #00a4e4;
}
.sqlconsolePanel .results-container .header .result-tabs ul li a {
    color: #999999;
    text-decoration: none;
    font-weight: bold;
}
.sqlconsolePanel .results-container .header .result-tabs ul li.selected a {
    color: #1a1a1a;
}


.sqlconsolePanel .tables-container {
    margin-top: 15px;
}
.sqlconsolePanel .tables-container > div {
    position: relative;
}
.sqlconsolePanel .tables-container .actions-container {
    top: -50px;
    position: absolute;
    width: 200px;
    right: 0;
}
.sqlconsolePanel .results-container .tables-container .actions-container .search {
    position: absolute;
    top: 0;
    right: 90px;
    border-left: 1px solid #e6e6e6;
    border-right: 1px solid #e6e6e6;
    padding: 0 10px;
    height: 30px;
}
.sqlconsolePanel .results-container .tables-container .actions-container .search input {
    border: none;
    outline: none;
    background: url('../images/icon-search.png') no-repeat right center;
}
.sqlconsolePanel .results-container .tables-container .actions-container .export {
    position: absolute;
    top: 0;
    right: 0;
    height: 30px;
    line-height: 30px;
    width: 90px;
    text-align: center;
    font-weight: bold;
}
.sqlconsolePanel .results-container .tables-container .actions-container .export span {
    display: inline-block;
    cursor: pointer;
}
.sqlconsolePanel .results-container .tables-container .actions-container .export .export-popup {
    min-width: 200px;
    right: 25px;
}
.sqlconsolePanel .results-container .tables-container .actions-container .export .export-popup a {
    padding-left: 20px;
    text-align: left;
}
.sqlconsolePanel .tables-container > div > div.table-container {
    outline: none;
}

.sqlconsolePanel .tables-container table {
    min-width: 100%;
    border: 1px solid #e6e6e6;
}
.sqlconsolePanel .tables-container table thead th {
    height: 20px;
    padding: 10px;
    text-align: left;
    line-height: 100%;
    border: 1px solid #e6e6e6;
}
.sqlconsolePanel .tables-container table tbody td {
    height: 25px;
    padding: 10px;
    line-height: 100%;
    border: 1px solid #e6e6e6;
    max-width: 150px;
    word-wrap: break-word;
}

.sqlconsolePanel .tables-container table thead th.table-sortable {
    padding-right: 20px;
    cursor: pointer;
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    user-select: none;
}
.sqlconsolePanel .tables-container table thead th.table-sortable span.sort {
    display: inline-block;
    width: 10px;
    margin-right: -15px;
    float: right;
}
.sqlconsolePanel .tables-container table thead th.table-sortable span.sort:before {
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #cccccc transparent;
}
.sqlconsolePanel .tables-container table thead th.table-sortable span.sort:after {
    display: block;
    content: "";
    margin-top: 3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #cccccc transparent transparent transparent;
}
.sqlconsolePanel .tables-container table thead th.table-sortable.current span.sort.asc:before {
    border-color: transparent transparent #333 transparent;
}
.sqlconsolePanel .tables-container table thead th.table-sortable.current span.sort.desc:after {
    border-color: #333 transparent transparent transparent;
}


.sqlconsolePanel .tables-container .pager-container {
    margin-top: 10px;
    height: 30px;
    line-height: 30px;
    position: relative;
}
.sqlconsolePanel .tables-container .pager-container .statistics {
    color: #b3b3b3;
}
.sqlconsolePanel .tables-container .pager-container .pager {
    position: absolute;
    top: 0;
    right: 0;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li {
    border: 1px solid #cccccc;
    background-color: #fff;
    float: left;
    -moz-min-width: 30px;
    -ms-min-width: 30px;
    -o-min-width: 30px;
    -webkit-min-width: 30px;
    min-width: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    height: 30px;
    line-height: 30px;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li a {
    color: #999;
    text-decoration: none;
    display: block;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.current a {
    font-weight: bold;
    color: #0a1e29;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.option {
    border: none;
    margin-right: 20px;
    cursor: pointer;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.option:after {
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #6b7e86 transparent transparent transparent;
    float: right;
    margin: 12px 0 0 10px;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.prev {
    -ms-border-top-left-radius: 3px;
    border-top-left-radius: 3px;
    -ms-border-bottom-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border-right: none;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.prev a {
    display: block;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.prev a:after {
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 5px 0;
    border-color: transparent #6b7e86 transparent transparent;
    margin: 10px auto;
    vertical-align: middle;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.page {
    border-right: none;
    border-left: 1px solid #e6e6e6;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.selected {
    border-bottom: 3px solid #00a4e4;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.next {
    -ms-border-top-right-radius: 3px;
    border-top-right-radius: 3px;
    -ms-border-bottom-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-left: 1px solid #e6e6e6;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.next a {
    display: block;
}
.sqlconsolePanel .tables-container .pager-container .pager > ul > li.next a:after {
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #6b7e86;
    margin: 10px auto;
    vertical-align: middle;
}
.sqlconsolePanel .tables-container .pager-container .pager .pagesize-popup {
    bottom: 30px;
    width: 76px;
}
.sqlconsolePanel .tables-container span.highlight {
    background-color: yellow;
}


.sqlconsolePanel .tables-container .popup.list-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sqlconsolePanel .tables-container .popup.list-popup ul li {
    height: 30px;
    line-height: 30px;
}
.sqlconsolePanel .tables-container .popup.list-popup ul li a {
    display: block;
    color: #999;
    text-decoration: none;
}
.sqlconsolePanel .tables-container .popup.list-popup ul li a:hover,
.sqlconsolePanel .tables-container .popup.list-popup ul li a.selected {
    background-color: #f1f1f1;
    color: #309bce;
}
