table th.settings_plugin_svgtogcode_profiles_key,
table td.settings_plugin_svgtogcode_profiles_key {
  text-overflow: ellipsis;
  text-align: left;
  width: 200px;
}
table th.settings_plugin_svgtogcode_profiles_name,
table td.settings_plugin_svgtogcode_profiles_name {
  text-overflow: ellipsis;
  text-align: left;
}
table th.settings_plugin_svgtogcode_profiles_actions,
table td.settings_plugin_svgtogcode_profiles_actions {
  text-align: center;
  width: 100px;
}
table th.settings_plugin_svgtogcode_profiles_actions a,
table td.settings_plugin_svgtogcode_profiles_actions a {
  text-decoration: none;
  color: #000;
}
table th.settings_plugin_svgtogcode_profiles_actions a.disabled,
table td.settings_plugin_svgtogcode_profiles_actions a.disabled {
  color: #ccc;
  cursor: default;
}
.slider_manual_input {
  margin-left: 1.5em;
  width: 2.5em;
}

.unselectable,
label,
a,
.btn {
  -webkit-user-drag: none;
  user-select: none;
}

#settings_dialog.container {
  width: 100%;
}

#gcode_reference .gcommand {
  font-weight: bold;
}
#gcode_reference .example {
  font-style: italic;
}

#gcode_reference ul {
  margin-left: 0;
  max-height: 60vh;
  overflow: auto;
}
#gcode_reference ul li {
  list-style: none;
  margin-bottom: 1em;
}

.svgtogcode_grayscale {
  background-image: linear-gradient(90deg, #ffffff, #000000);
  width: 220px;
  height: 20px;
  display: inline-block;
  border-radius: 10px;
  margin-top: 6px;
}

.img_intensity_input,
.passes_input,
.pierce_time_input,
.line_distance_input,
.bridging_tab_size_input,
.bridging_after_nth_pass_input,
.speed_input {
  width: 3.5em;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

#dialog_vector_graphics_conversion .hint {
  font-style: italic;
  font-size: smaller;
  margin-top: 4px;
  background-color: #fafafa;
}

#dialog_vector_graphics_conversion .hint .icon {
  font-size: large;
  padding-right: 0.5em;
}

/*    Job Time Estimation in Conversion Dialog        */
.jobTimeEstimationCard {
  margin-right: 20px;
}

.jobTimeEstimationCard ul {
   margin: 0.5em 0 0 0.5em;
}

#job_time_estimation_detailed ul li {
  list-style: none;
  text-align: left;
  margin: 5px 10px;
}
#job_time_estimation_detailed ul li div.icon {
  height: 1em;
  width: 1em;
  display: inline-block;
  box-shadow: 1px 1px 2px 2px #00000024;
  border-radius: 0.15em;
  background-position: center center;
  background-size: contain;
}


#job_time_estimation_detailed .beta-flag {
    color: #fff;
    transform: rotate(-90deg);
    background-color: #e25303;
    display: inline-block;
    padding: 0em .4em 0.4em;
    border: 1px solid white;
    border-radius: 0.6em;
    font-size: smaller;
    font-weight: bold;
    position: absolute;
    left: -2em;
    top: -0.3em;
}

#job_time_estimation_detailed ul li label {
  display: inline-block;
  padding: 0 0.2em;
}
#job_time_estimation_detailed span.duration {
  position: relative;
  float: right;
  padding-left: 10px;
}

#job_time_estimation_detailed .dropdown-menu {
  margin-bottom: 1em;
}
/*    End Job Time Estimation in Conversion Dialog        */

#photo_preview {
  width: 100%;
  max-width: 640px;
  min-height: 240px;
  margin: auto;
  background: #111;
  text-align: center;
}

#take_photo_video {
  display: block;
  width: 100%;
  max-height: 60vh;
  margin: auto;
}

.overrideSlider {
  margin-bottom: 8px;
}

.overrideSlider input {
  width: 130px;
}
.overrideSlider span {
  padding-left: 0.6em;
}

.repeatGcode .btn-group {
  width: 145px;
}
.repeatGcode input,
.repeatGcode button {
  width: 33%;
}

.repeatGcode input {
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}
.repeatGcode > span {
  padding-left: 0.6em;
}

