/* Anbudsoversikt – helhetskontroll.no. Prefiks: hkan-. Farger fra designmanualen v1.3. */
.hkan-app {
	--hkan-navy: #1a3c5e;
	--hkan-navy-dark: #0d2a42;
	--hkan-gold: #b8860b;
	--hkan-gold-light: #fdf6e3;
	--hkan-bg: #f4f7f9;
	--hkan-line: #dde3e8;
	--hkan-text: #1f2a33;
	--hkan-muted: #5a6b7a;
	--hkan-red: #c0392b;
	--hkan-green: #1a7a4a;
	font-family: Arial, Helvetica, Verdana, sans-serif;
	color: var(--hkan-text);
	font-size: 15px;
	line-height: 1.5;
	max-width: 1100px;
	margin: 0 auto;
}
.hkan-app *, .hkan-app *::before, .hkan-app *::after { box-sizing: border-box; }
.hkan-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hkan-app [hidden] { display: none !important; }

/* Topplinje */
.hkan-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--hkan-muted); margin: 0 0 14px; }
.hkan-btn-link { color: var(--hkan-navy); font-weight: bold; text-decoration: none; border-bottom: 1px solid var(--hkan-gold); }
.hkan-btn-link:hover { color: var(--hkan-gold); }
.hkan-running { color: var(--hkan-gold); font-weight: bold; }
.hkan-notice { background: var(--hkan-gold-light); border-left: 4px solid var(--hkan-gold); padding: 10px 14px; margin: 0 0 14px; font-size: 14px; border-radius: 0 4px 4px 0; }

/* Faner */
.hkan-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--hkan-navy); margin: 0 0 18px; }
.hkan-app button.hkan-tab, .hkan-app button.hkan-tab:hover, .hkan-app button.hkan-tab:focus {
	appearance: none; background: var(--hkan-bg) !important; color: var(--hkan-navy) !important; border: 0 !important; border-radius: 6px 6px 0 0 !important;
	padding: 10px 18px !important; font-family: inherit !important; font-size: 15px !important; font-weight: bold !important; line-height: 1.3 !important;
	text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; min-height: 0; cursor: pointer; margin: 0;
}
.hkan-app button.hkan-tab:hover { background: #e6ecf1 !important; }
.hkan-app button.hkan-tab.is-active, .hkan-app button.hkan-tab.is-active:hover, .hkan-app button.hkan-tab.is-active:focus { background: var(--hkan-navy) !important; color: #fff !important; }
.hkan-tab:focus-visible, .hkan-chip:focus-visible, .hkan-app a:focus-visible, .hkan-app select:focus-visible, .hkan-app input:focus-visible { outline: 2px solid var(--hkan-gold); outline-offset: 2px; }
.hkan-count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: rgba(184, 134, 11, .18); font-size: 12px; text-align: center; }
.hkan-tab.is-active .hkan-count { background: var(--hkan-gold); color: #fff; }

/* Filtre */
.hkan-filters { background: var(--hkan-bg); border-radius: 6px; padding: 14px 16px; margin: 0 0 12px; }
.hkan-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.hkan-filter-row + .hkan-filter-row { margin-top: 10px; }
.hkan-filter-label { font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; color: var(--hkan-muted); min-width: 62px; }
.hkan-app button.hkan-chip, .hkan-app button.hkan-chip:hover, .hkan-app button.hkan-chip:focus {
	appearance: none; border: 1px solid var(--hkan-line) !important; background: #fff !important; color: var(--hkan-navy) !important;
	border-radius: 16px !important; padding: 5px 12px !important; font-family: inherit !important; font-size: 13px !important; font-weight: normal !important;
	line-height: 1.3 !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; min-height: 0; margin: 0; cursor: pointer;
}
.hkan-app button.hkan-chip:hover { border-color: var(--hkan-navy) !important; }
.hkan-app button.hkan-chip.is-active, .hkan-app button.hkan-chip.is-active:hover, .hkan-app button.hkan-chip.is-active:focus { background: var(--hkan-navy) !important; border-color: var(--hkan-navy) !important; color: #fff !important; }
.hkan-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; margin-right: auto; }
.hkan-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hkan-muted); }
.hkan-name input { border: 1px solid var(--hkan-line); border-radius: 4px; padding: 5px 8px; font: inherit; font-size: 14px; width: 170px; }
.hkan-name input.hkan-attention { border-color: var(--hkan-red); box-shadow: 0 0 0 2px rgba(192, 57, 43, .15); }

.hkan-result-count { font-size: 13px; color: var(--hkan-muted); margin: 0 0 10px; }

