.history-title {
  margin-left: 20px;
  font-weight: bold;
  font-size: large;
}

.history-version {
  position: relative;
  width: 100%;
  margin: 4px;
}

.history-title-bar {
  position: relative;
  margin: 20px 0px 10px 0px;
  white-space: nowrap;
  overflow-x: hidden;
  border-bottom: 1px solid #ddd;
}

.history-current-set-pane {
  display: inline-block;
  vertical-align: top;
  margin-right: 12px;
  padding-bottom: 10px;
}

.history-previous-sets-pane {
  position: relative;
  vertical-align: top;
  white-space: nowrap;
  display: inline-block;
  overflow-x: auto;
  margin: 0px 0px 0px 0px;
  padding-bottom: 10px;
  max-width: 100%;
}

.history-previous-version-set {
  margin: 0px 6px 0px 6px;  
  color: #999;
}

.history-version-set {
  display: inline-block;
  background: #cef;
  font-weight: bold;
  text-align: left;
  margin-left: 4px;
}

.history-field {
  display: none;
}

.history-add, .history-add > a {
  color: #0c0;
}

.history-remove, .history-remove > a {
  color: #f00;
}

.history-diff-field {
}

.history-clean-field {
}

.history-showing-version {
  border-color: #aaa;
  border-width: 2px;
  background: #bfb;
}

.history-showing-diff-version {
  background: #fdd;
}

.history-showing-diff-included-version {
  background: #fee;
}

.history-subrecord {
  margin: 2px 8px 6px 30px;
}

.history-subrecord-1:hover {
  background: #f7f7f7;
}

.history-subrecord-2:hover {
  background: #efefef;
}

.history-subrecord-3:hover {
  background: #e7e7e7;
}

.history-subrecord-4:hover {
  background: #dfdfdf;
}

.history-subrecord-5:hover {
  background: #d7d7d7;
}

.history-field-label {
  color: #777;
}

.as-history-main-layout {
  display: grid;
  grid-template-columns: 300px auto;
  grid-template-rows: auto;
}

.as-history-main-pane {
  grid-column: 2 / auto
  grid-row: 1 / auto
  margin-top: -20px;
  margin-left: 30px;
}

.as-history-sidebar-pane {
  grid-column: 1 / auto
  grid-row: 1 / auto
}

.as-history-toolbar {
  margin-left: -1px;
}

.history-sidebar {
  margin-top: 12px;
  margin-bottom: 20px;
  height: 600px;
  overflow: auto;
}

.as-history-sb-diff-button {
  position:absolute;
  display: none;
  top: 8px;
  left: 8px;
  padding: 2px;
  z-index: 2;
}

.history-version-box {
  position: relative;
  width: 95%;
  z-index: 1;
}

.history-version-box-same-as-last {
  margin-top: -8px;
  z-index: 0;
}

.as-history-tb-button {
  color:#337ab7;
  margin-top:16px;
}

#as-history-tb-restore-button {
  margin-right: -16px;
}

.history-audit-field {
  margin: 0px 20px 4px 20px;
}

#as-history-audit-dialog {
  display: none;
  position: absolute;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  background-color: white;
  top: 0px;
  left: 0px;
  min-width: 100px;
  max-width: 50%;
  margin: -1px 0px 10px 154px;
  z-index: 1;
}

#as-history-restore-dialog {
  display: none;
  position: absolute;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  background-color: white;
  top: 0px;
  right: 0px;
  min-width: 100px;
  max-width: 50%;
  margin-top -2px;
  margin-right: -1px;
  z-index: 1;
}

.history-record-pane {
  position: relative;
}

.as-history-dialog-buttons {
  margin-top: 20px;
}

.history-browse-select-pane {
  display: none;
  margin: 12px 80px 12px 80px;
  padding: 10px 10px 10px 10px;
}

.history-select-label {
  width: 100%;
}

.history-axis-select {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin: 4px 20px 4px 20px;
}

.history-control {
  display: inline-block;
  width: initial;
}

.history-control[name=id] {
  width: 80px;
}

.history-control[name=user] {
  width: 100px;
}

.history-control[name=time] {
  width: 160px;
}

.history-control[name=label] {
  min-width: 50%;
}

#as-history-button {
  width: 100%;
  text-align: left;
  color: #337ab7;
  margin-top: 16px;
}

.history-nav-list {
  list-style: none;
}

.history-sb-mod-by {
  display: inline-block;
  padding-left: 12px;
  width: 65px;
  overflow: hidden;
}

#as-history-tb-diff-raw-button {
  color: #666;
}

.history-raw-view {
  display: none;
}
