/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


h1 {
  margin:0;
  font-weight:normal;
  background-color:#ccc;
  color:#000;
  padding:3px 7px;
  text-align:right;
  font-size:18px;
  }

h2, h3 {
  margin:0;
  padding:0;
  font-size: 15px;
}

h3 {
  font-size: 12px;
  }

ul {
  margin:0;
  padding:0;
  list-style:none;
  }

#debug-container {
  /*background-color:#ccc;*/
  /*overflow: hidden;*/
}

/*#debug {*/
/*  position:absolute;*/
/*  overflow:auto;*/
/*  border:1px solid #666;*/
/*  background-color:#fff;*/
/*  top:25px;*/
/*  left:5px;*/
/*  right:5px;*/
/*  bottom:5px;*/
/*  padding:.5em;*/
/*  margin:0;*/
/*  }*/

#source-view #line-pointer, #source-view .breakpoint {
  position:absolute;
  content: '\25B6';
  color:#f00;
  font-size: 20px;
  list-style:none;
  line-height:24px;
  height:24px;
  padding:0;
  margin:0;
  margin-top:-4px;
  left:0px;
  }

#source-view .breakpoint {
  content: '\25C9';
  color:#f00;
  left:0px;
  }


.folder li li {
  margin-left:18px;
  }

.folder-key {
  border:none;
  margin:0;
  margin-right:7px;
  padding:0;
  font-size:10px;
  line-height:11px;
  height:11px;
  width:11px;
  background: transparent url('../ui-images/expand-collapse.gif') scroll no-repeat 0 0;
  }

.folder-key.inverted
{
  background-image: url("../ui-images/expand-collapse-inverted.gif");
}
.unfolded > .folder-key {
  background-position: 0px -11px;
}

.folder-key[disabled="true"] {
  opacity: .3;
  }

.failed {
  color:red;
  }

/* backtrace */

#backtrace-container, #examine-objects-container {
  padding: 5px;
  }


#backtrace-container li {
  padding-left: 20px;
  background: transparent url('../ui-images/selected_frame.png') scroll no-repeat -20px 0;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  }

#backtrace-container li:first-child {
  background-image: url('../ui-images/selected_frame_top.png');
  }

#backtrace-container li.selected {
  background-position: 0 0;
  }



#backtrace-container li:hover .scope-name {
  color: #000;
  text-decoration: underline;
}

#backtrace-container .file-line {
  color: #999;
}

#backtrace-container .not-stopped {
  cursor: auto;
  color: #999;
  font-style: italic;
}

#ecma-debugger-toolbar {
  background-color:#ccc;
  }

#ecma-debugger-toolbar:after {
  content:'';
  display:block;
  clear:both;
  }

#continues, .dropdowns {
  height:24px;
  line-height:24px;
  float:left;
  }

#continues {
  margin-left:5px;
  }

input[type="text"] {
  font-size: 11px;
  cursor: text;
}


#main-button-toolbar {
  float:left;
  }

.dropdowns > li {
  float:left;
  padding:0;
  margin:0 5px;
  position:relative;
  z-index:1;
  }

#drop-down-view {
  position:absolute;
  left:0;
  right:0;
  border:1px solid #333;
  background-color:#fff;
  padding:.5em;
}


[window_id].selected > span {
  color:#930;
  font-weight:bold;
  }


[handler="display-script"].selected {
  color:#333;
  font-weight:bold;
  }

[handler="display-script"].selected:before {
  content:'[';
  padding-right:.3em;
  }

[handler="display-script"].selected:after {
  content:']';
  padding-left:.3em;
  }

[handler="display-stylesheet"].selected {
  color:#333;
  font-weight:bold;
  }

[handler="display-stylesheet"].selected:before {
  content:'[';
  padding-right:.3em;
  }

[handler="display-stylesheet"].selected:after {
  content:']';
  padding-left:.3em;
  }

.window-container {
  position:absolute;
  top:22px;
  left:1px;
  right:5px;
  bottom:5px;
  padding:.5em;
  overflow:auto;
  }

/*** views ***/

.padding {
  padding:5px;
  box-sizing: border-box;
  }

/*** view debug ***/

.debug-container > div {
  white-space:pre;
  /*xxfont-family:monospace;*/
}

cst-option.selected-runtime {
  background-color: #598bec;
  color: #fff;
}

.thread-stopped-event {
  background-color: #09f;
  }

.folder li[handler="display-script"] {
  margin-left: -2px;
  padding-left: 20px;
  background: transparent url('../ui-images/selected_frame_top.png') no-repeat 0 -16px;
  }

