@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

.thales-wrapper {
  --ComponentBorder: 1px solid transparent;
  --ComponentPadding: 1em 1em;
  --ComponentBackground: transparent;
  --ComponentSplashBackground: rgba(0, 0, 0, 0.4);
  --TableContainerBackground: transparent;
  --TableContainerBorder: 0px solid rgba(99, 99, 99, 0.5);
  /* --TableBorderColor: #cfcfcf; */
  /* --TableBorderWidth: 1px; */
  --TableBorder: 1px solid #999;
  --TableBackground: #fff;
  --TableHeaderBackground: #a83427;
  --TableHeaderBorder: 1px solid #222;
  --TableHeaderFontColor: #fff;
  --TableHeaderFontSize: 1.2em;
  --TableHeaderFontWeight: 700;
  --TableHeaderControlsColor: #ddd;
  --TableHeaderPadding: 10px 10px;
  --TableHeaderButtonBackground: #4f6d88;
  --TableHeaderButtonIconColor: #fff;
  --TableRowBorder: 1px solid #c0c0c0;
  --TableRowHoverBackground: #efefef;
  --TableRowRollBackground: #c9f2ff;
  --TableCellBackground: transparent;
  --TableCellFontColor: #222;
  --TableCellPlaceholderColor: #a0a0a0;
  --TableCellPadding: 10px 10px;
  --TableCellBackgroundHover: transparent;
  --TableCellBorder: 1px solid #ddd;
}
.thales-wrapper {
  min-width: 100px;
  display: inline-block;
  width: 100%;
  position: relative;
  border: var(--ComponentBorder);
  padding: var(--ComponentPadding);
  background: var(--ComponentBackground);
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
}

.thales-wrapper.thales-table-collapsed .thales-table-title,
.thales-wrapper.thales-table-collapsed #thales-navigation-toolbar,
.thales-wrapper.thales-table-collapsed .thales-ui-features,
.thales-wrapper.thales-table-collapsed .thales-ui-row {
  display: none !important;
}

.user-css-presentation .thales-wrapper {
  padding: 0px;
}

.thales-rollBtn-group {
  margin-left: 1em;
}

.thales-render .btn-group {
  margin-bottom: 5px;
}

.thales-render .btn-group:active {
  box-shadow: none;
}

/* .btn.thales-roll-group:hover {
  background: none;
  border: none;
} */

.btn.thales-roll-group button.dropdown-toggle:after {
  width: 0px;
  height: 0px;
  position: absolute;
  opacity: 0;
  display: none;
}
.thales-wrapper .thales-roll-menu .thales-roll-column-select {
  display: block;
  border: none;
  outline: none;
}

.thales-render .btn .btn-primary {
  background: #a83427;
  border: 0px;
}

.thales-render .btn .btn-primary:hover {
  background: #e84e3c;
}

.thales-render .btn-group > .btn + .dropdown-toggle {
  background: #e84e3c;
}

.thales-render .btn-group > .btn + .dropdown-toggle:hover {
  background: #ff6452;
}