/* Kort */
.hkan-list { display: grid; gap: 12px; }
.hkan-card { background: #fff; border: 1px solid var(--hkan-line); border-left: 4px solid var(--hkan-navy); border-radius: 6px; padding: 14px 18px; }
.hkan-card.hkan-st-favoritt { border-left-color: var(--hkan-gold); }
.hkan-card.hkan-st-sendt { border-left-color: var(--hkan-navy-dark); background: #fbfcfd; }
.hkan-card.hkan-st-vunnet { border-left-color: var(--hkan-green); }
.hkan-card.hkan-st-tapt { border-left-color: #9aa5ae; }
.hkan-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.hkan-tag { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .4px; color: var(--hkan-navy); background: var(--hkan-bg); border-radius: 3px; padding: 2px 8px; }
.hkan-tag-alt { color: #7a5a07; background: var(--hkan-gold-light); }
.hkan-new { margin-left: auto; font-size: 11px; font-weight: bold; letter-spacing: .5px; color: #fff; background: var(--hkan-gold); border-radius: 3px; padding: 2px 8px; }
.hkan-app .hkan-title { font-size: 17px; line-height: 1.35; margin: 0 0 4px; font-weight: bold; }
.hkan-app .hkan-title a, .hkan-app .hkan-title a:visited { color: var(--hkan-navy) !important; text-decoration: none !important; }
.hkan-app .hkan-title a:hover { text-decoration: underline !important; text-decoration-color: var(--hkan-gold) !important; }
.hkan-app .hkan-btn-link, .hkan-app .hkan-links a, .hkan-app .hkan-source a { text-decoration: none !important; }
.hkan-app .hkan-links a:hover, .hkan-app .hkan-source a:hover { text-decoration: underline !important; }
.hkan-app .hkan-buyer { margin: 0 0 4px; color: var(--hkan-muted); font-size: 14px; }
.hkan-app .hkan-facts { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.hkan-sep { color: #b9c2c9; }
.hkan-deadline { font-weight: bold; }
.hkan-urgent { color: var(--hkan-red); }
.hkan-past { color: var(--hkan-muted); font-weight: normal; }
.hkan-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f4; }
.hkan-status-line { font-size: 13px; color: var(--hkan-muted); }
.hkan-status-select { border: 1px solid var(--hkan-line); border-radius: 4px; padding: 4px 8px; font: inherit; font-size: 13px; color: var(--hkan-navy); background: #fff; cursor: pointer; }
.hkan-status-select:disabled { opacity: .6; cursor: wait; }
.hkan-error { color: var(--hkan-red); font-size: 13px; }

/* Våre tilbud */
.hkan-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; background: var(--hkan-navy); color: #fff; padding: 14px 18px; border-radius: 6px; margin: 0 0 18px; font-size: 14px; }
.hkan-summary strong { color: #f0c75e; font-size: 17px; }
.hkan-group { margin: 0 0 22px; }
.hkan-app .hkan-group-title { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--hkan-navy-dark); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--hkan-gold); }
.hkan-group .hkan-card + .hkan-card { margin-top: 10px; }
.hkan-empty { color: var(--hkan-muted); background: var(--hkan-bg); border-radius: 6px; padding: 18px; text-align: center; }

/* Løpende innkjøpsordninger */
.hkan-dps { margin: 22px 0 0; border: 1px solid var(--hkan-line); border-radius: 6px; background: #fff; }
.hkan-dps > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: bold; color: var(--hkan-navy); display: flex; align-items: center; gap: 8px; }
.hkan-dps > summary::-webkit-details-marker { display: none; }
.hkan-dps > summary::before { content: '▸'; color: var(--hkan-gold); transition: transform .15s; }
.hkan-dps[open] > summary::before { transform: rotate(90deg); }
.hkan-dps-body { padding: 0 18px 18px; }
.hkan-app .hkan-dps-note { font-size: 13px; color: var(--hkan-muted); margin: 0 0 12px; }
.hkan-open-until { font-weight: bold; color: var(--hkan-navy-dark); }

/* Lenkeboks og kilde */
.hkan-links { margin: 28px 0 0; background: var(--hkan-bg); border-left: 3px solid var(--hkan-navy); border-radius: 0 6px 6px 0; padding: 14px 18px; }
.hkan-app .hkan-links h3 { margin: 0 0 8px; font-size: 15px; color: var(--hkan-navy-dark); }
.hkan-links ul { margin: 0; padding-left: 18px; }
.hkan-links li { margin: 4px 0; font-size: 14px; }
.hkan-links a { color: var(--hkan-navy); font-weight: bold; }
.hkan-links span { color: var(--hkan-muted); }
.hkan-app .hkan-links-note, .hkan-app .hkan-source { font-size: 12px; color: var(--hkan-muted); margin: 10px 0 0; }
.hkan-source a { color: var(--hkan-navy); }

@media (max-width: 640px) {
	.hkan-app { font-size: 14px; }
	.hkan-card { padding: 12px 14px; }
	.hkan-tab { padding: 9px 12px; flex: 1; }
	.hkan-filter-label { width: 100%; }
	.hkan-name, .hkan-name input { width: 100%; }
	.hkan-foot { flex-direction: column; align-items: stretch; }
}
