:root{
  --brand-color: #e6094d;
}
*{
  box-sizing: border-box;
}

#dt td.list-options {
  position: sticky;
  right: 0;
  background-color: #fff;
  z-index: 2;
}
#dt th:last-child {
  position: sticky;
  right: 0;
  background-color: #f8f9fa;
  z-index: 3;
}


body{
  margin: 0;
  font-family: Arial;
  line-height: 1.5em;
}
img{
  max-width: 100%;
  max-height: 100%;
}

/* Layout */
#layout{
  display: grid;
  grid-template-areas:
    "a a"
    "b c";
  grid-template-columns: max-content 1fr;
  grid-template-rows: max-content 1fr;
  height: 100vh;
}
#layout > #header {
  grid-area: a;
  width: 100%;
  height: 60px;
  background: linear-gradient(to right, #000, #111);
  border-bottom: 2px solid var(--brand-color);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#layout > #header > #header-user {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

/* Dropdown de linguagem */
.language-dropdown {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid var(--brand-color);
  color: var(--brand-color);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.lang-btn img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

.lang-btn:hover {
  background: var(--brand-color);
  color: #000;
}

.lang-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  min-width: 140px;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.lang-menu li {
  width: 100%;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eee;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  transition: background 0.3s;
}

.lang-menu a img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

.lang-menu a:hover {
  background: var(--brand-color);
  color: #000;
}

/* Mostrar o dropdown quando o botão OU o menu estão com hover */

.language-dropdown:focus-within .lang-menu {
  display: block;
}

/* Impede que desapareça instantaneamente */
.language-dropdown {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  min-width: 140px;
  display: none;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.language-dropdown:focus-within .lang-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Logout e nome do utilizador */
.user-info a {
  color: #ff7675;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.user-info a:hover {
  color: #ffb3b3;
}

#layout > #sidebar {
  grid-area: b;
  display: flex;
  flex-direction: column;
  width: 220px;
  height: 100%;
  background: linear-gradient(160deg, #20222a 0%, #15171c 100%);
  box-shadow: none;
  border-right: 1px solid #263267;
  transition: width 0.18s cubic-bezier(.99,.01,.37,1.09);
}

#layout > #main {
  grid-area: c;
  background: linear-gradient(120deg, #f7f9fc 50%, #e1e4f6 100%);
  padding: 28px;
  overflow: auto;
  border-radius: 14px 0 0 0;
  box-shadow: none;
}

#layout.simple > #main {
	display: grid;
	align-items: flex-start;
	justify-content: center;
}

#layout > #main > .card {
  max-width: 900px;
  box-shadow: none;
  border-radius: 14px;
  background: #fff;
  border: none;
}

/* Sidebar Items */
#layout > #sidebar .sidebar-item-group:not(:last-child) {
  border-bottom: 1px solid #283469;
}

#layout > #sidebar .sidebar-item a {
  display: block;
  color: #e3e7fa;
  font-weight: 500;
  padding: 10px 12px 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: -0.1px;
  transition: background 0.18s, color 0.18s;
  background: transparent;
}
#layout > #sidebar .sidebar-item a:hover {
  background: #2d377e;
  color: #fff;
}

#layout > #sidebar .sidebar-item-group > .sidebar-item {
  display: flex;
  align-items: center;
  color: #cfd3eb;
  height: 42px;
  padding: 8px;
  font-size: 1em;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: background 0.16s, color 0.18s;
  /* Prevent clickable state from being fully blue */
  user-select: none;
}
#layout > #sidebar .sidebar-item-group:not(.simple) > .sidebar-item::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border: 5px solid #3d5afe;
  margin-left: auto;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transition: transform 0.19s cubic-bezier(.98,.03,.46,.97);
}
#layout > #sidebar .sidebar-item-group.open > .sidebar-item::after {
  transform: rotate(90deg);
  transform-origin: 0px center;
}

