/*
 * Modal
 *----------------------------------------------------------------------------*/
.mercury-modal-overlay {
  position: fixed;
  z-index: 10040;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: none;
  background: rgba(0,0,0, .65);
}
.mercury-modal {
  position: fixed;
  z-index: 10050;
  top: 0;
  width: 500px;
  overflow: hidden;
  padding: 0 0 10px;
  background: #EFEFEF;
  -webkit-border-bottom-left-radius: 4px;
  -webkit-border-bottom-right-radius: 4px;
  -moz-border-radius-bottomleft: 4px;
  -moz-border-radius-bottomright: 4px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  -moz-box-shadow: 0 0 40px rgba(0, 0, 0, .9);
  box-shadow: 0 0 40px rgba(0, 0, 0, .9);
  font: normal normal normal 12px/normal Helvetica, Tahoma, Arial, sans-serif;
  &.loading .mercury-modal-content-container {
    background: #EFEFEF url(/assets/mercury/loading-light.gif) no-repeat center;
  }
  h1.mercury-modal-title {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    margin: 0;
    padding: 2px 10px 0 10px;
    background: #DDD;
    border-bottom: 1px solid #CCC;
    white-space: nowrap;
    font-size: 14px;
    line-height: 23px;
    overflow: hidden;
    &:after {
      content: '\00a0';
      display: block;
      visibility: hidden;
      clear: both;
      height: 0;
    }
    span {
      float: left;
      color: #000;
      text-shadow: #EEE 1px 1px 0;
    }
    a {
      display: block;
      float: right;
      font-size: 10px;
      cursor: pointer;
      color: #666;
      padding: 0 4px;
      line-height: 23px;
      &:hover {
        color: #333;
      }
    }
  }
  .mercury-modal-content-container {
    float: left;
    width: 100%;
  }
  .mercury-modal-content {
    position: relative;
    overflow: auto;
    float: left;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 20px 20px 10px;
    font-family: Helvetica, Tahoma, Arial, sans-serif;
    color: #000;
    &:after {
      display: block;
      clear: both;
      content: '\00a0';
      visibility: hidden;
      overflow: hidden;
      height: 0;
    }
  }
  .mercury-modal-pane-container {
    overflow: auto;
    margin: -20px -20px 0;
    padding: 20px 20px 10px;
    .mercury-modal-pane {
      float: left;
    }
  }
  .mercury-modal-controls {
    padding: 15px 0 0;
    border-top: 1px solid #CCC;
    text-align: right;
  }
  textarea {
    resize: none;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }
}
/*
 * Specific Modals (eg. htmlEditor)
 *----------------------------------------------------------------------------*/
/* htmlEditor */
#mercury_htmlEditor {
  textarea {
    margin: 0 0 -2px 0;
    padding: 0;
    border: 2px solid #CCC;
    width: 100%;
  }
  .mercury-modal-controls {
    border: 0;
    margin-top: -2px;
  }
}
/* html sanitizer (when pasting from msword) */
#mercury_sanitizer {
  .information {
    background: url(/assets/mercury/clippy.png) no-repeat top left;
    min-height: 65px;
    padding-left: 50px;
    margin-bottom: 10px;
  }
  textarea {
    width: 100%;
    font-family: monospace;
    white-space: pre;
  }
}
/* insertCharacter */
#mercury_insertCharacter {
  .character {
    float: left;
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    background: #FFF;
    margin: 0 2px 2px 0;
    text-align: center;
    font-size: 11pt;
    line-height: 23px;
    cursor: pointer;
    &:hover {
      position: relative;
      margin: -11px -5px 1px -5px;
      width: 32px;
      height: 32px;
      font-size: 19pt;
      line-height: 35px;
      background: #DDD;
    }
  }
}
/* table */
#mercury_table {
  #table_display {
    width: 285px;
    height: 285px;
    float: left;
    padding: 10px;
    background: #F6F6F6;
    border: 1px solid #CCC;
    border-radius: 7px;
    -moz-border-radius: 7px;
    table {
      width: 100%;
      height: 100%;
    }
    td.selected {
      background: #09F;
    }
  }
  #table_options {
    width: 383px;
    float: left;
    margin-left: 10px;
  }
}