/*.manual_position_input {
  padding-top: 12px;
}*/

#settings_svg_conversion input[type="number"] {
  max-width: 6em;
}

#webcam_wrapper {
  position: absolute;
  top: 1px;
  left: 1px;
  overflow: hidden;
}

#webcam_wrapper_settings {
  overflow: hidden;
  border: 1px solid #999;
  position: absolute;
  top: 0;
}

#camera_calibration_parameter_wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
}

#camera_calibration_parameter {
  margin: 10%;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0% 10%;
}

.camCalib {
  width: 48%;
  display: inline-block;
}

.form-horizontal .camCalib .controls {
  margin-left: 60%;
}
.form-horizontal .camCalib .control-label {
  width: 48%;
}

#beamcam_image {
  position: absolute;
  user-select: none;
  filter: brightness(200%) contrast(70%);
  -webkit-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
}

#beamcam_image.broken {
  visibility: hidden;
}

#dialog_vector_graphics_conversion {
  width: 96%;
  margin-left: -48%;
}

#dialog_vector_graphics_conversion .modal-header h3 span.modified_hint {
    font-weight: normal;
    font-size: small;
    color: #666;
    padding: 0 .3em;
}

#dialog_vector_graphics_conversion .rotary_hint a:hover {
    text-decoration: none;
}
#dialog_vector_graphics_conversion .rotary_hint {
    display: inline-block;
    /* position: absolute; */
    /* right: 1em; */
}

#dialog_vector_graphics_conversion .rotary_hint img {
    height: 1.4rem;
    margin-left: 0.5rem;
}

#dialog_vector_graphics_conversion .rotary_hint i.fa-info-circle {
    font-size: 1.1rem;
    position: relative;
    bottom: 0.1em;
}

#dialog_vector_graphics_conversion .rotary_hint ul.rotary_params_explanation {
    font-size: 1rem;
    font-weight: initial;
    padding: 1em;
    right: 0em;
    left: unset;
    min-width: 20vw;
}


#color_assignment:after {
  display: table;
  line-height: 0;
  content: "";
  clear: both;
}

#color_list {
  margin: 0;
  overflow-x: clip;
  white-space: normal;
}

#color_list li.material_color_entry {
  width: 60px;
  height: 60px;
  margin: 0 0.5em 0.5em 0;
  display: none;
  /*border: 1px solid #ddd;*/
  cursor: pointer;
  transition: width 0.1s ease-in-out;
  display: inline-block;
  /* white-space: pre-wrap; */
}
#color_list li.material_color_entry.active {
  /*transform: scale(1.25) !important;*/
  width: 200px !important;
}
#color_list li.material_color_entry:hover {
  /*transform: scale(1.25);*/
}

#material_row .hover_shadow {
  box-shadow: 1px 1px 2px #383e42;
  transition: box-shadow 0.1s ease-in-out;
}
#material_row .hover_shadow:hover {
  box-shadow: 2px 2px 4px #383e42;
}

#material_type #material_burger_menu {
  display: none;
}
#material_type.active #material_burger_menu {
  display: block;
}

#material_burger_menu ul li a {
    padding: 0 12px
}

#materials_manage_done {
  transition: text-shadow 0.3s ease-in-out 0s;
}
#materials_manage_done.flash {
  text-shadow: 0px 0px 10px #e25303;
}

#material_type ul#material_list li span.delete_me:hover {
  color: #e25303;
}
#material_type ul#material_list li span.delete_me {
  display: none;
  cursor: pointer;
}
#material_type.manage ul#material_list li.custom span.delete_me {
  display: block;
    border: 1px solid #eee;
}

li.material_entry span.delete_me {
  position: absolute;
  bottom: 0;
  min-width: 2.4em;
  height: 2em;
  font-size: 1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px 0 0 0;
  right: 0;
  top: auto;
  left: auto;
  background-color: #fff;
  box-sizing: border-box;
  color: #383e42;
  text-align: center;
}

.job_row {
  margin-bottom: 1em;
  border-bottom: 1px solid #999;
  padding-bottom: 1em;
  display: flex;
  user-select: none;
}

h4.job_title {
  margin-top: 0px;
  margin-bottom: 1em;
}