.info {
  position:absolute;
  left:20%;
  top:10%;
  width:60%;
  height:100px;
  border:5px solid red;
  background-color:#fce8cf;
  padding:20px;
  z-index:100;
  }

.info h2 {
  text-align: center;
  }

/* command line */

.console-output,
.console-output pre,
.console-input,
.console-input textarea {
  line-height:16px;
  font-size:14px !important;
  padding:0;
  margin:0;
  }

.console-output pre {
  white-space: pre-wrap;
  }

.console-input span {
  float:left;
  }

.console-input span + div {
  margin-left: 4ex;
  }

.console-input textarea {
  width:100%;
  border:0px solid;
  margin:0;
  padding:0;
  overflow:hidden;
  }


#examine-objects li li {
  padding-left:18px;
  }

.css-inspector pre {
  white-space: pre-wrap;
  }

p[handler="update-global-scope"] {
  padding:0;
  margin:0;
  color: #999;
  text-decoration: underline;
  text-align: center;
  }

p[handler="update-global-scope"]:hover {
  color: #333;
  }

.export-data pre {
  padding: 0;
  margin: 0;
  white-space: pre-wrap;
  }

/* styleseeht view */

stylesheet, import-rule, media-rule, rules, property {
  display: block;
  }

property {
  padding-left: 2em;
  padding-right: 3px;
  }
property.disabled, .disabled key, .disabled value {
  color: #999 !important;
  }
.enable-disable {
  float: left;
  opacity: 0; /* This is a hack (instead of visibility: hidden) to make sure the checkbox is always clickable */
  margin-bottom: -10px; /* This is rather hackish too */
  margin-left: -20px;
  cursor: default;
  }
.enable-disable.hidden { visibility: hidden; }
property:hover .enable-disable,
.disabled .enable-disable {
  opacity: 1;
  }


rule, font-face-rule, page-rule, import-rule, charset-rule, media-rule {
  display:block;
  /*xxwhite-space: pre-wrap;*/
  margin: 5px 0;
  }

/* This selectors are super slow, find replacement
stylesheet :last-child {
    margin-bottom: 0;
}
*/

.stylesheets pre {
  background:red;
  }

media {
  /*xxwhite-space: pre-wrap;*/
  }

media-rule rules {
  padding-left: 2ex;
  }

/* css inspector class css-inspector */

.css-inspector rule[rule-id] property {
  cursor: text;
  }

category, header, styles, stylesheet-link {
  display:block;
  }

stylesheet-link {
  text-align:right;
  color: #999;
  text-decoration: underline;
  float: right;
  margin-left: 10px;
  }
stylesheet-link[handler], [handler="dom-resource-link"] {
    cursor: pointer;
}

stylesheet-link:hover {
  color: #666;
  }

stylesheet-link.pseudo, stylesheet-link.pseudo:hover {
  text-decoration: none;
  color: #666;
}

styles {
  /*xxwhite-space: pre-wrap;*/
  padding: 8px 4px;
  }

.unfolded styles {
  padding: 0 5px;
  }

header {
  padding: 2px;
  background-color: #fff;
  border-bottom: 1px solid #fff;
  border-bottom-color: #ccc;
  }

div.unfolded {
  border-bottom: 1px solid #ccc;;
}

header:hover {
  background-color: #eee;
  color: #000;
}

category header:hover input {
  opacity: 1;
}

header input {
  background:transparent url('../ui-images/toggle.png') scroll no-repeat 50% 100%;
  border:none;
  width:5px;
  height:9px;
  opacity: 0.66;
  -o-transition: .2s;
  }

.unfolded > header input,
input.unfolded {
  -o-transform: rotate(90deg);
  }

.css-inspector .selected {
  background-color: #d4e3f4;
  }
.css-inspector property.selected {
    border-radius: 3px;
}

.css-inspector.edit-mode .selected {
  background-color: transparent;
  }

.css-inspector h2,
.css-layout h2 {
  font-size: 1em;
  font-weight: normal;
  border: 0 solid #b3b3b3;
  border-width: 1px 0;
  background-color: #eee;
  margin: 5px -5px;
  padding-left: 4px;
  }

