.dialog {
  width: 100%;

  font-size: 0.875rem;

  margin: auto;

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  z-index: 5;

  transition: top 300ms ease;

  box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.5),
    0 0.25rem 0.5rem -0.25rem rgba(0, 0, 0, 0.5) inset;
}
.tabbed-section .dialog {
  top: 2.5rem;
}
.tabbed-section .dialog.removing {
  top: -3rem;
}

.dialog h4, .dialog p {
  display: inline-block;
  padding: 0.75rem;
  margin: 0;
}
.dialog h4 {
  font-size: 1em; /* force to current inherited font-size */
  font-weight: 600;

  padding-right: 0;
  padding-bottom: 0;
}
.dialog.removing {
  top: -5rem;
}
.dialog.error {
  background: #424242; /* #FF9800; /* orange 500 */
  color: white;
}
.dialog.confirm {
  background: #424242; /* gray 800 */
  color: white;
}
.dialog .buttons {
  float: right;
  margin: 0;
}
.dialog .buttons:before {
  display: inline-block;
  content: '';

  margin: 0.75rem 0;
  padding: 0 0.125rem;

  width: 0;
  height: 1.25rem;
  border-left: 0.1rem solid #eee;

  vertical-align: top;
}
.dialog-button {
  background: none;
  padding: 0.75rem;
  line-height: 1.25rem;

  color: inherit;
  cursor: pointer;
}
.dialog-button:hover {
  background: rgba(0, 0, 0, 0.125);
}
.dialog-button.close:before {
  content: '×';
  display: inline;
}
