.box-webcam {
	box-sizing: border-box;
	max-width: 460px;
}

.box-webcam video {
	width: 100%;
	height: auto;
	background-color: whitesmoke;
}

.box-webcam img {
	max-width: 100%;
	height: auto;
}

.box-webcam #imagemConvertida {
	margin-bottom: 10px;
	margin: 0 auto;
	display: block;
	margin-bottom: 6px;
	border-radius: 4px;
}

.box-div-cam {
	/*width: 100px;
    height: 100px;*/
	display: flex;
	align-items: center;
	justify-content: center;
	/*background-color: #f9f9f9;
    border: 6px dashed #e7e4e4;*/
	margin-bottom: 6px;
}

#crop_popup .modal-dialog {
	max-width: 500px;
}
#crop_popup .modal-body {
	height: 520px;
	overflow: auto;
}

.R-side-bottom,
.R-side-left,
.R-side-right,
.R-side-top {
	border: 2px solid rgb(0 129 55) !important;
	background: rgb(0 129 55 / 89%) !important;
}

.cropper-container,
.cropper-drag-box{
	width: 100% !important;
}

.box-webcam{
	margin: 10px auto;
	/*box-shadow: 0 10px 100px #ccc;*/
	box-sizing: border-box;
	max-width: 500px;
}

.box-webcam video{
	width: 100%;
	height: auto;
	background-color: whitesmoke;
}

.box-webcam button{
	-webkit-appearance: none;
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	text-align: center;	
	/*color: white;*/
	text-transform: uppercase;
	/*border: 1px solid white;*/
	box-shadow: 0 1px 5px #666;
}

.box-webcam img{
	max-width: 100%;
	height: auto;
}

.box-webcam #imagemConvertida{
	margin-bottom: 10px;
	margin: 0 auto;
    display: block;
    margin-bottom: 6px;
    border-radius: 4px;
}

.box-div-cam{
	/*width: 100px;
    height: 100px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*background-color: #f9f9f9;
    border: 6px dashed #e7e4e4;*/
    margin-bottom: 6px;
}

.box-div-cam i{
	display: block;
	font-size: 50px;
	color: darkgrey;
}

#crop_popup .modal-dialog { 
  max-width: 500px;
  max-height: 90vh;
  margin: 1.75rem auto;
}

#crop_popup .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#crop_popup .modal-body {
  overflow: hidden;
  padding: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(90vh - 120px);
}

#crop_popup .img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#crop_popup .img-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

#crop_popup .cropper-container {
  max-width: 100% !important;
  max-height: 100% !important;
}

@media (max-width: 768px) {
  #crop_popup .modal-dialog {
    max-width: 95vw;
    margin: 0.5rem auto;
  }
  
  #crop_popup .modal-body {
    max-height: calc(100vh - 180px);
  }
}

@media (max-width: 576px) {
  #crop_popup .modal-dialog {
    max-width: 100vw;
    margin: 0;
  }
  
  #crop_popup .modal-content {
    border-radius: 0;
    max-height: 100vh;
  }
  
  #crop_popup .modal-body {
    max-height: calc(100vh - 140px);
  }
}

.R-side-bottom, .R-side-left, .R-side-right, .R-side-top {
    border: 2px solid rgb(83, 83, 83) !important;
    background: rgba(80, 80, 80, 0.89) !important;
}

@media screen and (min-width: 665px) {
  #modal-webcam > div.modal-dialog{
    max-height: 90vh;
  }

  #modal-webcam .modal-body img#imagemConvertida {
    max-height:50vh;    
  }
}

@media screen and (max-height: 460px) {
  #modal-webcam > div.modal-dialog{
    zoom: 85%;
  }
}