.job_row input {
  border-radius: 1.75em;
  background-color: #eee;
  border-color: #fff;
  margin: 3px;
  height: 1.75em;
  text-align: center;
  box-sizing: border-box;
  transition: border-color .5s ease-in-out;
}

.job_row input[type=number] {
    max-width: 35%;
    min-width: 4.8em;
}


.job_row label.control-label {
  cursor: default;
}

.job_row .form-horizontal .control-group {
  margin-bottom: 5px;
}

.used_color {
  width: 48px;
  height: 48px;
  overflow: hidden;
  display: inline-block;
  border-radius: 5%;
  box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, 0.33);
  margin: 4px;
  background-image: url(../img/line_overlay.svg);
  background-size: cover;
  background-position: center;
  cursor: move;
  cursor: -webkit-grab;
}

.used_color.dragging {
  opacity: 0;
}

.drag-image {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
  z-index: 2000;
}

.wa_used_color {
  width: 20px;
  height: 20px;
  overflow: hidden;
  display: inline-block;
  border-radius: 5%;
  box-shadow: 0.5px 0.5px 2px 0.5px rgba(0, 0, 0, 0.33);
  margin: 0px 6px 4px 0px;
  background-image: url(../img/line_overlay.svg);
  background-size: cover;
  background-position: center;
}

.img_drop_zone,
.color_drop_zone {
  min-height: 50px;
  width: 100%;
  border: 1.5px dashed transparent;
  transition: border-color ease-in-out 0.2s;
}

/* state machine. either img or vector color drop zone highlightning*/
#no_job .color_drop_zone.hover,
body.colorDragInProgress #engrave_job .img_drop_zone.hover,
body.vectorDrag .job_row_vector .color_drop_zone.hover,
body.vectorDrag .color_drop_zone.create_job.hover {
  font-weight: 700;
  border-color: #e25303;
}

.color_drop_zone.create_job {
  text-align: center;
  padding: 1em 0;
  min-height: auto;
  user-select: none;
}

#cd_engraving {
  /*	background: linear-gradient(135deg,
				rgba(255, 0, 0, 1) 0%,
				rgba(255, 255, 0, 1) 35%,
				rgba(0, 255, 0, 1) 50%,
				rgba(0, 255, 255, 1) 65%,
				rgba(0, 0, 255, 1) 100%
				);*/
  background-image: url(../img/img_and_fills2.svg);
}

body.colorDragInProgress #drop_overlay {
  display: none;
}

.checkInput {
  border-color: red !important;
}

.full-tab-height {
  height: calc(100vh - 140px);
  max-height: none;
}

#dialog_vector_graphics_conversion .modal_dialog_headline {
  width: 100%;
  margin: 0 0 0 -1em;
  padding: 0 1em;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  /* line-height: 30px; */
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}

#color_assignment.inactive {
  opacity: 0.3;
  filter: blur(2px);
  pointer-events: none;
}

#material_list {
  margin: 0;
  max-height: 55vh;
  overflow: visible;
}
.material_entry {
  display: none;
  width: 200px;
  height: 100px;
  float: left;
  margin: 0 0.5em 0.5em 0;
  background-size: cover;
  position: relative;
  cursor: pointer;
}

#material_type .material_entry.selected {
  display: block;
  height: 60px;
  background-position: center;
}
#material_type.active .material_entry {
  display: block;
}