/* Hover effect with icon animation */
#layout > #sidebar .sidebar-item-group > .sidebar-item:hover {
  background: #263267;
  color: #fff;
}
#layout > #sidebar .sidebar-item-group > .sidebar-item:hover i {
  color: #fff;
  transform: scale(1.2) rotate(10deg);
  transition: color 0.18s, transform 0.2s cubic-bezier(.51,2.12,.64,.82);
}
#layout > #sidebar .sidebar-item-group > .sidebar-item i {
  color: var(--brand-color, #3d5afe);
  margin-right: 10px;
  width: 20px;
  text-align: center;
  font-size: 1.12em;
  transition: color .15s, transform 0.22s cubic-bezier(.4,.7,.19,1.38);
}

/* Prevent active/clicked from becoming fully blue – keep icon and text readable */
#layout > #sidebar .sidebar-item-group.open > .sidebar-item {
  border-bottom: 1px solid #3d5afe30;
  background: #22244b; /* color more subtle than gradient blue */
  color: #fff;
}
#layout > #sidebar .sidebar-item-group.open > .sidebar-item i {
  color: #fff;
}
#layout > #sidebar .sidebar-item-group.open > .sidebar-item:active {
  background: #21243c;
  color: #fff;
}
#layout > #sidebar .sidebar-item-group.open > .sidebar-item:active i {
  color: #bfcfff;
  transform: scale(1);
}

/* SUB-ITEMS */
#layout > #sidebar .sidebar-item-group .sidebar-subitems {
  padding: 5px 0px 7px 6px;
  background: #20243a;
  border-radius: 0 0 7px 7px;
  margin-top: 2px;
  box-shadow: none;
  animation: fadeInSubitems 0.18s cubic-bezier(.39,.6,.55,1.13);
}
@keyframes fadeInSubitems {
  from { opacity: 0; transform: translateY(-5px);}
  to   { opacity: 1; transform: translateY(0);}
}

#layout > #sidebar .sidebar-item-group:not(.open) .sidebar-subitems {
  display: none;
}

#layout > #sidebar .sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 8px;
  border-top: 1px solid #2a3371;
}
#layout > #sidebar .sidebar-bottom .btn {
  width: 100%;
  border-radius: 4px;
  background: #3656e3;
  color: white;
  box-shadow: none;
  font-weight: 600;
  padding: 10px 0;
  font-size: 0.98em;
  border: none;
}

/* Compact/Small sidebar */
#layout.small-sidebar > #sidebar {
  width: 48px;
  box-shadow: none;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(162deg, #13121a 80%, #001144 100%);
  transition: width 0.15s cubic-bezier(.99,.07,.57,1.09);
}

#layout.small-sidebar > #sidebar .sidebar-item-group {
  border-color: transparent;
}

#layout.small-sidebar > #sidebar .sidebar-item {
  justify-content: center;
}

#layout.small-sidebar > #sidebar .sidebar-item > span,
#layout.small-sidebar > #sidebar .sidebar-item-group:not(.simple) .sidebar-item::after {
  display: none;
}

#layout.small-sidebar > #sidebar .sidebar-item-group.open {
  background: #375efb;
  box-shadow: none;
}

#layout.small-sidebar > #sidebar .sidebar-item-group.open > .sidebar-item {
  border-color: transparent;
  color: #fff;
  background: transparent;
}
#layout.small-sidebar > #sidebar .sidebar-item-group.open > .sidebar-item:hover {
  background: #3d5afe;
  color: #fff;
}
#layout.small-sidebar > #sidebar .sidebar-item-group > .sidebar-item i {
  margin-right: 0;
  font-size: 1.17em;
  transition: color .15s, transform 0.22s cubic-bezier(.4,.7,.19,1.38);
}
#layout.small-sidebar > #sidebar .sidebar-item-group > .sidebar-item:hover i {
  color: #fff;
  transform: scale(1.2) rotate(10deg);
}
#layout.small-sidebar > #sidebar .sidebar-item-group.open > .sidebar-item i {
  color: #fff;
  transform: none;
}
#layout.small-sidebar > #sidebar .sidebar-item-group.open > .sidebar-item:active i {
  color: #bfcfff;
  transform: scale(1);
}

