/* ---------------------------------------- */
/* Default tags */
/* ---------------------------------------- */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  margin: 0;
}

/* ---------------------------------------- */
/* Misc */
/* ---------------------------------------- */
.hidden {
  display: none !important;
}

/* ---------------------------------------- */
/* popper.js / tooltip.js */
/* ---------------------------------------- */
/* Positioning hack */
/* .tooltip {
  left: -70px !important;
} */

.popper,
.tooltip {
  position: absolute;
  background: #f1f1f1;
  color: black;
  min-width: 150px;
  max-height: 600px;
  /* border-radius: 3px; */
  border-radius: 13px;
  /* box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); */
  box-shadow: 0px 0px 40px 0px rgba(176,174,176,0.75);
  /* padding: 10px; */
  padding: 0;
  text-align: center;
  overflow: hidden;
  z-index: 1000 !important;
}
.popper .popper__arrow,
.tooltip .tooltip-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  position: absolute;
  margin: 5px;
}

.tooltip .tooltip-arrow,
.popper .popper__arrow {
  border-color: #f1f1f1;
}
.popper[x-placement^="top"],
.tooltip[x-placement^="top"] {
  margin-bottom: 6px;
}
.popper[x-placement^="top"] .popper__arrow,
.tooltip[x-placement^="top"] .tooltip-arrow {
  border-width: 5px 5px 0 5px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  bottom: -5px;
  left: calc(50% - 5px);
  margin-top: 0;
  margin-bottom: 0;
}
.popper[x-placement^="bottom"],
.tooltip[x-placement^="bottom"] {
  margin-top: 6px;
}
.tooltip[x-placement^="bottom"] .tooltip-arrow,
.popper[x-placement^="bottom"] .popper__arrow {
  border-width: 0 5px 5px 5px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  top: -5px;
  left: calc(50% - 5px);
  margin-top: 0;
  margin-bottom: 0;
}
.tooltip[x-placement^="right"],
.popper[x-placement^="right"] {
  margin-left: 6px;
}
.popper[x-placement^="right"] .popper__arrow,
.tooltip[x-placement^="right"] .tooltip-arrow {
  border-width: 5px 5px 5px 0;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  left: -5px;
  top: calc(50% - 5px);
  margin-left: 0;
  margin-right: 0;
}
.popper[x-placement^="left"],
.tooltip[x-placement^="left"] {
  margin-right: 6px;
}
.popper[x-placement^="left"] .popper__arrow,
.tooltip[x-placement^="left"] .tooltip-arrow {
  border-width: 5px 0 5px 5px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  right: -6px;
  top: calc(50% - 5px);
  margin-left: 0;
  margin-right: 0;
}

/* ---------------------------------------- */
/* Freeze Table */
/* ---------------------------------------- */
#data-table-container {
  overflow: scroll;
  position: relative;

  /* Max values will be overwritten via JavaScript */
  /* max-height: 530px; */
  /* max-width: 980px; */
}

#data-table {
  position: relative;
  border-collapse: separate;
  border-spacing: 0;
}

#data-table td,
#data-table th {
  border-right: 1px solid white;
}

#data-table thead th,
#data-table td:first-child {
  position: -webkit-sticky; /* for Safari */
  position: sticky;
}

#data-table thead th {
  top: 0;
}

#data-table thead th:first-child,
#data-table td:first-child {
  left: 0;
}

#data-table thead th:first-child{
  z-index: 1;
}

#data-table tbody th {
  position: -webkit-sticky; /* for Safari */
  position: sticky;
  left: 0;
}

#data-table tr:nth-child(odd) td:first-child {
  background-color: #e9e9e9;
}

#data-table tr:nth-child(even) td:first-child {
  background-color: #d9d9d9;
}

/* ---------------------------------------- */
/* Sortable */
/* ---------------------------------------- */
thead tr div {
  /* position: relative; */
  height: 60px;
  display: table;
  width: 100px;
}

thead tr span {
  /* position: relative; */
}

thead tr span:nth-child(1) {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
}

thead tr span:nth-child(2) {
  background-image: url('images/chevron.png');
  background-size: 240px 48px;
  height: 48px;
  width: 48px;
  float: right;
  margin-top: 8px;
}

thead tr .sort-active-asc span {
  background-position: 196px 0;
}

thead tr .sort-active-desc span {
  background-position: 144px 0;
}

