@import "https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&display=swap";

:root {
  --color-primary: #f33a3a;
  --color-primary-hover: #ec1616;
  --color-secondary: #dfe3eb;
  --color-secondary-hover: #c5cbd6;
}
.page-title .text__inner {
  font-weight: 300;
}

.page-title .button {
  padding: 0;
}

.code-block .text__inner {
  white-space: pre-wrap;
  padding: 16px;
  border: 1px dashed #cccccc;
  background: #eeeef2;
  overflow: auto;
}

.code-block.max-h-50vh .text__inner {
  max-height: 50vh;
}.container-flex-wrap .container>.container__inner>.container__content {
  flex-wrap: wrap;
}

.table--event-rowClick > .table__content > .table__row {
    transition: background 0.2s;
}

.table--event-rowClick > .table__content > .table__row:hover {
    background: var(--color-white);
}

.overlay-item.overlay-item--type-sidebar-view.overlay-item--size-large {
    --element-width: 700px;
}.button {
  transition: background 0.2s;
}

.btn-highlight .button {
    border: 1px solid var(--color-primary);
}

.cmp-field__label {
  padding-left: 4px;
}

.cmp-field__input,
.cmp-field__datetime {
  box-shadow: none;
  border: 1px solid #ddd;
}

.cmp-field__input:read-only,
.cmp-field__datetime:read-only {
  background: transparent;
}

.control-align-right .cmp-field__input {
  text-align: right;
}

.cmp-field__options-button {
  box-shadow: none;
  border: 1px solid #ddd;
}

.cmp-field__options-button:disabled {
  background: transparent;
}

.compact-control .cmp-field__options-button {
  height: 34px;
  padding: 0px 8px;
}

.compact-control .cmp-field__input {
  height: 34px;
  padding: 0px 5px;
}

.compact-control .button.button--layout {
  min-width: 34px;
  min-height: 34px;
}

.property-item-compact .label {
  margin: 0px;
  font-weight: 500;
}

.input-number-right .cmp-field__input {
  text-align: right;
}

.cmp-field--checkbox.cmp-field--style-default .cmp-field__control-icon {
    box-shadow: none;
    border: 1px solid #c4cece;
    border-radius: 4px;
}