#layout.small-sidebar > #sidebar .sidebar-item-group {
  position: relative;
}
#layout.small-sidebar > #sidebar .sidebar-item-group .sidebar-subitems {
  position: absolute;
  display: block;
  left: 100%; top: 0;
  z-index: 1000;
  white-space: nowrap;
  min-width: 120px;
  background: #21294b;
  border-radius: 0 7px 7px 7px;
  box-shadow: none;
  border: 1px solid #31458f30;
  margin-left: 7px;
  animation: fadeInSubitems 0.16s cubic-bezier(.29,.68,.51,1.04);
}
#layout.small-sidebar > #sidebar .sidebar-item-group:not(:hover) .sidebar-subitems {
  display: none;
}



/* Extra */
.card-footer{
  display: flex;
  /* justify-content: flex-end; */
  padding: 15px 25px;
  grid-gap: 5px;
}
.modal-footer{
  background: rgba(0,0,0,.03);
  padding: 10px 20px;
}
.modal-success .card-header{
  background-color: var(--bs-success) !important;
  color: white;
}
.modal-danger .card-header{
  background-color: var(--bs-danger) !important;
  color: white;
}
.select2{
  width: 100% !important;
}
.form-group{
	margin-bottom: 10px;
}

/* CLOSE BUTTON */
.close-button{
  font-size:30px;

  position:relative;
  display:inline-block;
  width:1em;
  height:1em;
}
.close-button::before,
.close-button::after{
  content:"";
  position:absolute;
  top:50%; left:50%;
  width:0.8em; height:0.05em;
  background: currentColor;
}
.close-button.close-button-white::before,
.close-button.close-button-white::after{
  background:black;
}
.close-button::before{
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-button::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-button.is-thick::before,
.close-button.is-thick::after{
  height:0.1em;
}

/* CARDS com largura a 100% */
#layout > #main > .card {
  width: 100%;           
  max-width: none;   
  box-shadow: 0 0 50px rgba(0,0,0,0.1), 0 0 10px rgba(0,0,0,0.1);
}

html .card{
	border: none;
}
html .card .card-header{
  display: flex;
  align-items: center;
  /* background: white; */
  padding: 15px 25px;
}
html .card .card-body{
  padding: 25px;
}
html .card .card-header h5{
  display: inline-block;
  margin-bottom: 4px;
}
html .card .card-header .breadcrumb-card{
  display: inline-flex;
  margin: 0;
  margin-left: 20px;
  padding: 0;
  font-size: 0.8em;
  background: none;
}
html .card .card-header .breadcrumb-card .breadcrumb-item + .breadcrumb-item::before {
  content: "•";
}

.card.with-badge > .card-header,
.card.with-close > .card-header,
.card.with-back > .card-header{
  display:flex;
  align-items: center;
}
.card.with-close > .card-header > .close-button{
  color:var(--n2-black);
  margin-left:auto;
  cursor:pointer;
  flex-shrink: 0;
}

html body [class*="btn-"]:disabled{
	background: #ccc;
  border-color: #ccc;
  color: #666;
}

.btn-vitae,
.btn-vitae:hover{
  display: inline-flex;
  align-items: center;
  /* padding: 10px; */
  color: white;
  background: #056839;
  /* font-weight: bold; */
}
.btn-vitae svg{
  margin-left: 5px;
}
.btn-vitae:focus{
  box-shadow: 0 0 0 .25rem #cbdb2a88;
}


#vitae-result{
  max-height: 60vh;
  overflow: auto;
}
.label-output{
  display: flex;
  gap: 15px;
  padding: 5px 15px;
}
.label-output:hover{
  background: #eee;
}
.label-output:not(:last-child){
  border-bottom: 1px solid #6666;
}
.label-output,
.label-output input{
  cursor: pointer;
}
.label-output span{
  white-space: pre-wrap;
}

i[option]{
  cursor: pointer;
}

