/**
 * Used to set the max with of content containers
 * @type {[type]}
 */
/**
 * breakpoint width at which to remove padding from the left/right sides
 * @type {[type]}
 */
/**
 *
 *
 * Legacy stuff below.
 */
/*
font-family: lexia, serif;
font-style: normal;
font-weight: 700; //bold
font-weight: 800; //xbold
<link rel="stylesheet" href="https://use.typekit.net/sjv0jrv.css">
*/
/*
cb-dark-green|CB Dark Green
cb-medium-green|CB Medium Green
cb-light-green|CB Light Green
*/
:root {
  --spacing: 16px; }

@use 'helpers' as *;
/**
// Button variants
//
// Easily pump out default styles, as well as :hover, :focus, :active,
// and disabled options for all buttons

bg  = var(--black);
hover = linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), #BC871D
bg = rgb(40,40,40)
hover = rgb(201,159,74)
active = rgb(188,135,29)

Created our own mixin here "button-variant-wgc()" to parameterize
the font colour on particular states...
the boostrap version attempts to find the inverse
of what ever colour is the background, which doensn't
really work for us.
 */
/****************** LAYOUT STUFF ***************************/
.sortable-table {
  margin-bottom: 12px;
  max-width: 100%;
  display: table; }

/****************** END OF LAYOUT STUFF **********************/
/************************ TABLE STYLING **********************/
.sortable-table th {
  white-space: nowrap; }

.sortable-table td.double-border-top {
  border-top: 3px double var(--black); }

.sortable-table td.double-border-bottom {
  border-bottom: 3px double var(--black); }

.sortable-table tr td,
.sortable-table tr th {
  text-align: right;
  font-size: 12px;
  padding: 0.2em; }

.sortable-table tr td:first-child,
.sortable-table tr th:first-child {
  text-align: left; }

