html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    user-select: none;
}

#react-entry-point {
    /*position: relative;*/
    height: 100%;
}

#_pages_content {
    height: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Make sure the overlay is on top of other content */
}

.annotationUpdateLabel {
    font-weight: 600;
    color: black;
}

.annotationUpdateText {
    color: black;
}


.annotationUpdateContainer {
    padding: 5px;
    height: auto;
}

.annotationUpdateEntityContainer {
    padding: 0.45em 0.6em;
    margin: 0.25em;
    line-height: 2;
    border-radius: 0.35em;
    display: inline-block;
}

.local-loader {
    position: absolute !important;
    top: 0;
    left: 0;
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    height: 100%;
}

.height-full {
    height: 100%;
}

.fill-available-height {
    /* height: calc(100% - 10px); */
    height: 100%;
}

td {
    vertical-align: top;
}

.mantine-AppShell-body {
    /* height: 100%; */
}

.mantineInput {
    font-family: Inter, sans-serif;
    height: 36px;
    -webkit-tap-highlight-color: transparent;
    line-height: 34px;
    appearance: none;
    resize: none;
    box-sizing: border-box;
    font-size: 14px;
    width: 100%;
    color: rgb(0, 0, 0);
    display: block;
    text-align: left;
    min-height: 36px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 4px;
    border: 1px solid rgb(206, 212, 218);
    background-color: rgb(255, 255, 255);
    transition: border-color 100ms ease 0s;
}

.local-loader {
    position: absolute !important;
    /*top: 0;*/
    /*left: 0;*/
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.data-container {
    min-height: 300px;
    /*position: relative;*/
    /* height: 100%; */
    display: flex;
    flex-direction: column;
}


.table-container {
    overflow-y: scroll;
    /*position: relative;*/
    top: 0;
    bottom: 0;
    /* height: 100%; */
    margin-top: 10px;
    padding: 0px 10px 10px 10px;
    width: 100%;
}

.disabled-radio {
    pointer-events: none;
    opacity: 0.6;
}

.disabled-row {
    pointer-events: none;
    opacity: 0.9;
}

.pagination-container {
    margin-bottom: 10px;
}

.annotation-entity-row {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: large !important;
    cursor: pointer;
}

.sample-table-content {
    height: 100%;
    display: flex;
    overflow: hidden;
}

.more-info-container {
    background: white;
    /* height: 100%; */
    padding-top: 30px;
    padding-left: 10px;
}

.selected-table-row {
    background-color: rgb(241, 243, 245);
}

.selected-table-row .col-1:first-child {
    border-left: 3px solid rgb(51, 154, 240);
}

.selected-table-row .annotation-entity-row {
    user-select: text;
}

.toolbox {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.cursor-pointer {
    cursor: pointer;
}

.entityTag {
    pointer-events: none;
    border: 1px solid black;
    margin-left: 2px;
    padding-inline: 2px;
    align-content: center;
}

.annotation-segment {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.annotation-segment span {
    margin: 0px 2px;
}

.annotation-entity-row sup {
    user-select: none;
    height: 20px;
    align-content: center;
}

/* Copied from mantine */
.header {
    width: 100%;
    height: 70px;
    padding: 15px 20px;
    border-bottom: 1px solid rgb(233, 236, 239);
}

a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-tap-highlight-color: transparent;
    color: rgb(28, 126, 214);
    font-size: 20px;
    line-height: 1.55;
    text-decoration: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0px;
    border: 0px;
}

.data-table {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    width: 100%;
    border-collapse: collapse;
    caption-side: top;
    color: rgb(0, 0, 0);
    line-height: 1.55;
    /* border: 1px solid rgb(222, 226, 230); */
    margin-top: 10px;
    min-height: 300px;
}

.data-table .row {
    margin: 0px;
}

.data-table .row:hover {
    background-color: rgb(241, 243, 245);
}

.data-table div[class^="col-"] {
    border: 1px solid rgb(222, 226, 230);
}

.data-table-header {
    font-weight: bold;
    position: sticky;
    background-color: aliceblue;
    top: 0;
    z-index: 10;
}

.data-table-header div[class^="col-"] {
    padding-top: 10px;
}

.table-data-body {
    height: 100%;
    overflow-y: auto;
}

.data-table-container {
    margin-top: 10px;
    height: calc(100% - 115px);
    padding: 0px 10px;
}

.arrange-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding:  10px 0px;
}

.arrange-row-horizontal div[class^="col"] {
    flex-direction: row;
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-container-root {
    height: calc(100% - 120px);
    position: relative;
}

.mantine-Tabs-panel {
    height: 100%;
}

.entity-hover-style {
    background-color: transparent;
    border-color: transparent;
}

.arrange-horizontal {
    flex-direction: row;
    display: flex;
    gap: 10px;
    align-items: center;
}

.entityDeleteButton {
    margin-left: 5px;
    cursor: pointer;
    border-radius: 100px;
    vertical-align: top;
    margin-top: 7px;
}

.hidden {
    display: none;
}

.lazyload-placeholder:after{
    content: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_DupU%7Banimation:spinner_sM3D 1.2s infinite%7D.spinner_GWtZ%7Banimation-delay:.1s%7D.spinner_dwN6%7Banimation-delay:.2s%7D.spinner_46QP%7Banimation-delay:.3s%7D.spinner_PD82%7Banimation-delay:.4s%7D.spinner_eUgh%7Banimation-delay:.5s%7D.spinner_eUaP%7Banimation-delay:.6s%7D.spinner_j38H%7Banimation-delay:.7s%7D.spinner_tVmX%7Banimation-delay:.8s%7D.spinner_DQhX%7Banimation-delay:.9s%7D.spinner_GIL4%7Banimation-delay:1s%7D.spinner_n0Yb%7Banimation-delay:1.1s%7D@keyframes spinner_sM3D%7B0%25,50%25%7Banimation-timing-function:cubic-bezier(0,1,0,1);r:0%7D10%25%7Banimation-timing-function:cubic-bezier(.53,0,.61,.73);r:2px%7D%7D%3C/style%3E%3Ccircle class='spinner_DupU' cx='12' cy='3' r='0'/%3E%3Ccircle class='spinner_DupU spinner_GWtZ' cx='16.50' cy='4.21' r='0'/%3E%3Ccircle class='spinner_DupU spinner_n0Yb' cx='7.50' cy='4.21' r='0'/%3E%3Ccircle class='spinner_DupU spinner_dwN6' cx='19.79' cy='7.50' r='0'/%3E%3Ccircle class='spinner_DupU spinner_GIL4' cx='4.21' cy='7.50' r='0'/%3E%3Ccircle class='spinner_DupU spinner_46QP' cx='21.00' cy='12.00' r='0'/%3E%3Ccircle class='spinner_DupU spinner_DQhX' cx='3.00' cy='12.00' r='0'/%3E%3Ccircle class='spinner_DupU spinner_PD82' cx='19.79' cy='16.50' r='0'/%3E%3Ccircle class='spinner_DupU spinner_tVmX' cx='4.21' cy='16.50' r='0'/%3E%3Ccircle class='spinner_DupU spinner_eUgh' cx='16.50' cy='19.79' r='0'/%3E%3Ccircle class='spinner_DupU spinner_j38H' cx='7.50' cy='19.79' r='0'/%3E%3Ccircle class='spinner_DupU spinner_eUaP' cx='12' cy='21' r='0'/%3E%3C/svg%3E");
}

::selection {
  color: red;
  background: yellow;
}

.no-select {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}