.list-options{

}
.list-options > *{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	color: white;
	background: var(--bs-primary);
	text-decoration: none;
	cursor: pointer;
}
.list-options > *:hover{
	color: white;
	opacity: 0.7;
	text-decoration: none;
}
.list-options > .lo-success{
	background: var(--bs-success);
}
.list-options > .lo-danger{
	background: var(--bs-danger);
}


.info-box{
	position: relative;
	background: #fafafa;
  padding: 10px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
	border-top-left-radius: 0;
	margin-top: 25px;
}
.info-box:not(:first-child){
	margin-top: 50px;
}
.info-box::before{
	position: absolute;
	content: attr(info);
	display: flex;
  align-items: center;
  top: -25px;
  left: -1px;
  background: #fafafa;
  padding: 0px 10px;
  border-radius: 5px;
	height: 25px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
  border: 1px solid #ccc;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}


/* Button Login */

/* CSS */


/* CSS */


/* CSS */
.button-28 {
  appearance: none;
  background-color: transparent;
  border: 2px solid #1A1A1A;
  border-radius: 15px;
  box-sizing: border-box;
  color: #3B3B3B;
  cursor: pointer;
  display: inline-block;
  font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  min-height: 60px;
  min-width: 0;
  outline: none;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
  will-change: transform;
}

.button-28:disabled {
  pointer-events: none;
}

.button-28:hover {
  color: #fff;
  background-color: #1A1A1A;
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.button-28:active {
  box-shadow: none;
  transform: translateY(0);
}


  /* Modal extra largo para detalhes equipa */
  #modal-view-equipa-details .modal-dialog {
      max-width: 1200px !important;
      width: 95vw;
  }
  @media (max-width: 1400px) {
      #modal-view-equipa-details .modal-dialog {
          max-width: 98vw !important;
      }
  }
  /* Opcional: para garantir tabela mais legível em ecrãs médios */
  #modal-view-equipa-details .table-responsive {
      min-width: 900px;
  }


  .checkbox-wrapper-7 .tgl {
    display: none;
  }
  .checkbox-wrapper-7 .tgl,
  .checkbox-wrapper-7 .tgl:after,
  .checkbox-wrapper-7 .tgl:before,
  .checkbox-wrapper-7 .tgl *,
  .checkbox-wrapper-7 .tgl *:after,
  .checkbox-wrapper-7 .tgl *:before,
  .checkbox-wrapper-7 .tgl + .tgl-btn {
    box-sizing: border-box;
  }
  .checkbox-wrapper-7 .tgl::-moz-selection,
  .checkbox-wrapper-7 .tgl:after::-moz-selection,
  .checkbox-wrapper-7 .tgl:before::-moz-selection,
  .checkbox-wrapper-7 .tgl *::-moz-selection,
  .checkbox-wrapper-7 .tgl *:after::-moz-selection,
  .checkbox-wrapper-7 .tgl *:before::-moz-selection,
  .checkbox-wrapper-7 .tgl + .tgl-btn::-moz-selection,
  .checkbox-wrapper-7 .tgl::selection,
  .checkbox-wrapper-7 .tgl:after::selection,
  .checkbox-wrapper-7 .tgl:before::selection,
  .checkbox-wrapper-7 .tgl *::selection,
  .checkbox-wrapper-7 .tgl *:after::selection,
  .checkbox-wrapper-7 .tgl *:before::selection,
  .checkbox-wrapper-7 .tgl + .tgl-btn::selection {
    background: none;
  }
  .checkbox-wrapper-7 .tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  .checkbox-wrapper-7 .tgl + .tgl-btn:after,
  .checkbox-wrapper-7 .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
  }
  .checkbox-wrapper-7 .tgl + .tgl-btn:after {
    left: 0;
  }
  .checkbox-wrapper-7 .tgl + .tgl-btn:before {
    display: none;
  }
  .checkbox-wrapper-7 .tgl:checked + .tgl-btn:after {
    left: 50%;
  }

  .checkbox-wrapper-7 .tgl-ios + .tgl-btn {
    background: #fbfbfb;
    border-radius: 2em;
    padding: 2px;
    transition: all 0.4s ease;
    border: 1px solid #e8eae9;
  }
  .checkbox-wrapper-7 .tgl-ios + .tgl-btn:after {
    border-radius: 2em;
    background: #fbfbfb;
    transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.08);
  }
  .checkbox-wrapper-7 .tgl-ios + .tgl-btn:hover:after {
    will-change: padding;
  }
  .checkbox-wrapper-7 .tgl-ios + .tgl-btn:active {
    box-shadow: inset 0 0 0 2em #e8eae9;
  }
  .checkbox-wrapper-7 .tgl-ios + .tgl-btn:active:after {
    padding-right: 0.8em;
  }
  .checkbox-wrapper-7 .tgl-ios:checked + .tgl-btn {
    background: #86d993;
  }
  .checkbox-wrapper-7 .tgl-ios:checked + .tgl-btn:active {
    box-shadow: none;
  }
  .checkbox-wrapper-7 .tgl-ios:checked + .tgl-btn:active:after {
    margin-left: -0.8em;
  }

	@keyframes toastFadeInUp {
		0% {
			transform: translateY(-40px) scale(0.96);
			opacity: 0;
		}
		60% {
			transform: translateY(5px) scale(1.06);
			opacity: 1;
		}
		100% {
			transform: translateY(0) scale(1);
			opacity: 1;
		}
	}
	@keyframes toastFadeOutUp {
		0% {
			transform: translateY(0) scale(1);
			opacity: 1;
		}
		40% {
			transform: translateY(-10px) scale(0.98);
			opacity: 0.9;
		}
		100% {
			transform: translateY(-30px) scale(0.95);
			opacity: 0;
		}
	}
	.toast-notification-discreet {
		position: fixed;
		top: 50px;
		right: 20px;
		z-index: 1050;
		min-width: 260px;
		max-width: 410px;
		background: rgba(60, 60, 70, 0.97);
		color: #f1f3f7;
		border-radius: 10px;
		box-shadow: 0 2px 9px rgba(0,0,0,0.11), 0 1.5px 8px rgba(61,90,254,0.09);
		display: flex;
		align-items: flex-start;
		padding: 16px 22px 16px 16px;
		opacity: 0;
		pointer-events: none;
		font-size: 17px;
		transition: opacity 0.24s, box-shadow 0.18s;
		border-left: 5px solid #3D5AFE;
		backdrop-filter: blur(2.8px);
	}
	.toast-notification-discreet.toast-slide-in {
		animation: toastFadeInUp 0.4s cubic-bezier(.51,.08,.77,.64) forwards;
		opacity: 1 !important;
		pointer-events: all;
	}
	.toast-notification-discreet.toast-slide-out {
		animation: toastFadeOutUp 0.36s cubic-bezier(.51,.08,.77,.64) forwards;
		opacity: 0 !important;
		pointer-events: none;
	}
	.toast-notification-discreet .toast-close {
		background: transparent;
		border: none;
		color: #babec3;
		font-size: 22px;
		margin-left: auto;
		margin-top: -7px;
		cursor: pointer;
		transition: color 0.2s;
	}
	.toast-notification-discreet .toast-close:hover {
		color: #3D5AFE;
	}
	.toast-notification-discreet .toast-img {
		width: 34px;
		height: 34px;
		object-fit: contain;
		margin-right: 12px;
		margin-top: 2px;
		opacity: 0.75;
		display: none;
	}
	.toast-notification-discreet .toast-content {
		flex: 1 1 auto;
	}
	.toast-notification-discreet ul {
		margin-left: 1.1em;
		padding-left: 0;
		margin-bottom: 0.7em;
		font-size: 16px;
	}
	.toast-notification-discreet ul li {
		margin-bottom: 3px;
		list-style-type: disc;
	}
	.toast-notification-discreet .btn-round-lg {
		background: #3D5AFE;
		color: #fff;
		border: none;
		margin-top: 9px;
		font-size: 16px;
		padding: 4px 16px;
		border-radius: 30px;
		box-shadow: none;
		transition: background 0.16s;
	}
	.toast-notification-discreet .btn-round-lg:hover {
		background: #3451c7;
		text-decoration: none;
		color: #fff;
	}
	@media (max-width: 600px) {
		.toast-notification-discreet {
			top: 7px;
			right: 7px;
			min-width: 180px;
			max-width: 98vw;
			padding: 12px;
			font-size: 15px;
		}
		.toast-notification-discreet ul { font-size: 14px;}
		.toast-notification-discreet .btn-round-lg { font-size: 14px; padding: 3px 10px;}
	}




  .checkbox-wrapper-10 .tgl {
    display: none;
  }
  .checkbox-wrapper-10 .tgl,
  .checkbox-wrapper-10 .tgl:after,
  .checkbox-wrapper-10 .tgl:before,
  .checkbox-wrapper-10 .tgl *,
  .checkbox-wrapper-10 .tgl *:after,
  .checkbox-wrapper-10 .tgl *:before,
  .checkbox-wrapper-10 .tgl + .tgl-btn {
    box-sizing: border-box;
  }
  .checkbox-wrapper-10 .tgl::-moz-selection,
  .checkbox-wrapper-10 .tgl:after::-moz-selection,
  .checkbox-wrapper-10 .tgl:before::-moz-selection,
  .checkbox-wrapper-10 .tgl *::-moz-selection,
  .checkbox-wrapper-10 .tgl *:after::-moz-selection,
  .checkbox-wrapper-10 .tgl *:before::-moz-selection,
  .checkbox-wrapper-10 .tgl + .tgl-btn::-moz-selection,
  .checkbox-wrapper-10 .tgl::selection,
  .checkbox-wrapper-10 .tgl:after::selection,
  .checkbox-wrapper-10 .tgl:before::selection,
  .checkbox-wrapper-10 .tgl *::selection,
  .checkbox-wrapper-10 .tgl *:after::selection,
  .checkbox-wrapper-10 .tgl *:before::selection,
  .checkbox-wrapper-10 .tgl + .tgl-btn::selection {
    background: none;
  }
  .checkbox-wrapper-10 .tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 5em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  .checkbox-wrapper-10 .tgl + .tgl-btn:after,
  .checkbox-wrapper-10 .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
  }
  .checkbox-wrapper-10 .tgl + .tgl-btn:after {
    left: 0;
  }
  .checkbox-wrapper-10 .tgl + .tgl-btn:before {
    display: none;
  }
  .checkbox-wrapper-10 .tgl:checked + .tgl-btn:after {
    left: 50%;
  }

  .checkbox-wrapper-10 .tgl-flip + .tgl-btn {
    padding: 2px;
    transition: all 0.2s ease;
    font-family: sans-serif;
    perspective: 100px;
  }
  .checkbox-wrapper-10 .tgl-flip + .tgl-btn:after,
  .checkbox-wrapper-10 .tgl-flip + .tgl-btn:before {
    display: inline-block;
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
    position: absolute;
    line-height: 2em;
    font-weight: bold;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    border-radius: 4px;
  }
  .checkbox-wrapper-10 .tgl-flip + .tgl-btn:after {
    content: attr(data-tg-on);
    background: #02C66F;
    transform: rotateY(-180deg);
  }
  .checkbox-wrapper-10 .tgl-flip + .tgl-btn:before {
    background: #FF3A19;
    content: attr(data-tg-off);
  }
  .checkbox-wrapper-10 .tgl-flip + .tgl-btn:active:before {
    transform: rotateY(-20deg);
  }
  .checkbox-wrapper-10 .tgl-flip:checked + .tgl-btn:before {
    transform: rotateY(180deg);
  }
  .checkbox-wrapper-10 .tgl-flip:checked + .tgl-btn:after {
    transform: rotateY(0);
    left: 0;
    background: #7FC6A6;
  }
  .checkbox-wrapper-10 .tgl-flip:checked + .tgl-btn:active:after {
    transform: rotateY(20deg);
  }

