html,
body {
    height: 100%;
    background: #f2f2f2;
    touch-action: none;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.50;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow: hidden;
}

#myViewer {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    z-index: 10000;
    /*overflow: hidden;*/
    position: absolute;
    left: 0;
    right: 0;
    --left: 0;
    --right: 0;
    background: linear-gradient(180deg, #FFFEFB 0%, #DAEBFF 100%);
    transition: all 300ms ease-in-out;
}


#myToolbar {
    min-width: 400px;
    top: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 100000;
    pointer-events: none;
    position: fixed;
    left: 95px;
    transition: all 300ms ease-in-out;
}

#myCanvas {
    width: 100%;
    height: 100%;
    cursor: default;
    pointer-events: all;
    margin: 0;
    position: relative;
    /* left: 10px; */
}

#myNavCubeCanvas {
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: 0;
    right: 0;
    z-index: 200000;
}

#myExplorer {
    position: fixed;
    /* height: 100%; */
    color: #fff;
    background: #03103F;
    overflow: auto;
    border-right: 2px solid #212529;
    padding: 0px;
    padding-bottom: 100px;
    padding-left: 15px;
    user-select: none;
    top: 0;
    left: -460px;
    z-index: 10;
    width: 460px;
    transition: all 300ms ease-in-out;
}

#explorer_toggle {
    display: none;
}

.explorer_toggle_label {
    position: absolute;
    top: 10px;
    left: 20px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    flex: 1 1 auto;
    color: #03103F;
    background-color: white;
    text-align: center;
    vertical-align: middle;
    border: 2px solid #1d2453;
    padding: .375rem .75rem;
    border-radius: .25rem;
    overflow: visible;
    margin: 0 2px 0 0;
    box-sizing: border-box;
    align-items: flex-start;
    pointer-events: all;
    z-index: 100000;
    transition: all 300ms ease-in-out;
}

.explorer_toggle_label:hover {
    cursor: pointer;
}

#explorer_toggle:checked+.explorer_toggle_label {
    left: 480px;
    color: #fff;
    background-color: #03103F;
    border-color: #03103F;
}

#explorer_toggle:checked~#myExplorer {
    left: 0;
}

#explorer_toggle:checked~#myViewer {
    left: 460px;
    --left: 460;
    width: calc(100% - (var(--left) + var(--right)));
}

#explorer_toggle:checked~#myToolbar {
    left: 555px;
}

#explorer_toggle:not(:checked)+.explorer_toggle_label {
    left: 20px;
    color: #fff;
    background-color: #03103F;
    border-color: #03103F;
}

#explorer_toggle:not(:checked)~#myExplorer {
    left: -460px;
}

#explorer_toggle:not(:checked)~#myViewer {
    left: 0;
    --left: 0;
    width: calc(100% - var(--right));
}

#explorer_toggle:not(:checked)~#myToolbar {
    left: 95px;
}

#myInspector {
    position: absolute;
    height: 100%;
    color: #fff;
    background: #03103F;
    overflow: auto;
    border-left: 2px solid #212529;
    padding: 0;
    top: 0;
    right: -360px;
    z-index: 40;
    width: 358px;
    transition: all 300ms ease-in-out;
}

#inspector_toggle {
    display: none;
}

.inspector_toggle_label {
    position: absolute;
    top: 10px;
    right: 20px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    flex: 1 1 auto;
    color: #03103F;
    background-color: white;
    text-align: center;
    vertical-align: middle;
    border: 2px solid #1d2453;
    padding: .375rem .75rem;
    /* FIXME */
    border-radius: .25rem;
    overflow: visible;
    margin: 0 2px 0 0;
    /* FIXME */
    box-sizing: border-box;
    align-items: flex-start;
    pointer-events: all;
    z-index: 100000;
    transition: all 300ms ease-in-out;
}

.inspector_toggle_label:hover {
    cursor: pointer;
}

#inspector_toggle:checked+.inspector_toggle_label {
    right: 380px;
    color: #fff;
    background-color: #03103F;
    border-color: #03103F;
}

#inspector_toggle:checked~#myViewer {
    --right: 360;
    right: 360px;
    width: calc(100% - (var(--left) + var(--right)));
}

#inspector_toggle:checked~#myInspector {
    right: 0;
    --right: 0;
}

#inspector_toggle:not(:checked)~#myInspector {
    right: -380px;
    --right: -380px;
}

#inspector_toggle:not(:checked)~#myViewer {
    --right: 0;
    right: 0;
    width: calc(100% - var(--left));
}


.measure_panel {
    width: 240px;
    height: auto;
    position: absolute;
    left: 14px;
    top: 400px;
    z-index: 300000;
}


.measure_panel_header {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #0065FC 0%, #1A83FF 100%);
    border-radius: 16px 16px 0 0;
}

.measure_title {
    position: absolute;
    font-size: 14px;
    left: 14px;
    top: 10px;

    line-height: 20px;
    color: #FFFFFF;
}

.measure_panel_content {
    background-color: #FFFFFF;
    width: 100%;
    height: fit-content;
    border-radius: 0 0 16px 16px;
}

.measure_function_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line {
    height: 1px;
    width: 212px;
    margin: 5px 0 5px 0;
    background: #F0F0F0;
}

.measure_function_btns {
    display: flex;
    padding: 11px 0 11px 5.5px;
    flex-wrap: wrap;
}

.measure_info {
    height: 83px;
}

.measure_delete {
    height: 40px;
}

.measure_btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin: 3px 8.5px;
}

.measure_btn.active {
    background-color: #ECF2FF;
}

.measure_btn.disable {
    pointer-events: none;
}

