/* Styles for the vanilla-JS replacements of Select2, Fancybox, DataTables, bootstrap-tagsinput, Ion.RangeSlider */

/* Select dropdown */
.vs-dropdown { position: relative; display: block; width: 100%; box-sizing: border-box; }
.vs-dropdown .vs-native { position: absolute; opacity: 0; pointer-events: none; height: 1px; width: 1px; }
.vs-dropdown .vs-toggle {
	display: flex; align-items: center; justify-content: space-between;
	border: 1px solid #e2e2e2; border-radius: 5px; padding: 10px 15px;
	cursor: pointer; background: #fff; font-size: 14px; min-height: 45px;
	width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs-dropdown .vs-clear { margin-left: 8px; cursor: pointer; color: #999; flex-shrink: 0; }
.vs-dropdown .vs-panel {
	display: none; position: absolute; z-index: 20; top: 100%; left: 0;
	width: max-content; min-width: 100%; max-width: 320px;
	background: #fff; border: 1px solid #e2e2e2; border-radius: 5px; margin-top: 4px;
	max-height: 260px; overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,.08);
	box-sizing: border-box;
}
.vs-dropdown.open .vs-panel { display: block; }
.vs-dropdown .vs-search { width: 100%; border: none; border-bottom: 1px solid #eee; padding: 8px 12px; outline: none; }
.vs-dropdown .vs-list { list-style: none; margin: 0; padding: 4px 0; }
.vs-dropdown .vs-option { padding: 8px 12px; cursor: pointer; }
.vs-dropdown .vs-option:hover, .vs-dropdown .vs-option.active { background: #f5f5f5; }

/* Lightbox */
.vlb-overlay {
	display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9);
	z-index: 9999; align-items: center; justify-content: center;
}
.vlb-overlay.open { display: flex; }
.vlb-content { max-width: 90vw; max-height: 85vh; }
.vlb-img { max-width: 90vw; max-height: 85vh; display: block; margin: 0 auto; }
.vlb-close, .vlb-prev, .vlb-next {
	position: absolute; background: transparent; border: none; color: #fff;
	font-size: 32px; cursor: pointer; line-height: 1;
}
.vlb-close { top: 20px; right: 30px; }
.vlb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.vlb-next { right: 20px; top: 50%; transform: translateY(-50%); }
body.vlb-locked { overflow: hidden; }

/* Data table */
.dt-search { margin-bottom: 12px; max-width: 260px; }
.dt-pager { display: flex; gap: 6px; margin-top: 12px; }
.dt-page-btn { border: 1px solid #e2e2e2; background: #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.dt-page-btn.active { background: #333; color: #fff; }

/* Tags input */
.vti-wrapper {
	border: 1px solid #e2e2e2; border-radius: 5px; padding: 6px; cursor: text;
}
.vti-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vti-chip {
	background: #f0f0f0; border-radius: 4px; padding: 4px 8px; font-size: 13px;
	display: inline-flex; align-items: center; gap: 6px;
}
.vti-remove { cursor: pointer; color: #999; text-decoration: none; }
.vti-input { border: none; outline: none; flex: 1; min-width: 120px; padding: 4px; }

/* Range slider */
.vrs-wrapper { position: relative; padding-top: 24px; }
.vrs-range { width: 100%; }
.vrs-bubble {
	position: absolute; top: 0; transform: translateX(-50%);
	font-size: 12px; background: #333; color: #fff; padding: 1px 6px; border-radius: 3px;
}
.vrs-grid { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-top: 4px; }