li.material_entry .material_name {
  position: absolute;
  top: 0;
  background: linear-gradient(90deg, #fff, transparent);
  /*display: block;*/
  width: 100%;
  left: 0;
  padding: 3px 8px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;

    display: flex;
  align-items: center;
}

li.material_entry .material_name>span {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
li.material_entry .material_name>i.fa {
    width: 1.2em;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.9em;
    margin: 0 0.08em;
    background-position: top center;
    filter: drop-shadow(0px 0px 3px #fff)
}

li.material_entry .material_name>i.fa.interpolated {
  filter: grayscale(100%);
}

#thickness_list {
  width: 200px;
  white-space: initial;
}

.thickness_sample {
  display: inline-block;
  vertical-align: bottom;
  border: 0.25mm solid #999;
  border-left-color: transparent;
  width: 100%;
  background-image: url(../img/pattern_stripes.png);
  background-size: 39%;
  margin-bottom: 1em;
  text-align: center;
  height: 0;
  line-height: 0;
  text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff,
    0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff,
    0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff,
    0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff,
    0 0 10px #fff;
  cursor: pointer;
}

.thickness_sample.overThick::after {
  border: none;
  width: 102%;
  content: "";
  display: block;
  height: 0.5em;
  position: relative;
  left: -1%;
  top: -0.35em;
  transform: rotate(-5deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 35%,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0) 64%,
    rgba(255, 255, 255, 1) 65%,
    rgba(255, 255, 255, 1) 100%
  );
}

.thickness_sample:hover,
.thickness_sample.active {
  font-weight: bold;
}

#material_row {
  overflow: visible;
  white-space: nowrap;
  width: 100%;
  position: relative;
  transition: height 0.3s ease-in-out;
  margin-bottom: 1em;
  user-select: none;
}

#safety_notes.incompatible_safety_warning {
  color: #e25303;
  white-space: pre-wrap;
}

#material_info p,
#material_info a {
  color: #777;
  margin: 0;
}

#material_info > p {
  color: #e25303;
}

#settings__span--speed-warning {
  width: 600px;
  border: 1px solid #e25303;
  color: #e25303;
  padding: 6px;
}

div.engraving_speed_hints div{
    color: #777;
    font-size: smaller;
}
div.engraving_speed_hints i {
    color: #e25303;
    margin: 0 0.2em 0 2em;
}


#material_search_form {
    text-align: right;
    margin: 0px 0em;
    width: 50%;
    display: flex;
    /* place-self: flex-end; */
    justify-content: flex-end;
}

#material_search_form input {
    width: 100%;
}

#material_type,
#material_color,
#material_thickness,
#save_material_flyin {
  width: calc(200px + 2em);
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
  transition:
          width 0.2s ease-in-out .1s,
          height 0.2s ease-in-out 1.3s;
  background-color: #fff;
  overflow: hidden;
}
#material_type.active {
  width: 100%;
  /* height: 80vh; */
  /* overflow-y: scroll; */
  /* position: fixed; */
}
#material_color.active {width: calc( 100% - 220px);}
#material_thickness.active {
  width: calc(100vw - 2 * (238px));
}

#material_thickness .engrave_only {
  border-bottom: transparent;
  padding: 2em 0;
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 100%
    ),
    url(../img/pattern_stripes.png);
  background-size: cover, contain;
  border-top: 1px solid #e25303;
}

#save_material_flyin {
  padding-top: 1em;
  overflow: visible;
}

#save_material_flyin form {
  margin: 0;
}
#save_material_flyin .control-group {
  margin-bottom: 0.5em;
}
#save_material_flyin label.control-label {
  width: 120px;
}
#save_material_flyin .controls {
  margin-left: 130px;
}

#custom_mat_col {
  width: 3em;
  height: 3em;
}

#custom_mat_th {
  width: 3em;
  margin-right: 0.5em;
}

#material_info {
    margin-top: 25px;
    display:inline-block;
    width: calc(  220px + 2em );
    white-space: normal;
}

#backup_restore_custom_materials {
    padding-top: 1em;

}
#backup_restore_custom_materials .span6 {
    border: 1px solid #e25303;
    border-radius: 8px;
    padding: 1em;
    height: 14em;
    box-sizing: border-box;
}

#backup_restore_custom_materials button {
    margin: 1em 0;
}

.engrave_mode_icon {
    height: 2em;
    width: 4em;
    margin: -1em 0.6em;
}


.not_possible_on_this_material {
  color: #999;
}

.misfit_warning i {
  color: #e25303;
}

#dialog_vector_graphics_conversion .modal-body {
  /*min-height: 65vh;*/
}

#dialog_vector_graphics_conversion .modal-header h3 {display: flex;align-items: center;justify-content: space-between;}

#dialog_vector_graphics_conversion .laserhead-model-icon {
  color: #e25303;
  font-size: 16px;
  margin-left: 5px;
}

#dialog_vector_graphics_conversion .modal-header .laserhead-model-icon img {
  height: 16px;
  padding-bottom: 2px;
}

