/**
 * VERSION 1.00
 * LAST CHANGED: 16 April 2026
 *
 * CHANGES:
 * -> 1.00, 16/04 2026: @assistant: initial commit
 */
.udtraeksvaelger-root {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}

#extraction-page-wrapper
{
	margin-top: 12px;
	width: 100%;
	max-width: 1200px;
	min-height: 85vh;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	padding: 0 12px;
}

#extraction-wrapper{
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 24px;
	min-height: 78vh;
}

/* White cards, border + shadow only */
.udtraek-surface {
	background-color: #fff;
}

.udtraek-nav#extraction-selection-wrapper,
#extraction-selection-wrapper.udtraek-nav {
	width: min(280px, 100%);
	max-width: 100%;
	flex: 0 1 auto;
	min-width: 0;
	box-sizing: border-box;
	padding: 20px 18px;
	border-radius: 16px;
	max-height: none;
	overflow-x: hidden;
	overflow-y: visible;
	display: flex;
	flex-direction: column;
}

.udtraek-section-label {
	margin: 0 0 6px 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
}

.udtraek-section-title {
	margin: 0 0 8px 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.udtraek-nav-lead,
.udtraek-main-lead {
	margin: 0 0 18px 0;
	font-size: 13px;
	line-height: 1.45;
}

.udtraek-nav-chips {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Nav chips: align with my-button (inline-block+line-height); use flex for full-width without breaking centering */
.udtraek-nav-chips .extraction-selectors.udtraek-nav-chip.my-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
	user-select: none;
	caret-color: transparent;
}

.udtraek-nav-chips .extraction-selectors.udtraek-nav-chip .my-button-text {
	font-size: 15px;
	font-weight: 400;
}

/* Main panel */
.udtraek-main#extraction-info-wrapper,
#extraction-info-wrapper.udtraek-main {
	flex: 1 1 420px;
	width: auto;
	min-width: 0;
	border-radius: 16px;
	padding: 24px 28px;
	box-sizing: border-box;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.07);
	border-left: none;
}

.udtraek-main-header {
	margin-bottom: 8px;
}

.udtraek-info-list {
	margin-top: 8px;
}

/* AJAX / legacy: plain selectors in info panel (not nav chips) */
#extraction-info-wrapper .extraction-selectors:not(.udtraek-nav-chip) {
	padding: 0;
	border: 1px solid;
	border-radius: 12px;
	cursor: pointer;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#extraction-info-wrapper .extraction-selectors:not(.udtraek-nav-chip):hover,
#extraction-info-wrapper .extraction-selectors:not(.udtraek-nav-chip):focus {
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
	outline: none;
}

#extraction-info-wrapper .extraction-selectors {
	border-color: var(--udtraek-selector-border, currentColor);
}

/* AJAX visual setup */
.udtraek-visual-setup {
	margin: 0;
	padding: 0;
}

.udtraek-visual-title {
	margin: 0 0 16px 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.udtraek-visual-lead {
	margin: 0 0 12px 0;
	font-size: 14px;
	line-height: 1.55;
	font-weight: 400;
}

.info-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
}

.info-item:not(:last-child) {
	border-bottom: 1px solid var(--udtraek-separator, rgba(0, 0, 0, 0.08));
}

.udtraek-info-icon-well {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: 12px;
	flex-shrink: 0;
	background-color: #f4f4f5;
}

.info-icon {
	font-size: 17px;
	line-height: 1;
}

.info-text {
	font-size: 14px;
	line-height: 1.55;
}

.info-text strong {
	font-weight: 700;
}

/* Legacy: prefer my-button from PHP */
.extraction-download-button{
	width: 150px;
	max-width: 100%;
	padding: 10px 14px;
	box-sizing: border-box;
	text-align: center;
	cursor: pointer;
	margin-top: 15px;
	border-radius: 10px;
}

@media screen and (max-width: 900px) {
	#extraction-wrapper {
		flex-direction: column;
	}
	.udtraek-nav#extraction-selection-wrapper,
	#extraction-selection-wrapper.udtraek-nav {
		width: 100%;
		max-width: none;
	}
}
