.edit-mode {
	position:absolute;
	right:0.25rem;
	top:0.25rem;
    position: sticky;
}

.sticky-editor {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 3;
}

.editor {
  /*background: #EDF0F2 !important;*/
  background: hsl(204deg 10% 96% / 1);
  width: 100%;
  justify-content: flex-end;
  font-weight: 400;
}

table.editable td[contenteditable],
table.editable th[contenteditable] {
    cursor: pointer;
}
table.editable td[contenteditable].active,
table.editable th[contenteditable].active {
    /*color: #EE1B2A;*/
    color: hsl(4deg 66% 40% / 1);
}

tr.selected {
    /*background-color: whitesmoke;*/
    background-color: hsl(204deg 25% 85% / 1);
}
.new-item, .new-item .h3,.new-item .h4 {
    color: #125331;
}

.btn-editor>img {
    -webkit-filter: brightness(80%);
    filter: brightness(80%);
}

.btn-editor:hover>img {
	-webkit-filter: invert(22%) sepia(63%) saturate(6087%) hue-rotate(346deg) brightness(93%) contrast(100%);
    filter: invert(22%) sepia(63%) saturate(6087%) hue-rotate(346deg) brightness(93%) contrast(100%);
}

.btn-editor.none-editor {
	display: none;
}

.btn-editor.disabled-editor>img,
.btn-editor[disabled]>img{
    -webkit-filter: brightness(150%);
    filter: brightness(150%);
}

.disabled-editor {
    pointer-events: none;
}

/*override global css*/
input[disabled], select[disabled] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.style-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-button svg {
    min-width: 1.25rem;
    max-width: 1.25rem;
    min-height: 1.25rem;
    max-height: 1.25rem;
}

.font-weight-button {
    font-weight: bold;
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background-color: white;
    border: 1px solid lightgray;
    outline: 0;
    border-radius: 3px;
}

.font-color {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    text-align: center;
    line-height: 1;
    width: 1rem;
}

.font-color label {
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

.font-color-input-wrap {
    position: relative;
    height: 4px;
    overflow: hidden;
    border-radius: 3px;
}

.font-color input {
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    position: absolute;
    inset: -2px;
    width: 120%;
}

.background-color {
    margin: 0;
    padding: 0;
    border-radius: 3px;
    width: 1rem;
    height: 1rem;
    overflow: hidden;
}

.background-color label {
    margin: 0;
    padding: 0;
}

.background-color input {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    margin: -2px;
    border: none;
    outline: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    bottom: 0;
    background-color: white;
    z-index: 10000;
    box-shadow: -4px 0 16px -8px hsl(204deg 55% 25% / 1);
    transform: translateX(500px);
    transition: transform .25s ease-in-out;
}
.sidebar.open {
    transform: translateX(0);
}
.sidebar .sidebarHeader {
    position: relative;
}
.sidebar #search-indicators-result {
    margin-left: 0;
    padding: 1rem 0 1rem 0;
    list-style: none;
}
.sidebar #search-indicators-result > li {
    margin: .25rem 0;
    font-weight: normal;
}
.sidebar .fix-width {
    display: inline-block;
    width: 5ch;
    font-family: monospace;
    font-size: 0.75rem;
}
.sidebar .set-result-indicator {
    outline: 0;
    border: 0;
    background-color: transparent;
    text-align: left; 
    cursor: pointer;
}

/* tablica */
.gfi-table {
    border-collapse: collapse;
    table-layout: auto;
    border: 1px solid hsl(204deg 10% 90% / 1);
    font-size: 0.9rem;
    width: 100%;
    font-weight: 400;
    color: black;
}
.gfi-table th {
    text-align: center;
}

.gfi-table thead tr {
    background-color: hsl(204deg 10% 90% / 1);
}

.gfi-table tr,
.gfi-table td:not(:first-child) {
    border: 1px solid hsl(204deg 10% 90% / 1);
}

.gfi-table th:not(:first-child) {
    border-left: 1px solid hsl(204deg 10% 100% / 1);
}

/*.gfi-table tr td:nth-last-child(2),*/
/*.gfi-table tr td:last-child:not(:only-child) {*/
    /*text-align: right;*/
/*}*/
.gfi-table td,
.gfi-table th {
    padding: 0.25rem 0.5rem;
}

.tr-level__1 {
    background-color: hsl(204deg 10% 96% / 1);
}

.tr-level__2 td:first-child {
    padding-left: calc(0.25rem + 2ch);
}
.tr-level__3 td:first-child {
    padding-left: calc(0.25rem + 4ch);
}
.tr-level__4 td:first-child {
    padding-left: calc(0.25rem + 6ch);
}
.tr-level__5 td:first-child {
    padding-left: calc(0.25rem + 8ch);
}