/** modals covering only the left column (editors for quick-* features) **/
.modal.modal-left-side {
    max-width: 33vw;
    margin-left: 0.5em;
    top: 50%;
    left: -34vw;
    min-height: calc(100vh - 57px - 2em);
    transition: opacity 0.25s linear, left 0.25s ease-out; /*, bottom 0.3s ease-out, margin-top 0s linear, top 0s linear; */
}

.modal.modal-left-side .modal-body {
    /* TODO */
    /*max-height: calc( 100vh - 200px - 2em );*/
    height: calc( 100vh - 200px - 2em );
}

.modal-scrollable:has(.modal-left-side) {
    max-width: calc( 33vw + 1.2em );
    background-color: #ffffff;
    top: 54px; /* 46px navbar + 8px drop shadow */
    transition: opacity .25s ease-in;
    opacity: 0;
}
.modal-scrollable:has(.modal-left-side.fade.in) {
    opacity: 1;
    pointer-events: none; /* don't close modal on outside (rim) click... */
}
.modal-scrollable .modal-left-side {
    pointer-events: all; /* ... but don't disable inside clicks */
}

.modal-backdrop.modal-backdrop-left-side,
body:has(.modal-left-side) .modal-backdrop.fade.in {
    max-width: calc( 33vw + 1.2em );
    background-color: transparent;
    top: 57px;
}

.modal.modal-left-side.fade {
  /*transition: opacity 0.3s linear, left 0.3s ease-out, bottom 0.3s ease-out,*/
  /*  margin-top 0s linear, top 0s linear;*/
}
.modal.modal-left-side.fade.in {
  left: 0;
}

.modal-left-side .control-group {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
}

.modal-left-side label.control-label {
    width: 120px;
}
.modal-left-side div.controls {
    width: auto;
    margin-left: 1em;
    margin-bottom: 0;
    /*padding-top: 5px;*/
}

.modal.modal-left-side .control-group .controls input {
    margin-top: 0;
}




input[type="checkbox"] {
  width: 1.35em;
  height: 1.35em;
  margin-right: .8em;
  margin-top: 0;
}

.control-group .controls input[type="checkbox"] {
    vertical-align: middle;
    margin-top: .4em;
}

input[type="checkbox"]#quick_shape_stroke,
input[type="checkbox"]#quick_shape_fill {
    margin-top: 0;
}

#settings_plugin_logging input[type=checkbox] {
    width: auto;
    height: auto;
}

#settings_plugin_mrbeam_about .about-settings__hostname-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

#settings_plugin_mrbeam_about .settings-input-hostname-prefix {
    font-weight: bold;
}

#settings_plugin_mrbeam_about .settings-input-hostname-edit {
    margin-bottom: 2px;
    height: 1em;
    border-radius: 1em;
    padding-left: 1em;
}

#settings_plugin_mrbeam_about #about-settings-hostname-headsup {
    margin: .5em 0 2em;
}

svg#area_preview.overModalBG {
  z-index: 1051;
}

/** CAMERA CALIBRATION **/

.camera_calibration_tabs {
  border-width: 1px;
  padding: 1em;
  height: 90vh;
  overflow-y: auto;
  padding-bottom: 0;
  position: relative;
}

.camera-settings-section {
  margin-bottom: 30px;
}

.camera-settings-section .btn-group {
  margin-left: 2px;
}

.camera-status-images {
  width: 100%;
  text-align: center;
  border-collapse: separate;
  border-spacing: 20px 0;
  margin-bottom: 15px;
}

.camera-status-images td {
  position: relative;
  background-color: #eee;
  padding: .5em;
  box-shadow: 0.5em 0.5em .5em -0.5em #666666;
}

.camera-status-images .camera-picture {
  vertical-align: top;
  position: re;
}

.camera-status-images .fa-download {
  position: absolute;
  bottom: 7px;
  right: 7px;
  border-radius: 50%;
  padding: .5em;
  background-color:#fff;
}

.camera-status-images .camera-image-description {
  vertical-align: top;
  font-size: smaller;
}

.camera-status-support .fa-download {
  color: #e25303;
  margin: 0 2px;
}

