/* Markedsføring Dashboard – styles for [dmf_oversigt] */

.dmfo-dashboard {
	--dmfo-surface: #fcfcfb;
	--dmfo-page: #f9f9f7;
	--dmfo-ink: #0b0b0b;
	--dmfo-ink-secondary: #52514e;
	--dmfo-ink-muted: #898781;
	--dmfo-border: rgba(11, 11, 11, 0.1);
	--dmfo-accent: #2a78d6;

	/* Årshjul-typefarver (kategorisk, fast rækkefølge) */
	--dmfo-type-kampagne: #2a78d6;
	--dmfo-type-kursus: #eb6834;
	--dmfo-type-moede: #1baf7a;
	--dmfo-type-andet: #eda100;

	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 24px;
	align-items: start;
	color: var(--dmfo-ink);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
	.dmfo-dashboard:not([data-theme="light"]) {
		--dmfo-surface: #1a1a19;
		--dmfo-page: #0d0d0d;
		--dmfo-ink: #ffffff;
		--dmfo-ink-secondary: #c3c2b7;
		--dmfo-ink-muted: #898781;
		--dmfo-border: rgba(255, 255, 255, 0.1);
		--dmfo-accent: #3987e5;

		--dmfo-type-kampagne: #3987e5;
		--dmfo-type-kursus: #d95926;
		--dmfo-type-moede: #199e70;
		--dmfo-type-andet: #c98500;
	}
}

@media (max-width: 860px) {
	.dmfo-dashboard {
		grid-template-columns: 1fr;
	}
}

.dmfo-panel {
	background: var(--dmfo-surface);
	border: 1px solid var(--dmfo-border);
	border-radius: 12px;
	padding: 20px 22px 24px;
}

.dmfo-panel__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: var(--dmfo-ink);
}

.dmfo-notice,
.dmfo-empty {
	color: var(--dmfo-ink-secondary);
	font-size: 14px;
}

/* Årshjul */

.dmfo-wheel-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.dmfo-wheel {
	width: 100%;
	max-width: 340px;
	height: auto;
}

.dmfo-wheel__ring {
	fill: none;
	stroke: var(--dmfo-border);
	stroke-width: 1;
}

.dmfo-wheel__tick {
	stroke: var(--dmfo-ink-muted);
	stroke-width: 1;
}

.dmfo-wheel__month-label {
	fill: var(--dmfo-ink-secondary);
	font-size: 11px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.dmfo-wheel__month-label--current {
	fill: var(--dmfo-ink);
	font-weight: 700;
}

.dmfo-wheel__today-line {
	stroke: var(--dmfo-ink-muted);
	stroke-width: 1;
	stroke-dasharray: 2 3;
}

.dmfo-wheel__more {
	fill: var(--dmfo-ink-muted);
	font-size: 10px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.dmfo-wheel__dot {
	stroke: var(--dmfo-surface);
	stroke-width: 1.5;
}

.dmfo-wheel__dot--kampagne {
	fill: var(--dmfo-type-kampagne);
}

.dmfo-wheel__dot--kursus {
	fill: var(--dmfo-type-kursus);
}

.dmfo-wheel__dot--moede {
	fill: var(--dmfo-type-moede);
}

.dmfo-wheel__dot--andet {
	fill: var(--dmfo-type-andet);
}

.dmfo-legend {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 4px 0 14px;
	padding: 0;
	justify-content: center;
}

.dmfo-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--dmfo-ink-secondary);
}

.dmfo-legend__swatch {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.dmfo-legend__swatch--kampagne {
	background: var(--dmfo-type-kampagne);
}

.dmfo-legend__swatch--kursus {
	background: var(--dmfo-type-kursus);
}

.dmfo-legend__swatch--moede {
	background: var(--dmfo-type-moede);
}

.dmfo-legend__swatch--andet {
	background: var(--dmfo-type-andet);
}

.dmfo-wheel-manage {
	text-align: center;
	margin: 10px 0 0;
	font-size: 13px;
}

.dmfo-wheel-manage a {
	color: var(--dmfo-accent);
	text-decoration: none;
}

.dmfo-wheel-manage a:hover {
	text-decoration: underline;
}

/* Årsvælger */

.dmfo-year-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--dmfo-border);
	padding-bottom: 0;
}

.dmfo-year-tab {
	appearance: none;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 6px 4px 10px;
	margin-bottom: -1px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dmfo-ink-muted);
	cursor: pointer;
	font-family: inherit;
}

.dmfo-year-tab:hover {
	color: var(--dmfo-ink-secondary);
}

.dmfo-year-tab.is-active {
	color: var(--dmfo-ink);
	border-bottom-color: var(--dmfo-accent);
}

/* Kursus/konference-liste */

.dmfo-item-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: none;
	flex-direction: column;
}

.dmfo-item-list.is-active {
	display: flex;
}

.dmfo-item-list__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--dmfo-border);
}

.dmfo-item-list__row:first-child {
	border-top: none;
}

.dmfo-item-list__date {
	flex: 0 0 auto;
	min-width: 96px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dmfo-ink-secondary);
	font-variant-numeric: tabular-nums;
}

.dmfo-item-list__title {
	color: var(--dmfo-accent);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

a.dmfo-item-list__title:hover {
	text-decoration: underline;
}

/* Looker Studio (nested i Kurser & konferencer) */

.dmfo-looker {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--dmfo-border);
}

.dmfo-looker__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--dmfo-ink-secondary);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.dmfo-looker-frame-wrap {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--dmfo-border);
}

.dmfo-looker-frame {
	width: 100%;
	display: block;
	border: 0;
}

.dmfo-looker-note {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--dmfo-ink-muted);
}

/* Skjult, tilgængelig tabelvisning (screen-reader-text følger WP's standardklasse,
   men defineres her som fallback hvis temaet ikke selv leverer den). */
.dmfo-wheel-table.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
