#app_drawer_underlay {
	position: fixed;
	height: 100%;
	width: 100%;
	background: var(--underlay);
	z-index: 40;
}

#app_drawer {
	display: flex;
	height: 100%;
	width: 80%;
	max-width: 396px;
	padding: 16px;
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
	z-index: 50;
	transition-duration: 300ms;
	background: var(--drawer-bg);
}

#modal_wrapper {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation-name: fadeIn;
	animation-duration: 150ms;
	animation-timing-function: ease;
	width: 100%;
}

#modal_wrapper.closing {
	animation-name: fadeOut;
	animation-duration: 150ms;
	animation-timing-function: ease;
}

#modal_wrapper.closing > #modal {
	animation-name: zoomOut;
	animation-duration: 150ms;
	animation-timing-function: ease;
}

#modal_wrapper .underlay {
	position: fixed;
	background: var(--underlay);
	height: 100%;
	width: 100%;
	z-index: -1;
}

#modal_wrapper #modal {
	margin: 32px var(--default-spacing);
	width: calc(100% - var(--default-spacing));
	max-width: 480px;
	overflow-x: hidden;
	overflow-y: auto;
	z-index: 1000;
	max-height: calc(100% - 6rem);
}

#modal-content header {
	margin-bottom: 8px;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
}

.banner {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #ffffff20;
  text-align: center;
}

.banner.success {
  background: var(--success-bg);
}

.banner.danger {
  background: var(--danger-bg);
}

.pill {
	display: inline-block;
	padding: 2px 5px;
	font-weight: 900;
	font-size: 0.75rem;
	border-radius: 5px;
	border: var(--pill-border);
}

.pill.admin {
	background: var(--admin-color);
	color: var(--foreground);
}

.pill.pro {
	background: var(--pro-color);
	color: var(--foreground);
}

.table-responsive {
	display: block;
	width: 100%;
	overflow-x: auto;
}

.flag {
	border: var(--default-border);
}

img.avatar {
	border-radius: 100%;
	border: var(--default-border);
}

table {
	max-width: 100%;
	width: 100%;
	border-collapse: collapse;
	cursor: default;
}

table thead {
	border-bottom: 2px solid var(--default-border-color);
}

table tbody tr:hover {
	transition: var(--transition);
	background: var(--table-row-hover);
}

table tbody tr td,
table thead tr th {
	text-align: left;
	padding: 8px 16px;
}

table tbody tr td {
	border-bottom: var(--default-border);
}

table caption {
	padding: 4px 0;
	caption-side: bottom;
	text-align: right;
	font-size: 0.9rem;
	color: #555;
}

.wiggle {
	animation: wiggle 0.6s ease-in-out forwards;
	animation-delay: 2.5s;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes zoomIn {
	0% {
		transform: scale(0.9);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes zoomOut {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(0.9);
	}
}

@keyframes wiggle {
	0% {
		transform: rotate(0deg);
	}
	15% {
		transform: rotate(3deg);
	}
	30% {
		transform: rotate(-3deg);
	}
	45% {
		transform: rotate(2deg);
	}
	60% {
		transform: rotate(-2deg);
	}
	75% {
		transform: rotate(1deg);
	}
	100% {
		transform: rotate(0deg);
	}
}
