/*-----------------------------------------------------------------------------*/

.MLAB-GUI-DisabledDOMElement {
  color: rgb(138,138,138);
}


/*-----------------------------------------------------------------------------*/

button.MLAB-GUI-Button {
  white-space:nowrap;
}

label.MLAB-GUI-Button {

  white-space:nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select:none;
  
  border: solid 1px rgb(158,158,158);
  
  background: -moz-linear-gradient(top, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* FF3.6+ */
  background: -webkit-linear-gradient(top, rgb(237,237,237) 0%,rgb(208,208,208) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* IE10+ */
  background: linear-gradient(to bottom, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='rgb(237,237,237)', endColorstr='rgb(208,208,208)',GradientType=0 ); /* IE6-9 */

  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;

  text-align: center;
  padding: 2px;
  
  font: -moz-button;
}

label.MLAB-GUI-Button-Checked.MLAB-GUI-DisabledDOMElement {
  color: rgb(158,158,158);
  background: rgb(208,208,208);
}

label.MLAB-GUI-Button:hover.MLAB-GUI-DisabledDOMElement, 
label.MLAB-GUI-Button:focus.MLAB-GUI-DisabledDOMElement {
  border: solid 1px rgb(158,158,158);
  
  background: -moz-linear-gradient(top, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* FF3.6+ */
  background: -webkit-linear-gradient(top, rgb(237,237,237) 0%,rgb(208,208,208) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* IE10+ */
  background: linear-gradient(to bottom, rgb(237,237,237) 0%, rgb(208,208,208) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='rgb(237,237,237)', endColorstr='rgb(208,208,208)',GradientType=0 ); /* IE6-9 */
}

label.MLAB-GUI-Button-Checked {
  color: rgb(0,0,0);
}

label.MLAB-GUI-Button img {
  display: inline;
  vertical-align: middle;
  margin-right: 2px;
}

label.MLAB-GUI-Button:hover, label.MLAB-GUI-Button:focus {
  border: solid 1px rgb(108,108,108);
}

label.MLAB-GUI-Button-Checked,
label.MLAB-GUI-Button:active {
  background: -moz-linear-gradient(top, rgb(208,208,208) 0%, rgb(179,179,179) 100%); /* FF3.6+ */
  background: -webkit-linear-gradient(top, rgb(208,208,208) 0%, rgb(179,179,179) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, rgb(208,208,208) 0%, rgb(179,179,179) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, rgb(208,208,208) 0%, rgb(179,179,179) 100%); /* IE10+ */
  background: linear-gradient(to bottom, rgb(208,208,208) 0%, rgb(179,179,179) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='rgb(208,208,208)', endColorstr='rgb(179,179,179)',GradientType=0 ); /* IE6-9 */
}


label.MLAB-GUI-Button-Checked.MLAB-GUI-DisabledDOMElement:hover, 
label.MLAB-GUI-Button-Checked.MLAB-GUI-DisabledDOMElement:focus {
  color: rgb(158,158,158);
  background: rgb(208,208,208);
}

label.MLAB-GUI-Button-Checked:hover, 
label.MLAB-GUI-Button-Checked:focus {
  border: solid 1px rgb(108,108,108);
}


/*-----------------------------------------------------------------------------*/

/*
 * MLAB.GUI.CommonButtonGroupControl style
 */
div.MLAB-GUI-HorizontalButtonGroup > table,
div.MLAB-GUI-HorizontalButtonGroup > table > tbody,
div.MLAB-GUI-HorizontalButtonGroup > table > tbody > tr > td > button,
div.MLAB-GUI-HorizontalButtonGroup > table > tbody > tr > td > label {
  width: 100%;
}

div.MLAB-GUI-HorizontalButtonGroup > table > tbody > tr > td > label {
  display: block;
}

div.MLAB-GUI-HorizontalButtonGroup > table > tbody > tr > td {
  padding-left: 0px;
  padding-right: 8px;
}

div.MLAB-GUI-HorizontalButtonGroup > table > tbody > tr > td:last-child {
  padding-right: 0px;
}

div.MLAB-GUI-VerticalButtonGroup > table,
div.MLAB-GUI-VerticalButtonGroup > table > tbody,
div.MLAB-GUI-VerticalButtonGroup > table > tbody > tr > td > button,
div.MLAB-GUI-VerticalButtonGroup > table > tbody > tr > td > label {
  width: 100%;
}

div.MLAB-GUI-VerticalButtonGroup > table > tbody > tr > td > label {
  display: block;
}

div.MLAB-GUI-VerticalButtonGroup > table > tbody > tr > td {
  padding-left: 0px;
  padding-right: 8px;
}

div.MLAB-GUI-VerticalButtonGroup > table > tbody > tr > td:last-child {
  padding-right: 0px;
}


/*-----------------------------------------------------------------------------*/

/*
 * MLItemModuleViewControl style classes
 */
div.MLAB-GUI-MLItemModelViewControl table {
  overflow: hidden;
  display: block;
  border-spacing: 0px;
  width: 100%;
}

div.MLAB-GUI-MLItemModelViewControl tbody {
  display: block;
  max-height: 250px;
  overflow: auto;
}

div.MLAB-GUI-MLItemModelViewControl thead {
  display: block;
  overflow: hidden;
  position: relative;
}

div.MLAB-GUI-MLItemModelViewControl thead th {
  overflow: hidden;
}

th.MLAB-GUI-MLItemModelViewControl_AscendingOrder {
  background: url(arrowDown.png) no-repeat right;
}

th.MLAB-GUI-MLItemModelViewControl_DescendingOrder {
  background: url(arrowUp.png) no-repeat right;
}

tr.MLAB-GUI-MLItemModelViewControl_HeaderRow th,
tr.MLAB-GUI-MLItemModelViewControl_HeaderRow td {
  font-size: 120%;
  padding-left: 4px;
  padding-right: 4px;
  background-color: rgba(192, 192, 192, 1.0);
  border-left: 1px solid white;
  border-right: 1px solid white;
  text-align: left;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.MLAB-GUI-MLItemModelViewControl_HeaderLabel {
  margin-right: 12px;
}

tr.MLAB-GUI-MLItemModelViewControl_TableRow {
  white-space: nowrap;
}

tr.MLAB-GUI-MLItemModelViewControl_TableRow td {
  padding-left: 5px;
  padding-right: 5px;
}

table.MLAB-GUI-AlternatingRowColors > tbody > tr:nth-child(even) {
  background-color: #E4E4E4;
}

tr.MLAB-GUI-MLItemModelViewControl_TableRow:hover,
table.MLAB-GUI-AlternatingRowColors > tbody > tr:nth-child(even):hover {
  background-color: #D8D8D8;
}

div.MLAB-GUI-MLItemModelViewControl.MLAB-GUI-DisabledDOMElement tr.MLAB-GUI-MLItemModelViewControl_TableRow:hover {
  background-color: white;
}

tr.MLAB-GUI-MLItemModelViewControl_SelectedRow td {
  background: rgba(128, 128, 255, 1.0);
}

div.MLAB-GUI-MLItemModelViewControl.MLAB-GUI-DisabledDOMElement tr.MLAB-GUI-MLItemModelViewControl_SelectedRow > td {
  background: rgba(245, 245, 245, 1.0);
}

div.MLAB-GUI-MLItemModelViewControl tr {
  cursor: pointer;
}

tr.MLAB-GUI-MLItemModelViewControl_TableRow > td > * {
  vertical-align: middle;
}

div.MLAB-GUI-MLItemModelViewControl_EmptyHandle {
  height: 2ex;
  width: 2ex;
  display: inline-block;
}

div.MLAB-GUI-MLItemModelViewControl_CollapsedHandle {
  height: 2ex;
  width: 2ex;
  display: inline-block;
  background: url(expand.gif) 0 2px no-repeat;
}

div.MLAB-GUI-MLItemModelViewControl_ExpandedHandle {
  height: 2ex;
  width: 2ex;
  display: inline-block;
  background: url(collapse.gif) 0 2px no-repeat;
}

div.MLAB-GUI-MLItemModelViewControl_CellContent {
  display: inline-block;
  padding-left: 0.3em;
}

/*-----------------------------------------------------------------------------*/

.MLAB-GUI-SplitterControl {
  padding: 0;
  border-spacing: 0;
  white-space: nowrap;
}

.VerticalSplitterChild, .HorizontalSplitterChild {
  overflow: hidden;
}

.MLAB-GUI-SplitterControl > .MLAB-GUI-SplitterHandle {
  position: relative;
  padding: 0;
  margin: 0;
  border-spacing: 0;
  border: 1px outset rgb(179,179,179);
  border-radius: 1px;
}

.MLAB-GUI-SplitterControl-Horizontal > * {
  display: inline-block;
  vertical-align: top;
}

.MLAB-GUI-SplitterControl-Vertical > * {
  /* elements in the vertical control must be displayed 
     as block to prevent spacing inbetween them */
  display: block;
}

.MLAB-GUI-SplitterControl-Horizontal > .MLAB-GUI-SplitterHandle {
  width: 4px;
  cursor: col-resize; 
}

.MLAB-GUI-SplitterControl-Horizontal > .MLAB-GUI-SplitterResizeIndicator {
  cursor: col-resize;
}

.MLAB-GUI-SplitterControl-Vertical > .MLAB-GUI-SplitterHandle {
  height: 4px;
  cursor: row-resize;
}

.MLAB-GUI-SplitterControl-Vertical > .MLAB-GUI-SplitterResizeIndicator {
  cursor: row-resize;
}

.MLAB-GUI-SplitterResizeIndicator,
.MLAB-GUI-SplitterResizeIndicator > div {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
}


/*-----------------------------------------------------------------------------*/

div.MLABDialog {
  position: absolute;
  z-index: 2;
  visibility: hidden;
}

/*-----------------------------------------------------------------------------*/

/*
 * MLAB.GUI.TabViewControl style
 */
table.MLAB-GUI-TabBarTable {
  border-style: none;
}

table.MLAB-GUI-TabBarTable > tbody > tr > td {
  padding: 0px;
}

.MLAB-GUI-TabBarIsVisible span.MLAB-GUI-TabBarItem  {
  background-color: rgb(235,235,235);
  padding: 2px;
  
  border: 2px outset rgb(125,125,125);
  -webkit-border-top-left-radius: 5px;
  -moz-border-top-left-radius: 5px;
  border-top-left-radius: 5px;
  -webkit-border-top-radius: 5px;
  -moz-border-top-right-radius: 5px;
  border-top-right-radius: 5px;
  
  position: relative;
  top: 2px;
  z-index: 1;
}

.MLAB-GUI-TabBarIsVisible span.MLAB-GUI-ActiveTabBarItem  {
  border-bottom: 0px;
  background-color: white;
  position: relative;
  z-index: 3;
}

.MLAB-GUI-TabBarIsVisible div.MLAB-GUI-TabViewStack {
  background-color: white;
  position: relative; /* position is required for z-index */
  z-index: 2;

  border: 2px outset rgb(125,125,125);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-border-top-left-radius: 0px;
  -moz-border-top-left-radius: 0px;
  border-top-left-radius: 0px;
}

.MLAB-GUI-TabBarIsVisible div.MLAB-GUI-TabViewItemControl > table {
  padding: 4px;
  /* we want to expand horizontally inside the parent element: */
  width: 100%;
}

/*-----------------------------------------------------------------------------*/

/*
 * Other styles
 */

.MLAB-GUI-HiddenDOMElement {
  visibility: hidden;
}

.MLAB-GUI-ConcealedDOMElement {
  display: none !important;
}

div.MLAB-GUI-PanelControl {
  /* The panel should not expand as much as possible by default, which 
     it would if display has the default value 'block'. */
  display: inline-block;
  text-align: left;
}


/*-----------------------------------------------------------------------------*/

/*
 * MLAB.GUI.BoxControl style
 */
div.MLAB-GUI-BoxControl {
  border: 1px solid lightblue;
  margin-top: 4pt;
  padding-left: 2pt;
  padding-right: 2pt;
  padding-bottom: 2pt; 
}
span.MLAB-GUI-BoxTitleLabel {
  background: white;
  position: relative;
  left: 2pt;
  top: -7pt; 
}


/*-----------------------------------------------------------------------------*/

/*
 * MLAB.GUI.HyperTextControl style
 */
div.MLAB-GUI-HyperTextControl {
  border: 1px inset rgb(195,195,195);
  padding-top: 2pt;
  padding-left: 5pt;
  overflow: auto;
}

div.MLAB-GUI-HyperTextContent {
}


/*-----------------------------------------------------------------------------*/

div.MLAB-GUI-VerticalControl > table > tbody > tr > td {
  padding-bottom: 2px;
  padding-top: 0px;
}

div.MLAB-GUI-VerticalControl > table > tbody > tr > td:last-child {
  padding-bottom: 0px;
}

div.MLAB-GUI-HorizontalControl > table > tbody > tr > td {
  padding-right: 2px;
  padding-left: 0px;
}

div.MLAB-GUI-HorizontalControl > table > tbody > tr > td:last-child {
  padding-right: 0px;
}


/*-----------------------------------------------------------------------------*/

div.MLAB-GUI-TableControl > table > tbody > tr > td.MLAB-GUI-LastColumn {
  width: 100%;
}

div.MLAB-GUI-HorizontalControl > table,
div.MLAB-GUI-HorizontalControl > table > tbody {
  width: 100%;
}

/*-----------------------------------------------------------------------------*/

span.MLAB-GUI-FieldControlLabel {
  white-space: nowrap;
}

/*-----------------------------------------------------------------------------*/

.MLAB-GUI-DisableEventHandling {
  pointer-events:none;
}

/*-----------------------------------------------------------------------------*/

div.MLAB-GUI-IconItemView {
width: 100%;
overflow: auto;
}

table.MLAB-GUI-IconItemViewItem {
float: left;
padding: 5px;
}

/*-----------------------------------------------------------------------------*/

table.MLAB-GUI-hideColumn-0  td:nth-child(1)  { display: none; }
table.MLAB-GUI-hideColumn-1  td:nth-child(2)  { display: none; }
table.MLAB-GUI-hideColumn-2  td:nth-child(3)  { display: none; }
table.MLAB-GUI-hideColumn-3  td:nth-child(4)  { display: none; }
table.MLAB-GUI-hideColumn-4  td:nth-child(5)  { display: none; }
table.MLAB-GUI-hideColumn-5  td:nth-child(6)  { display: none; }
table.MLAB-GUI-hideColumn-6  td:nth-child(7)  { display: none; }
table.MLAB-GUI-hideColumn-7  td:nth-child(8)  { display: none; }
table.MLAB-GUI-hideColumn-8  td:nth-child(9)  { display: none; }
table.MLAB-GUI-hideColumn-9  td:nth-child(10) { display: none; }

table.MLAB-GUI-hideColumn-10 td:nth-child(11) { display: none; }
table.MLAB-GUI-hideColumn-11 td:nth-child(12) { display: none; }
table.MLAB-GUI-hideColumn-12 td:nth-child(13) { display: none; }
table.MLAB-GUI-hideColumn-13 td:nth-child(14) { display: none; }
table.MLAB-GUI-hideColumn-14 td:nth-child(15) { display: none; }
table.MLAB-GUI-hideColumn-15 td:nth-child(16) { display: none; }
table.MLAB-GUI-hideColumn-16 td:nth-child(17) { display: none; }
table.MLAB-GUI-hideColumn-17 td:nth-child(18) { display: none; }
table.MLAB-GUI-hideColumn-18 td:nth-child(19) { display: none; }
table.MLAB-GUI-hideColumn-19 td:nth-child(20) { display: none; }

table.MLAB-GUI-hideColumn-20 td:nth-child(21) { display: none; }
table.MLAB-GUI-hideColumn-21 td:nth-child(22) { display: none; }
table.MLAB-GUI-hideColumn-22 td:nth-child(23) { display: none; }
table.MLAB-GUI-hideColumn-23 td:nth-child(24) { display: none; }
table.MLAB-GUI-hideColumn-24 td:nth-child(25) { display: none; }
table.MLAB-GUI-hideColumn-25 td:nth-child(26) { display: none; }
table.MLAB-GUI-hideColumn-26 td:nth-child(27) { display: none; }
table.MLAB-GUI-hideColumn-27 td:nth-child(28) { display: none; }
table.MLAB-GUI-hideColumn-28 td:nth-child(29) { display: none; }
table.MLAB-GUI-hideColumn-29 td:nth-child(30) { display: none; }

table.MLAB-GUI-hideColumn-30 td:nth-child(31) { display: none; }
table.MLAB-GUI-hideColumn-31 td:nth-child(32) { display: none; }
table.MLAB-GUI-hideColumn-32 td:nth-child(33) { display: none; }
table.MLAB-GUI-hideColumn-33 td:nth-child(34) { display: none; }
table.MLAB-GUI-hideColumn-34 td:nth-child(35) { display: none; }
table.MLAB-GUI-hideColumn-35 td:nth-child(36) { display: none; }
table.MLAB-GUI-hideColumn-36 td:nth-child(37) { display: none; }
table.MLAB-GUI-hideColumn-37 td:nth-child(38) { display: none; }
table.MLAB-GUI-hideColumn-38 td:nth-child(39) { display: none; }
table.MLAB-GUI-hideColumn-39 td:nth-child(40) { display: none; }
/* Note: CSS rules for columns >= 40 are dynamically created on demand in ItemModelViewControl.js */


div.MLAB-GUI-TextViewEditableDiv {
  background-color: white;
  border: 1px inset grey;
  border-radius: 2px;
  padding: 1px 2px 1px 2px;
}

div.MLAB-GUI-TextViewEditableDiv.MLAB-GUI-DisabledDOMElement {
  background: rgb(208,208,208);
}

table.MLAB-GUI-TextViewTable tbody > tr:first-child > td:last-child {
  text-align: right;
}

textarea.MLAB-GUI-TextViewTextArea  {
  width: 100%;
}


/*-----------------------------------------------------------------------------*/

.MLAB-GUI-VectorEditControl input,
.MLAB-GUI-FieldControlVectorEdit input {
  width: 3em;
}

/*-----------------------------------------------------------------------------*/

.MLAB-GUI-ButtonBoxControl div.MLAB-GUI-HorizontalControl > table,
.MLAB-GUI-ButtonBoxControl div.MLAB-GUI-HorizontalControl > table > tbody {
  width: inherit;
}

/*-----------------------------------------------------------------------------*/

hr.MLAB-vertical {
  width: 0px;
  height: 100%;
}

/*-----------------------------------------------------------------------------*/

.MLAB-GUI-SliderControl {
  display: inline-block;
  padding: 0;
  margin: 0;
  width: 100%;
}

.MLAB-GUI-SliderControl > input {
  width: 100%;
}