.thales-search-box {
  position: relative;
}
.thales-search-box i {
  position: absolute;
  top: 0.8em;
  left: 1em;
}
.thales-search-box .thales-search {
  padding-left: 2.4em;
}
.thales-wrapper .thales-table-ui-col {
  max-width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
/* .thales-wrapper .thales-table-container.thales-header-affixed thead tr {
     position: absolute;
     top: 0;
     left: 0;
} */
.thales-wrapper .thales-table-editor {
  width: 92%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  overflow-x: auto;
  position: relative;
  border: var(--TableContainerBorder);
  background: var(--TableContainerBackground);
}
#thales-editTab .thales-search-wrap {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}
#thales-editTab .thales-search-wrap .thales-search-box {
  max-width: 300px;
}
.thales-wrapper .thales-add-column {
  width: 5%;
  height: 100%;
  padding-left: 1em;
}
.thales-wrapper .thales-add-row {
  width: 95%;
  margin-top: 1em;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.thales-wrapper .thales-component-splash {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--ComponentSplashBackground);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.thales-wrapper .thales-table {
  position: absolute;
  table-layout: fixed;
  border-collapse: collapse;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  background: var(--TableBackground);
  border: var(--TableBorder);
  width: unset;
}
.thales-table thead tr {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.thales-table thead th {
  border-right: var(--TableHeaderBorder);
  border-bottom: var(--TableHeaderBorder);
  background: var(--TableHeaderBackground);
  color: var(--TableHeaderFontColor);
  display: inline-block;
}
.thales-table thead th:last-child {
  border-right: none;
}
.thales-table thead th .thales-column-title-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.thales-table thead th .thales-column-title-container .thales-column-title {
  width: 100%;
  position: relative;
  display: inline-block;
  padding: var(--TableHeaderPadding);
  /* color:var(--TableHeaderFontColor); */
  font-weight: var(--TableHeaderFontWeight);
  font-size: var(--TableHeaderFontSize);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.thales-table-editor
  thead
  th
  .thales-column-title-container
  .thales-column-title {
  left: 0.5em;
}
.thales-wrapper .thales-table th .thales-column-sort,
.thales-wrapper .thales-table th .thales-column-handle {
  color: var(--TableHeaderControlsColor);
}
.thales-wrapper .thales-table th .thales-column-handle {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 5px;
  cursor: move;
  font-size: 2em;
  z-index: 1000;
}
.thales-wrapper
  .thales-table
  th
  .thales-column-title-container
  .thales-column-sort {
  position: relative;
  right: 1em;
  display: inline-block;
  font-size: 1.3em;
}
.thales-wrapper .thales-table th .thales-column-config {
  position: absolute;
  right: 2em;
  display: none;
  cursor: pointer;
  padding: 5px;
}
.thales-wrapper .thales-table th:hover .thales-column-config {
  display: block;
}
.thales-wrapper .thales-table th .ui-resizable-handle {
  transition: display 0.3s ease-in-out;
  right: 0;
  background-color: rgba(0, 0, 0, 0.3);
}
.thales-wrapper .thales-table th.ui-sortable-placeholder {
  background-color: var(--TableHeaderBackground);
  opacity: 0.75;
}
.thales-wrapper .thales-table tr.ui-sortable-placeholder {
  display: flex;
  flex-direction: row;
}
.thales-wrapper .thales-table tbody {
  overflow: hidden;
  overflow-y: auto;
}
.thales-wrapper .thales-table tr.thales-row {
  transition: display 0.3s ease-out, background 0.3s ease-out;
  border-bottom: var(--TableCellBorder);
  display: flex;
  flex-direction: row;
}
.thales-wrapper .thales-table tr.thales-row:hover {
  background: var(--TableRowHoverBackground);
}
.thales-wrapper .thales-table tr.thales-row:hover td.thales-cell {
  transition: background 0.3s ease-out;
  background: transparent !important;
}
.thales-wrapper .thales-row .thales-cell {
  padding: 0 !important;
  border-right: var(--TableCellBorder);
  display: inline-block;
  color: var(--TableCellFontColor);
  position: relative;
}
.thales-wrapper .thales-row .thales-cell:last-child {
  border-right: none;
}
.thales-wrapper .thales-row .thales-cell-content {
  display: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-height: 1em;
}
.thales-wrapper .thales-row .thales-cell .thales-cell-icon {
  margin-right: 0.5em;
}
.thales-table thead th.thales-options-column {
  padding: var(--TableCellPadding);
  font-size: calc(var(--TableHeaderFontSize) + 1px);
  min-width: 60px;
}
.thales-table .thales-row .thales-row-controls-cell {
  min-width: 60px;
  border-right: var(--TableCellBorder);
  padding-left: 5px;
}
.thales-table .thales-row .thales-row-controls {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding-right: 5px;
}
.thales-table .thales-row .thales-row-controls .thales-row-control {
  cursor: pointer;
}
.gray-bg .thales-table .thales-row-controls {
  color: #999;
}
.thales-cell .thales-rendered-text {
  line-height: 1em;
  display: block;
  padding: var(--TableCellPadding);
}
.thales-cell .thales-cell-longtext,
.thales-cell .thales-rendered-roll,
.thales-cell .thales-rendered-number,
.thales-cell .thales-cell-table,
.thales-cell .thales-cell-link,
.thales-cell .thales-cell-input,
.thales-cell .thales-cell-image,
.thales-cell .thales-cell-article,
.thales-cell .thales-cell-rollBtn {
  line-height: 1em;
  display: block;
  white-space: nowrap;
  padding: var(--TableCellPadding);
  /* color:var(--TableCellFontColor); */
  background: var(--TableCellBackground);
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}
.thales-cell .thales-cell-longtext,
.thales-cell .thales-cell-image,
.thales-cell .thales-cell-article,
.thales-cell .thales-cell-rollBtn {
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.thales-cell .thales-cell-input {
  border: none;
  outline: none;
  padding: var(--TableCellPadding);
  width: 100%;
  color: inherit;
}
.thales-cell .thales-cell-rollBtn {
  height: 100% !important;
  margin: 3px;
}
.thales-cell .thales-roll-values {
  display: flex;
  flex-direction: row;
}
.thales-cell .thales-roll-values .thales-cell-input {
  width: 50%;
  padding: var(--TableCellPadding);
}
.thales-cell .thales-cell-table {
  cursor: pointer;
}
.thales-cell .thales-cell-link a {
  color: var(--TableCellFontColor);
}
.thales-cell .thales-cell-checkbox {
  visibility: hidden;
}
.thales-cell .thales-cell-checkbox:checked {
  visibility: hidden;
}
.thales-cell .thales-cell-custom-checkbox {
  position: absolute;
  top: calc(50% - 12.5px);
  left: calc(50% - 12.5px);
  height: 25px;
  width: 25px;
  background-color: #3c3c3c;
  cursor: pointer;
}
.thales-cell .thales-cell-checkbox:disabled ~ .thales-cell-custom-checkbox {
  cursor: default;
}
.thales-cell .thales-cell-custom-checkbox:after {
  content: '';
  position: absolute;

  left: 8px;
  bottom: 7px;
  height: 12px;
  width: 7px;
  border: solid white;
  border-width: 0 4px 4px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  display: none;
}
.thales-cell .thales-cell-checkbox:checked ~ .thales-cell-custom-checkbox {
  background-color: var(--info);
}
.thales-cell
  .thales-cell-checkbox:checked
  ~ .thales-cell-custom-checkbox:after {
  display: block;
}

.thales-ui-feature .thales-roll-group {
  margin-left: 3px;
  margin-right: 3px;
}

.thales-ui-feature#thales-roll .dropdown-item {
  width: 100%;
}
.thales-ui-feature-wrapper {
  position: relative;
}
.thales-ui-feature#thales-search {
  /* position:absolute; */
  margin-bottom: 10px;
  right: 0;
}
.user-css-presentation .thales-render .thales-ui-feature#thales-search i {
  position: absolute;
  top: 0.6em;
  left: 0.7em;
  font-size: 1.6em;
  color: grey;
}

.thales-ui-feature#thales-search i {
  position: absolute;
  top: 0.7em;
  left: 0.7em;
  font-size: 1em;
  color: grey;
}

