/* layout */

html {
  background: #f3f3f3 url(images/bg-mobile.png) repeat-x;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font: 8pt/150% Verdana, 'DejaVu Sans', Sans-Serif;
  color: #494949;
}

#header {
  position: relative;
  width: 100%;
  height: 45px;
}

#header a {
  text-decoration: none;
}

#site-logo {
  position: absolute;
  left: 7px;
  top: 7px;
}

#site-name {
  position: absolute;
  left: 45px;
  top: 15px;
  font-weight: bold;
  font-size: 150%;
  color: #ffffff;
  text-shadow: 1px 1px #444444;
}

#body {
  position: absolute;
  left: 10px;
  right: 10px;
}

.fixed-block, .message-block {
  margin: 10px auto 10px auto;
  padding: 0.75em;
  background: #ffffff url(images/bg-block.png) repeat-x;
  border: 1px solid #cccccc;
  box-shadow: 1px 1px 3px #bbbbbb;
}

.fixed-block {
  max-width: 800px;
}

.message-block {
  max-width: 400px;
}

.debug {
  margin: 25px 0 0 0;
  font-size: 0.9em;
}

/* general elements */

h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-family: Verdana, 'DejaVu Sans', Sans-Serif;
}

h1 {
  font-size: 150%;
  line-height: 130%;
  margin-bottom: 0.75em;
}

h2 {
  font-size: 130%;
  line-height: 130%;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 120%;
  line-height: 130%;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 100%;
  line-height: 130%;
  margin-bottom: 0.5em;
}

p {
  margin: 0.4em 0 0.8em;
  padding: 0;
  text-align: left;
}

a:link, a:visited {
  color: #027ac6;
  text-decoration: none;
}

a:hover {
  color: #0062a0;
  text-decoration: underline;
}

a:active {
  color: #5895be;
}

a.anchor {
  text-decoration: none;
  color: #494949;
}

dl {
  margin: 0.5em 0 1em 2em;
}

dl dt {
  margin: 1em 0 0.5em 0;
}

dl dd {
  margin: 0 0 0 3em;
}

ul {
  list-style-type: circle;
  padding-left: 2em;
}

/* dynamic elements */

.hamburger, .cross {
  background: none;
  position: absolute;
  top: 0;
  right: 0;
  line-height: 45px;
  padding: 0px 10px;
  color: #ffffff;
  border: 0;
  font-size: 2.2em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  z-index: 10;
}

.menu {
  position: absolute;
  left: 0;
  right: 0;
  background: #dddddd;
  box-shadow: 1px 1px 3px #bbbbbb;
  z-index: 20;
}

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

.menu li, .menu a li {
  padding: 10px 10px;
  border-bottom: 1px solid #cccccc;
}

.menu a:hover {
  text-decoration: none;
}

.menu a:hover li {
  background: #d8d8d8;
}

.pane-wrapper {
  width: 100%;
  margin: 10px 0;
  background: #ffffff url(images/bg-block.png) repeat-x;
  border: 1px solid #cccccc;
  box-shadow: 1px 1px 3px #bbbbbb;
}

.pane-header {
  position: relative;
  cursor: pointer;
  padding: 0.75em;
}

.pane-header h2 {
  margin-bottom: 0;
  margin-right: 36px;
}

.ellipsis {
  display: none;
  color: #aaaaaa;
}

.pane-header .hamburger, .pane-header .cross {
  top: 50%;
  margin-top: -17px;
  line-height: 34px;
  font-size: 1.8em;
  color: #494949;
}

.pane-wrapper .menu {
  left: 0.75em;
  right: 0.75em;
  background: #eeeeee;
}

.pane-wrapper .menu ul {
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
}

.pane-wrapper .menu li {
  border-bottom: 1px solid #dddddd;
}

.pane-wrapper .menu a:hover li {
  background: #e8e8e8;
}

.pane-body {
  padding: 0 0.75em 0.75em 0.75em;
}

h3 {
  position: relative;
}

h3 .hamburger, h3 .cross {
  top: -5px;
  right: -5px;
  line-height: 150%;
  font-size: 130%;
  color: #494949;
}

.history-links {
  position: relative;
}

.history-links .hamburger, .history-links .cross {
  top: -2px;
  right: -5px;
  line-height: 130%;
  font-size: 160%;
  color: #494949;
}

.grid {
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #dddddd;
}

.grid .row, .grid .parent, .grid .child {
  margin: 0;
  padding: 0.75em 0.25em;
  border-top: 1px solid #dddddd;
}

.grid .parent {
  position: relative;
  background: #f8f8f8;
}

.grid .parent .hamburger, .grid .parent .cross {
  line-height: 190%;
  font-size: 160%;
  color: #494949;
}

.grid .child {
  padding-left: 3em;
}

.grid a:hover {
  text-decoration: none;
}

.grid a:hover .row, .grid a:hover .child {
  background: #fcfcfc;
}

.grid .selected {
  background: #e2e2ff;
}

.grid a:hover .row.selected, .grid a:hover .child.selected {
  background: #e0e0fc;
}

.grid .expandable {
  cursor: pointer;
}

/* forms */

form {
  margin: 0;
  padding: 0;
}

input, button, select, textarea {
  font: 8pt/150% Verdana, 'DejaVu Sans', Sans-Serif;
  color: #494949;
}

textarea {
  font-size: 16px;
  width: 100%;
  height: 300px;
  padding: 3px;
  box-sizing: border-box;
  white-space: pre-wrap;
}

.form-fieldset textarea {
  max-width: 100%;
  height: 100px;
  box-sizing: border-box;
}

