.dialog {
  background: #eeeeec;
  border: 1px solid #fff;
  border-bottom: none;
  border-right: none;
  cursor: default;
  left: 50%;
  margin-left: -10em;
  outline: 1px solid #babdb6;
  position: absolute;
  top: 20%;
  -moz-user-select: -moz-none;
  -webkit-user-select: none;
  user-select: none;
  width: 20em;
}

.dialog > * {
  margin: 1em 0.5em;
  overflow: auto;
}

.dialog h1 {
  background: #eeeeec;
  background: -moz-linear-gradient(#eeeeec, #d3d7cf);
  background: -webkit-gradient(linear, left top, left bottom, from(#eeeeec), to(#d3d7cf));
  filter: progid:DXImageTransform.Microsoft.Gradient(
    StartColorStr=#eeeeec, EndColorStr=#d3d7cf);
  background: linear-gradient(#eeeeec, #d3d7cf);
  border-bottom: 1px solid #babdb6;
  font-size: inherit;
  font-variant: small-caps;
  margin: 0;
  padding: 0.5em 0.5em;
  text-align: center;
}

.dialog h1 .action.close {
  float: right;
}

.dialog .text {
  font-size: 0.85em;
}

.dialog .actions {
  margin-top: 0;
  padding: 0.2em 0.1em 0.2em;
}

.dialog.settings #sorting label,
.dialog.settings #properties label {
  float: left;
  width: 8em;
}

.dialog.settings #sorting .descending,
.dialog.settings #sorting .ascending {
  background-color: #fff;
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  padding: 0.1em;
  width: 4em;
}

.dialog.settings #sorting .ascending {
  background-image: url(../../images/ascending.png);
  background-position: 10% center;
  -moz-border-radius-topleft: 1em;
  border-top-left-radius: 1em;
  -moz-border-radius-bottomleft: 1em;
  border-bottom-left-radius: 1em;
  border-right: none;
  padding-left: 20px;
}

.dialog.settings #sorting .descending {
  background-image: url(../../images/descending.png);
  background-position: 90% center;
  -moz-border-radius-topright: 1em;
  border-top-right-radius: 1em;
  -moz-border-radius-bottomright: 1em;
  border-bottom-right-radius: 1em;
  padding-right: 20px;
}

.dialog.settings #sorting .active {
  background-color: #ccc;
  -moz-box-shadow: inset 0.1em 0.1em 0.1em #999;
  -webkit-box-shadow: inset 0.1em 0.1em 0.1em #999;
  box-shadow: inset 0.1em 0.1em 0.1em #999;
}

.dialog.settings #properties ul {
  background: #fff;
  float: left;
  max-height: 9em;
  min-width: 10em;
  overflow: auto;
}

.dialog.settings #properties li {
  list-style: none;
  overflow: auto;
  vertical-align: middle;
  padding: 0.3em;
  /*margin-bottom: 0.5em;*/
}

.dialog.settings #properties li:nth-child(even) {
  background: #ddd;
}

.dialog.settings #properties input {
  margin-right: 0.5em;
  vertical-align: middle;
}