.thales-ui-feature#thales-search .thales-search {
  padding-left: 2.5em;
}
.thales-wrapper .thales-table-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  overflow-x: auto;
  border: var(--TableContainerBorder);
  background: var(--TableContainerBackground);
  height: 240px;
}
.thales-render .thales-ui-features {
  flex-wrap: nowrap;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
.thales-render .thales-ui-features.row::before {
  content: unset;
}
.thales-render .thales-ui-features.row::after {
  content: unset;
}

.thales-wrapper #thales-navigation-toolbar {
  padding: 0 5px;
}
.thales-wrapper
  #thales-navigation-toolbar
  .thales-nav-button[data-thales-nav-direction='back'] {
  text-align: left;
}
.thales-wrapper
  #thales-navigation-toolbar
  .thales-nav-button[data-thales-nav-direction='back']
  i {
  margin-right: 0.5em;
}
.thales-wrapper
  #thales-navigation-toolbar
  .thales-nav-button[data-thales-nav-direction='next'] {
  text-align: right;
}
.thales-wrapper
  #thales-navigation-toolbar
  .thales-nav-button[data-thales-nav-direction='next']
  i {
  margin-left: 0.5em;
}
.thales-ui-hidden,
.thales-wrapper .thales-ui-hidden {
  display: none !important;
}
.thales-wrapper table.thales-table tr.thales-roll-result {
  background: var(--TableRowRollBackground);
}
.thales-wrapper table.thales-table tr.thales-roll-result td.thales-cell {
  background: transparent !important;
}
.thales-wrapper input:disabled {
  cursor: not-allowed;
}
.thales-btn-icon {
  margin-right: 0.25em;
}
.thales-flash-message {
  visibility: hidden;
  position: absolute;
  right: 28px;
  width: 300px;
  z-index: 100000;
}
.thales-flash-message.fadeIn,
.thales-flash-message.fadeOut {
  visibility: visible;
}
.thales-flash-message .thales-flash-icon,
.thales-flash-message .thales-flash-text {
  display: inline-block;
}
.thales-tooltip {
  opacity: 1 !important;
}
.thales-wrapper .btn-group.open .dropdown-menu {
  display: block;
}
.thales-editor_ui-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.thales-editor_ui-row .dropdown-menu .dropdown-item {
  width: 100%;
}
.thales-cell-input::-webkit-outer-spin-button,
.thales-cell-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.thales-cell-input[type='number'] {
  -moz-appearance: textfield;
}
.thales-render .thales-cell .thales-cell-image:empty,
.thales-render .thales-cell .thales-cell-article:empty {
  cursor: default !important;
}

