html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

html.drag {
    cursor: move;
}

nav#header {
    margin-bottom: 10px;
}

div#footer {
    position: relative;
    margin-top: 10px;
}

#sc-ui-locker {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    width: 100px;
    height: 100px;
    display: none;
}

#sc-ui-locker.shown {
    display: block;
}

#sc-ui-locker-icon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #CCC url("../images/loading-cog.gif") no-repeat center center;
    opacity: 0.5;
    z-index: 1000;
}

#sc-ui-locker-text {
    font-size: 14px;
    color: #000;
    position: fixed;
    margin-top: 90px;
    margin-left: 23px;
}

#static-window-container {
    overflow: auto;
    padding: 0;
    margin-right: 10px;
    flex-grow: 1;
    width: 0;
}

#history-container {
    margin-bottom: 2px;
    border: none;
    position:absolute;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
}

#history-items {
    margin-bottom: 0;
    border: none;
}

.loading {
    background: #CCC url("../images/load-content-cog.gif") no-repeat center center;
    min-width: 36px;
    min-height: 36px;
}

.main-container {
    position: relative;
    padding-right: 10px;
    padding-left: 10px;
    display: flex;
    flex-grow: 1;
}

#window-header-tools {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 900;
}

#static-window-container ~ #window-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 4;
    width: 0;
}

#static-window-container[style*="display: none;"] ~ #window-container {
    margin-left: 0;
}

.hidden {
    visibility: hidden;
}

.no_display {
    display: none;
}

.task_icon.active {
    background-image: url('../images/task-cog.gif');
}

.task_icon {
    width: 32px;
    height: 32px;
    margin-top: 12px;
    margin-left: 10px;
    text-align: center;
    background-image: url('../images/task-complete.png');
}

.task_text {
    margin-top: 10px;
    margin-left: -4px;
    vertical-align: middle;
    font-size: 10px;
    color: #aaa;
}

.help-button {
    margin-top: 4px;
    vertical-align: middle;
    cursor: help;
}

/* --- Arguments --- */
.argument-wait {
    background: #5cb85c url("../images/argument-cog.gif") no-repeat center center;
}

.argument-container {
    float: left;
    margin: 8px 0 0 8px;
}

.argument-container.over {
    opacity: 0.7;
}

.argument-buttons {
    margin-top: 2px;
}

.argument-translate-state {
    width: 32px;
    height: 32px;
    background: #3276B1 url("../images/arg-translate-cog.gif") no-repeat center center;
}

.argument-item {
    max-height: 32px;
}

.resolve-idtf-anim {

    height: 6px;
    width: 18px;
    max-height: 6px;
    max-width: 18px;
    display: inline-block;
    background: #fff url("../images/resolve-idtf-anim.gif") no-repeat center center;
}

/* --- window --- */
.sc-window {
    flex-grow: 1;
    margin-bottom: 0;
}

.sc-window .panel-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 10px;
    box-sizing: content-box;
}

.sc-window .panel-body > * {
    /*It is necessary for the element inside the panel_body to be stretched in height*/
    display: block;
}

/* --- search --- */
.search-processing {
    position: relative;
    right: 0;
    background: #fff url("../images/search-cog.gif") no-repeat right center;
}

.tt-dropdown-menu .tt-dataset-idtf {
    background-color: #f5f5f5;
    border: 1px solid #a3a3a3;
    border-radius: 5px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
    overflow-y: scroll;
    overflow-x: hidden;
    max-width: 250px;
    max-height: 400px;
}

.tt-dropdown-menu {
    max-width: 250px;
}

.tt-dropdown-menu .tt-dataset-idtf .tt-suggestion {
    display: inline-block;
    max-width: 450px !important;
    white-space: normal !important;
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    cursor: pointer;
}

.tt-dropdown-menu .tt-dataset-idtf .tt-suggestion p {
    margin: 5px 2px;
}

.tt-dropdown-menu .tt-dataset-idtf .tt-suggestion .tt-suggestion-icon {
    width: 16px;
    height: 16px;
    margin: auto 2px;
}

.tt-dropdown-menu .tt-dataset-idtf .tt-suggestions {
    width: 100%;
}

.tt-dropdown-menu .tt-dataset-idtf .tt-suggestion:nth-child(odd) {
    background-color: #e9e9e9;
}

.tt-dropdown-menu .tt-dataset-idtf .tt-suggestion:hover {
    background-color: #428bca !important;
}

