@font-face {
  font-family: 'tinymce-small';
  src: url('/js/lib/tinymce/skins/lightgray/fonts/tinymce-small.eot');
  src: url('/js/lib/tinymce/skins/lightgray/fonts/tinymce-small.eot?#iefix') format('embedded-opentype'),
       url('/js/lib/tinymce/skins/lightgray/fonts/tinymce-small.woff') format('woff'),
       url('/js/lib/tinymce/skins/lightgray/fonts/tinymce-small.ttf') format('truetype'),
       url('/js/lib/tinymce/skins/lightgray/fonts/tinymce-small.svg#tinymce') format('svg');
  font-weight: normal;
  font-style: normal
}

table.table-report-style {
  width: 100%;

  td {
    width: auto !important;
    padding: 10px 5px;
    overflow: hidden;
    word-break: normal;
  }

  th {
    width: auto !important;
    padding: 10px 5px;
    font-weight: bolder;
    overflow: hidden;
    word-break: normal;
  }

  /* -------------------------- default -------------------------- */

  &.default {
    border-collapse: collapse;

    &, tr, th, td {
      border: 1px solid #555;
    }

    th {
      color: #ffffff;
      background-color: #555;
    }

    tr:nth-child(even) {
      background-color: #fff;
    }

    tr:nth-child(odd) {
      background-color: #fff;
    }
  }

  /* -------------------------- red -------------------------- */

  &.red {
    border-collapse: collapse;

    &, tr, th, td {
      border: 1px solid #dd4b39;
    }

    th {
      color: #fff;
      background-color: #dd4b39;
    }

    tr:nth-child(even) {
      background-color: #fff;
    }

    tr:nth-child(odd) {
      background-color: #fff;
    }
  }

  /* -------------------------- blue -------------------------- */

  &.blue {
    border-collapse: collapse;

    &, tr, th, td {
      border: 1px solid #0073b7;
    }

    th {
      color: #ffffff;
      background-color: #0073b7;
    }

    tr:nth-child(even) {
      background-color: #fff;
    }

    tr:nth-child(odd) {
      background-color: #fff;
    }
  }

  /* -------------------------- green -------------------------- */

  &.green {
    border-collapse: collapse;

    &, tr, th, td {
      border: 1px solid #00a65a;
    }

    th {
      color: #ffffff;
      background-color: #00a65a;
    }

    tr:nth-child(even) {
      background-color: #fff;
    }

    tr:nth-child(odd) {
      background-color: #fff;
    }
  }

  /* -------------------------- orange -------------------------- */

  &.orange {
    border-collapse: collapse;

    &, tr, th, td {
      border: 1px solid #f39c12;
    }

    th {
      color: #fff;
      background-color: #f39c12;
    }

    tr:nth-child(even) {
      background-color: #fff;
    }

    tr:nth-child(odd) {
      background-color: #fff;
    }
  }
}

/* -------------------------- mceMacros -------------------------- */

.mce-content-body {
  .mceMacro {
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    padding: 5px 5px 5px;

    &:before {
      content: "@MACRO";
      display: inline-block;
      color: #999;
      padding: 0 5px 5px 0;
    }

    &.mceMacroChart:before {
      content: "@CHART";
    }

    &.mceMacroTable:before {
      content: "@TABLE";
    }

    .macro-title {
      color: #555;
    }

    .macro-preview,
    .macro-edit,
    .macro-delete {
      display: inline-block;
      padding: 0 4px;
      color: #555;
      border: 1px solid #ccc;
      background-color: #f3f3f3;
      cursor: pointer;
      float: right;
      &:hover {
        background-color: #ccc;
      }
      &:read-only {
        cursor: not-allowed;
      }
    }

    .macro-preview,
    .macro-edit {
      margin-right: 5px;
    }

    .macro-preview {
      font-family: 'tinymce-small', Arial;
      font-style: normal;
      font-weight: normal;
      font-variant: normal;
      font-size: 13px;
      line-height: 13px;
      speak: none;
      vertical-align: text-top;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      width: 12px;
      height: 13px;
      &.active {
        background-color: #5f9be3;
        border-color: #5f9be3;
        color: #fff;
      }
    }

    .macro-preview:before {
      content: "\e019"
    }

    & > div {
      border: 1px solid #ccc;
      background-color: #fff;
    }

    .macro-info {
      dl {
        margin: 5px;
        overflow: hidden;
      }

      dl dt {
        background: #5f9be3;
        color: #fff;
        float: left;
        font-weight: bold;
        margin-right: 10px;
        padding: 5px;
        width: 160px;
      }

      dl dd {
        margin: 2px 0;
        padding: 5px 0;
      }

      img {
        width: 18px;
        height: 13px;
      }
    }

    &.mceMacroChart {
      .chart-colors {
        p {
          display: inline-block;
          width: 15px;
          height: 15px;
          margin: 0;
        }

        p + p {
          margin-left: 2px
        }
      }
    }

    .text-center {
      text-align: center;
    }
  }
}

.content.content-report,
.content.content-section {
  .macro-title {
    display: block;
    color: #555;
    text-align: center;
    font-size: 19px;
    margin: 15px 0;
    font-weight: normal;
  }
  .macro-edit,
  .macro-delete {
    display: none;
  }
}
