/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.amcharts-container {
  margin: auto;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.amcharts-legend-div, .amcharts-legend-container {
  position: relative;
}

.amcharts {
  width: 100%;
  height: 100%;
}

.amcharts-interactive-table {
  margin-top: 40px;
}


.amcharts-toolbar+.amcharts-interactive-table {
  margin-top: 20px;
}

.amcharts-interactive-table .table-title {
  font-size: 1.8rem;
  color: #004c9a;
  font-weight: 600;
  padding-bottom: 15px;
}

.amcharts-interactive-table .interactive-checkbox {
  margin: 0;
  background-image: url(../images/checkbox.png);
  background-repeat: no-repeat;
  background-size: 95% auto;
  cursor: pointer;
  display: inline-block;
  height: 16px;
  margin-right: 8px;
  width: 16px;
  vertical-align: -20%;
}

.amcharts-interactive-table .interactive-checkbox.active {
  background-image: url(../images/checkbox-active.png);
}

.amcharts-interactive-table table {
  width: 100%;
}

.amcharts-interactive-table table tr td {
  color: #666;
  font-size: 1.3rem;
  padding: 15px 5px 15px 5px;
}

.amcharts-interactive-table table tr.table-row-head,
.amcharts-interactive-table table tr.category,
.amcharts-interactive-table table tr.divider {
  border-top: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;
}

.amcharts-interactive-table table tr.category td {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2e2e2e;
  background-color: #f6f6f6;
}

.amcharts-interactive-table table tr.category+.category td {
  /*text-align: right;*/
}

.amcharts-interactive-table table tr.table-row-head td {
  font-size: 1.4rem;
  font-weight: 600;
  color: #252525;
}

.amcharts-interactive-table table tr.table-row-colored td {
  color: #004c9a;
}

.amcharts-interactive-table table.with-hover tr:not(.table-row-head):not(.category):hover {
  background-color: #f1f1f1;
}

.amcharts-container .nestedPieContainer {
  position: relative;
}

.amcharts-container .nestedPieContainer>div {
  position: absolute;
  top: 0;
  left: 0;
}

/* if currency change mechanism in project */
.currency-container .currency {
  float: right;
  margin-bottom: 20px;
}

.currency-container .currency svg,
.currency-container .currency .content {
  display: inline-block;
  vertical-align: middle;
}

.currency-container .currency svg {
  width: 32px;
  height: 32px;
}

.currency-container .currency svg path {
  fill: #333;
}

.currency-container .currency .content {
  font-size: 1.4rem;
  margin-left: 10px;
}

.currency-container .currency .content>* {
  display: inline-block;
}

.currency-container .currency .content a {
  margin-left: 10px;
  text-decoration: none;
  color: #333;
}

.currency-container .currency .content a.active {
  color: rgb(255, 98, 0);
}

.amcharts-modal {
  opacity: 0;
  z-index: -1;
  height: 50vh;
  width: 40vw;
  max-height: 300px;
  max-width: 700px;
  position: absolute;
  background-color: #fff;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.2);
}

.amcharts-modal.show {
  opacity: 1;
  z-index: 1;
}

.amcharts-modal>div {
  height: calc(100% - 30px);
  margin: 15px;
  border: 1px solid #e9e9e9;
}

.amcharts-export-menu ul>li {
  display: list-item !important;
  padding-left: 0 !important;
}

.amcharts-export-menu ul>li::before {
  content: none !important;
}

.amcharts-export-menu ul>li+li {
  margin-top: 0 !important;
}

.amcharts-export-menu ul>li>ul>li {
  padding-left: 0 !important;
}

.amcharts-export-menu ul>li>ul>li::before {
  content: none !important;
}

.amcharts-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 25px;
  color: #777777;

}

@media (max-width:768px){
  .amcharts-toolbar{
    flex-direction: column;
    align-items: flex-end;
  }
}

.amcharts-toolbar>*+* {
  margin-left: 25px;
}

.search-icon {
  width: 20px;
  height: 20px;
  background-image: url(../images/search.svg);
}

.amcharts-toolbar .search-in-table-container {
  position: relative;
}

.amcharts-toolbar .search-in-table-container input {
  border: 1px solid #777777;
  border-radius: 3px;
  padding: 6px 30px 6px 11px;
  font-size: 12px;
}

.amcharts-toolbar .search-in-table-container .search-icon {
  position: absolute;
  top: 6px;
  right: 8px;
}

/* Customize the label (the container) */
.checkbox-container {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 13px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #fff;
  border-radius: 3px;
  border: 1px solid #777777;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked~.checkmark {
  background-color: #004c9a;
  border-color: #004c9a;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}