/* --- main --- */
.tabs-data-container {
    height: 100%;
}

.sc_window_data {
    height: 100%;
    overflow: auto;
}

.menu_item {
    cursor: pointer;
}

/* ---- auth ---- */
.auth-user-container {

}

.auth-user-image {
    width: 32px;
    height: 32px;
    margin-top: -5px;
    margin-right: 5px;
}

.auth-user-image img {
    border-radius: 7px;
    width: 100%;
    height: 100%;
}

.auth-user-login {
    margin-left: 5px;
}

/* --- history --- */
.history-item {
    cursor: pointer;
    overflow-x: hidden;
}

.history-item:hover {
    background: #ddd;
}

.history-item-name {
    margin-left: 10px;
}

.histoy-item-btn {
    margin-bottom: 10px;
}

/* --- drag --- */
.drag-value {
    background-color: #ddd;
    display: inline-block !important;
    max-width: 250px !important;
    max-height: 200px !important;
    border: 1px dotted #999;
    padding: 3px;
    z-index: 1000;
}

.copyright {
    display: block;
    margin: 0 auto;
    line-height: 50px;
    text-align: center;
}

/* --- menu --- */
.menu-cmd-noatom:before {
    position: absolute;
    content: url("../images/menu-noatom.png");
    left: 0px;
}

.dropdown-menu .menu-cmd-noatom:before {
    position: absolute;
    content: url("../images/menu-noatom.png");
    left: 5px;
}

.menu-cmd-atom:before {
    position: absolute;
    content: url("../images/menu-atom.png");
    left: 3px;
}

.menu-cmd-keynode:before {
    position: absolute;
    content: url("../images/menu-keynode.png");
    left: 3px;
}

.menu-item {
    cursor: pointer;
}

/* --- tooltips --- */
.tooltip-empty {
    width: 32px;
    height: 32px;
    background: #000 url("../images/tooltip-cog.gif") no-repeat center center;
}

/* --- help --- */
#help-modal-body {
    padding: 7px;
    min-height: 200px;
}

/* --- sc-elements --- */
.sc-element {
    font-style: italic;
    color: #2a6496;
    cursor: pointer !important;
}

.sc-not-exist {
    color: #aa0000;
}

.sc-not-exist-control {
    border: dotted 1px #aa0000 !important;
}

.sc-content {
    border: solid 1px #cccccc;
    background-color: #fafafa;
    padding: 5px;
    margin: 2px;
    display: inline-block;
    background: url("../images/content_corner.png") 0 0 no-repeat #fafafa;
}

.sc-content-wrap {
    display: inline-block;
    padding-bottom: 3px;
}

.sc-content-data {
    width: 100%;
    height: 100%;
}

.sc-content-controls {
    clear: both;
    float: right;
    width: 12px;
    height: 12px;
}

.sc-content-controls .button-menu {
    opacity: 0.1;
}

.sc-content-controls .button-menu:hover {
    opacity: 0.7;
}

.sc-contour {
    border: solid 1px #96a399;
    background-color: #fdfdfd;
    padding: 3px;
    border-radius: 8px;
    position: relative;
    display: block !important;
}

/* --- typeahead fix --- */
.twitter-typeahead {
    width: 100%;
}

.input-group .twitter-typeahead {
    display: table-cell !important;
    float: left;
}

/* --- print --- */
@media print {
    @page {
        margin: 0.5cm;
    }

    body {
        font: 8pt Georgia, "Times New Roman", Times, serif !important;
        line-height: 1.3;
    }

}

/* --- bootstrap --- */
div[class="tooltip-inner"] {
    max-width: 350px;
}

/* --- auth --- */
#auth-user-panel {
    margin: auto;
}

.gplus-login-button {
    background-image: url("../images/gplus/White-signin_Small_base_32dp.png");
    width: 42px;
    height: 42px;
    margin-top: 4px;
}

.gplus-login-button:hover {
    background-image: url("../images/gplus/White-signin_Small_hover_32dp.png");
}

.gplus-login-button:active {
    background-image: url("../images/gplus/White-signin_Small_press_32dp.png");
}

/* --- expert mode checkbox --- */
#expert_mode_container {
  padding-top: 15px;
  padding-bottom: 15px;
}

#expert_mode_container .normalLabel {
  cursor: pointer;
}
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 25px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #337ab7;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.normalLabel {
  font-weight: normal;
}
