/* Document Shortcodes Styles */
.docs-wrap {
}

.docs-filter {
	gap: 5px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.year-chip {
	font-weight: 600
}

.year-chip.active, .year-chip:hover, .docs-pagination .current {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

.docs-list {
	display: block;
}

.docs-row {
	display: flex;
	align-items: center;
	gap: 16px;
	border-radius: 5px;
	padding: 12px 14px;
	margin: 10px 0;
	background: #fff;
	flex-wrap: wrap;
}

.docs-year {
	flex: 0 0 68px;
	font-weight: 700
}

.docs-year .pill {
    padding: 6px 10px;
    border-radius: 5px;
    background: var(--fs-color-secondary);
}

.docs-title {
	flex: 1 1 auto;
	font-weight: 600
}

.docs-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end
}

.chip {
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #fff;
    font-weight: 600;
    min-width: 100px;
}

.cov-actions .chip {
    background: initial;
    min-width: max-content;
}

.chip.disabled {
	opacity: .5;
	pointer-events: none;
}

.chip .flag {
    width: 18px;
    height: 18px;
    background: center center no-repeat;
}

.docs-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin: 18px 0
}

.docs-pagination a,
.docs-pagination span {

}

/* Coverage Overview (dark list) */
.cov-row {
	display: flex;
	align-items: center;
	gap: 18px;
	border: 1px solid #2a2f37;
	border-radius: 12px;
	padding: 14px 16px;
	margin: 12px 0;
	background: #0f1114;
	color: #e8eaee;
	flex-wrap: wrap;
}

.cov-date {
	flex: 0 0 120px;
	font-weight: 800
}

.cov-title {
	flex: 1 1 auto;
	font-weight: 600;
	opacity: .95
}

.cov-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
	align-items: center
}

/* Loader during AJAX */
.docs-wrap[data-ajax="1"].loading .docs-ajax-target {
	position: relative;
	opacity: .6
}

.docs-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none
}

.docs-loader:after {
	content: "";
	width: 28px;
	height: 28px;
	border: 3px solid #d1d5db;
	border-top-color: #111;
	border-radius: 50%;
	animation: docspin .8s linear infinite
}

@keyframes docspin {
	to {
		transform: rotate(360deg)
	}
}

@media (max-width: 549px) { 
	.docs-actions {
		flex: 0 0 100%;
	}
	.chip {
		flex: 1 1 auto;
	}
}
