/* Mixins */
@mixin xl {
  @media (max-width: 1140px) {
    @content
  }
}

@mixin l {
  @media (max-width: 960px) {
    @content
  }
}

@mixin m {
  @media (max-width: 768px) {
    @content
  }
}

@mixin s {
  @media (max-width: 480px) {
    @content
  }
}

@mixin xs {
  @media (max-width: 320px) {
    @content
  }
}

/*
 * TinyColumn. The wrapper element should have an :after element with :after { content:""; display:table; clear:both; }
 */

.tinycon {
  &:after {
    content:"";
    display:table;
    clear:both;
  }
}
.tinycol {
  float: left;
  display: block; 

  &.ten {
    width:10%;
    @include m { width:100%; }
  }
  &.twenty {
    width:20%;
    @include m { width:100%; }
  }
  &.thirty {
    width:30%;
    @include m { width:100%; }
  }
  &.forty {
    width:40%;
    @include m { width:100%; }
  }
  &.fifty {
    width:50%;
    @include m { width:100%; }
  }
  &.sixty {
    width:60%;
    @include m { width:100%; }
  }
  &.seventy {
    width:70%;
    @include m { width:100%; }
  }
  &.eighty {
    width:80%;
    @include m { width:100%; }
  }
  &.ninety {
    width:90%;
    @include m { width:100%; }
  }
  &.hundred {
    width:100%;
    @include m { width:100%; }
  }
}

/* Shitty Skeleton Grid*/
    .container                                  { position: relative; width: 960px; margin: 0 auto; padding: 0; }
    .container .column,
    .container .columns                         { float: left; display: inline; } /* margin-left: 10px; margin-right: 10px; */
    .row                                        { margin-bottom: 20px; }

    /* Nested Column Classes */
    .column.alpha, .columns.alpha               { margin-left: 0; float: left; }
    .column.omega, .columns.omega               { margin-right: 0; float: right; }

    /* Base Grid */
    .container .one.column,
    .container .one.columns                     { width: 40px;  }
    .container .two.columns                     { width: 100px; }
    .container .three.columns                   { width: 160px; }
    .container .four.columns                    { width: 220px; }
    .container .five.columns                    { width: 280px; }
    .container .six.columns                     { width: 340px; }
    .container .seven.columns                   { width: 400px; }
    .container .eight.columns                   { width: 460px; }
    .container .nine.columns                    { width: 520px; }
    .container .ten.columns                     { width: 580px; }
    .container .eleven.columns                  { width: 640px; }
    .container .twelve.columns                  { width: 700px; }
    .container .thirteen.columns                { width: 760px; }
    .container .fourteen.columns                { width: 820px; }
    .container .fifteen.columns                 { width: 880px; }
    .container .sixteen.columns                 { width: 940px; }
    
    .container .one-third.column                { width: 300px; }
    .container .two-thirds.column               { width: 620px; }

    /* Offsets */
    .container .offset-by-one                   { padding-left: 60px;  }
    .container .offset-by-two                   { padding-left: 120px; }
    .container .offset-by-three                 { padding-left: 180px; }
    .container .offset-by-four                  { padding-left: 240px; }
    .container .offset-by-five                  { padding-left: 300px; }
    .container .offset-by-six                   { padding-left: 360px; }
    .container .offset-by-seven                 { padding-left: 420px; }
    .container .offset-by-eight                 { padding-left: 480px; }
    .container .offset-by-nine                  { padding-left: 540px; }
    .container .offset-by-ten                   { padding-left: 600px; }
    .container .offset-by-eleven                { padding-left: 660px; }
    .container .offset-by-twelve                { padding-left: 720px; }
    .container .offset-by-thirteen              { padding-left: 780px; }
    .container .offset-by-fourteen              { padding-left: 840px; }
    .container .offset-by-fifteen               { padding-left: 900px; }



