.__video_container {
	display: grid;
	grid-template-columns: 1fr;
	height: calc(100svh - 130px);
	position: relative;

	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.__video_container_doc {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 20px;
	height: calc(100svh - 100px);

	position: relative;

	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.__subcontainer_videos {
	display: flex;
	position: relative;
	height: calc(100svh - 130px);
	/*	background-color: #1BDA8A;*/
}

.__main_video {
	flex: 1 1 auto;
	align-items: center;
	background-color: #000;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
}

.__main_video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.__video_container .__remote_video,
.__video_container_doc .__remote_video {
	flex: 0 0 auto;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	/*	background-color: #E8EAED;*/
	background-color: #000;

	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

	z-index: 50;
}

.__video_container .__self_video,
.__video_container_doc .__self_video {
	width: 100%;
	max-width: 200px;
	height: 130px;
	border: 2px solid #D9DFE6;
	border-radius: 6px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
	/*	background-color: #F6F8FB;*/
	background-color: transparent;

	position: absolute;
	right: 30px;
	bottom: 35px;

	z-index: 150;

	transform: scaleX(-1);
}

.__video_container .__self_video video,
.__video_container_doc .__self_video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/**
 *
 *
 *
 */

.__video_actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	width: 100%;
	height: auto;
	min-height: 60px;
	border-radius: 0px 0px 10px 10px;

	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

	position: absolute;
	bottom: -30px;
}

.__control_btn_action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;

	font-size: 20px;
	color: var(--dark);
	background-color: white;
	box-shadow: 0 3px 7px rgba(30, 30, 30, 0.3);

	cursor: pointer;
	transition: all 0.6s;
}

.__control_btn_action:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.__control_btn_action::after {
	content: '';
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background-size: 25px 25px;
	background-position: center;
	background-repeat: no-repeat;
}

/**
 *
 * Toggle video
 */
.__control_btn_action.__toggle_video.on {
	background-color: var(--white);
}

.__control_btn_action.__toggle_video.off {
	background-color: var(--white);
}

.__control_btn_action.__toggle_video.on::after {
	background-image: url(../icons/ic_video.svg);
}

.__control_btn_action.__toggle_video.off::after {
	background-image: url(../icons/ic_video_slash.svg);
}


/**
 *
 * Toggle microphone
 */
.__control_btn_action.__toggle_microphone.on {
	background-color: var(--mic-on-call);
}

.__control_btn_action.__toggle_microphone.off {
	background-color: var(--mic-off-call);
}

.__control_btn_action.__toggle_microphone.on::after {
	background-image: url(../icons/ic_mic.svg);
}

.__control_btn_action.__toggle_microphone.off::after {
	background-image: url(../icons/ic_mic_slash.svg);
}


/**
 *
 * Toggle start call
 */
.__control_btn_action.__start_call {
	background-color: var(--play-call);
}

.__control_btn_action.__start_call::after {
	background-image: url(../icons/ic_play.svg);
}


/**
 *
 * Toggle end call
 */
.__control_btn_action.__end_call {
	background-color: var(--end-call);
}

.__control_btn_action.__end_call::after {
	background-image: url(../icons/ic_phone_slash.svg);
}

.__control_btn_action.__toggle_microphone.on::after,
.__control_btn_action.__toggle_microphone.off::after,
.__control_btn_action.__start_call::after,
.__control_btn_action.__end_call::after {
	filter: invert(100%) sepia(100%) saturate(2%) hue-rotate(128deg) brightness(105%) contrast(101%);
}



/**
 *
 *
 * Medical tools
 */

.__medical_tools {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 130px);
	background-color: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(32, 28, 26, 0.18);
}

input[type="radio"] {
	display: none;
}

input#tab1:checked~.__tab_nav label[for="tab1"],
input#tab2:checked~.__tab_nav label[for="tab2"],
input#tab3:checked~.__tab_nav label[for="tab3"],
input#tab4:checked~.__tab_nav label[for="tab4"] {
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	background-color: #AEC4F350;
	color: var(--primary-call);
	font-weight: 600;
	border-bottom: 2px solid var(--primary-call);
}

input#tab1:checked~.__tab_content #anamnese,
input#tab2:checked~.__tab_content #prescription,
input#tab3:checked~.__tab_content #history,
input#tab4:checked~.__tab_content #notes {
	display: block;
}

.__tab_nav {
	display: flex;
	margin-bottom: 15px;
	border-bottom: 1px solid #ddd;
}

.__tab_btn {
	flex: 1 1 auto;
	padding: 8px 5px;
	background: none;
	border: none;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	color: var(--gray-call);
}

.__tab_btn.active {
	color: var(--primary-call);
	font-weight: 600;
	border-bottom: 2px solid var(--primary-call);
}

.__tab_content {
	flex: 1;
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 100%;
}

.__tab_pane {
	display: none;
}

/*.__tab_pane.active {
	display: block;
}*/

.form-group {
	margin-bottom: 1rem;
}

.form-group summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.form-group summary::after {
	content: "+";
	font-size: 1.25rem;
}

/* Ícone "-" quando aberto */
details.form-group[open]>summary::after {
	content: "–";
}

.form-group .title-summary {
	font-weight: 600;
}

.form-group label {
	font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 6px;
	border: 1px solid #ddd;
	border-radius: 5px;
	outline: none;
	outline-style: none;
	font-size: 13px;
}

.form-group textarea {
	min-height: 60px;
	resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	border: 1px solid #2383DA;
}

.controls {
	display: flex;
	justify-content: center;
	gap: 15px;
	padding: 20px 0;
}

.control-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background-color: white;
	color: var(--dark);
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: all 0.3s;
}

.control-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.control-btn.mute {
	background-color: var(--gray-call);
	color: white;
}

.control-btn.end-call {
	background-color: var(--danger-call);
	color: white;
}

.btn {
	padding: 10px 15px;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s;
}

.btn-primary {
	background-color: var(--primary-call);
	color: white;
}

.btn-secondary {
	background-color: var(--light-call);
	color: var(--dark--call);
	border: 1px solid #ddd;
}

.btn-success {
	background-color: var(--secondary-call);
	color: white;
}

.__anamnesis_form,
.__notes_form,
.__prescription_form {
	background-color: white;
	padding: 0px 8px;
	border-radius: 10px;
}

.__signature_pad {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #ccc;
	height: 120px;
	margin: 15px 0;
	margin-top: 3px;
	text-align: center;
	color: var(--gray-call);
	background-color: #fafafa;
}

.__action_bar {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-top: 10px;
}

.hidden {
	display: none;
}
