/* pivot */
/* Make this css compatible because it needs to be embedded in server side and note. */
/* Also, please do not use scss variables. */

.pivot-view {
  margin-top:0px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-right: 5px solid transparent; /* margin-right somehow doesn't work with width:100% */
  font-size:14px;
  background-color: #fff;
  position:relative;
  padding-top:27px;
  line-height: 1.4em;
}

.pivot-view.two-row-header-rows {
  padding-top: 48px;
}

.pivot-col-header-view {
  width: 100%;
  height: 29px;
  border-right: 5px solid transparent; /* margin-right somehow doesn't work with width:100% */
  font-size:14px;
  background-color: #fff;
  position: absolute;
  left:0;
  top:0;
  overflow-x: hidden; 
  overflow-y: hidden;
}

.pivot-view.two-row-header-rows .pivot-col-header-view{
  height: 60px;
}

.pivot-body-view {
  width: 100%;
  height: 100%; /*calc( 100% - 28px );*/
  overflow: auto;
  border-right: 5px solid transparent; /* margin-right somehow doesn't work with width:100% */
  font-size:14px;
  background-color: #fff;
  position:relative;
}  


.pivot-table-frame {
  display:table;
}
.pivot-table-frame .pivot-row {
  display:table-row;
}
.pivot-table-frame .pivot-row .pivot-cell {
  display:table-cell;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell {
  /* border-right: 1px solid #dfdfdf;*/
  /* border-bottom: 1px solid #dfdfdf;*/
  background-color: #fff;
  padding: 4px 10px;
  min-width: 60px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align:right;
  white-space: nowrap;
  font-family: 'Helvetica Neue', Arial, Helvetica, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック","Hiragino Sans", "Hiragino Kaku Gothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/* Should not allow multiple lines for header cells*/
.pivot-view.allow-multiple-lines .pivot-table-frame .pivot-row .pivot-cell:not(.header) {
  text-overflow: inherit;
  white-space: normal;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.text-col {
  text-align:left; 
}


.pivot-view .pivot-table-frame .pivot-row.banded:nth-of-type(2n+1) .pivot-cell{
  background-color:#fafafa;
}



.pivot-view .pivot-table-frame .pivot-row .pivot-cell:first-of-type {
  /* border-left: 1px solid #dfdfdf;*/
}
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.header {
  /* background-color: #f0f0f0;*/
  text-align:right; /* same alignment as measure numbers*/
  font-weight: bold;
  /* max-width: 150px;*/
  background-color: #fff;
  border-bottom: 1px solid #cfcfcf;
  /* font-family:Georgia, Palatino, serif;*/
}


.pivot-view .pivot-table-frame .pivot-row .pivot-cell.total {
  text-align:right; 
  font-weight: bold;
  background-color: #fff;
  border-top: 1px solid #cfcfcf;
}
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.total.text-col {
  text-align:left; 
}
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-total{
  border-top: 0px;
  font-weight: bold;
  text-align:right; 
}
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-total.text-col{
  text-align:left; 
}
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.subtotal {
  font-weight: bold;
}


.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-header {
  text-align:left; 
  padding-right:10px;
  max-width: 250px;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-header.wrap {
  white-space:initial;
  min-width:250px; /* set the same value with max-width above to make it fix size */ 
  padding-right:5px;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-header.wrap-responsive-width {
  white-space:initial;
  padding-right:5px;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.header.col-header {
  cursor:pointer;
  position:relative;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.header.col-header.no-pointer-cursor {
  cursor:default;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.header.col-header.with-sort > .pivot-cell-text > i{
  position:absolute;
  top: 8px;
  right: 0;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.header.col-header.text-col,
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.header.row-header.text-col {
  text-align:left; 
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-header.no-bottom-border {
  border-bottom:0px solid white;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-header.bottom-border {
  border-bottom:1px solid #dfdfdf;
}
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.bottom-border {
  border-bottom:1px solid #dfdfdf;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.header.row-header {
  text-align:left; 
  max-width: 250px;
}

/* table case */
.pivot-view.type-table .pivot-table-frame .pivot-row .pivot-cell {
  /* text-align:left; */ 
  max-width: 400px;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-header.grouped {
  background-color:#fff; 
}
.pivot-view .pivot-table-frame .pivot-row .pivot-cell.row-header.thick {
  font-weight:bold; 
}


.pivot-view .pivot-table-frame .pivot-row:first-of-type .pivot-cell {
  /* border-top: 1px solid #dfdfdf;*/
  text-align:right;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell a ,
.pivot-view .pivot-table-frame .pivot-row .pivot-cell a:hover,
.pivot-view .pivot-table-frame .pivot-row .pivot-cell a:active,
.pivot-view .pivot-table-frame .pivot-row .pivot-cell a:focus {
  color: inherit;
  text-decoration: underline;
}

.pivot-view .pivot-table-frame .pivot-row .pivot-cell a.no-text-deco {
  text-decoration: none;
}

/* Highilght by click */
.pivot-view .pivot-table-frame .pivot-row.selected .pivot-cell{
  background-color:#eee!important;
}


.pivot-view .pivot-table-frame.hide-rows .pivot-row.banded  {
  display: none;
}

.pivot-metainfo {
  height:18px;
  font-size: 12px;
  color: #999;
  font-family: 'Helvetica Neue', Arial, Helvetica, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック","Hiragino Sans", "Hiragino Kaku Gothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  padding-left:11px;
  background-color: #fff;
}
.pivot-metainfo.hidden {
  display:none;
}

.pivot-toolbar {
  height:22px;
  padding-left:0px; /* Remove left padding. From Kan, 5/31/2021.*/
  font-size: 12px;
  line-height: 1em;
  font-family: 'Helvetica Neue', Arial, Helvetica, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック","Hiragino Sans", "Hiragino Kaku Gothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.pivot-toolbar.hidden {
  display:none;
}

.pivot-title {
  height: 33px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  padding-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4d4d4d;
  font-family: 'Helvetica Neue', Arial, Helvetica, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック","Hiragino Sans", "Hiragino Kaku Gothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  background-color: #fff;
  margin-bottom:6px;

}    
.pivot-title.hidden {
  display: none;
}

.pivot-col-title {
  height: 20px;
  font-size:14px;
  padding-left:10px;
  text-align: left;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4d4d4d;
  font-family: 'Helvetica Neue', Arial, Helvetica, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック","Hiragino Sans", "Hiragino Kaku Gothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  background-color: #fff;
}    
.pivot-col-title.hidden {
  display: none;
}



.pivot-table-frame.pivot-data-popover .pivot-row .pivot-cell {
}
.pivot-table-frame.pivot-data-popover  .pivot-row .pivot-cell.value-cell {
  color: #111;
  font-weight:bold;
  
}

.pivot-balloon-style {
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: normal;
  background-color: #fff;
  color: #555;
  box-shadow: none;
  max-width: 450px;
  z-index: 1050; /* VizPreviewDialog uses 1040 so it should be bigger than that. */
  white-space: pre-wrap; /* Show newlines as newlines */
}


.pivot-col-header-view .pivot-cell.header .pivot-cell-text {
  text-overflow: ellipsis;
  overflow:hidden;
  width: 100%;
}

.pivot-col-header-view .icon-sort-direction-desc {
  /* Down caret from FA4 */
  display: inline-block;
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xNDA4IDcwNHEwIDI2LTE5IDQ1bC00NDggNDQ4cS0xOSAxOS00NSAxOXQtNDUtMTlsLTQ0OC00NDhxLTE5LTE5LTE5LTQ1dDE5LTQ1IDQ1LTE5aDg5NnEyNiAwIDQ1IDE5dDE5IDQ1eiIvPjwvc3ZnPgo=');
  background-size: 12px;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
}

.pivot-col-header-view .icon-sort-direction-asc {
  /* Up caret from FA4 */
  display: inline-block;
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xNDA4IDEyMTZxMCAyNi0xOSA0NXQtNDUgMTloLTg5NnEtMjYgMC00NS0xOXQtMTktNDUgMTktNDVsNDQ4LTQ0OHExOS0xOSA0NS0xOXQ0NSAxOWw0NDggNDQ4cTE5IDE5IDE5IDQ1eiIvPjwvc3ZnPgo=');
  background-size: 12px;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
}

.icon-search {
  /* Search from FA4 */
  display: inline-block;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNNTA4LjUgNDgxLjZsLTEyOS0xMjljLTIuMy0yLjMtNS4zLTMuNS04LjUtMy41aC0xMC4zQzM5NSAzMTIgNDE2IDI2Mi41IDQxNiAyMDggNDE2IDkzLjEgMzIyLjkgMCAyMDggMFMwIDkzLjEgMCAyMDhzOTMuMSAyMDggMjA4IDIwOGM1NC41IDAgMTA0LTIxIDE0MS4xLTU1LjJWMzcxYzAgMy4yIDEuMyA2LjIgMy41IDguNWwxMjkgMTI5YzQuNyA0LjcgMTIuMyA0LjcgMTcgMGw5LjktOS45YzQuNy00LjcgNC43LTEyLjMgMC0xN3pNMjA4IDM4NGMtOTcuMyAwLTE3Ni03OC43LTE3Ni0xNzZTMTEwLjcgMzIgMjA4IDMyczE3NiA3OC43IDE3NiAxNzYtNzguNyAxNzYtMTc2IDE3NnoiLz48L3N2Zz4=');
  background-size: 10px;
  width: 10px;
  height: 10px;
  position:absolute;
  left:6px;
  top:6px;
  background-repeat: no-repeat;
  filter: invert(74%) sepia(6%) saturate(111%) hue-rotate(114deg) brightness(92%) contrast(88%);
}

.icon-close {
  /* Times from FA4 */
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgNTEyIj48cGF0aCBkPSJNMjA3LjYgMjU2bDEwNy43Mi0xMDcuNzJjNi4yMy02LjIzIDYuMjMtMTYuMzQgMC0yMi41OGwtMjUuMDMtMjUuMDNjLTYuMjMtNi4yMy0xNi4zNC02LjIzLTIyLjU4IDBMMTYwIDIwOC40IDUyLjI4IDEwMC42OGMtNi4yMy02LjIzLTE2LjM0LTYuMjMtMjIuNTggMEw0LjY4IDEyNS43Yy02LjIzIDYuMjMtNi4yMyAxNi4zNCAwIDIyLjU4TDExMi40IDI1NiA0LjY4IDM2My43MmMtNi4yMyA2LjIzLTYuMjMgMTYuMzQgMCAyMi41OGwyNS4wMyAyNS4wM2M2LjIzIDYuMjMgMTYuMzQgNi4yMyAyMi41OCAwTDE2MCAzMDMuNmwxMDcuNzIgMTA3LjcyYzYuMjMgNi4yMyAxNi4zNCA2LjIzIDIyLjU4IDBsMjUuMDMtMjUuMDNjNi4yMy02LjIzIDYuMjMtMTYuMzQgMC0yMi41OEwyMDcuNiAyNTZ6Ii8+PC9zdmc+');
  background-size: 8px;
  width: 8px;
  height: 11px;
  position:absolute;
  right:12px;
  top:5px;
  cursor:pointer;
  background-repeat: no-repeat;
  filter: invert(74%) sepia(6%) saturate(111%) hue-rotate(114deg) brightness(92%) contrast(88%);
  display:none;
}



/* Hide table header belongs to the table body view. */
.pivot-view .pivot-table-frame.pivot-table-body-frame {
  margin-top: -10px;
}

.pivot-view .pivot-table-frame.pivot-table-body-frame .pivot-row .pivot-cell.header.col-header {
  border-bottom-color: transparent;
}

/* Set 100% height to avoid unnecessary space between header and body. */
.pivot-view .pivot-table-frame.pivot-table-col-header-frame {
  height: 100%;
}


.pivot-body-view .pivot-cell.header.col-header, .pivot-body-view .pivot-cell.header.row-header {
  /* It is impossible to make this hidden table header area zero-height 
     if there is text in this area. We make it to 10px here, and 
     we set -10px top margin to adjust.  */
  height: 10px!important;
  overflow:hidden;
  padding-top:0px;
  padding-bottom:0px;
  line-height:0px;
}
.pivot-body-view .pivot-cell.header.col-header .pivot-cell-text, .pivot-body-view .pivot-cell.header.row-header .pivot-cell-text {
  /* It is impossible to make this hidden table header area zero-height 
     if there is text in this area. We make it to 10px here, and 
     we set -10px top margin to adjust.  */
  height: 10px!important;
  overflow:hidden;
  text-overflow: ellipsis;
  display: inline-block;
  width: 100%;
}

.single-value-box {
  width:100%;
  position:relative;
  display: table;
}

.single-value-box .single-value-innerbox {
  border-radius:2px;
  font-family: "Helvetica Neue", Arial, Helvetica, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック","Hiragino Sans", "Hiragino Kaku Gothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  display:table-cell;
  vertical-align:middle;

}
.single-value-box .single-value-innerbox .single-value-text {
  font-size:42px;
  line-height:1.2em;
  font-weight:bold;
  margin-bottom:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.single-value-box .single-value-innerbox .single-value-caption {
  font-size:15px;
  line-height:1.3em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.single-value-box .single-value-icon{
  position:absolute;
  top:25px;
  right:25px;
  font-size:80px;
  color:rgba(0, 0, 0, 0.15);
}

/* Filter setting for adding a color to the upward/downward caret SVG images in table/pivot header. */
.filter-light-red {
  filter: invert(68%) sepia(87%) saturate(5268%) hue-rotate(330deg) brightness(99%) contrast(84%);
}
.filter-light-orange {
  filter: invert(57%) sepia(98%) saturate(1192%) hue-rotate(351deg) brightness(99%) contrast(92%);
}
.filter-light-yellow {
  filter: invert(90%) sepia(28%) saturate(1517%) hue-rotate(337deg) brightness(106%) contrast(92%);
}
.filter-light-green {
filter: invert(57%) sepia(88%) saturate(324%) hue-rotate(54deg) brightness(98%) contrast(90%);
}
.filter-light-blue {
  filter: invert(56%) sepia(73%) saturate(1131%) hue-rotate(184deg) brightness(100%) contrast(96%);
}
.filter-light-purple {
  filter: invert(57%) sepia(42%) saturate(3658%) hue-rotate(233deg) brightness(91%) contrast(93%);
}
.filter-light-gray {
  filter: invert(99%) sepia(1%) saturate(951%) hue-rotate(181deg) brightness(88%) contrast(100%);
}
.filter-red {
  filter: invert(19%) sepia(83%) saturate(7182%) hue-rotate(27deg) brightness(96%) contrast(106%);
}
.filter-orange {
  filter: invert(41%) sepia(98%) saturate(654%) hue-rotate(351deg) brightness(95%) contrast(98%);
}
.filter-yellow {
  filter: invert(62%) sepia(56%) saturate(594%) hue-rotate(13deg) brightness(108%) contrast(87%);
}
.filter-green {
  filter: invert(21%) sepia(69%) saturate(4872%) hue-rotate(143deg) brightness(96%) contrast(101%);
}
.filter-blue {
  filter: invert(17%) sepia(99%) saturate(5272%) hue-rotate(199deg) brightness(98%) contrast(98%);
}
.filter-purple {
  filter: invert(31%) sepia(15%) saturate(3250%) hue-rotate(238deg) brightness(92%) contrast(91%);
}
.filter-white {
  filter: invert(100%) sepia(11%) saturate(0%) hue-rotate(312deg) brightness(112%) contrast(100%);
}
.filter-gray {
  filter: invert(74%) sepia(6%) saturate(111%) hue-rotate(114deg) brightness(92%) contrast(88%);
}
.filter-dark-gray {
  filter: invert(34%) sepia(9%) saturate(415%) hue-rotate(175deg) brightness(95%) contrast(91%);
}
.filter-black {
  filter: invert(0%) sepia(1%) saturate(35%) hue-rotate(270deg) brightness(94%) contrast(100%);
}
.filter-default {
  filter: invert(20%) sepia(0%) saturate(3917%) hue-rotate(141deg) brightness(100%) contrast(68%);
}
