.fixed-top.fade:not(.show) {
	display: none;
}

.alert, .card, .btn, .input-group, .input-group-text, .form-control, .nav-pills .nav-link, .modal-content {
	border-radius: .2rem;
}

.btn.disabled, .btn:disabled {
	cursor: default;
	opacity: .35;
}

a, .btn, [onclick], [data-toggle], [data-dismiss] {
	cursor: pointer;
}

a[href=""], .stretched-link[href=""]::after, button.disabled {
	pointer-events: none;
}

a[href="javascript:void(0);"]:not([onclick]):not([data-toggle]):not([data-dismiss]):not(.dropdown-item),
.stretched-link[href="javascript:void(0);"]:not([onclick]):not([data-toggle]):not([data-dismiss])::after,
a.disabled {
	cursor: not-allowed;
}

article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
	background: transparent none center/cover no-repeat;
}

legend.required::after, label.required::after {
	content: "*";
	vertical-align: text-top;
	font-size: 90%;
	color: var(--danger);
}

fieldset fieldset.mb-5 {
	margin-bottom: 1rem !important;
}

fieldset fieldset legend {
	/* display: inline-block; */
	margin-bottom: .5rem;
	/* width: auto; */
	font-size: 1rem;
}

input[type="date"] {
	min-width: 10em;
}

input[data-type="price"] {
	text-align: right;
}

.form-control.dropdown-toggle {
	cursor: default;
}

.form-control.dropdown-toggle+.dropdown-menu {
	top: auto;
	width: 100%;
	max-height: 258px;
	margin: 0;
	border-radius: 0 0 2px 2px;
	overflow-x: hidden;
	overflow-y: auto;
	white-space: normal;
}

.form-control.dropdown-toggle+.dropdown-menu>.dropdown-item {
	padding: 0 1rem;
}

.form-control.custom-select-lg.dropdown-toggle+.dropdown-menu>.dropdown-item {
	font-size: 1.125rem;
}

.show>.form-control.dropdown-toggle {
	border-color: #80bdff;
	box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.dropdown-no-caret .dropdown-toggle::after {
	content: none;
}

.invalid-feedback+.input-group-append {
	display: none;
}

.form-group.is-invalid {
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgb(169, 68, 66, 0.6);
}

/* Typography */

.line-clamp-1, .line-clamp-2, .line-clamp-3, .line-clamp-4 {
	line-height: 1.25em;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.line-clamp-1 {
	height: 1.25em;
	-webkit-line-clamp: 1;
}

.line-clamp-2 {
	height: 2.50em;
	-webkit-line-clamp: 2;
}

.line-clamp-3 {
	height: 3.75em;
	-webkit-line-clamp: 3;
}

.line-clamp-4 {
	height: 5.00em;
	-webkit-line-clamp: 4;
}

.comma-after, .border-after {
	display: inline;
	padding: 0 .5rem 0 0;
}

.comma-after:last-child, .border-after:last-child {
	padding: 0;
}

.comma-after::after {
	content: ",";
}

.border-after::after {
	content: "|";
	padding-left: .5rem;
}

.comma-after:last-child::after, .border-after:last-child::after {
	content: none;
}

.comma-after::after, .border-after::after {
	color: var(--dark);
	font-weight: normal;
}

.comma-after.text-white::after, .border-after.text-white::after {
	color: var(--white);
}

.comma-after.text-dark:focus, .comma-after.text-dark:hover, .border-after.text-dark:focus, .border-after.text-dark:hover {
	color: var(--primary);
}

.comma-after.text-white:focus, .comma-after.text-white:hover, .border-after.text-white:focus, .border-after.text-white:hover {
	color: var(--primary);
}

/* Contents */

.article-btn-bookmark {
	margin: -6px 3px;
	padding: 0;
	width: 36px;
	height: 36px;
	border-radius: 50% !important;
}

.article-btn-bookmark::after {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	vertical-align: middle;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3e%3c/svg%3e");
}

.article-btn-bookmark.active::after, .article-btn-bookmark:active::after, .article-btn-bookmark:hover::after {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3e%3c/svg%3e");
}

@media (max-width: 575.98px) {
	.article-btn-bookmark {
		display: none;
	}
}

table th>label, table td>label {
	margin-bottom: 0;
}

table.text-center th, table.text-center td, table.align-middle th, table.align-middle td {
	vertical-align: middle;
}

.table-xs td, .table-xs th {
	padding: 0 .3rem;
}

.table-divided-by-colon tbody tr:hover {
	background: transparent;
}

.table-divided-by-colon td, .table-divided-by-colon th {
	padding: .1rem;
	border: 0;
}

.table-divided-by-border td:first-child:nth-last-child(2) {
	text-align: right;
}

.table-divided-by-border td:last-child:nth-child(2), .table-divided-by-colon td {
	text-align: left;
}

.table-divided-by-border td:first-child:nth-last-child(2)::after {
	content: "";
	padding-left: .75rem;
	margin-right: -.75rem;
	border-right: solid 1px var(--gray);
}

.table-divided-by-colon td:first-child:nth-last-child(2)::after {
	content: ":";
	padding-left: .75rem;
	padding-right: .65rem;
	float: right;
}

/* Sidebar */

#sidebar {
	z-index: 1019;
	position: fixed;
	top: 3.5rem;
	transition: margin .25s ease-out;
}

#sidebar.hide:not(:hover) {
	margin-left: -15rem;
}

#sidebar~section, #sidebar~form {
	width: 100%;
	padding-left: 15rem;
	transition: padding .25s ease-out;
}

#sidebar.hide~section, #sidebar.hide~form {
	padding-left: 0;
}

#sidebar .list-group {
	width: 15rem;
	transition: all .25s ease-out;
}

#sidebar .list-group .list-group {
	width: calc(100% - 1.25rem);
	margin-left: 1.25rem;
}

#sidebar .list-group-item {
	padding: 0;
}

#sidebar .list-group-item-action {
	position: relative;
	display: block;
	padding: .75rem 1.25rem;
}

#sidebar .list-group-item-action.active {
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
	color: var(--white) !important;
}

@media screen and (max-width: 767px) {
	#sidebar~section, #sidebar~form {
		padding-left: 0 !important;
	}
}

/* CKEditor */
.cke_editable {
	padding: 15px;
	font-size: 1rem;
}

.cke_editable p, .cke_published p {
	margin: 0;
}

.cke_published img {
	max-width: 100%;
}

/* DataTable */
table.dataTable.table-sm>thead>tr>th.sorting_disabled {
	padding-right: 0;
}

@media screen and (max-width: 767.98px) {
	.dataTables_wrapper .dataTables_filter,
	.dataTables_wrapper .dataTables_paginate,
	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_length {
		text-align: left !important;
	}

	.dataTables_wrapper .dataTables_paginate .pagination {
		-ms-flex-pack: start !important;
		justify-content: flex-start !important;
	}

	.table-responsive-lg>.table {
		min-width: 720px;
	}
}
