* {
    touch-action: pan-x pan-y;
    font-family: var(--PrimaryFont);

    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;

    user-select: none;
}

canvas {
    display: block;
}

input[type="file"] {
    display: none;
}

body {
    color:var(--White);
    background-color: var(--Black);
    overflow: hidden;
    margin: 0;
}

div[locationformat] {
    display: none;
}

body[locationformat="UTMZone"] div[locationformat="UTMZone"],
body[locationformat="LatLong"] div[locationformat="LatLong"],
body[locationformat="Poland"] div[locationformat="Poland"] {
    display: block;
}

::-webkit-scrollbar,
::-webkit-scrollbar-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: var(--LightBlack);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--GrayColor);
    border-radius: 10px;
}

tr:first-child td {
    border-top: 1px solid #217346;
}

td:last-child {
    border-right: 1px solid #217346;
}

td {
    border-left: 1px solid #217346;
    border-bottom: 1px solid #217346;
    cursor: pointer;
}

tr.tr-header {
    position: sticky;
    top: 0;
}

td.td-header {
    background-color: var(--Black);
}

td.td-sticky-top {
    position: sticky;
    top: 0px;
    left: 0px;
    background-color: var(--Black);
}

td.td-sticky-side {
    position: sticky;
    left: 0px;
    background-color: var(--Black);
}

div.measurementBars{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-style: solid;

    border-color:var(--White);
    pointer-events: none;
    padding: 0px;
    position:absolute;
    background:none;
    border-width: 1px;
    /*border-left: 0px;*/
    float:left;
    left:500px;
    top:300px;
    min-width:10px;
    min-height:20px;
}

p {
    border-width: 0px;
}

p.measurementLabel {
    color:var(--White);
    pointer-events: none;
    position:absolute;
}


.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.scroll::-webkit-scrollbar-thumb {
    background-color: var(--InputColor);
}

div.panel {
    background-color: var(--LightBlack);
    border-radius:10px;
    box-sizing: border-box;
    padding:10px;
    z-index:5;
    position:absolute;
}

div.content {
    background-color: var(--Black);
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

div.content h2 {
    font-size: max(1vw, 10px);
    margin: 0;
}

.overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-header {
    position: relative;
    white-space: nowrap;
}

.content-header .dropdown-buttons {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.content-header .dropdown-buttons button {
    padding: 0;
    width: 100%;
    position: absolute;
    height: 100%;
}

.content-buttons {
    position: absolute;
    right: 0;
    top: 0;
}

.content-buttons button {
    padding: 0;
    margin-left: 5px;
}

.creation-button {
    position: absolute;
    right: 25px;
    top: 0;
    height: 100%;
    padding: 0;
    z-index: 1;
}

.content-right-button-1,
.content-right-button-2 {
    position: absolute;
    height: 100%;
    z-index: 1;
    top: 0;
    padding: 0;
}

.content-right-button-1 {
    right: 25px;
}

.content-right-button-2 {
    right: 60px;
}

.content-body {
    margin-top: 10px;
    padding-top: 5px;
    border-top: solid 1px var(--InputColor);
}

div.overlayLabel {
    position:absolute;
    color:var(--White);
    background-color:var(--Transparent);
    float:left;
    left:500px;
    top:300px;
    min-width:50px;
    min-height:20px;
    font-family: Consolas;
}

.json-paste {
    height: calc(100vh - 165px);
    width: 100%;
    border: 0;
    padding: 0;
}

.json-pdf-mapping-color-category {
    position:absolute;
    height:calc(100% - 20px);
    width:calc(100% - 20px);
    border-radius:5px;
    font-family: Consolas;
}

.json-paste-step-gallery {
    position:absolute;
    height:calc(100% - 20px);
    width:calc(100% - 20px);
    border-radius:5px;
    font-family: Consolas;
    font-size: x-small;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

#batchPopup {
    display: none;
}

#left-panel-navigation {
    width: 20%;
    height: 100%;
    position: sticky;
    top: 0;
    overflow-y: scroll;
}

#left-panel-navigation button {
    text-align: left;
    width: 100%;
    margin-bottom: 1px;
    border-radius: 0;
    font-size: max(0.9vw, 10px);
}

#leftPanelExplorerTree {
    width:calc(100% - 20px);
    height:calc(100% - 65px);
    top:55px;
    position:absolute;
    overflow-y: scroll
}

#canvas-container {
    overflow-y: scroll;
    width: 80%;
}

.render-pdf-overlay-canvas {
    position: absolute;
    z-index: 10;
    min-height: 100%;
    display: none;
}

.render-pdf-overlay-buttons {
    position: absolute;
    display: none;
    left: 10px;
    top: 10px;
    gap: min(0.8vw, 15px);
    white-space: nowrap;
    padding: 10px;
    z-index: 11;
}

