/*
 * D-Case Weaver 0.1.0
 *
 * Copyright (c) 2012-2013 JST DEOS R&D Center
 *
 * Licensed under The MIT License
 */

body
{
  padding: 0;
  margin: 0;
  overflow: hidden;
}

table {
    border-collapse: collapse;
}

button, img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

button
{
  padding: 1px 6px;
  margin: 2px;
}

.deosc-header {
    position: relative;
    /*z-index: 10;*/
}

.deosc-main {
    position: relative;
}

.deosc-toolbar-button,
.deosc-toolbar-button-disable {
    border: 1px solid #eee;
    border-radius: 6px;
}
.deosc-toolbar-button:hover {
    border: 1px solid #bbb;
    background-color: #f4f4f4;
}
.deosc-toolbar-button:active {
    background-color: #bbb;
}

table.deosc-table1 > tbody > tr > td
{
  padding: 4px 8px;
  border: 1px solid #000;
  border-left: 1px solid #ccc;
  border-top: 1px solid #ccc;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

/* sub-window */

.sub-window {
    display: inline-block;
    font-size: 0.75em;
    padding: 2px;
    background-color: lightgray;
    border-right: 1px solid gray;
    border-bottom: 1px solid gray;
    border-top: 1px solid whitesmoke;
    border-left: 1px solid whitesmoke;
}

.sub-window table,
.sub-window button,
.sub-window input
{
    font-size: 1em;
}

.sub-window-header {
    position: relative;
    padding: 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.sub-window-title {
    display: inline-block;
}

.sub-window-close {
    position: absolute;
    right: 4px;
    top: 4px;
    padding: 0;
}

.sub-window-content {
    padding: 8px;
    background-color: whitesmoke;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    border-top: 1px solid darkgray;
    border-left: 1px solid darkgray;
}

.sub-window-footer
{
  padding: 2px 8px;
  min-height: 25px;
  text-align: center;
}

.sub-window table
{
  border-collapse: collapse;
}

.sub-window td
{
  padding: 4px;
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

.window-box1,
.window-list
{
  border-left: 1px solid #aaa;
  border-top: 1px solid #aaa;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.window-box2
{
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

.window-list
{
  background-color: #fff;
}

.window-list-item
{
  background-color: #e4e4e4;
  padding: 4px;
}

.window-list-item:nth-child(even)
{
  background-color: #f4f4f4;
}

.window-list-item[checked="checked"]
{
  /*background-color: #b8cfe6;*/
  /*background-color: #A0C0FF;*/
  /*background-color: #99D1FF;*/
  /*background-color: #B2DCFF;*/
  background-color: #FFDCB2;
}

.window-label
{
  margin: 8px 0 4px 0;
}

/* dsearch */
/*
.dsearch {
    display: inline-block;
}

.dsearch .sub-window {
    position: absolute;
    top: 38px;
    width: 160px;
}

.dsearch .dsearch-list {
    background-color: whitesmoke;
    border-left: 1px solid white;
    border-top: 1px solid white;
    border-right: 1px solid silver;
    border-bottom: 1px solid silver;
    position: absolute;
    z-index:10;
    max-height: 300px;
    width: 140px;
    overflow: auto;
}

.dsearch .dsearch-item {
    padding: 4px 32px 4px 8px;
}

.dsearch .dsearch-item:hover {
    background-color: #FC8;
}
*/
/* dsaveaspng */
/*
.dsaveaspng {
    display: inline-block;
    position: relative;
}

.dsaveaspng .sub-window {
    position: absolute;
    top: 38px;
    width: 160px;
}

.dsaveaspng .sub-window .sub-window-content {
    text-align: center;
}

.dsaveaspng .label-node,
.dsaveaspng .label-scale {
}

.dsaveaspng .input-node,
.dsaveaspng .input-scale {
}
*/
/* dopen */
/*
.dopen {
    display: inline-block;
    position: relative;
}

.dopen .sub-window {
    position: absolute;
    top: 38px;
}

.dopen .sub-window .sub-window-content {
    text-align: center;
}
*/
/* dcase-link-editor */
/*
.dcase-link-editor {
    position: absolute;
}

.dcase-link-editor.sub-window .sub-window-content {
    min-width: 200px;
}
.dcase-link-editor.sub-window .sub-window-content div {
    margin: 8px;
}
.dcase-link-editor.sub-window .sub-window-footer button {
    width: 6em;
    margin: 0 8px;
}
*/
/* tool bar */
.undo-button,
.redo-button
{
  width: 24px;
  height: 24px;
  border-width: 0;
}

.undo-button
{
  background: url(../images/undo24.png);
}

.undo-button:disabled
{
  background: url(../images/undo-disable24.png);
}

.redo-button
{
  background: url(../images/redo24.png);
}

.redo-button:disabled
{
  background: url(../images/redo-disable24.png);
}

/* D-ADD */
.markup-char::selection,
.markup-char::-moz-selection
{
  background-color: #ff0;
}


/* Temporary */
/*
.deosc-Menu td
{
  border-width: 0;
}
*/

.context-menu-base
{
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

table.context-menu
{
  position: absolute;
  border-collapse: collapse;
  background-color: #444;
  border-left: 1px solid gray;
  border-top: 1px solid gray;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  -webkit-user-select: none;
  user-select: none;
}

table.context-menu td
{
  border-width: 0;
}

tr.context-menu-item
{
  font-size: 14px;
  color: whitesmoke;
  cursor: default;
}

tr.context-menu-item
{
  font-size: 14px;
  color: whitesmoke;
  cursor: default;
}

tr.context-menu-item[selected="selected"]
{
  background-color: darkgray;
}

tr.context-menu-item[disabled="disabled"]
{
  color: #888;
  background-color: transparent;
}

tr.context-menu-item td:nth-child(1)
{
  padding: 5px 16px 5px 16px;
}

canvas.context-menu-item-arrow
{
  vertical-align: middle
}

.context-menu-base
{
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.menu-bar
{
  border-bottom: 1px solid black;
  background-color: #444;
  cursor: default;
}

.menu-bar-item
{
  display: inline-block;
  padding: 4px 8px;
  color: whitesmoke;
  font-size: 14px;
  background-color: #444;
  position: relative;
}

.menu-bar-item[selected="selected"]
{
  background-color: darkgray;
}

.menu-bar.active .menu-bar-item
{
  z-index: 10;
}

.icon-file
{
  width: 24px;
  height: 24px;
  background: url(../images/file24.png);
  vertical-align: middle;
}

.icon-dir
{
  width: 24px;
  height: 24px;
  background: url(../images/dir24.png);
  vertical-align: middle;
}

body
{
  font-size: 14px;
  -user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  cursor: default;
}

.dialog-close-button
{
  display: inline-block;
  position: absolute;
  right: 8px;
  width: 16px;
  height: 16px;
  background: url(../images/close16.png);
}

.dialog-close-button:hover
{
  background: url(../images/close-hover16.png);
}

.context-menu-item-arrow
{
  width: 16px;
  height: 16px;
  background-image: url(../images/menu-arrow.png);
  background-repeat: no-repeat;
  background-position: center center;
}

.context-menu-item[disabled="disabled"] .context-menu-item-arrow
{
  background-image: url(../images/menu-arrow-disabled.png);
}

.context-menu-item-arrow-none
{
  width: 16px;
  height: 16px;
}

.icon-expand,
.icon-collapse
{
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center center;
  vertical-align: middle;
}

.icon-expand
{
  background-image: url(../images/expand24.png);
}

.icon-collapse
{
  background-image: url(../images/collapse24.png);
}

.view
{
  position: relative;
}

.resize-handle
{
  right: 0;
  bottom: 0;
  display: inline-block;
  width: 16px;
  height: 16px;
  position: absolute;
  cursor: se-resize;
}

.view.dialog-base
{
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    left: 0; top: 0;
}
/*
.sub-window {
    display: inline-block;
    font-size: 0.75em;
    padding: 2px;
    background-color: lightgray;
    border-right: 1px solid gray;
    border-bottom: 1px solid gray;
    border-top: 1px solid whitesmoke;
    border-left: 1px solid whitesmoke;
}
*/
.view.dialog
{
  padding: 0 2px 2px 2px;
  background-color: lightgray;
  border-right: 1px solid gray;
  border-bottom: 1px solid gray;
  border-top: 1px solid whitesmoke;
  border-left: 1px solid whitesmoke;
  display: inline-block;
  position: absolute;

  box-shadow: 0px 0px 24px -8px;
}

.view.dialog-header
{
  padding: 6px 4px;
}

.view.dialog-body
{
  background-color: whitesmoke;
  border-right: 1px solid white;
  border-top: 1px solid darkgray;
  border-left: 1px solid darkgray;
  padding: 4px;
  overflow: hidden;
}

.view.dialog-footer
{
  padding: 4px;
  background-color: whitesmoke;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  border-left: 1px solid darkgray;
  text-align: center;
}

.view.dialog-close-button2
{
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url(../images/close16.png);
  vertical-align: middle;
}

.view.dialog-close-button2:hover
{
  background: url(../images/close-hover16.png);
}

.view.dialog-title
{
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.view.dialog-footer button
{
  min-width: 6em;
}

.view.menu-base
{
    position: absolute;
}

td.view
{
/*  padding: 4px;*/
  padding: 0 4px;
}

.view.label
{
  height: 1em;
  padding: 8px 0;
}

.view.hbox>.view
{
  display: inline-block;
/*  vertical-align: middle;*/
  vertical-align: top;
/*  overflow: hidden;*/
  white-space: nowrap;
}

.view.vbox>.view
{
  display: block;
}

.view.list
{
  border-left: 1px solid #aaa;
  border-top: 1px solid #aaa;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background-color: #fff;
  overflow-y: scroll;
}

.view.list-item
{
  background-color: #e8e8e8;
}

.view.list-item:nth-child(even)
{
  background-color: #f8f8f8;
}

.view.list-item[checked="checked"]
{
  /*background-color: #b8cfe6;*/
  /*background-color: #A0C0FF;*/
  /*background-color: #99D1FF;*/
  /*background-color: #B2DCFF;*/
  background-color: #FFDCB2;
}

.view.list-item>td.view
{
  vertical-align: middle;
  height: 24px;
}

/*
table.view
{
  width: 100%;
}
*/

table.table1>tbody>tr>td
{
  vertical-align: middle;
}

table.table2>tbody>tr>td
{
  padding: 4px;
  border: 1px solid gray;
}
/*
table.view.list-header>tbody>tr>td
{
  background-color: #ccc;
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  border-right: 1px solid #888;
  border-bottom: 1px solid #888;
  padding: 4px;
  overflow: hidden;
  display: inline-block;
}

tr.list-item>td
{
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}
*/

div.list-view
{
}
/*
div.list-view>div.list
{
  position: static;
  padding-top: 20px;
  overflow-y: auto;
}
*/
div.list-view table
{
  /*position: static;*/
  border-collapse: separate;
  border-spacing: 0;
}
/*
div.list-view thead
{
  position: absolute;
  top: 1px;
  left: 1px;
}
*/
div.list-view th
{
  height: 18px;
  text-align: left;
  padding: 0 3px;
  background-color: #ddd;
  border-width: 1px;
  border-style: solid;
  border-color: #fff #aaa #aaa #fff;
  font-weight: normal;
  /*display: inline-block;*/
}

div.list-view th,
div.list-view td
{
  white-space: nowrap;
}

textarea
{
  width: 200px;
}

.view.properties-widget
{
  left: 8px;
  top: 8px;
  position: absolute;
  border: 1px solid #aaa;
}

.properties-widget-name, .properties-widget-desc
{
  min-height: 1em;
  margin: 8px;
}

.properties-widget-edit-button
{
  width: 24px;
  height: 24px;
  position: absolute;
  right: 1px;
  bottom: 1px;
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  background: url(../images/edit24.png), -webkit-gradient(linear, left top, left bottom, from(#fff), to(#aaa));
  background: url(../images/edit24.png), -moz-linear-gradient(top, #fff, #aaa);
  display: none;
}

.properties-widget:hover .properties-widget-edit-button
{
  display: block;
}

.properties-widget-edit-button:active
{
  border-color: #aaa #fff #fff #aaa;
  background: url(../images/edit24.png), -webkit-gradient(linear, left top, left bottom, from(#aaa), to(#fff));
  background: url(../images/edit24.png), -moz-linear-gradient(top, #aaa, #fff);

}

.info-panel
{
  display: inline-block;
  position: absolute;
  top: 8px;
  right: 8px;
  border: solid 1px #aaa;
  background-color: #fff;
}

.info-panel td
{
  padding: 4px 8px;
}

.info-panel td:nth-child(2)
{
  text-align: right;
}

.properties-dialog-name
{
  padding-left: 8px;
  padding-bottom: 8px;
  margin-top: 8px;
  border-bottom: 1px solid #ccc;
}

.properties-dialog-table
{
  width: 100%;
  margin-top: 8px;
}

.properties-dialog-table td
{
  padding: 4px 8px;
}

.properties-dialog-desc-label
{
  margin-top: 8px;
  padding-left: 8px;
}

.properties-dialog-desc
{
  margin: 4px 8px;
  width: calc(100% - 20px);
  height: 5em;
}