ul.camera-requirements {
    max-width: 58%;
}

ul.camera-requirements li {
    list-style: none;
}

div.camera-status-support {
    width: 30%;
    border: 1px solid #aaa;
    border-radius: .5em;
    padding: 1em;
    margin-right: 1em;
    position: absolute;
    right: 0;
    top: 0;
}

.requirement-status::after,
.requirement::before {
  font-family: FontAwesome3;
  -webkit-font-smoothing: antialiased;
  margin-left: 5px;
}

.requirement-status.requirement-met::after,
.requirement.requirement-met::before {
  content: "\f00c";
  color: #00d400;
}

.requirement-status.requirement-not-met::after,
.requirement.requirement-not-met::before {
  content: "\f00d";
  color: red;
}

#camera_settings_raw_preview img {
    position: absolute;
    left: 0;
    background-color: #b2b2b2;
    top: 0;
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
}


#camera_settings_raw_preview svg {
    position: absolute;
    left: 0;
    top: 0;
}

#camera_settings_cropped_preview {
    cursor: zoom-in;
    position: relative;
}

#camera_settings_raw_preview {
    cursor: zoom-in;
    position: relative;
    padding-bottom: 75%;
}

#camera_settings_cropped_preview.magnify,
#camera_settings_raw_preview.magnify {
    position: fixed;
    width: 85vw;
    left: 5%;
    top: 48px;
    border: 1em #eee solid;
    z-index: 999;
    cursor: zoom-out;
    box-shadow: .5em .5em .5em -.5em #666;
    background: linear-gradient(60deg, #dddddd, #eeeeee);
}

#settings_camera form#debugPictureTypeSelector {
    position: absolute;
    bottom: 0;
    margin: auto;
    width: 100%;
    background-color: #ffffffaa;
    left: 0;
}

#settings_camera form#debugPictureTypeSelector label {
    font-size: 0.7em;
    display: inline;
    margin: 0 0.5em 0 0;
}

#settings_camera form#debugPictureTypeSelector input[type=radio] {
    width: .6em;
    height: auto;
}


.camera-calibrations {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr 1fr;
  width: 95%;
  margin: 20px 0 0 5px;
}

.camera-calibrations .calibration-container {
  padding: 10px 15px;
  margin: 0 4% 0 0;
  position: relative;
}

.calibration-container .rounded_container_title {
  margin-top: 0;
}

.calibration-container .rounded_container_hr {
  margin: 10px -15px;
}

.calibration-container p:last-of-type {
  margin-bottom: 50px;
}

.calibration-container button {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.camera-calibration-title {
  margin: 2px 0 6px 2px;
}

.camera-calibration-title .btn {
  border-radius: 999px; /* full size round borders */
  padding: 10px 10px;
  min-width: auto;
}

.camera-calibration-title .btn img {
  width: 20px;
}

.camera-calibration-title span {
  vertical-align: bottom;
  font-size: 24.5px;
  line-height: 40px;
  margin: 10px 0 10px 5px;
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
}

.camera-calibration-steps > li {
  margin-bottom: 15px;
}

.camera-calibration-steps > li > button {
  margin-top: 5px;
}

.calibration_manual.img {
  width: 48%;
  padding-top: 32%;
  background-repeat: no-repeat;
  background-size: contain;
  margin-bottom: 1em;
}

.marker_selection_desc {
  margin-top: 0em;
  margin-bottom: 1em;
  display: inline-block;
}

.cal-arrow {
  width: 0.8em;
  height: 0.8em;
  background-image: url(../img/cal_marker.svg);
  border: 0px transparent;
  background-repeat: no-repeat;
  background-color: white;
  background-size: contain;
  display: inline-block;
  background-position: center;
}

.cal-row {
  color: #ddd;
  font-size: 1.2rem;
  padding: 0.1em;
}
.cal-row.active {
  color: #383e42;
}
.complete .cal-row {
  display: block !important;
  font-size: 1rem;
}

#NE .cal-arrow {
  transform: scale(-1, 1);
}
#SE .cal-arrow {
  transform: scale(-1, -1);
}
#SW .cal-arrow {
  transform: scale(1, -1);
}

.calibration_click_indicator {
  stroke: #ffffff;
  stroke-width: 1;
  fill: none;
}