.form-field {
  margin: 0.4em 0 0.8em;
}

.form-field label {
  display: block;
}

.form-field input {
  background-color: #f8f8f8;
  border: 1px solid #cccccc;
  font-size: 16px;
  margin: 0.2em 0 0;
  padding: 1px 3px;
  max-width: 100%;
  box-sizing: border-box;
}

.form-field select {
  font-size: 16px;
  margin: 0.2em 0 0;
  max-width: 100%;
  height: 1.8em;
  box-sizing: border-box;
}

.form-fieldset {
  background: #ffffff url(images/bg-fieldset.png) repeat-x 0 -1px;
  margin: 1.8em 0 0.8em;
  border: 1px solid #cccccc;
  padding: 0.75em;
  position: relative;
  min-width: 0;
}

.form-legend, .form-fieldset legend {
  background: transparent url(images/bg-fieldset.png) repeat-x 0 8px;
  font-weight: bold;
  color: #494949;
  padding: 0 0.5em;
  position: absolute;
  top: -9px;
  left: 0.5em;
}

.form-fieldset dl {
  margin-left: 1.25em;
}

.form-radio {
  margin: 0.2em 0;
}

.form-radiogroup {
  margin: 0.4em 0 0.8em 0;
}

.form-checkbox {
  margin: 0.4em 0 0.8em 0;
}

.form-checkgroup {
  margin: 0.4em 0 0.8em 0;
}

.form-checkgroup .form-checkbox {
  margin: 0.2em 0;
}

.form-submit {
  margin: 1.5em 0 0 0;
  text-align: right;
}

.form-button {
  font-size: 16px;
  width: 120px;
  height: 2em;
  margin: 0 0 0 0.75em;
}

.form-inline {
  margin: 0 3em 0.8em 0;
  float: left;
}

.form-inline-right {
  margin-right: 0;
}

.form-inline .form-field {
  display: inline;
}

.form-inline .form-field label {
  display: inline;
}

.form-inline .form-checkbox {
  display: inline;
}

.form-inline .form-button {
  width: 90px;
  margin: 0 0 0 0.5em;
}

.form-inline td {
  vertical-align: top;
}

.form-inline td p {
  margin: 0.4em 0 0.2em 0;
}

/* various styles */

table.info-list {
  margin: 0;
  padding: 0;
  border: none;
  border-collapse: collapse;
}

table.info-list tr td {
  margin: 0;
  padding: 0.15em 1em 0.15em 0;
  vertical-align: top;
}

.error {
  color: #ff0000;
}

.warning {
  color: #ee0000;
}

.required {
  color: #aaaaaa;
}

.unread {
  font-weight: bold;
}

.noitems {
  color: #888888;
  margin: 0.8em 0;
}

.icon {
  vertical-align: -3px;
  margin-right: 0.1em;
}

.ui-datepicker-trigger, .ui-autocomplete-trigger {
  position: relative;
  margin-left: -20px;
  top: 3px;
}

.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary {
  font-weight: normal;
}

.ui-autocomplete {
  max-height: 19em;
  overflow-y: auto;
  overflow-x: hidden;
}

.image-link {
  margin-right: 0.5em;
}

.image-link .icon {
  margin: 0;
}

.pager {
  padding-top: 1.5em;
  padding-bottom: 0.5em;
}

.pager a {
  padding: 0.5em;
  border: 1px solid #dddddd;
}

.pager a:hover {
  text-decoration: none;
  background: #fcfcfc;
}

.pager-previous {
  float: left;
}

.pager-next {
  float: right;
}

.pager-current {
  width: 50%;
  padding: 0.5em;
  margin: 0 auto;
  text-align: center;
}

a img {
  border: none;
}

.description, .history, .history-item {
  margin: 1em 0 0 0;
}

ul.changes {
  margin-top: 0.5em;
  margin-bottom: 0.75em;
}

.edited {
  font-size: 8pt;
  font-weight: normal;
  color: #888888;
  margin-bottom: 0.5em;
}

.history-links {
  margin-bottom: 0.5em;
}

.comment-text {
  padding: 0.5em;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid #dddddd;
}

.comment-text ul {
  margin-top: 0;
  margin-bottom: 0
}

.quote {
  margin: 0.2em 0.5em;
  padding: 0.3em 0.5em;
  border: 1px dashed #dddddd;
}

.quote-title {
  font-weight: bold;
  margin-bottom: 0.2em;
}

.code {
  margin: 0.2em 0;
  padding: 0.3em 0.5em;
  background-color: #f8f8f8;
  color: #000000;
  white-space: pre-wrap;
}

code, .code {
  font: 9pt/150% Consolas, 'DejaVu Sans Mono', 'Lucida Console', Monospace;
  padding: 0 0.3em;
  background-color: #f8f8f8;
  color: #000000;
}

.str, .tag { color: #880000; }
.kwd, .typ, .atv { color: #0000ff; }
.com { color: #008800; }
.atn { color: #ff0000; }

.rtl {
  direction: rtl;
}

.preview {
  margin: 0.4em 0 0.8em;
}

.multi-line {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.attachment {
  padding: 0.5em;
  border: 1px solid #ccccff;
  background-color: #e2e2ff;
}

.toolbar {
  margin: 1em 0 0.5em 0;
}

#progress {
  font-weight: bold;
  font-size: 150%;
  color: #494949;
  margin: 10px;
}

#progress img {
  vertical-align: -8px;
  margin-right: 5px;
}

.input-prompt {
  position: absolute;
  font-size: 16px;
  margin: 9px 0 0 4px;
  color: #aaaaaa;
}