/* #Tablet (Portrait)
================================================== */

    /* Note: Design for a width of 768px */

    @media only screen and (min-width: 768px) and (max-width: 959px) {
        .container                                  { width: 768px; }
        /*
        .container .column,
        .container .columns                         { margin-left: 10px; margin-right: 10px; }
        */
        .column.alpha, .columns.alpha               { margin-left: 0; margin-right: 10px; }
        .column.omega, .columns.omega               { margin-right: 0; margin-left: 10px; }
        .alpha.omega                                { margin-left: 0; margin-right: 0; }

        .container .one.column,
        .container .one.columns                     { width: 28px; }
        .container .two.columns                     { width: 76px; }
        .container .three.columns                   { width: 124px; }
        .container .four.columns                    { width: 172px; }
        .container .five.columns                    { width: 220px; }
        .container .six.columns                     { width: 268px; }
        .container .seven.columns                   { width: 316px; }
        .container .eight.columns                   { width: 364px; }
        .container .nine.columns                    { width: 412px; }
        .container .ten.columns                     { width: 460px; }
        .container .eleven.columns                  { width: 508px; }
        .container .twelve.columns                  { width: 556px; }
        .container .thirteen.columns                { width: 604px; }
        .container .fourteen.columns                { width: 652px; }
        .container .fifteen.columns                 { width: 700px; }
        .container .sixteen.columns                 { width: 748px; }

        .container .one-third.column                { width: 236px; }
        .container .two-thirds.column               { width: 492px; }

        /* Offsets */
        .container .offset-by-one                   { padding-left: 48px; }
        .container .offset-by-two                   { padding-left: 96px; }
        .container .offset-by-three                 { padding-left: 144px; }
        .container .offset-by-four                  { padding-left: 192px; }
        .container .offset-by-five                  { padding-left: 240px; }
        .container .offset-by-six                   { padding-left: 288px; }
        .container .offset-by-seven                 { padding-left: 336px; }
        .container .offset-by-eight                 { padding-left: 384px; }
        .container .offset-by-nine                  { padding-left: 432px; }
        .container .offset-by-ten                   { padding-left: 480px; }
        .container .offset-by-eleven                { padding-left: 528px; }
        .container .offset-by-twelve                { padding-left: 576px; }
        .container .offset-by-thirteen              { padding-left: 624px; }
        .container .offset-by-fourteen              { padding-left: 672px; }
        .container .offset-by-fifteen               { padding-left: 720px; }
    }


/*  #Mobile (Portrait)
================================================== */

    /* Note: Design for a width of 320px */

    @media only screen and (max-width: 767px) {
        .container { width: 300px; }
        .container .columns,
        .container .column { margin: inherit 0; }

        .container .one.column,
        .container .one.columns,
        .container .two.columns,
        .container .three.columns,
        .container .four.columns,
        .container .five.columns,
        .container .six.columns,
        .container .seven.columns,
        .container .eight.columns,
        .container .nine.columns,
        .container .ten.columns,
        .container .eleven.columns,
        .container .twelve.columns,
        .container .thirteen.columns,
        .container .fourteen.columns,
        .container .fifteen.columns,
        .container .sixteen.columns,
        .container .one-third.column,
        .container .two-thirds.column  { width: 300px; }

        /* Offsets */
        .container .offset-by-one,
        .container .offset-by-two,
        .container .offset-by-three,
        .container .offset-by-four,
        .container .offset-by-five,
        .container .offset-by-six,
        .container .offset-by-seven,
        .container .offset-by-eight,
        .container .offset-by-nine,
        .container .offset-by-ten,
        .container .offset-by-eleven,
        .container .offset-by-twelve,
        .container .offset-by-thirteen,
        .container .offset-by-fourteen,
        .container .offset-by-fifteen { padding-left: 0; }

    }


/* #Mobile (Landscape)
================================================== */

    /* Note: Design for a width of 480px */

    @media only screen and (min-width: 480px) and (max-width: 767px) {
        .container { width: 420px; }
        .container .columns,
        .container .column { margin: inherit 0 !important; }

        .container .one.column,
        .container .one.columns,
        .container .two.columns,
        .container .three.columns,
        .container .four.columns,
        .container .five.columns,
        .container .six.columns,
        .container .seven.columns,
        .container .eight.columns,
        .container .nine.columns,
        .container .ten.columns,
        .container .eleven.columns,
        .container .twelve.columns,
        .container .thirteen.columns,
        .container .fourteen.columns,
        .container .fifteen.columns,
        .container .sixteen.columns,
        .container .one-third.column,
        .container .two-thirds.column { width: 420px; }
    }


