@import url(//fonts.googleapis.com/css?family=Roboto:300&display=swap&subset=cyrillic);
#wrapper,
canvas {
  display: none;
}
#prev,
.rm {
  float: left;
}
@font-face {
  font-family: takephoto;
  src: url(../fonts/takephoto.eot?73506805);
  src: url(../fonts/takephoto.eot?73506805#iefix) format("embedded-opentype"),
    url(../fonts/takephoto.woff2?73506805) format("woff2"),
    url(../fonts/takephoto.woff?73506805) format("woff"),
    url(../fonts/takephoto.ttf?73506805) format("truetype"),
    url(../fonts/takephoto.svg?73506805#takephoto) format("svg");
  font-weight: 400;
  font-style: normal;
}
[class*=" icon-"]:before,
[class^="icon-"]:before {
  font-family: takephoto;
  font-style: normal;
  font-weight: 400;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  width: 21px;
  height: 18px;
  margin-right: 10px;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: 0.2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-camera:before,
.icon-refresh:before {
  content: "";
  background-repeat: no-repeat;
  background-size: contain;
}
.icon-camera:before {
  background-image: url(../img/camera_icon.png);
}
.icon-refresh:before {
  height: 17px;
  background-image: url(../img/refresh_icon.png);
}
.card-form-widget [class*=" icon-"]:before,
.card-form-widget [class^="icon-"]:before {
  height: 20px;
}
body,
html {
  height: 100%;
}
.card-form-widget .icon-camera:before {
  background-image: url(../img/shoot.png);
}
.card-form-widget .icon-refresh:before {
  background-image: url(../img/retake.png);
}
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body.card-form-widget {
  padding-right: 1px;
}
.button,
.gr {
  display: inline-block;
  -khtml-user-select: none;
  padding: 5px 15px;
  height: 36px;
  position: relative;
}
.button {
  background: green;
  border: none;
  margin: 7px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  cursor: pointer;
  outline: 0;
  -moz-user-select: -moz-none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}
.ready #footer {
  background-color: #fff;
}
.gr {
  background: 0 0;
  border: none;
  margin: 7px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  outline: 0;
  color: green;
  -moz-user-select: -moz-none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
  line-height: 26px;
  font-size: 14px;
  font-weight: 400;
}
.rm {
  color: #d3222e;
  padding: 5px 15px;
  margin: 7px;
  height: 36px;
  border: 1px solid #d3222e;
  background: rgba(0, 0, 0, 0);
  font-size: 12px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  outline: 0;
  cursor: pointer;
}
.button:hover {
  background-color: #158b15;
}
.button:active {
  outline: 0;
  -webkit-box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.5);
}
#container {
  overflow: hidden;
  width: 880px;
  margin: 20px auto;
  background: #363636;
}
#wrapper {
  position: relative;
  background-color: #363636;
  width: 100%;
  max-width: 292px;
  overflow: hidden;
}
#videos {
  width: 100%;
  max-width: 292px;
  overflow: hidden;
}
#content {
  z-index: 2;
  position: relative;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  max-width: 292px;
  overflow: hidden;
}
.vmiddle {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#webcam {
  display: inline;
  text-align: center;
  width: 100%;
  max-width: 292px;
  overflow: hidden;
}
#photo {
  width: 100%;
  max-width: 292px;
  height: auto;
  max-height: 292px;
}
.flash:after,
.pure-button {
  display: inline-block;
  width: 100%;
}
#footer {
  width: 100%;
  max-width: 292px;
  height: 50px;
  text-align: right;
  z-index: 2;
  overflow: hidden;
}
#videoElements {
  position: relative;
  z-index: 3;
}
.flash:after {
  position: absolute;
  height: 100%;
  z-index: 4;
  content: "";
  top: 0;
  left: 0;
  animation: fl 1s;
  -webkit-animation: fl 1s;
}
.facing-handle,
.record-status {
  position: absolute;
  z-index: 9999;
}
@keyframes fl {
  from {
    background: rgba(255, 255, 255, 0.25);
  }
  to {
    background: rgba(255, 255, 255, 0);
  }
}
@-webkit-keyframes fl {
  from {
    background: rgba(255, 255, 255, 0.25);
  }
  to {
    background: rgba(255, 255, 255, 0);
  }
}
.pure-button {
  zoom: 1;
  line-height: normal;
  white-space: nowrap;
  vertical-align: baseline;
  text-align: center;
  cursor: pointer;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none

;
  -ms-user-select: none;
  user-select: none;
  font-family: inherit;
  font-size: 100%;
  height: 37px;
  padding: 0.55em 2.5em;
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid #999;
  border: 0 transparent;
  background-color: #e6e6e6;
  text-decoration: none;
  border-radius: 2px;
}
.pure-button-active,
.pure-button:active {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
    0 0 6px rgba(0, 0, 0, 0.2) inset;
}
.pure-button-disabled,
.pure-button-disabled:active,
.pure-button-disabled:focus,
.pure-button-disabled:hover,
.pure-button[disabled] {
  border: 0;
  background-image: none;
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  filter: alpha(opacity=40);
  -khtml-opacity: 0.4;
  -moz-opacity: 0.4;
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.pure-button-hidden {
  display: none;
}
.pure-button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
.pure-button-primary,
.pure-button-selected,
a.pure-button-primary,
a.pure-button-selected {
  background-color: #0078e7;
  color: #fff;
}
.removeButton,
.startButton,
.updateButton,
.uploadButton {
  color: #fff;
  border-radius: 6px;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px;
  margin: 6px 0;
}
#takePhoto,
.file_upload label,
.removeButton,
.startButton,
.updateButton {
  border: none;
  box-shadow: none;
  background: #57647e;
  color: #fff;
}
.status-message {
  display: none;
  padding: 15px;
  color: #363636;
  font-size: 15px;
}
.dn {
  display: none !important;
}
.disabledButton {
  pointer-events: none;
  opacity: 0.4;
  background-color: #ccc;
  color: gray;
}
.record-status {
  color: #d00;
  background-color: #fff;
  border-radius: 2px;
  padding: 2px 6px 3px 4px;
  text-transform: uppercase;
  font-family: sans-serif;
  letter-spacing: 1px;
  top: 15px;
  left: 20px;
  font-weight: 600;
  font-size: 11px;
}
.record-status .status-icon {
  width: 19px;
  height: 17px;
  vertical-align: bottom;
  background: url(../img/live-status.png) center center no-repeat;
  background-size: 12px;
  display: inline-block;
  margin-right: 2px;
}
.record-status .status-text {
  display: inline-block;
  margin-left: -5px;
  padding: 2px;
}
.facing-handle {
  right: 10px;
  top: 8px;
}
.facing-handle .flip {
  cursor: pointer;
}
.facing-handle .flip-icon {
  background: url(../img/flip.png) center center no-repeat;
  width: 35px;
  height: 35px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.card-form-widget .facing-handle .flip-icon {
  background: url(../img/flip-camera-card.png) center center no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.facing-handle .flip-icon:active {
  width: 37px;
  height: 37px;
}
.navigation-buttons {
  font-weight: 700;
  height: 38px;
  line-height: 38px;
  width: 10px;
  cursor: pointer;
  padding: 5px;
  display: none;
}
#notification,
#takePhoto,
.file_upload label {
  text-align: center;
  font-family: "Lucida Grande", sans-serif;
  font-weight: 400;
}
#prev {
  background: url(../webcam/left.png) center center no-repeat;
}
#next {
  float: right;
  background: url(../webcam/right.png) center center no-repeat;
}
span.icons {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px #fff;
}
body.ndt span.icons {
  padding: 10px 11px 10px 12px;
  width: max-content !important;
}
body.ndt #update_photo {
  padding: 0;
}
#notification {
  position: fixed;
  left: 0;
  top: -50px;
  width: 100%;
  height: 50px;
  z-index: 9998;
  font-size: 14px;
  color: #fff;
  background-color: #32834f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  box-sizing: border-box;
}
.error-content {
  display: table;
  width: 100%;
  height: 100%;
  position: absolute;
  background: #e8e8e8;
}
.error-details {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
.error-message {
  color: #5f5f5f;
  font-size: 1.2em;
}
.error-message a {
  color: #00a0f0;
  text-decoration: none;
}
.takePhoto-container {
  font-size: 18px;
}
#takePhoto,
.file_upload label {
  min-width: 162px;
  text-transform: capitalize;
  font-size: 14px;
  border-radius: 6px;
  padding: 9px 30px;
  color: #fff;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}
body.ndt #takePhoto,
body.ndt .file_upload label {
  width: max-content !important;
}
.card-form-widget #takePhoto,
.card-form-widget .file_upload label {
  text-transform: uppercase;
  font-family: Roboto;
  font-size: 0.8em;
  font-weight: 100;
  color: #fff;
  padding: 0.55em 1.25em;
  background: #3d80c4;
  text-shadow: none;
  box-shadow: none;
  border: none;
  line-height: 1.6;
}
.file_upload input[type="file"] {
  display: none;
}
#chosen_file_name {
  font-size: 14px;
  color: #313131;
  margin-top: 3px;
}
body.isJotFormNext #takePhoto {
  width: 78%;
  padding: 0.7em 2.25em;
}
body.card-form-widget.isJotFormNext #takePhoto {
  width: 100%;
  height: 42px;
  padding: 12px 0;
  max-width: 292px;
}
body.isJotFormNext .photoRow-imgWrap img {
  display: block;
  max-width: 80px;
  max-height: 80px;
  margin-right: 8px;
}
body.card-form-widget.isJotFormNext .photoRow-action {
  align-self: flex-start;
}
body .photoRow-imgWrap img {
  display: block;
  max-width: 80px;
  max-height: 80px;
  margin-right: 8px;
}
body.card-form-widget .photoRow-action {
  align-self: flex-start;
}
.photoRow {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 292px;
  border-radius: 3px;
  border: 1px solid #a7a6ca;
  margin-top: 11px;
  align-items: center;
  padding: 8px;
}
.photoRow-info {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-around;
  flex-grow: 1;
  height: 42px;
  width: 40%;
}
.photoRow-info-label,
.photoRow-info-size {
  font-size: 13px;
  max-width: 234px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photoRow-info-size {
  color: #97a2bb;
}
.photoRow-action {
  flex-shrink: 1;
}
.photoRow-action-image {
  width: 25px;
  height: 25px;
}
.photoRow-action-image:hover {
  cursor: pointer;
}
.hidden {
  display: none;
}
body.takePhotoClassicLayout #content {
  height: 292px;
}
body.takePhotoClassicLayout #webcam {
  height: 292px !important;
}
body.takePhotoClassicLayout #webcam video {
  width: 100% !important;
  max-width: 292px;
  height: 292px !important;
}
body.takePhotoClassicLayout #photo {
  width: 100%;
  max-width: 292px;
  height: 292px;
}
@media all and (orientation: landscape) {
  body.takePhotoClassicLayout #photo {
    width: 100%;
    max-width: 292px;
    height: 292px;
  }
}
#takePhoto.ndtTakePhoto {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-width: 194px; /* Reverted to original to accommodate icon + text */
  height: 40px;
  background: #57647e;
  border: none;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  text-transform: capitalize;
  padding: 10px 18px 10px 10px; /* Reduced left padding to balance icon */
  color: #fff;
  text-shadow: none;
  box-shadow: none;
  white-space: nowrap;
}
.file_upload label.ndtTakePhoto {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-width: 194px; /* Increased to match takePhoto and prevent clipping */
  max-width: 260px; /* Prevent overflow in #uploadElements (max-width 292px) */
  height: 40px;
  background: #57647e;
  border: none;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  text-transform: capitalize;
  padding: 10px 18px;
  color: #fff;
  text-shadow: none;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Truncate long text gracefully */
}
#takePhoto.ndtTakePhoto:before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.94 14.224a3.283 3.283 0 100-6.566 3.283 3.283 0 000 6.566z' fill='%23fff'/%3E%3Cpath d='M7.66 0L5.658 2.189h-3.47C.98 2.189 0 3.169 0 4.377V17.51c0 1.21.98 2.189 2.189 2.189h17.509c1.21 0 2.189-.98 2.189-2.189V4.377c0-1.209-.98-2.188-2.189-2.188h-3.469L14.226 0H7.66zm3.283 16.415a5.474 5.474 0 01-5.471-5.472 5.474 5.474 0 015.471-5.471 5.474 5.474 0 015.472 5.471 5.474 5.474 0 01-5.472 5.472z' fill='%23fff'/%3E%3C/svg%3E%0A");
  width: 22px;
  height: 20px;
  margin-right: 10px;
}
body[data-theme=upcoming] #removebutton #retake_photo:before {
  margin-right: 0.2em;
}
#notification-text {
  font-family: "Lucida Grande", sans-serif;
  font-weight: 400;
  flex-grow: 1;
  text-align: center;
}
#notification-icon {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
#notification-icon svg.size-6 {
  width: 24px;
  height: 24px;
}
#notification-icon svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.photoRow-loading {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 2px;
}
.photoRow-loading.hidden {
  display: none !important;
}
.photoRow-loading svg.size-6 {
  width: 24px;
  height: 24px;
  color: #fff;
  animation: spin 1s linear infinite;
}
#main-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: 624px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}
#takePhotoElements,
#uploadElements {
  flex: 1;
  max-width: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