.measure_btn:hover {
    background-color: #ECF2FF;
}



.annotation_panel {
    width: 240px;
    height: 100%;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 300000;
}

.annotation_header {
    width: 100%;
    height: 40px;
    background: #ECF2FF;
}

.annotation_header_title {
    position: absolute;
    font-size: 14px;
    left: 14px;
    top: 10px;

    line-height: 20px;
    color: #1b1b1b;
}

.annotation_panel_content {
    background-color: #FFFFFF;
    width: 100%;
    height: 100%;
}

.annotation_panel_content div {
    width: 100%;
}

.annotation_panel_content .text {
    height: 20px;
}

.annotation_view_image {
    display: flex;
    justify-content: center;
}

.annotation_view_image img {
    height: 150px;
    margin: 5px;
    object-fit: scale-down;
    display: block;
}

.upload_annotation_image_btn.disabled {
    display: none;
}

.uploadContent {
    display: flex;
    flex-wrap: wrap;
    min-height: 100px;
}

#annotation_upload_image_list img {
    width: 50px;
    height: 50px;
    margin: 3px;
    border: 1px solid #0065fc33;
    object-fit: scale-down;
    display: block;
}

#annotation_img {
    width: 50px;
    height: 50px;
    margin: 3px;
    border: 1px solid #0065fc33;
    object-fit: scale-down;
    display: block;
}

.annotation-marker,
#move_icon {
    background-color: #227ff8;
    line-height: 1;
    text-align: center;
    font-family: "monospace";
    font-weight: bold;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 2px solid rgb(210, 241, 255);
    visibility: hidden;
    box-shadow: 0 0 3px 1px #00000013;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.annotation-marker:hover {
    background-color: #aff1f3;
}

.annotation-marker.active {
    background-color: #aff1f3;
}

#move_icon {
    pointer-events: none;
}

.annotation-marker img,
#move_icon img {
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.annotation_toolbar {
    position: absolute;
    width: 100%;
    bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.annotation_toolbar_wrapper {
    display: flex;
    align-items: center;
    flex-direction: row;
    background-color: #ffffff;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0 2px;
}

.annotation_toolbar_group {
    margin: 1px;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.annotation_tool_btn {
    width: 36px;
    height: 36px;
    margin: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: transparent;
    border: none;
}

.annotation_tool_btn:hover {
    background-color: #ECF2FF;
}

.annotation_tool_btn.active {
    background-color: #ECF2FF;
}

.annotation_tool_btn img {
    height: 24px;
    width: 24px;
    pointer-events: none;
    /* 让图片不响应鼠标事件 */
}



.splitLine {
    height: 24px;
    width: 1px;
    background-color: #D8D8D8;
    margin: 14px 11px;
}

.comments_panel {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1000000;
    background: linear-gradient(180deg, #FFFEFB 0%, #DAEBFF 100%);
    /* cursor: none; */
    user-select: none;
}

.comments_toolbar {
    position: absolute;
    width: 100%;
    bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
}


.comments_toolbar_wrapper {
    display: flex;
    align-items: center;
    flex-direction: row;
    background-color: #ffffff;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0 2px;
}

.comments_toolbar_group {
    margin: 1px;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.comments_tool_btn {
    width: 36px;
    height: 36px;
    margin: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: transparent;
    border: none;
}

.comments_tool_btn:hover {
    background-color: #ECF2FF;
}

.comments_tool_btn.active {
    background-color: #ECF2FF;
}

.comments_tool_btn img {
    height: 24px;
    width: 24px;
    pointer-events: none;
    /* 让图片不响应鼠标事件 */
}


#comments_cancel,
#comments_save {
    width: 74px;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 7px;
    font-size: 12px;
}

#comments_save {
    opacity: 0.8;
}

#comments_cancel {
    border: 1px solid #D2DCE8;
    color: #D2DCE8;
}

#comments_save {
    color: #fff;
    background: linear-gradient(90deg, #0065FC 0%, #1A83FF 100%);
}

#comments_cancel:hover {
    border: 1px solid #aeb7c2;
    color: #aeb7c2;
}

#comments_save:hover {
    opacity: 1;
}

.commentInputBox {
    outline: none;
    min-width: 1px;
    width: calc(100% - 10px);
    height: calc(100% - 9px);
    border-radius: 4px;
    border: 1px solid #066CFC;
    color: #066CFC;
    padding: 3px;
    font-size: 14px;
}

.commentInputBox::placeholder {
    color: #066CFC;
    font-size: 14px;
    padding: 3px;
}

#selectionBox {
    pointer-events: none;
}


#blank_button {
    position: absolute;
    left: 300px;
    right: 100px;
    background-color: #aff1f3;
    z-index: 100000;
}

#blank_button2 {
    position: absolute;
    left: 450px;
    right: 100px;
    background-color: #aff1f3;
    z-index: 100000;
}


.section_panel {
    width: 375px;
    height: 238px;
    position: absolute;
    right: 14px;
    top: 373px;
    z-index: 300000;
}

.section_panel_header {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #0065FC 0%, #1A83FF 100%);
    border-radius: 16px 16px 0 0;
}

.section_title {
    position: absolute;
    font-size: 14px;
    left: 14px;
    top: 10px;

    line-height: 20px;
    color: #FFFFFF;
}

.section_panel_content {
    background-color: #FFFFFF;
    width: 100%;
    height: 100%;
    border-radius: 0 0 16px 16px;
}

.slider_control {
    display: flex;
    align-items: center;
    width: 347px;
    height: 46px;
    padding: 14px 14px 0 14px;
}


#uploadButton {
    display: none;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1000000000;
}