.thales-cell .thales-rendered-text:empty:before,
.thales-cell .thales-cell-longtext:empty:before,
.thales-cell .thales-rendered-roll:empty:before,
.thales-cell .thales-rendered-number:empty:before,
.thales-cell .thales-cell-input:empty:before,
.thales-cell .thales-cell-image:empty:before,
.thales-cell .thales-cell-article:empty:before,
.thales-cell .thales-cell-rollBtn:empty:before {
  content: '\200b';
}

.thales-modal .thales-image-search-results {
  border-radius: 4px;
  border: rgba(99, 99, 99, 0.5);
  height: 380px;
  width: calc(100% - 2em);
  background-color: #1f1f29;
  margin: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;

  overflow: hidden;
  overflow-y: auto;
}

.thales-modal .thales-image-search-results .thales-image-search-result {
  width: 32%;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.thales-modal .thales-image-search-results .thales-image-search-result img {
  max-width: 100%;
  margin: 0.25em;
}
.thales-modal
  .thales-image-search-results
  .thales-image-search-result
  .thales-search-image-select {
  border: 2px solid var(--primary);
}

.thales-modal .thales-article-search-results {
  border-radius: 4px;
  border: rgba(99, 99, 99, 0.5);
  height: 210px;
  width: calc(100% - 2em);
  background-color: #1f1f29;
  margin: 1em;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;

  overflow: hidden;
  overflow-y: auto;
}

.thales-modal .thales-article-search-results .thales-article-search-result {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-left: 4px solid transparent;
  width: 100%;
  padding: 0.5em 1em;
  cursor: pointer;
  height: 2.7em;
}

.thales-modal
  .thales-article-search-results
  .thales-article-search-result:hover {
  border-left-color: rgba(99, 99, 99, 0.5);
  background-color: rgba(99, 99, 99, 0.3);
}
.thales-modal
  .thales-article-search-results
  .thales-article-search-result.thales-article-search-select {
  border-left-color: var(--primary);
  background-color: rgba(99, 99, 99, 0.5);
}

.thales-image-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.thales-image-box .thales-image-box-close {
  position: fixed;
  top: 1em;
  right: 1em;
  font-size: 1.8em;
  cursor: pointer;
  color: #fff;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.83);
}

.thales-image-box .thales-image-viewer {
  max-width: 80%;
  max-height: 80vh;
  position: relative;
  overflow: hidden;

  -webkit-box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.52);
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.52);
}
.thales-image-box .thales-image-viewer img {
  max-width: 100%;
  position: relative;
}
.thales-image-box .thales-image-viewer .thales-image-title-container {
  width: 100%;
  height: 3em;
  color: white;
  background: rgba(0, 0, 0, 0.5);

  position: absolute;
  bottom: -3em;
  text-align: center;
  font-size: 1.4em;
  line-height: 1.4em;
  transition: transform 0.3s ease-in-out;
  padding: 0.5em;
}
.thales-image-box .thales-image-viewer:hover .thales-image-title-container {
  transform: translateY(-3em);
}
.thales-modal {
  animation-duration: 0.5s;
}
.thales-modal.in {
  opacity: 1 !important;
  transform: translate(0, 50px);
}
.thales-modal-backdrop.in {
  opacity: 0.3 !important;
}
.thales-modal .modal-content {
  padding: 0;
}
.thales-modal .modal-header {
  display: block;
}
.thales-modal .modal-header .close span {
  color: rgba(189, 189, 189, 0.7);
}
.thales-modal .modal-body {
  padding: 0;
}
.thales-modal .modal-body textarea.thales-longtext-editor {
  margin-bottom: 0;
  font-size: 1em;
}
.thales-modal .modal-body textarea.thales-longtext-editor:focus {
  font-size: 1em !important;
}
.thales-modal .modal-body .thales-longtext-viewer {
  padding: 10px 15px;
}
.thales-modal .modal-body .form-group {
  margin: 5px 15px;
  margin-bottom: 10px;
}
.thales-modal .modal-body .form-group input[type='checkbox'] {
  margin-left: 1em;
}
.thales-modal .modal-body .form-group .thales-form-help-text {
  border-radius: 4px;
  padding: 5px;
  font-size: 0.95em;
  font-family: consolas, monospace;
}
.thales-modal .modal-body .form-group .thales-form-help-text .thales-form-note {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding-top: 5px;
  border-top: 1px solid rgba(225, 225, 225, 0.5);
}

.thales-render .thales-table-title {
  font-size: 3em;
  margin-left: 15px;
}

.thales-render .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 10px rgba(225, 225, 225, 0.75);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 10px rgba(225, 225, 225, 0.75);
}

.thales-render .thales-table-nav-wrapper {
  margin-left: 10px;
  margin-right: 10px;
}