/* ---------------------------------------- */
/* Data table */
/* ---------------------------------------- */
table {
  width: 100%;
  color: #444444;
  page-break-inside: auto;
  /* page-break-before: always; */
  page-break-after: always;
  font-size: 0.8rem;
}

tr {
  page-break-inside: avoid;
  page-break-after: auto;
}

th {
  color: white;
  background-color: #8f8f8f;
  font-weight: normal;
}

th.frozen {
  background-color: #08107b;;
}

td {
  /* max-width: 200px; */
  /* min-width: 150px; */
  background-color: #ffffff;
}

/* th:nth-child(1),
td:nth-child(1) {
  border-right: 4px solid #ebebf4;
} */

tr:nth-child(even) td:nth-child(1n) {
  background-color: #e4e4e4;
}

tr:nth-child(even) td:nth-child(1) {
  background-color: #e4e4e4;
}

th, td {
  padding: 0 15px;
  text-align: left;
  height: 70px;
  /* width: 70px; */
  text-overflow: ellipsis;
  overflow: hidden;
  /* white-space: nowrap; */
}

td a.asset {
  float: right;
  margin-right: -4px;
  background-size: 17px !important;
  background: no-repeat url(images/asset-link.png);
  width: 17px;
  height: 17px;
  display: inline-block;
}

/* ---------------------------------------- */
/* Buttons */
/* ---------------------------------------- */
button {
  height: 40px;
  width: 208px;
  border: none;
  color: #ffffff;
  font-size: 17px;
  background: none;
}

button.default {
  background-color: #e9b226;
}

button.default:active,
button.default:disabled {
  background-color: #d0990d;
}

button.cancel {
  background-color: #08107b;
}

button.cancel:active {
  background-color: #000062;
}

a > span.row-filter {
  background-image: url('images/filter.png');
  background-size: 48px 24px;
  background-repeat: no-repeat;
  height: 24px;
  width: 24px;
  margin-right: 15px;
}

a > span.column-filter {
  background-image: url('images/filter.png');
  background-size: 48px 24px;
  background-repeat: no-repeat;
  background-position: -24px 0;
  height: 24px;
  width: 24px;
  margin-right: 15px;
}

/* ---------------------------------------- */
/* jQuery modal */
/* ---------------------------------------- */
.modal {
  max-width: 940px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  box-shadow: none !important;
}

.blocker {
  background-color: rgba(0,0,0,0.6) !important;
  z-index: 20 !important; /* Needed because of the juggling with the frozen table cells and the fixed header. */
}

.modal a.close-modal[class*="icon-"] {
  top: 20px;
  right: 20px;
  background-image: url('images/close.png');
  height: 24px;
  width: 24px;
  background-size: 24px;
}


/* ---------------------------------------- */
/* Region */
/* ---------------------------------------- */
button.region {
  border: 1px solid #e4e4e4;
  color: #c9c9c9;
  margin: 0;
  width: auto;
  float: right;
}

button.region.selected {
  border-color: #08107b;
  color: #08107b;
}



/* ---------------------------------------- */
/* Layout */
/* ---------------------------------------- */
#app > .header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10; /* Bring it infront of the fixed left table column cells (comment this to see the effect ;) ). */
}

#app .header-content {
  /* It's height automatically becomes 70px */
  padding: 14px 40px 14px 40px;
  background-color: #ffffff;
}

#app .header img.logo {
  height: 35px;
  margin-top: 3px;
}

#app .header-toolbar {
  /* Same height as .header-content */
  height: 55px;
  padding-top: 15px;
  background-color: #e4e4e4;
}

#app a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 10px;
  text-decoration: none;
  background-color: #ffffff;
  color: #08107b;
  border: 1px solid #08107b;
  text-align: center;
  margin: auto;
}

#app a.row-filter-button {
  width: 350px;
}

#app a.column-button {
  width: 240px;
  float: right;
  margin-top: -42px;
  margin-right: 50px;
  background: none;
  border: none;
}

#data-table-container {
  /* Margin because above located are .header-content and .header-toolbar */
  margin-top: 139px;
}

.modal .form-element {
  margin-top: 15px;
  margin-left: 15px;
}

.modal input,
.modal label,
.modal textarea {
  display: block;
  color: #444444;
}

.modal input {
  height: 40px;
  width: 386px;
}

.modal textarea {
  height: 295px;
  width: 386px;
  resize: none;
  padding-top: 12px;
}

