﻿.right-content-table {
    border-width: 0px;
    display: table;
    width: 100%;
    height: 100%;
}

.processes-table-rounded-corner {
    border: 1px solid var(--ng-border);
    background-color: whitesmoke;
    border-radius: 6px;
    width: 100%;
    box-shadow: var(--ng-card-shadow);
}

.right-content-table .ng-table td:nth-child(3),
.right-content-table .ng-table td:nth-child(5) {
    white-space: nowrap;
}

.pp-root {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.pp-validation-container {
    width: 100%;
}

.pp-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pp-shell-row {
    flex: 1 1 auto;
    min-height: 0;
}

.pp-footer-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.pp-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pp-glass-toggles {
    display: flex;
    align-items: center;
    gap: 20px;
    visibility: hidden;
}

body.ctrl-down .pp-glass-toggles {
    visibility: visible;
}

.pp-glass-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .pp-glass-toggle-label {
        display: flex;
        align-items: center;
        
        font-size: 12px;
        font-weight: 700;
        color: var(--ng-muted);
        line-height: 1;
    }

    .pp-glass-toggle-switch {
        display: flex;
        align-items: end;
        line-height:1;
    }

.pp-shell {
    height: 100%;
    display: flex;
    gap: 14px;
    padding: 14px;
    box-sizing: border-box;
}

.pp-preview-panel {
    position: relative;
    flex: 0 0 40%;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--ng-border);
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: var(--ng-card-shadow);
}

.pp-editor-panel {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    /* Visible so the bottom cards' shadows spill into the shell padding instead of being cropped */
    overflow: visible;
}

.pp-window .k-window-content,
.pp-editor-panel {
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* legacy Edge/IE */
}

    .pp-window .k-window-content::-webkit-scrollbar,
    .pp-editor-panel::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;              
    }

.pp-editor-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.pp-g-process { grid-column: 1; grid-row: 1; }
.pp-g-origin  { grid-column: 1; grid-row: 2; }
.pp-g-right   { grid-column: 2; grid-row: 1; }
.pp-g-meas    { grid-column: 2; grid-row: 2; }

.pp-rightgroup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

    .pp-rightgroup .pp-image-card {
        flex: 1 1 auto;
    }

.pp-card {
    background: #ffffff;
    border: 1px solid var(--ng-border);
    border-radius: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
    box-shadow: var(--ng-card-shadow);
}

.pp-origin-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 0;
    
}

    .pp-origin-card .pp-section-title {
        text-align: left;
    }

.pp-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ng-header);
    margin-bottom: 10px;
}

.pp-measure-list {
    border: none !important;
    height: auto !important;
}

#processes-preview-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#processes-preview-container-layer-0,
#processes-preview-container-layer-1,
#processes-preview-container-layer-2,
#processes-preview-container-layer-3,
#processes-preview-container-layer-4 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#canvasContainerLayer0,
#canvasContainerLayer1,
#canvasContainerLayer2,
#canvasContainerLayer3,
#canvasContainerLayer4 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#canvasContainerLayer0 {
    z-index: 0;
}

#canvasContainerLayer1 {
    z-index: 10;
}

#canvasContainerLayer4 {
    z-index: 20;
}

#canvasContainerLayer2 {
    z-index: 30;
}

#canvasContainerLayer3 {
    z-index: 40;
}

.pp-origin-picker-area {
    flex: 1 1 auto;
    min-height: 0;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

#overlay-origin-corner-container {
    /* Largest square that fits the area in both axes (cqmin = the smaller of the area's w/h). */
    width: 100cqmin;
    aspect-ratio: 1 / 1;
    position: relative;
}

.pp-thumbnail-box {
    position: absolute;
    top: 14%;
    left: 14%;
    width: 71%;
    height: 71%;
}

    .pp-thumbnail-box svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.pp-origin-radio {
    position: absolute;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.pp-r-tl-corner { left: 12%; top: 12%; }
.pp-r-tr-corner { left: 88%; top: 12%; }
.pp-r-bl-corner { left: 12%; top: 88%; }
.pp-r-br-corner { left: 88%; top: 88%; }

.pp-r-tl-top    { left: 22%;   top: 11%; }
.pp-r-tr-top    { left: 78%;   top: 11%; }
.pp-r-bl-bottom { left: 22%;   top: 89%; }
.pp-r-br-bottom { left: 78%;   top: 89%; }

.pp-r-tl-left   { left: 11%; top: 22%; }
.pp-r-bl-left   { left: 11%; top: 78%; }
.pp-r-tr-right  { left: 89%; top: 22%; }
.pp-r-br-right  { left: 89%; top: 78%; }

#overlay-origin-corner-top-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.no-headers-grid .k-grid-header {
    display: none;
    margin-top: 20px;
}

.pp-g-meas .validation-message {
    font-weight: 700;
}

.measurements-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 2px 2px;
}

.measurements-variables {
    width: 16px;
    height: auto;
    float: none;
    padding: 0;
    font-weight: 500;
    text-align: center;
    color: var(--ng-muted);
}

    .measurements-variables.Y {
        color: #ef6c00;
    }

    .measurements-variables.X {
        color: #2e7d32;
    }

.measurements-title {
    flex: 1 1 auto;
    height: auto;
    float: none;
    padding: 0;
    font-size: 13px;
    color: var(--ng-subtle);
}

.measurements-value-container {
    width: 92px;
    height: auto;
    float: none;
    display: block;
    padding: 0;
}

.measurements-value {
    width: 100%;
    height: auto;
}

.measurements-unit {
    width: 26px;
    height: auto;
    float: none;
    text-align: left;
    padding: 0;
    font-size: 12px;
    color: #94a3b8;
}

.process-image-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-image {
    max-width: 100%;
    max-height: 100%;
}