.marker_found_indicator {
  color: #ddd;
  display: inline-block;
  padding: 0 0.5em;
}
.marker_found_indicator.active {
  color: #000;
}

.marker_debug_image:hover {
  height: 45vh;
}
.marker_debug_image {
  margin: 5px;
  border: 1px;
  border-style: solid;
  border-color: black;
  height: 15vh;
  position: fixed;
  max-width: 26vw;
  max-height: 50vh;
}

#debug_NW_img {
  top: 1vh;
  left: 0vw;
}
#debug_NE_img {
  top: 1vh;
  right: 1vw;
}
#debug_SW_img {
  bottom: 1vh;
  left: 0vw;
}
#debug_SE_img {
  bottom: 1vh;
  right: 0vw;
}

#calibration_picture_control button {
  width: 2em;
  height: 2em;
}

#reengrave_markers div {
  padding: 0em 0em 0em 1em;
  border: 1px solid #d34843;
  overflow: hidden;
  margin-top: 1em;
  box-sizing: border-box;
}

#reengrave_markers input {
  width: 3em;
  height: 0.75em;
  margin-bottom: 0;
  border-radius: 0.75em;
  background-color: #eee;
  margin-right: 0.3em;
}

#lens_correction_image_list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0;
  width: 100%;
  /*max-height: 60vh;*/
  /*overflow-y: scroll;*/
}

.lens_correction_image_thumb {
  list-style-type: none;
  background: top center no-repeat;
  background-size: contain;
  background-color: #ddd;
  padding-top: 70%;
  margin: 0.5em;
  position: relative;
}
.lens_correction_image_thumb.zoom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: black;
  margin: 0;
  background-size: 70%;
  z-index: 999;
}

.lens_correction_image_thumb i.status_icon {
  position: absolute;
  font-size: 4em;
  width: 100%;
  top: calc(50% - 2rem);
  left: 0;
  text-align: center;
}

#lens_correction_image_list .chessboard_cal_duration {
  padding: 0.5em 0.5em 0.1em;
  font-size: 10px;
  line-height: 12px;
}

#lensCalibrationPhases.qa_active #lensCalibrationPictureTaking,
#lensCalibrationPhases #lensCalibrationQA {
  display: none;
}
#lensCalibrationPhases.qa_active #lensCalibrationQA,
#lensCalibrationPhases #lensCalibrationPictureTaking {
  display: block;
}

#lens_calibration_take_pic {
  color: #fff;
  border-radius: 50%;
  width: 5em;
  height: 5em;
  display: inline-block;
  margin-top: -75px;
  margin-left: -5px;
  position: relative;
  z-index: 1;
}

#lens_calibration_toggle_qa_btn {
  position: absolute;
  bottom: 40px;
  right: 0;
}

#recalculate_lens_calibration_btn {
  height: 5em;
  margin-bottom: 20px;
  display: inline-block;
  right: 0;
  bottom: 0;
  z-index: 0;
  position: absolute;
}

#lens_calibration_steps_and_heatmap {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

#lens_calibration_steps_and_heatmap div {
  margin: 0 4% 0 0;
  position: relative;
}

#heatmap_container {
  max-width: 100%;
  height: auto;
}

#segment_group rect {
  fill: green;
  fill-opacity: 0.3;
}
#segment_group rect.highlight {
  fill-opacity: 0.5;
  stroke: #00ff00;
  stroke-width: 8px;
}

.qa_list_and_next {
  border: 1px solid green;
  border-radius: 8px;
  padding: 1em 2em;
  margin: 1em 0;
  position: relative;
  background-color: #fff;
  font-size: 14pt;
}

.qa_list_and_next ul {
  max-width: 85%;
}

.qa_list_and_next li {
  line-height: 1.6em;
}

.qa_list_and_next a.continue_btn {
  position: absolute;
  right: -1px;
  bottom: -1px;
  border: none;
  border-radius: 8px 0px;
}

.qa_list_and_next .continue_btn.btn-group {
  position: absolute;
  bottom: 1px;
  right: -1px;
}
.qa_list_and_next .continue_btn.btn-group .btn {
  position: relative;
}
.qa_list_and_next .continue_btn.btn-group .btn:first-child {
  border-radius: 8px 0 0 0;
}
.qa_list_and_next .continue_btn.btn-group .btn:last-child {
  border-radius: 0 0 8px 0;
}