.cmp-field--checkbox.cmp-field--style-default .cmp-field__control-input:checked~.cmp-field__control-icon {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.button-size-auto .button.button--layout {
  min-width: 0px;
  min-height: 0px;
}.custom-table-cmp > div > div {
    width: 100%;
    height: 100%;
}

.custom-table {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

.custom-table__container {
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    overflow-y: scroll;
    position: relative;
    border-radius: 6px;
}

.custom-table__table {
    border-collapse: collapse;
    /*margin-left: 303px;*/
    min-width: 100%;
}

.custom-table__cell {
    border: 1px #ccc;
    border-style: solid none;
    height: 34px;
    white-space: nowrap;
    background: #ffffff;
    vertical-align: middle;
}

.custom-table__header-column {
    background: var(--color-secondary); /*#dbdfe5;*/
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.custom-table__header-column-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    height: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
}

.custom-table__header-column:first-child {
    border-radius: 6px 0px 0px 0px;
    border-top: 0px none;
}

.custom-table__header-column:last-child {
    border-radius: 0px 6px 0px 0px;
}

.custom-table__column-title {
    font-weight: 500;
    max-height: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-table__summary-column {
    background: var(--color-secondary); /*#dbdfe5;*/
    height: 36px;
    border-top: 1px solid #ccc;
    position: sticky;
    top: 76px;
}

.custom-table__summary-column-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    height: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    overflow: hidden;
    font-size: 14px;
    font-weight: normal;
}

.custom-table__cell--filled {
    background: #f0ffd1;
}

.custom-table__cell--modified,
.custom-table__cell--modified.custom-table__cell--filled {
    background: #ffedc2;
}

.custom-table__value {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
}

.custom-table__value--align-left,
.custom-table__value--align-left select {
    justify-content: flex-start;
    text-align: left;
}

.custom-table__value--align-center,
.custom-table__value--align-center select {
    justify-content: center;
    text-align: center;
}

.custom-table__value--align-right,
.custom-table__value--align-right select {
    justify-content: flex-end;
    text-align: right;
}

.custom-table__header-column--fixed,
.custom-table__cell--fixed {
    position: sticky;
    left: 0;
    top: auto;
    border-top-width: 1px;
    /*border-right: 3px solid #aaa;*/
    margin-top: -0.5px;
    z-index: 1;
}

.custom-table__header-column--fixed::after,
.custom-table__summary-column--fixed::after,
.custom-table__cell--fixed::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background-color: #aaa;
}

.custom-table__header-column--fixed,
.custom-table__summary-column--fixed {
    left: 0;
    top: 0;
    z-index: 2;
    /*border-left: 1px solid #ccc;*/
}

.custom-table__header-column--fixed {
    z-index: 12;
}

.custom-table__summary-column--fixed {
    top: 76px;
}

.custom-table__cell--fixed {
    margin-top: -0.5px;   
}

.custom-table__cell--fixed .custom-table__label-content {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.custom-table__column-title-btn {
    width: 100%;
    height: 100%;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 0px none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: color 0.2s;
}

.custom-table__column-title-btn:hover {
    color: var(--color-primary-hover);
}

.custom-table__column-title-btn--sort-asc,
.custom-table__column-title-btn--sort-desc {
    color: var(--color-primary);
}

.custom-table__header-column-actions-wrapper {
    display: block;
    width: 100%;
}

.custom-table__header-column-actions-container {
    display: flex;
    flex-direction: row;
    gap: 1px;
    justify-content: center;
}

/*
.custom-table__header-column-actions-wrapper {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%) translateY(-20%);
    opacity: 0;
    transition: all 0.3s;
}

.custom-table__header-column:hover .custom-table__header-column-actions-wrapper {
    opacity: 1.0;
    transform: translateX(-50%) translateY(0%);
}

.custom-table__header-column-actions-container {
    background: #f3f5f7;
    box-shadow: 0px 3px 8px #c1c6ce;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1px;
    padding: 4px;
    border-radius: 4px;
}
*/

.custom-table__column-action-btn {
    display: inline-block;
    background: transparent;
    padding: 2px;
    width: 24px;
    height: 24px;
    border: 0px none;
    border-radius: 4px;
    cursor: pointer;
    color: #6a6f78;
    transition: all 0.2s;
}

.custom-table__column-action-btn:hover {
    background: var(--color-secondary-hover);
    color: rgb(206, 11, 11);
}

.custom-table__icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.custom-table__icon--asc,
.custom-table__icon--desc {
    display: none;
}

.custom-table__column-title-btn--sort-asc .custom-table__icon--asc {
    display: inline-block;
}

.custom-table__column-title-btn--sort-desc .custom-table__icon--desc {
    display: inline-block;
}

.custom-table__value--type-text {
    display: inline-flex;
    text-align: center;
    align-items: center;
    padding: 5px 8px;
}

.custom-table__cell--type-currency {
    text-align: right;
}

.custom-table__cell--type-bool {
    text-align: center;
}

.custom-table__value--type-label {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0px 8px;
}

.custom-table__value--active-cell {
    cursor: pointer;
}

.custom-table__label-content {
    flex-grow: 1;
    text-align: left;
}

.custom-table__label-button {
    display: inline-flex;
    border: 0px none;
    background: transparent;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    color: var(--color-text);
    transition: color 0.2s, backgrounds 0.2s;
}

.custom-table__label-button:hover {
  background: var(--color-secondary);
}

.custom-table__label-button--show-on-hover-only {
    opacity: 0.0;
    transition: opacity 0.2s;
}

.custom-table__row:hover .custom-table__label-button--show-on-hover-only {
    opacity: 1.0;
}

.custom-table__value--type-editable-count,
.custom-table__value--type-editable-date {
    height: 100%;
}

.custom-table__editable-count-input,
.custom-table__editable-date-input {
    background: transparent;
    border: 0px none;
    width: 30px;
    height: 34px;
    flex-grow: 1;
    flex-shrink: 1;
    box-sizing: border-box;
    padding: 0px 5px;
    text-align: inherit;
}

.custom-table__editable-count-input:focus,
.custom-table__editable-date-input:focus {
    outline: 0;
    background: #eaf1ff;
}

.custom-table__editable-select-input {
    background: transparent;
    border: 0px none;
    text-align: center;
    height: 34px;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0px 5px;
    box-sizing: border-box;
    max-width: 180px;
}

.custom-table__editable-select-input:focus {
    outline: 0;
    background: #eaf1ff;
}

.custom-table__label-postfix:not(:empty) {
    display: inline-block;
    padding: 5px 8px 5px 0px;
}

.custom-table__currency-value {
    padding: 5px 8px;
    flex-grow: 1;
}

.custom-table__value--type-editable-checkbox {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 5px 8px;
    user-select: none;
    -webkit-user-select: none;
}

.custom-table__value--type-editable-checkbox input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

/* DnD */
.custom-table__header-column-content {
    position: relative;
}

.custom-table__header-column-content::before,
.custom-table__header-column-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgb(0, 60, 255);
    opacity: 0.0;
    transition: opacity 0.2s;
    z-index: 50;
}

.custom-table__header-column-content::before {
    left: -2px;
}

.custom-table__header-column-content::after {
    right: -2px;
}

.custom-table__body--dnd .custom-table__header-column-content * {
    pointer-events: none;
}

.custom-table__header-column-content.custom-table__header-column--dragging {
    opacity: 0.35;
}

.custom-table__header-column-content.custom-table__header-column--dnd-before::before {
    opacity: 1.0;
}

.custom-table__header-column:has(.custom-table__header-column--dnd-after) + .custom-table__header-column .custom-table__header-column-content::before,
.custom-table__header-column:last-child .custom-table__header-column-content.custom-table__header-column--dnd-after::after {
    opacity: 1.0;
}

/*
.custom-table__header-column:has(.custom-table__header-column--dnd-before),
.custom-table__header-column:has(.custom-table__header-column--dnd-after) {
    z-index: 1;
}
*/

.custom-table__header-column-ghost {
    pointer-events: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

.custom-table__flag-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-left: 4px;
    color: #96a5c1;
}

/* Quick filters */
.custom-table__quick-filter-panel {
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 14px 16px;
    z-index: 9999;
    min-width: 200px;
    font-family: 'roboto';
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-table__quick-filter-label {
    font-weight: 500;
}

.custom-table__quick-filter-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 6px 6px;
    border-radius: 4px;
    border: 1px solid rgb(173, 173, 173);
    background: #fafafa;
    transition: all 0.2s;
}

.custom-table__quick-filter-input:focus {
    border-color: #0097dd;
}

.custom-table__quick-filter-enum-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0px -6px -6px -6px;
    border-radius: 4px;
    background: rgb(236, 238, 241);
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.custom-table__quick-filter-enum-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-size: 14px;
    padding: 6px;
    transition: background 0.2s;
}

.custom-table__quick-filter-enum-item:hover {
    background: rgb(216, 220, 227);
}

.custom-table__quick-filter-enum-item input[type="checkbox"] {
    cursor: pointer;
    font-size: 14px;
    width: 16px;
    height: 16px;
}

.custom-table__quick-filter-enum-item label {
    cursor: pointer;
    padding-left: 6px;
    position: relative;
    line-height: 16px;
    flex-grow: 1;
}

.custom-table__quick-filter-info {
    font-size: 13px;
    color: #444444;
}

.custom-table__quick-filter-btn {
    background: transparent;
    display: inline-block;
    background: transparent;
    padding: 2px;
    width: 24px;
    height: 24px;
    border: 0px none;
    border-radius: 4px;
    cursor: pointer;
    color: #6a6f78;
    transition: all 0.2s;
}

.custom-table__quick-filter-btn:hover {
    background: var(--color-secondary-hover);
    color: rgb(206, 11, 11)
}

.custom-table__quick-filter-btn.filter-active {
    color: rgb(206, 11, 11)
}

.custom-table__filter-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 10;
    display: none;
    background: rgba(0, 0, 0, 0.0);
}

.custom-table__filter-backdrop.custom-table__filter-backdrop--active {
    display: block;
}
