@import '~@ripedata/components/src/common';

.appview {
  width: 100%;
  margin-left: auto;
  margin-right: auto;

  flex-grow: 1;
  flex-shrink: 1;
  display: flex;
  flex-flow: column;
  align-items: center;
  overflow: hidden;

  &-container {
    flex-grow: 1;
    flex-shrink: 1;
    overflow: auto;
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    background-color: #F0F0F0;
  }

  &-content {
    padding: 20px 30px 30px 30px;
    width: 100%;

    &-limitwidth {
      max-width: 1440px;
    }
  }

  &-navbar-limitwidth {
    max-width: 1460px;
  }

  &-table {
    @extend %text-table;

    table-layout: auto;
    width: 100%;
    border-spacing: 0;

    &-header td {
      @extend %text-table-header;
      border-bottom: 2px solid $color-turquoise;
    }

    td {
      padding-left: 10px;
      padding-right: 10px;
      vertical-align: top;
    }

    &-row-even {
      background-color: $color-table-row-alt;
    }

    &-row-odd {
      // background-color: $color-table-row-alt;
    }
  }

}

.appview-list-container {
  display: flex;
  flex-flow: column;
  flex-wrap: wrap;
  justify-content: space-around;
}

.appview-list-title {
  flex-grow: 0;
  flex-shrink: 0;
  margin-right: 5px;
}

.appview-list-items {
  margin: 0px 20px 0px 20px;
  display: flex;
  flex-flow: column;
}

.appview-list-items-no-indent {
  margin: 0px 0px 0px 20px;
  text-indent: -20px;
  display: flex;
  flex-flow: column;
}

.appview-bullet-list-item {
  line-height: 1.4
}

.appview-bullet-list-title {
  margin: 0px 0px 0px 0px;
  line-height: 1.4
}




/* FLEX CONTAINERS -------------------- */

.appview-flex-row {
  flex-grow: 1;
  flex-shrink: 1;
  display: flex;
  flex-flow: row;
}




/* FLEX AND ALIGNMENT -------------------*/

.appview-vertical-center {
  display: flex;
  justify-content: center;
  align-items: center;
}





.appview-space-around {
  display: flex;
  justify-content: space-around;
}

.appview-justify-center {
  display: flex;
  justify-content: center;
}


/* MARGINS -------------------*/





.appview-top-margin-0 {
  margin-top: 0px;
}

.appview-top-margin-10 {
  margin-top: 10px;
}

.appview-top-margin-20 {
  margin-top: 20px;
}



.appview-bottom-margin-50 {
  margin-bottom: 50px;
}






/* TOOLTIPS */
.appview-sankey-tip {
  line-height: 1.4;
  width: 200px;
  padding: 12px;
  background: #EBF5FB;
  color: rgb(0, 0, 0);
  border-radius: 2px;
  pointer-events: none;
  font-weight: 500;
  font-size: 80%;
}

.appview-table-tip {
  line-height: 1.4;
  padding: 12px;
  width: 250px;
  background: #EBF5FB;
  color: #231F20;
  border-radius: 2px;
  font-weight: 500;
  font-size: 80%;
}


.appview-tt-table {
  color: #231F20;
  font-size: 12px;
  table-layout: auto;
  width: 100%;
  border-spacing: 0;
}

.appview-tt-table-header td {
  color: #231F20;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #2774BA;
}





/* Tooltip styles */
.appview-chart-tip {
  line-height: 1.2;
  padding: 12px;
  width: 200px;
  background: #EBF5FB;;
  color: rgb(96, 96, 96);
  border-radius: 2px;
  pointer-events: none;
  font-weight: 500;
  font-size: 12px;
}



.appview-chart-tip-small {
  line-height: 1.2;
  padding: 12px;
  width: 125px;
  /* background: #EBF5FB; */
  background: #EBF5FB;
  color: rgb(96, 96, 96);
  border-radius: 2px;
  pointer-events: none;
  font-weight: 500;
  font-size: 80%;
}

.appview-chart-tip-percent {
  font-size: 130%;
  text-align: center;
  font-weight: 500;
}

/* CHART SIZING/STYLING ----------- */

.appview-dash-minipie {
  width: 125px;
}

.appview-dash-pie {
  width: 200px;
}

.appview-chart-pie {
  width: 200px;
}

.appview-chart-pie {
  width: 150px;
}

/* WIDTH -------------------*/


.appview-width-30p {
  width: 30%;
}

.appview-width-40p {
  width: 40%;
}

.appview-width-50p {
  width: 50%;
}

.appview-width-60p {
  width: 60%;
}

.appview-width-80p {
  width: 80%;
}

.appview-width-100p {
  width: 100%;
}



.appview-width-300px {
  flex-grow: 0;
  flex-shrink: 0;
  width: 300px;
}

.appview-width-400px {
  flex-grow: 0;
  flex-shrink: 0;
  width: 400px;
}




/*  DASHBOARD -----------------------------*/


/* top right bottom left */
.appview-card-text {
  margin: 10px 0px 10px 0px;
}

.appview-card-large-text {
  margin: 10px 0px 10px 0px;
  font-size: 130%;
}

.appview-card-title-gradient {
  background: linear-gradient( to right, #21B0C6, #8BC53F, #FAAF40 );
  padding: 10px 15px 10px 15px;
  margin: 0px;
  border-bottom: unset;
  color: #FEFEFE;
}



/* LINKS -----------------------------*/

.appview-link {
  color: $color-orange;
}

.appview-link:hover {
  color: #21B0C6;
}

/* FONTS -----------------------------*/

.appview-italic {
  font-style: italic
}

.appview-small-font {
  font-size: 8pt;
}