examine-objects,
examine-objects item
{
  display:block;
}
examine-objects
{
  padding: 5px;
}
examine-objects examine-objects
{
  background: transparent url('../ui-images/dom-tree-style.png') scroll repeat-y 5px 0;
}
examine-objects examine-objects
{
  padding: 0 0 0 16px;
}
examine-objects key.no-expander
{
  margin-left: 18px;
}
.prototype-chain-object
{
  background-color: #d7d7d7;
  color: #111;
  padding: 1px 2px;
  margin: 2px -2px;
}
.prototype-chain-object key
{
  color: #111;
}
.prototype-chain-object.unfolded
{
  border: none;
}
.css-layout layout-container
{
  display: table;
  margin: 0 auto;
  padding: 5px;
  max-width: 250px;
  font-size: 11px;
}
.css-layout layout-container ul
{
  margin:0;
  padding:0;
  list-style: none;
  display: table-row;
}
.css-layout layout-container li
{
  display: table-cell;
  border: 1px solid transparent;
  text-align: center;
  vertical-align: middle;
  padding: 1px;
  min-width: 15px;
}
.css-layout layout-container p
{
  position:relative;
  margin:0;
  padding:0;
}
.css-layout layout-container span
{
  position:absolute;
  top:0;
  left:0;
}

.css-layout layout-container .dimension li
{
  min-width: 80px;
  white-space: nowrap;
}
.css-layout layout-container .position,
.css-layout layout-container .dimension,
.css-layout layout-container .padding,
.css-layout layout-container .margin,
.css-layout layout-container .border
{
  border-color: #324c74;
}
.css-layout layout-container .position {
    border-style: dotted;
}
.css-layout layout-container .padding,
.css-layout layout-container .margin {
    border-style: dashed;
}

#layout-info {
    margin: auto;
}

#layout-info th {
    text-align: right;
}


offsets-container {
  display:block;
}

parent-offset {
  border: 1px solid #324c74;
  background-color:#c7d4e8;
  padding: 0 2px;
}

offsets{
  display:table;
}

offsets item {
  display:table-row;
}

offsets key, offsets value  {
  display:table-cell;
}

offsets value  {
  text-align: right;
  padding-left: 8px;
}

.info-text {
  margin: 10px 0;
  padding: 8px;
  background: hsl(0, 0%, 92%) url('../ui-images/error-console-info.png') no-repeat 5px 50%;
  line-height: 20px;
  padding-left: 35px;
  border: 1px solid #ccc;
  color: #666;
  }
div.dom {
    display: table;
}
.dom .pre-wrap {
  white-space: pre-wrap;
  }
.dom { width: 100%; }
.dom div:not(.tree-style):not(.info-box)
{
  padding-left: 1px;
  padding-right: 3px;
}

.dom div:not(.info-box)
{
  margin: -2px 0;
}


.dom input
{
  border: 0;
  padding: 0;
  margin: 0 2px 0 -15px;
  height: 13px; /* Make space for outline to appear outside the control */
  width: 13px;
  color: #666;
  background: transparent url('../ui-images/expand-collapse.png') 1px 1px no-repeat;
}

.dom input.open {
  background-position: 1px -14px;
  }
.dom input:focus {
  outline: 2px solid #598bec;
  outline-offset: -2px; /* Hides the normal (dotted) outline when pressing Enter on the expand/collapse button */
  }

.css-layout > div > h2:first-child {

  border-width: 0 0 1px;
  margin-top: -9px;
  }

pre[handler="inspect-object-link"] {
  color: blue;
  }

[handler="inspect-object-link"]:hover {
  background: #000;
  }

breadcrumb span
{
  display:inline-block;
  padding: 0 .2em;
  margin: 4px .2em;
  border: 1px solid transparent;
  line-height: 17px;
}


/* testing windows manager */

.windows-manager h2
{
  font-size: 12px;
}

.windows-manager ul
{
  margin: 5px 0 5px 20px;
}

.windows-manager ul li:first-child
{
  float: left;
  margin-left: -20px;
}

.script-options h2, .stylesheet-options h2
{
  padding: 2px 4px;
  border: 0 solid #b3b3b3;
  border-width: 1px 0;
  background-color: #e6e6e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1em;
  font-weight: normal;
}
.script-options h2.selected-runtime, .stylesheet-options h2.selected-runtime {
  color: #000;
}

.script-options h2:first-child, .stylesheet-options h2:first-child,
.script-options h2 + h2, .stylesheet-options h2 + h2
{
  border-top: none;
}
.script-options h2:last-child, .stylesheet-options h2:last-child
{
  border-bottom: none;
}

.script-options cst-option, .stylesheet-options cst-option
{
  padding-left: 2.5em;
}

.script-options cst-option
{
  background-image: url('../ui-images/selected_frame_top.png');
  background-position:  5px -16px;
  background-repeat: no-repeat ;
}

.script-options cst-option.selected
{
  background-image: url('../ui-images/selected_frame_top_white.png');
}