.qa_images h3 {
  margin-top: 0;
}

.qa_images {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin: 0;
  width: 100%;
  grid-row-gap: 1em;
  grid-column-gap: 1em;
}

.qa_img_wrapper {
  position: relative;
}

#qa_undistorted_guides {
  border: 1px solid #00ff00;
  position: absolute;
}

#qa_undistorted_guides {
  --dist_horizontal: 3%;
  --dist_vertical: 3%;
  top: var(--dist_vertical);
  bottom: var(--dist_vertical);
  left: var(--dist_horizontal);
  right: var(--dist_horizontal);
}

.qa_images li.example {
  position: relative;
  list-style: none;
  margin-bottom: 4px;
  max-width: 200px;
}
.qa_images li.example::after {
  position: absolute;
  right: 0.5rem;
  top: 1rem;
  font-size: 3rem;
  font-family: FontAwesome3;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
}
.qa_images li.example.good_example::after {
  content: "\f00c";
  color: #00d400;
}
.qa_images li.example.bad_example::after {
  content: "\f00d";
  color: red;
}

.qa_done_block {
  color: green;
  font-size: 7em;
  font-weight: bolder;
  text-align: center;
  margin: 1em 1em;
}

.qa_done_buttons {
  border: 1px solid green;
  border-radius: 8px;
  padding: 1em 2em;
  height: 2.3em;
  position: relative;
  text-align: center;
  background-color: #fff;
  display: grid;
  grid-template-columns: auto auto auto auto auto;
}

.print_btn i.icon-print {
  display: inherit !important;
}

.print_btn:disabled i.icon-print {
  display: none !important;
}

.print_btn i.icon-spinner {
  display: none !important;
}

.print_btn:disabled i.icon-spinner {
  display: inherit !important;
}

#qa_cameraalignment_image {
  width: 100%;
  height: 360px;
  background: url(../img/calibration/calpic_wait.svg) center
    no-repeat;
  background-size: cover;
}

.material_tooltip {
  width: 100%;
  height: 20px;
}

/** ICONS for Mr Beam **/

i.fa[class*="mrb-dreamcut"] {
    width: 1.3em;
    height: 1em;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: -0.2em;
}

i.fa.mrb-dreamcut-xx {
    background-image: url("../img/laser_head/laserhead_xx.svg");
}

i.fa.mrb-dreamcut-x {
    background-image: url("../img/laser_head/laserhead_x.svg");
}

i.fa.mrb-dreamcut-s {
    background-image: url("../img/laser_head/laserhead_S.svg");
}

i.fa-pointer-hollow {
  width: 1em;                /* size */
  height: 1em;
  display: inline-block;

  /* white background so only the stroke shows */
  background: white;

  /* SVG mask from your path */
  -webkit-mask: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'>\
    <path d='M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z' />\
  </svg>") center / contain no-repeat;

  mask: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'>\
    <path d='M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z' />\
  </svg>") center / contain no-repeat;

  /* turn the filled shape into a hollow outline */
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  /* thickness of outline */
  box-shadow: 0 0 0 2px black inset;
}


/** Generic Overlay **/

.fullscreenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10100;
}

/* First child: dimmed background */
.fullscreenOverlay > :first-child {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #383e42;
  opacity: 0.9;
}

/* Second child: wrapper that centers content */
.fullscreenOverlay > :nth-child(2) {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Second child child: the real content on proper background */
.fullscreenOverlay > :nth-child(2) > :first-child {
    padding: 60px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 200;
    line-height: 30px;
    color: inherit;
    background-color: #eee;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.fullscreenOverlay h1 {
    font-weight: 700 !important;
    border-bottom: 1px solid #e25303 !important;
}

#terminal-output span {
    display: block;
}

#terminal-output span.muted:after {
    content: "";
    display: block;
    height: 1px;
    width: 1rem;
    background: #e25303;
}

#terminal-output span.muted {
    height:0;
    font-size:0;
}

#terminal-output br {
    display:none;
}