.close-button-right {
    position: fixed;
    right: 54px;
}

.spaced-content {
    display: flex;
    gap: min(0.8vw, 15px);
}

.spaced-columns {
    display: flex;
    gap: min(0.8vw, 15px);
    flex-direction: column;
}

.inline-header {
    display: flex;
    gap: min(0.8vw, 15px);
    align-items: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.step-gallery-button {
    min-height: 4vh;
    padding-left: 1vh;
    padding-right: 1vh;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--White);
    border-radius: 4px;
    border: none;
    box-shadow: none;
    outline: none;
    background-color: var(--InputColor);
    white-space: nowrap;
    cursor: pointer;
}

li.step-gallery-button {
    padding-left: 3vh;
}

.step-gallery-button:hover {
    background: var(--Orange);
}

.step-gallery-button span {
    font-size: 1vw;
}

.step-gallery-button.active {
    background-color: var(--Orange);
}

.step-gallery-gap {
    margin-bottom: 1vh;
}

#step-gallery-buttons-container {
    background-color: var(--Black);   
    padding: 0.5vw;
    border-radius: 10px;
    height: auto;
    overflow: auto;
}

.step-gallery-button img {
    opacity: 0.3;
}

.step-gallery-button.has-artifacts img {
    opacity: 1;
}

.step-gallery-button .action-image {
    display: none;
}

.step-gallery-button.needs-action img {
    display: none;
}

.step-gallery-button.needs-action .action-image {
    display: block;
}

.header-step-gallery {
    font-size: 1vw;
    font-weight: bold;
    align-items: center;
}

#installationStepsTitle {
    font-size: 1.1vw;
    margin: 0.2vw;
}

.thumbnail-page-number{
    margin:auto;
}

.step-instruction {
    display: flex;
    background-color: inherit;
    padding: 0 1vh;
}

.gallery-update-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1vh;
    min-height: 175px;
}

.step-artifacts h3 {
    display: none;
}

.step-artifacts p {
    margin: 0;
}

.middle-panel-centered {
    position: absolute;
    left:50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 35vw;
}

.thumb-centered {
    position: relative;
    left:50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.thumb-span {
    position: relative;
    float: left;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family:Consolas;
    font-size:xxx-large;
}

.thumb-bottom-div {
    font-family: Consolas;
    pointer-events: none;
    width: 200px;
    height: 50px;
    overflow: scroll;
    text-align: end;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.thumb-div {
    cursor: pointer;
    width: 200px;
    height: 200px;
    margin: 10px;
    border-radius: 4px;
    padding: 0px;
    display: inline-block;
}

.thumb-container-div {
    width: 200px;
    height: 150px;
    border-radius: 4px;
    pointer-events: none;
}

.middle-panel-media {
    height:auto;
    width:auto;
    max-height:100%;
    max-width:100%;
    border-radius:10px;
    object-fit: contain;
}

.middle-panel-div {
    border-radius:10px;
    position:absolute;
    background-color: var(--Black);
    width: calc(100% - 20px);
}

.explorer-entry-div {
    padding-left: 12px;
    border-left: 4px solid var(--DarkBlue);
    background-color:var(--Black);
    overflow: hidden;
}

.explorer-entry-span {
    font-family: Consolas;
    border-radius: 0px 4px 4px 0px;
    padding: 1px 12px 1px 4px;
    overflow: hidden;
}

.explorer-file:hover {
    background-color: var(--LightBlack);
    cursor:pointer;
}

.explorer-folder {
    background-color: var(--DarkBlue);
}

.explorer-folder:hover {
    background-color: var(--Blue);
    cursor:pointer;
}

.explorer-entry-span > .explorer-entry-div {
    border-left: 0px;
    padding-left: 0px;
}

#explorerMultiDragPopup {
    padding: 5px;
    background-color: var(--Orange);
    opacity: 0.5;
    position: absolute;
}

.last-preview-highlight {
    color: red;
}

.colorize-red {
    filter: brightness(0) saturate(100%) invert(14%) sepia(88%) saturate(7422%) hue-rotate(5deg) brightness(101%) contrast(110%);
}
.colorize-cyan {
    filter: brightness(0) saturate(100%) invert(70%) sepia(88%) saturate(4266%) hue-rotate(139deg) brightness(92%) contrast(84%);
}
.colorize-yellow {
    filter: brightness(0) saturate(100%) invert(89%) sepia(42%) saturate(1790%) hue-rotate(352deg) brightness(94%) contrast(99%);
}
.colorize-blue {
    filter: brightness(0) saturate(100%) invert(21%) sepia(94%) saturate(5755%) hue-rotate(234deg) brightness(94%) contrast(106%);
}
.colorize-magenta {
    filter: brightness(0) saturate(100%) invert(65%) sepia(75%) saturate(4726%) hue-rotate(278deg) brightness(78%) contrast(89%);
}