.sortable-table th span:before {
  content: "\25b2";
  color: #ccc; }

.sortable-table th span:after {
  content: "\25bc";
  color: #ccc; }

.sortable-table th span {
  margin-left: 3px; }

.sortable-table th.sorted.sorted-desc span:before,
.sortable-table th.sorted.sorted-asc span:before {
  content: "\25b2";
  color: #ccc; }

.sortable-table th.sorted.sorted-asc span:after,
.sortable-table th.sorted.sorted-desc span:after {
  content: "\25bc";
  color: #ccc; }

.sortable-table th.sorted.sorted-asc span:before {
  color: #000; }

.sortable-table th.sorted.sorted-asc span:after {
  color: #ccc; }

.sortable-table th.sorted.sorted-desc span:before {
  color: #ccc; }

.sortable-table th.sorted.sorted-desc span:after {
  color: #000; }

/* No border bottom for the "Other" row in the first table beause it's on top of the totals column*/
.aggregate-table-container .sortable-table tr:nth-child(4) td {
  border-bottom: none; }

.sortable-table tbody tr td:last-child {
  width: 34px; }

.sortable-table .performance-arrow {
  /*width: 5%;*/
  vertical-align: middle; }

/* up/down performance indicator arrows */
.performance-arrow .performance-arrow-up {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid;
  /*float: right;*/ }

.performance-arrow .performance-arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid;
  /*float: right;*/ }

/********* ENGLISH UP ARROW **********/
.aggregate-table .performance-arrow .performance-arrow-up,
.fundstat-table .performance-arrow .performance-arrow-up {
  color: green; }

/********** CHINESE UP ARROW ***********/
.lang-zh-hans .aggregate-table .performance-arrow .performance-arrow-up,
.lang-zh-hans .fundstat-table .performance-arrow .performance-arrow-up {
  color: red; }

/********* ENGLISH DOWN ARROW **********/
.aggregate-table .performance-arrow .performance-arrow-down,
.fundstat-table .performance-arrow .performance-arrow-down {
  color: red; }

/********** CHINESE DOWN ARROW ***********/
.lang-zh-hans .aggregate-table .performance-arrow .performance-arrow-down,
.lang-zh-hans .fundstat-table .performance-arrow .performance-arrow-down {
  color: green; }

.aggregate-table thead th:last-child {
  width: 65px; }

.aggregate-table thead th:first-child {
  width: 28%;
  min-width: 88px; }

.aggregate-table-container,
.fundstat-table-container,
.fundstat-table-container {
  overflow-x: auto;
  width: 100%; }

/*** ENGLISH TOP/BOTTOM TABLES LAST ROW POSITIVE *******/
.aggregate-table-container .sortable-table tr.up td:last-child,
.fundstat-table-container .sortable-table tr.up td:last-child {
  color: green; }

/*** CHINESE TOP/BOTTOM TABLES LAST ROW POSITIVE *******/
.lang-zh-hans .aggregate-table-container .sortable-table tr.up td:last-child,
.lang-zh-hans .fundstat-table-container .sortable-table tr.up td:last-child {
  color: red; }

/*** ENGLISH TOP/BOTTOM TABLES LAST ROW NEGATIVE *******/
.aggregate-table-container .sortable-table tr.down td:last-child,
.fundstat-table-container .sortable-table tr.down td:last-child {
  color: red; }

/*** CHINESE TOP/BOTTOM TABLES LAST ROW NEGATIVE *******/
.lang-zh-hans .aggregate-table-container .sortable-table tr.down td:last-child,
.lang-zh-hans .fundstat-table-container .sortable-table tr.down td:last-child {
  color: green; }

.fundstat-table-container .sortable-table tr td:first-child,
.fundstat-table-container .sortable-table tr td:first-child,
.fundstat-table-container .sortable-table tr th:first-child,
.fundstat-table-container .sortable-table tr th:first-child {
  white-space: normal;
  width: 47.5%;
  /* min-width: 275px; */ }

/******** TOGGLE BUTTONS *****************/
.month-year-buttons-div button:hover,
.month-year-buttons-div button.active,
.dollars-tonnes-buttons-div button:hover,
.dollars-tonnes-buttons-div button.active,
.etp-dollars-tonnes-buttons-div button.active {
  background-color: #c9c9c9; }

.month-year-buttons-div button:first-child,
.dollars-tonnes-buttons-div button:first-child,
.etp-dollars-tonnes-buttons-div button:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  border-right-width: 0; }

.month-year-buttons-div button:last-child,
.dollars-tonnes-buttons-div button:last-child,
.etp-dollars-tonnes-buttons-div button:last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px; }

/************ END OF TOGGLE BUTTONS ****************/
/************ TABS FOR TABLE SECTION ***************/
.etf-table-tabs .nav-item a.nav-link {
  display: block;
  text-align: center; }
  .etf-table-tabs .nav-item a.nav-link strong {
    display: block; }
  .etf-table-tabs .nav-item a.nav-link span {
    display: block;
    padding-top: 0.5rem; }

#etf-commentary-node .etf-table-tabs.nav-tabs .nav-item {
  margin-bottom: 0; }

#etf-commentary-node .etf-table-tabs.nav-tabs .nav-item .nav-link {
  height: auto; }

#etf-commentary-node .etf-table-tabs.nav-tabs .nav-item .nav-link span {
  font-size: 0.8rem;
  /* Setting display block on the span reduces the gap in the line break */
  display: block; }

/********* END OF TABS FOR TABLE SECTION ***********/
/*** DATEPICKERS ***/
#etf-commentary-node
.etf-table-datepicker-group
input.form-control.hasDatepicker {
  font-size: 16px;
  width: 136px;
  padding: 6px 12px;
  padding-right: 32px;
  position: relative; }

#etf-commentary-node .etf-table-tabs.nav-tabs .nav-item {
  margin-left: 0; }

#etf-commentary-node .etf-table-datepicker-group:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  background-image: url("/themes/custom/wgc_v01/img/calendar-grey.svg");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.4; }

#etf-commentary-node .etf-table-datepicker-group.loading:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 9px;
  width: 18px;
  height: 18px;
  background-image: url("/themes/custom/wgc_v01/img/shimmer-rings.svg");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.4; }

#etf-commentary-node .etf-table-datepicker-group {
  position: relative; }

/*** END OF DATEPICKERS ***/
@media screen and (max-width: 400px) {
  /* Make sure the buttons fit on one line on small screens*/
  #etf-commentary-node
.wgc-chart-control.btn-group
button.btn.btn-outline-primary {
    padding: 3px 6px;
    font-size: 14px; } }

.period-select.custom-select {
  width: 160px; }

.period-title {
  margin-top: 0.6rem; }

.fundstat-table-container,
.aggregate-table-container {
  margin-bottom: var(--space-2); }
  @media (min-width: 768px) {
    .fundstat-table-container,
    .aggregate-table-container {
      margin-bottom: var(--space-4); } }
  @media (min-width: 992px) {
    .fundstat-table-container,
    .aggregate-table-container {
      margin-bottom: var(--space-8); } }