#takePhotoElements {
  margin-right: 10px;
}
#uploadElements {
  margin-left: 10px;
}
.takePhoto-container,
.file_upload {
  width: 100%;
  text-align: center;
}
.img_container_NDT,
.img_container_NDT * {
  display: none !important;
}
@media (max-width: 600px) {
  #main-container {
    flex-direction: row; /* Keep side-by-side */
    max-width: 100%; /* Full viewport width to use available space */
    padding: 10px 5px; /* Reduce side padding to maximize space */
  }
  .takePhoto-container,
  .file_upload {
    flex: 1; /* Equal grow/shrink */
    max-width: 48%; /* Slightly less than 50% to account for margins */
    margin: 0 1%; /* Small horizontal spacing */
  }
  #takePhoto.ndtTakePhoto,
  #usePhotoButton.ndtTakePhoto {
    min-width: auto; /* Allow full shrink */
    padding: 10px 8px; /* Compact padding */
    font-size: 14px; /* Smaller text for better fit */
    white-space: nowrap; /* Prevent text wrap causing height issues */
    overflow: hidden; /* Clip if still too wide (rare) */
    text-overflow: ellipsis; /* Ellipsis for long labels */
  }
  .img_container_NDT,
  .img_container_NDT * {
    display: none !important;
  }
}

/* Add at the end of styles.css */
body.takePhotoClassicLayout {
  background-color: transparent !important; /* Override gray background */
  min-height: 100px !important; /* Enforce original height, adjust if needed */
}

#main-container {
  background-color: transparent !important; /* Ensure container is transparent */
}
