html {
  width: 100%;
  padding: 0;
  margin: 0;
}
body {
  min-width: 100%;
  padding: 0;
  margin: 0;
  font-size: 13px;
}
.chart-panel {
  margin: 12px 0;
  width: 100%;
  display: block;
}

.btn {
  font-size: 14px;
}
table {
  border-collapse: separate;
}
.table.xtable {
  margin: 0 auto;
}
.table thead > tr > th {
  vertical-align: middle;
}
.table tbody > tr > td {
  vertical-align: middle;
}
.sorting:before,
table.dataTable > thead .sorting_asc:before,
table.dataTable > thead .sorting_desc:before,
table.dataTable > thead .sorting_asc_disabled:before,
table.dataTable > thead .sorting_desc_disabled:before {
  top: 0px;
}
.sorting:after,
table.dataTable > thead .sorting_asc:after,
table.dataTable > thead .sorting_desc:after,
table.dataTable > thead .sorting_asc_disabled:after,
table.dataTable > thead .sorting_desc_disabled:after {
  top: 0px;
}
.display {
  background: white;
  margin: 0px auto;
  height: 100%;
}
#preloader {
  margin: 0px auto;
}
#error {
  color: red;
}

.drilldlg .dlg_options .customrow {
  display: none;
}
.drilldlg .dlg_options input[type="number"]:last-child {
  display: none;
}
.drilldlg .dlg_blanks {
  margin: 0 auto;
}

.formatdlg .dlg_options .iconsrow {
  display: none;
}
.formatdlg .dlg_options input {
  text-align: center;
}
.formatdlg .dlg_blanks {
  margin: 0 auto;
}

.percentdlg .dlg_options tr.pad td {
  padding-top: 5px;
}

.slicerdlg .candidaterow {
  display: none;
}
.stage {
  display: flex;
}
.stage .slicer.empty {
  color: gray;
  padding: 10px;
  font-size: 1.5em;
}

.stage .slicer .board .title .toggles img:last-child {
  margin-left: 5px;
}
.stage .slicer .board .title img {
  cursor: pointer;
  width: 12px;
}

.stage .slicer .board .item {
  padding: 3px 5px;
  margin-top: 5px;
  cursor: pointer;
}
.stage .slicer .board .item.selected {
  background: #606176;
  color: #fff;
}
.stage .slicer .board.minimize .item {
  display: none;
}
.stage.slicer-hidden .slicer {
  display: none;
}
.stage.slicer-top {
  flex-direction: column;
}
.stage.slicer-top .slicer {
  margin-bottom: 10px;
}
.stage.slicer-bottom {
  flex-direction: column-reverse;
}
.stage.slicer-bottom .slicer {
  margin-bottom: 10px;
}
.stage.slicer-top,
.stage.slicer-bottom {
  align-items: center;
}
.stage.slicer-top .slicer .board,
.stage.slicer-bottom .slicer .board {
  float: left;
}
.stage.slicer-top .slicer .board .item,
.stage.slicer-bottom .slicer .board .item {
  float: left;
  border-radius: 15px;
  min-width: 80px;
  text-align: center;
}
.stage.slicer-top .slicer .board .item:not(:first-child),
.stage.slicer-bottom .slicer .board .item:not(:first-child) {
  margin-left: 5px;
}
.stage.slicer-left,
.stage.slicer-right {
  flex-direction: row;
}

.stage.slicer-right .slicer {
  order: 2;
}

.stage .wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: auto;
  width: 100%;
}
.stage .wrapper.chart-first > .chart-panel {
  order: 1;
}
.stage .wrapper.chart-first > .table {
  order: 2;
}
#controls {
  display: none;
}

#controls #header input[type="text"] {
  margin-right: 30px;
  border: 1px solid black;
  text-align: center;
}
#controls #header input[type="checkbox"] {
  margin-left: 10px;
  margin-right: 5px;
  position: relative;
  vertical-align: middle;
  bottom: 3px;
}
#controls #header label {
  color: white;
}
#controls #header #buttons button {
  background: #5b9bd5;
  color: white;
}
#controls #header #loading-animation {
  display: inline;
  position: absolute;
  height: calc(100% - 10px);
  margin-left: 10px;
  top: 5px;
}

.layout .fieldbox {
  border: 1px solid #ddd;
  height: 26px;
  padding: 0 5px 5px 0;
  min-width: 50px;
}
.layout .fieldbox .field {
  height: auto;
  float: left;
  margin: 5px 0 0 5px;
  padding: 0px 5px;
  color: #261010;
  cursor: default;
  white-space: nowrap;
  background: white;
  min-width: 90px;
  text-align: center;
}
.layout .fieldbox .field.CHAR {
  border: 1px solid #72708c;
  border-radius: 15px;
}
.layout .fieldbox .field.NUM {
  border: 1px solid #e66281;
  border-radius: 15px;
}
.layout .fieldbox .field.CALC {
  border: 1px solid #00bcd4;
  border-radius: 15px;
}