/* #Clearing
================================================== */

    /* Self Clearing Goodness */
    .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }

    /* Use clearfix class on parent to clear nested columns,
    or wrap each row of columns in a <div class="row"> */
    .clearfix:before,
    .clearfix:after,
    .row:before,
    .row:after {
      content: '\0020';
      display: block;
      overflow: hidden;
      visibility: hidden;
      width: 0;
      height: 0; }
    .row:after,
    .clearfix:after {
      clear: both; }
    .row,
    .clearfix {
      zoom: 1; }

    /* You can also use a <br class="clear" /> to clear columns */
    .clear {
      clear: both;
      display: block;
      overflow: hidden;
      visibility: hidden;
      width: 0;
      height: 0;
    }

/* Graphs */
/* Graphs */

/*
 * GIANT CREDIT SCOREBOARD
 */
.score-announcement {
  background-color: #0e5c87;
  margin-bottom: 15px;
  color: white;
  border-radius: 10px;
}

.scoreTick {
  position: absolute;
  height: 100%;
  width: 4px;
  background-color: #404040;
  left: 3%;
  transition: left 300ms linear;
}

.scoreArrow {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #0e5c87;
  position: absolute;
  top: -18px;
  left: 3%;
  margin-left: -18px;
  transition: left 300ms linear;
}

.scaleTicks {
  display: table;
  height: 15px;
  width: 100%;
  padding:0;

  li {
    display: table-cell;
    height: 15px;
    width: 24.5%;
    line-height: 15px;
    text-align: left;
    white-space: nowrap;
  }
}
.scaleColors {
  display: table;
  position:relative;
  height: 80px;
  width: 100%;
  padding:0;

  li {
    display: table-cell;
    height: 80px;
    width: 25%;
    line-height: 80px;
    text-align: center;
    border-right: 1px solid #fff;
    white-space: nowrap;
    
    &:nth-child(1) { background-color:#EF2726;background-image:linear-gradient(to right,#EF2726,#F1A722); }
    &:nth-child(2) { background-color:#F1A722;background-image:linear-gradient(to right,#F1A722,#F2E21B); }
    &:nth-child(3) { background-color:#F2E21B;background-image:linear-gradient(to right,#F2E21B,#8AC141); }
    &:nth-child(4) { background-color:#8AC141;border-right:0; }
  }
}

/*
 * Donut Chart
 */
canvas.centeredM {
  @include m {
    display:block;
    margin-left:auto;
    margin-right:auto;
  }
}

.donutPercent {
  position:absolute;
  left:50%;
  top:50%;
  -webkit-transform: translate(-50%, -50%);
  font-size:24px;
}
/* Main Styles */

body { background-color:#ffffff; }

.report-wrapper {
  border-radius:10px;
  border:1px solid #999;
  background-color:#fff;
  padding:20px;
}

.report-header-wrapper {
  border-bottom:1px solid #999;
  padding-bottom:10px;

  span.info {
    float:right;
    line-height:26px;
    cursor:pointer;
  }
}

.report-body-wrapper {
  position:relative;

  &:after {
    content:"";
    display:table;
    clear:both;
  }

  .report-column {
    border-right:1px solid #999;
    margin-top:10px;
    padding:10px;
    vertical-align:top;

    @include m {
      padding:0;
      border-right:none;
      border-bottom:1px solid #999;
    }

    &:last-child {
      border:none;
    }

    .nested-report-column {
      border:none;
      padding: 0;
      margin: 0;
      margin-left:10px;
      
      &:first-child {
        margin-left:0;
      }

      @include m {
        border:none;
        margin-left:0;
      }
    }
  }
}

.report-chart-wrapper {
  float:left;
  position:relative;
  width:200px;
  height:200px;

  @include m { width:100%; }
}