.script-options cst-option.stopped
{
  background-position: 5px 50%;
}

parent-node-chain breadcrumb span
{
  padding: 0 .2em;
  margin: 0 .2em;
  border: 1px solid transparent;
  line-height: 15px;
}

parent-node-chain breadcrumb {
    color: rgba(0, 0, 0, .5);
    background: none;
    padding: 0;
    cursor: pointer;
}

parent-node-chain breadcrumb::before, parent-node-chain breadcrumb::after {
    background: none !important;
}

parent-node-chain breadcrumb.parent-offset
{
    color: #000;
    font-weight: bold;
}

parent-node-chain breadcrumb.active
{
    color: #204d80;
}

parent-node-chain breadcrumb span:hover, .css-layout parent-node-chain breadcrumb span:hover
{
  background-color: hsl(240, 80%, 90%);
  border-color: hsl(240, 50%, 70%);
}

/* debug */
d
{
  color: #999;
}

[handler="dom-resource-link"]:hover
{
  text-decoration: underline;
  color: #4d1100;
}

.host-spotlight h3
{
  display: inline-block;
  margin: .5em 0;
  border: 1px solid #ccc;
  padding-left: .5em;
}


.host-spotlight label
{
  display: inline-block;
  margin-left: 1.5em;
}

.host-spotlight cst-select
{
  margin-right: 0;
}

.reset-defaults
{
  vertical-align: middle;
  margin-left: 2em;
}

.advanced-spotlight-color-settings
{
  border-collapse: collapse;
  margin: 1.1em 0;
}

.advanced-spotlight-color-settings td,
.advanced-spotlight-color-settings th
{
  border: 1px solid #ccc;
  padding: .3em 1em;
}

.advanced-spotlight-color-settings th
{
  text-align: left;
}

.table
{
  display: table;
  margin: auto;
}

.color-picker
{
  display: table-cell;
  vertical-align: top;
  padding: 0 5px;
}

.color-picker pre
{
  margin: .8em 3em;
  padding: 0;
  text-align: left;

}

.outer-canvas-container
{
  display: table;
  margin: 0 auto;
  border: 3px solid #666;
}
.canvas-container
{
  position: relative;
}

.color-picker canvas
{
  display: block;
}

#color-picker-mask
{
  position: absolute;
  top: 0;
  left: 0;
  cursor: crosshair;
}

.color-picker-stored-colors
{
  list-style: none;
  margin: 0;
  padding: 0;
  cursor: crosshair;
}

.color-picker-stored-colors::after
{
  display: block;
  clear: both;
  content: '';
  height: 1px;
}

.color-picker-stored-colors li
{
  width: 20px;
  height: 20px;
  float: left;
  border: 1px solid #666;
  margin: 6px 3px;
}

.manage-stored-colors li
{
  padding: 3px;
}

.manage-stored-colors span
{
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #666;
  margin-right: 10px;
  vertical-align: middle;
}

.manage-stored-colors input
{
  vertical-align: middle;
}

#table-container table
{
  border-collapse: collapse;
  border: 3px solid #666;
  cursor: crosshair;
  background-color: #000;
  margin: .8em auto;
}

#table-container td
{
  line-height: 1px;
  padding: 0;
}

#center-color
{
  height: 40px;
  border: 1px solid #666;
}

#table-container-debug
{
  position:absolute;
  right:0;
  top:0;
}

.debug-textarea
{
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 2px 7px;
}

.filter-container ul ul
{
  margin-left: 20px;
}

.filter-container .disabled
{
  opacity: .3;
}

.filter-container ul li
{
  margin: 3px 0;
  border: 1px solid transparent;
}

.filter-container ul div
{
  border-top: 1px solid #999;
  padding: 5px 7px;
  margin-top: 3px;
}

.filter-container input[type='button']
{
  border: 0;
  margin: 0;
  padding-right:4px;
  height: 15px;
  width: 19px;
  color: #666;
  background: transparent url('../ui-images/expand-collapse.png') 4px 2px no-repeat;
}

.filter-container li.open
{
  border-color: #999;
}

.filter-container li.open > input[type='button'] {
  background-position: 4px -13px;
  }

.filter-container h3
{
  display: inline-block;
}



.test-messages h2,
.test-messages h3
{
  font-size: 1em;
  padding: 0 5px;
  margin: 0;
  border: 1px solid #666;
  border-width: 0 1px;
}

.test-messages h2
{
  font-weight: bold;
  background-color: hsl(0, 0%, 95%);
  margin-top: 1em;
  border-width: 1px;
}