.table table tbody > tr > td {
}
.table table thead > tr > th {
  border-bottom: initial;
}
.table.loading {
  width: 100%;
}
.stage .table {
  margin-bottom: 10px;
  width: auto;
  max-width: 100%;
}
.table.loading {
  text-align: center;
  width: 100%;
}
.table.loading img {
  width: 128px;
}
.table .cell-preloader {
  width: 32px;
}
table .expand-toggle,
table .expand-toggle-level {
  cursor: pointer;
  text-decoration: underline;
}
table .value {
  white-space: nowrap;
  position: relative;
}
table .value .text {
  z-index: 10;
  position: relative;
}
table .value .format {
  z-index: 5;
  pointer-events: none;
}
table .value .format.bar {
  position: absolute;
  display: block;
  left: 2px;
  top: 2px;
  height: calc(100% - 4px);
}
table .value .format.map {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
table .value .format.icon {
  float: left;
  margin-right: 5px;
  height: 1.5em;
}
table td[data-selected="true"] .format.map,
table td[data-selected="true"] .format.bar,
table td[data-selected="true"] .format.icon {
  display: none;
}
.default-theme table {
  border-collapse: collapse;
  border: 1px solid black;
}
.default-theme table tr,
.default-theme table th,
.default-theme table td {
  border: 1px solid black;
}
.default-theme table th {
  background: #808080;
  color: white;
  padding: 5px;
  text-align: center;
}
.default-theme table td {
  text-align: right;
  padding: 0 5px;
}
.default-theme table td.title {
  text-align: center;
  padding: 5px;
  white-space: nowrap;
}
.default-theme table .sub-total-row,
.default-theme table .first-title {
  background: #a6a6a6;
  color: white;
  font-weight: bold;
}
.default-theme table .sub-total-row td,
.default-theme table .first-title td {
  text-align: center;
}
.default-theme table .grand-total-row {
  background: #4472c4;
  color: white;
  font-weight: bold;
}
.default-theme table .grand-total-row td {
  text-align: center;
}

.dlg_title {
  font-weight: 600;
  margin: 10px 0px;
  font-size: 14px;
  border: 1px solid lightgrey;
  padding: 4px;
  border-radius: 25px;
  text-align: center;
  background: #bfdde7;
}
.single-control {
  height: 100%;
}

.side-feature table {
  width: 100% !important;
}

.pad td input {
  width: 100%;
}
#controls #header {
  position: relative;
  background: #333;
  padding: 10px 0;
  box-shadow: 0px 0px 1px 1px #000;
  margin-bottom: 10px;
}

#controls #header #buttons button {
  border-right: 1px solid #555;
  padding: 3px 10px;
}
#controls #header #buttons button:last-child {
  border-right: 0;
}

.btn-group > .btn-group:not(:first-child),
.btn-group > .btn:not(:first-child) {
  margin-left: 0;
}
.dlg_wrapper {
  margin-top: 10px;
}
.dlg_wrapper button,
.adder {
  background-color: #5b9bd5 !important;
  border: 0;
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
}

.stage .slicer {
  border: 1px solid #ddd;
  padding: 10px;
  min-width: 200px;
}
.slicer-top .slicer,
.slicer-bottom .slicer {
  max-width: 100% !important;
  display: flex !important;
  justify-content: center;
}
.slicer-top .slicer .board,
.slicer-bottom .slicer .board {
  margin-right: 20px;
}
.slicer .board .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #aaa;
  margin-top: 10px;
  padding-bottom: 5px;
  font-weight: 500;
}

.preloader-wrapper {
  text-align: center;
}

.fields .field {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  box-shadow: 0 0 0 0 #40556b;
  color: #fff;
  font-size: 12px;
  background: transparent;
  margin: 1px 12px;
  border-radius: 2px;
  border: 1px solid #d3d3d3;
}
.fields .field img {
  height: 1em;
}
.fields .field span {
  margin-left: 5px;
  border-left: 2px dotted grey;
  padding-left: 5px;
  font-weight: 300;
  color: #012222;
}

/* pivot-table */
.buttons-control button {
  margin-bottom: 8px;
}

.panel.charts {
  padding-right: 5px;
  padding-left: 5px;
  margin-top: 5px;
}
.chart {
  border: 0;
  margin: 1px;
  border: 0px solid #e0e0e0;
  background-color: transparent;
  padding: 10px;
  position: relative;
  border-radius: 6px;
}
.chart.data-table {
  overflow: auto;
}

/* responsive */
.crosstable-title {
  padding: 12px;
}

.text-color-center {
  color: steelblue;
}
