/*================================================================================
	Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
	Version: 2.0
	Author: PIXINVENT
	Author URL: http://www.themeforest.net/user/pixinvent
================================================================================

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 15px;
	width: 15px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked+.slider {
	background-color: #2196F3;
}

input:focus+.slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

.not-allowed {
	cursor: not-allowed;
}

.btn-loading {
	position: relative;

	/* Thêm cursor mặc định */
}

/* Spinner mặc định ẩn */
.btn-loading::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border: 2px solid white;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* Khi loading thì spinner hiện và text vẫn nằm giữa */
.btn-loading.loading::before {
	opacity: 1;
}

/* Khi loading thì padding-left tăng lên để chừa chỗ spinner */
.btn-loading.loading {
	padding-left: 36px !important;
	opacity: 0.85;
	cursor: not-allowed !important;
	/* Thêm !important để đảm bảo ghi đè */
}

@keyframes spin {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

label.radio-wrapper-7 {
	padding: 6px 0;
	border-radius: 50px;
	display: inline-flex;
	cursor: pointer;
	transition: background 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
label.radio-wrapper-7:hover,
label.radio-wrapper-7:focus-within {
	background: rgba(159, 159, 159, 0.1);
}
label.radio-wrapper-7 input {
	vertical-align: middle;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background: none;
	border: 0;
	box-shadow: inset 0 0 0 1px #9F9F9F;
	box-shadow: inset 0 0 0 1.5px #9F9F9F;
	appearance: none;
	padding: 0;
	margin: 0;
	transition: box-shadow 150ms cubic-bezier(0.95, 0.15, 0.5, 1.25);
	pointer-events: none;
}
label.radio-wrapper-7 input:focus {
	outline: none;
}
label.radio-wrapper-7 input:checked {
	box-shadow: inset 0 0 0 6px #6743ee;
}
label.radio-wrapper-7 span {
	vertical-align: middle;
	display: inline-block;
	line-height: 20px;
	padding: 0 8px;
}
/* bật tắt trạng thái */
.can-toggle {
	position: relative;
	padding: 0 1px;
   }
   .can-toggle *, .can-toggle *:before, .can-toggle *:after {
	box-sizing: border-box;
   }
   .can-toggle input[type=checkbox] {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
   }
   .can-toggle input[type=checkbox][disabled] ~ label {
	pointer-events: none;
   }
   .can-toggle input[type=checkbox][disabled] ~ label .can-toggle__switch {
	opacity: 0.4;
   }
   .can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:before {
	content: attr(data-unchecked);
	left: 0;
   }
   .can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:after {
	content: attr(data-checked);
   }
   .can-toggle label {
	-webkit-user-select: none;
	 -moz-user-select: none;
	  -ms-user-select: none;
		user-select: none;
	position: relative;
	display: flex;
	align-items: center;
   }
   .can-toggle label .can-toggle__label-text {
	flex: 1;
	padding-left: 32px;
   }
   .can-toggle label .can-toggle__switch {
	position: relative;
   }
   .can-toggle label .can-toggle__switch:before {
	content: attr(data-checked);
	position: absolute;
	top: 0;
	text-transform: uppercase;
	text-align: center;
   }
   .can-toggle label .can-toggle__switch:after {
	content: attr(data-unchecked);
	position: absolute;
	z-index: 5;
	text-transform: uppercase;
	text-align: center;
	background: white;
	transform: translate3d(0, 0, 0);
   }
   .can-toggle input[type=checkbox][disabled] ~ label {
	color: #f4516c;
   }
   .can-toggle input[type=checkbox]:focus ~ label .can-toggle__switch, .can-toggle input[type=checkbox]:hover ~ label .can-toggle__switch {
	background-color:#f4516c;
   }
   .can-toggle input[type=checkbox]:focus ~ label .can-toggle__switch:after, .can-toggle input[type=checkbox]:hover ~ label .can-toggle__switch:after {
	color: #f4516c;
   }
   .can-toggle input[type=checkbox]:hover ~ label {
	color: #f4516c;
   }
   .can-toggle input[type=checkbox]:checked ~ label:hover {
	color: #55bc49;
   }
   .can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch {
	background-color: #70c767;
   }
   .can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:after {
	color: #4fb743;
   }
   .can-toggle input[type=checkbox]:checked:focus ~ label .can-toggle__switch, .can-toggle input[type=checkbox]:checked:hover ~ label .can-toggle__switch {
	background-color: #5fc054;
   }
   .can-toggle input[type=checkbox]:checked:focus ~ label .can-toggle__switch:after, .can-toggle input[type=checkbox]:checked:hover ~ label .can-toggle__switch:after {
	color: #47a43d;
   }
   .can-toggle label .can-toggle__label-text {
	flex: 1;
   }
   .can-toggle label .can-toggle__switch {
	transition: background-color 0.3s cubic-bezier(0, 1, 0.5, 1);
	background: #f4516c;
   }
   .can-toggle label .can-toggle__switch:before {
	color: #fff;
   }
   .can-toggle label .can-toggle__switch:after {
	transition: transform 0.3s cubic-bezier(0, 1, 0.5, 1);
	color: #f4516c;
   }
   .can-toggle input[type=checkbox]:focus ~ label .can-toggle__switch:after, .can-toggle input[type=checkbox]:hover ~ label .can-toggle__switch:after {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
   }
   .can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:after {
	transform: translate3d(65px, 0, 0);
   }
   .can-toggle input[type=checkbox]:checked:focus ~ label .can-toggle__switch:after, .can-toggle input[type=checkbox]:checked:hover ~ label .can-toggle__switch:after {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
   }
   .can-toggle label {
	font-size: 14px;
   }
   .can-toggle label .can-toggle__switch {
	height: 36px;
	flex: 0 0 134px;
	border-radius: 4px;
   }
   .can-toggle label .can-toggle__switch:after {
	   top: 2px;
	   left: 2px;
	   border-radius: 2px;
	   width: 65px;
	   line-height: 32px;
	   font-size: 12px;
   }
   .can-toggle label .can-toggle__switch:hover:after {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
   }
   .can-toggle.can-toggle--size-small input[type=checkbox]:focus ~ label .can-toggle__switch:after, .can-toggle.can-toggle--size-small input[type=checkbox]:hover ~ label .can-toggle__switch:after {
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
   }
   .can-toggle.can-toggle--size-small input[type=checkbox]:checked ~ label .can-toggle__switch:after {
	transform: translate3d(52px, 0, 0);
   }
   .can-toggle.can-toggle--size-small input[type=checkbox]:checked:focus ~ label .can-toggle__switch:after, .can-toggle.can-toggle--size-small input[type=checkbox]:checked:hover ~ label .can-toggle__switch:after {
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
   }
   .can-toggle.can-toggle--size-small label {
	   font-size: 13px;
   }
   .can-toggle.can-toggle--size-small label .can-toggle__switch {
	   height: 22px;
	   flex: 0 0 106px;
	   border-radius: 2px;
	   cursor: pointer;
   }
   .can-toggle.can-toggle--size-small label .can-toggle__switch:before {
	   left: 52px;
	   font-size: 10px;
	   line-height: 22px;
	   width: 52px;
	   padding: 0 12px;
   }
   .can-toggle.can-toggle--size-small label .can-toggle__switch:after {
	   top: 1px;
	   left: 1px;
	   border-radius: 1px;
	   width: 52px;
	   line-height: 20px;
	   font-size: 10px;
   }
   .can-toggle.can-toggle--size-small label .can-toggle__switch:hover:after {
	   box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
   }