/* Quickview button */
.lm-quickview-btn {
    margin-top: 10px;
    transition: all 0.2s;
}
.lm-quickview-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}
/* Popup chung – dùng cho AJAX popup */
.lm-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.lm-popup.is-visible {
    display: flex;
}
.lm-popup__content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    animation: fadeInUp 0.2s ease;
}
.lm-popup__header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lm-popup__header h3 {
    margin: 0;
    font-size: 1.25rem;
}
.lm-popup__close {
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    color: #999;
    transition: color 0.2s;
}
.lm-popup__close:hover {
    color: #333;
}
.lm-popup__body {
    padding: 20px;
    max-height: calc(100vh - 280px);
    overflow: auto;
}
.lm-popup__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.lm-popup__title .icon {
    font-size: 32px;
}
.lm-popup__title h2 {
    margin: 0;
    font-size: 1.5rem;
}
.lm-popup__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 16px;
}
.lm-popup__date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 12px;
}
.lm-popup__date > div{
    display: flex;
    align-items: center;
}
.lm-popup__format {
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}
.lm-popup__badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.lm-popup__footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lm-popup__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}
.lm-popup__btn--download {
    background: linear-gradient(135deg, #1f2937, #000);
    color: #fff;
}
.lm-popup__btn--close {
    background: transparent;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-filters .document-filter-form {
    margin-bottom: 0px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}
.document-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.filter-group {
    flex: 1;
    min-width: 150px;
}
.document-filter-form .filter-group.col {
    padding-bottom: 0;
}
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.document-filter-form button {
    margin-bottom: 0;
}
.has-icon-search label.flex.flex-row-center {
    position: absolute;
    top: 12px;
    left: 34px;
}
.has-icon-search input[type="text"] {
    padding-left: 48px;
}
@media (min-width: 768px) {
	
	.fbpp-filter__group label {
		font-weight: 300;
		display: flex;
		gap: 12px;
		vertical-align: middle;
		align-items: center;
		color: #6C6C6A;
		margin-bottom: 1rem;
		position: absolute;
		left: 24px;
		top: 9px;
	}
	.filter-group select {
	    width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        text-align: right;
        border-radius: 4px;
        padding-left: 8px;
        padding-right: 32px;
	}

	.fbpp-filter__group {
		display: flex;
		flex-wrap: nowrap;
		gap: 5px;
		width: calc(50% - 8px);
		flex-direction: row;
		align-items: center;
	}
}
@media (max-width: 767px) {
    .document-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
}