.modal input,
.modal textarea {
  border: 1px solid #a6a6a6;
  border-radius: 3px;
  font-size: 16px;
  padding-left: 8px;
}

.modal input:focus,
.modal textarea:focus {
  border-color: #e9b226;
}

.modal input.invalid,
.modal textarea.invalid {
  border: 1px solid #ff0000;
}

.modal label {
  margin-bottom: 8px;
}

.modal {
  overflow: hidden;
}

.modal .header {
  height: 44px;
  padding-top: 20px;
  background-color: #f1f1f1;
  text-align: center;
  font-weight: bold;
}

.modal .header {
  border-bottom: 1px solid #8f8f8f;
}

#filters-modal {
  width: 1120px;
}

#filters-modal .footer {
  padding: 10px;
  background-color: #f5f5f9;
  text-align: center;
}

#filters-modal .columns {
  height: 560px;
}

#filters-modal .column {
  float: left;
  width: 33.33%;
}

#filters-modal .items {
  height: 545px;
}

#filters-modal .column-header {
  font-weight: bold;
  color: #ffffff;
  background-color: #8F8F8F;
  text-align: center;
  padding: 4px;
}

#filters-modal .column-header.active {
  background-color: #08107b;
}

ul {
  list-style-type: none;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: nowrap;
  margin: 0;
}

#filters-modal ul {
  height: 530px;
}

li:not(:last-child) {
  border-bottom: 1px solid #e4e4e4;
}

li {
  line-height: 48px;
}

li span.icon {
  float: left;
  background-image: url('images/checkbox.png');
  background-position: 72px 0;
  height: 24px;
  width: 24px;
  background-size: 72px 24px;
  margin-top: 12px;
  margin-right: 18px;
}

.items li span.icon {
  background-position: 48px 0;
}

.items.inactive li span {
  background-position: 24px 0;
}

.items.inactive li {
  color: #e4e4e4;
}

li span.icon.selected {
  background-position: 0 0;
}

.column-filters-tooltip .header {
  font-weight: bold;
  /* height: 30px; */
  padding: 15px;
}

.column-filters-tooltip .hint {
  background-color: #777777;
  color: #ffffff;
  padding: 8px;
  height: 12px;
  font-size: 0.8rem;
}

.column-filters-tooltip .toggle-selection {
  background-color: #f1f1f1;
  color: #08107b;
  padding: 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.column-filters-tooltip .toggle-selection > span {
  background-position: 24px 0;
  height: 24px;
  width: 24px;
  background-size: 96px 24px;
  background-image: url('images/eye.png');
  float: right;
  margin-left: 10px;
  margin-right: 3px;
}

.column-filters-tooltip .toggle-selection.inactive {
  color: #8f8f8f;
}

.column-filters-tooltip .toggle-selection.inactive > span {
  background-position: 48px 0;
}


.column-filters-tooltip ul {
  background-color: #ffffff;
  color: #444444;
  padding: 0;
  text-align: left;
}

.column-filters-tooltip ul {
  height: 340px;
}

.column-filters-tooltip li {
  padding-left: 12px;
}

.column-filters-tooltip li span.icon {
  background-image: url('images/eye.png');
  background-size: 96px 24px;
  float: right;
}

.column-filters-tooltip button {
  width: 50% !important;
}

.column-filters-tooltip .cancel {
  float: left;
}

span.counter {
  background-color: #e9b226;
  font-size: 12px;
  color: #ffffff;
  border-radius: 13px;
  padding: 3px;
  min-width: 30px;
  display: inline-block;
  margin-left: 20px;
}

#search-field {
  height: 39px;
  width: 189px;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  color: #08107b;
  padding-left: 12px;
  position: absolute;
  left: 13px;
  top: 84px;
}

/* Remove default input styling to be able to apply our styles */
input[type="search"] {
   -webkit-appearance: none;
}


/* ---------------------------------------- */
/* PDF */
/* ---------------------------------------- */
#pdf-buffer table {
  table-layout: fixed;
}

/* ---------------------------------------- */
/* Spinner */
/* ---------------------------------------- */
.lds-spinner {
  display: inline-block;
  position: relative;
  /* width: 64px;
  height: 64px; */
  top: -38px;
}
.lds-spinner div {
  transform-origin: 32px 32px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  /* top: 16px; */
  left: 31px;
  width: 2px;
  height: 8px;
  top: 18px;
  /* right: -45px; */
  border-radius: 20%;
  background: #fff;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