.test-messages .column
{
  display: table-cell;
  padding: 0 .7em;
}

.test-messages .column div
{
  border-bottom: 1px solid #666;
}

.test-messages ul
{
  margin-bottom: -1px;
}

.test-messages li
{
  border: 1px solid #666;
  border-width: 0 1px;
  padding: 0 5px;
}

.test-messages .selected
{
  background-color: #666;
  color: #fff;
  font-weight: bold;
}

.test-messages pre
{
  padding: 5px;
  margin: 0;
  white-space: pre-wrap;
}

.test-messages .comment
{
  color: #666;
}

.test-messages p
{
  padding: 0 5px;
  margin: 0;
}

.test-messages .definition
{
  border: 1px solid #666;
  background-color: hsl(0, 0%, 98%);
}

.test-messages .right-aligned
{
  text-align: right;
  padding: 1px;
  border: 1px solid #666;
  border-width: 0 1px 1px 1px;
  background-color: hsl(0, 0%, 98%);
  margin-bottom: -1px;
}

.test-messages textarea
{
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 5px;
  border: 1px solid #666;
  border-width: 0 1px 1px 1px;
}
#message-response
{
  border: 1px solid #666;
  border-width: 0 1px;
}

/* storage */

.storage-table
{
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 10px;
  table-layout: fixed;
}

.storage-table caption
{
  text-align: left;
  line-height: 20px;
  border: 0px;
  padding: 0;
  background-color: #fff;
  font-weight: bold;
}

.storage-table th
{
  border-top: 1px solid #ccc;
}

.storage-table td
{
  overflow: hidden;
  white-space: nowrap;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  border: 1px solid #ccc;
  padding: 0px 5px;
  line-height: 16px;
}

.storage-table tr:nth-child(even)
{
  background-color: hsl(0, 0%, 97%);
}

.storage-table .key
{
  background-color: hsl(0, 0%, 90%);
  width: 140px;
}

.storage-table .value
{
  border-right: 0px;
}

.storage-table .control
{
  text-align: right;
  border-left: 0px;
  width: 30px;
}

.storage-table .storage-edit
{
  padding: 0;
  /* overflow: hidden causes 1px padding on the right and bottom side */
  overflow: auto;
}

.storage-table h4
{
  margin: 0;
  padding: 0px 5px;
  padding-right: 20px;
  line-height: 16px;
  font-weight: normal;
  background-color: hsl(0, 0%, 90%);
  border-bottom: 1px solid #ccc;
}

.storage-table p
{
  margin: 0;
  padding: 0px;
  background-color: hsl(0, 0%, 90%);
  border-top: 1px solid #ccc;
  text-align: right;
}

.storage-table textarea,
.event-list textarea
{
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 14ex;
  margin: 0;
  padding: 2px 5px;
  background-color: #fff;
  border: 1px solid #8e8e8e;
  border-radius: 3px;
}
.storage-table textarea {
  border: 0;
}

.storage-table .new-key
{
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 16px;
  background-color: hsl(0, 0%, 90%);
  padding: 0px 5px;
  border: 0px;
  margin-left: -5px;
}

.storage-table .single-control
{
  text-align: right;
  background-color: #fff;
  padding-top: 5px;
}

#about-authors
{
  white-space: pre;
}

color-sample
{
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #333;
  margin-left: 5px;
  cursor: pointer;
}

.collapsed-prototypes
{
  width: 24em;
}

property.disabled color-sample
{
  opacity: .35;
}

/* Event Breakpoints */

.event-list
{
  padding: 4px;
}

.event-breakpoints li:first-child header
{
  border-top-width: 0;
}

.search-no-match
{
  opacity: .3;
}

.no-match
{
  opacity: .3;
}

/* new style sheet */
.css-new-style-sheet
{
  display: block;
  box-sizing: border-box;
  border: 1px solid #999;
  width: 100%;
  margin-bottom: 5px;
  font: inherit;
}

.css-new-style-sheet:focus
{
  border-color: #3c3c3c;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
}

.not-content {
  cursor: auto;
  color: #999;
  font-style: italic;
  padding-left: 20px;
}

.not-content.inspection {
  padding: 5px 5px 5px 25px;
}

.go-to-line-input
{
  box-sizing: border-box;
  width: 100%;
  border: 3px solid transparent;
}

.spotlight-color-select
{
  display: inline-block;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 3px;
  margin: 0 10px 0 2px;
}

.spotlight-color-select::before
{
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 60px;
  height: 17px;
  border: 1px solid black;
  border-radius: 2px;
}

