/* Path: 12/css/files_list.css */

/* --------------------------------------------------
   OVERSKRIFT
-------------------------------------------------- */
h3 {
	width: 100%;
	margin-top: 0;
	padding-bottom: 0.5em;
	display: flex;
	justify-content: space-around flex-start;
	color: var(--text-main);
}

/* --------------------------------------------------
   LAGRINGSMEDIE
-------------------------------------------------- */
span.lagringsmedie {
	display: block;
	top: 15px;
	position: absolute;
	left: 100px;
	font-size: smaller;
	opacity: 0.35;
	color: var(--text-muted);
	cursor: pointer;
}

span.lagringsmedie:hover {
	opacity: 0.95;
}

div.w3-card h3.w3-margin-bottom .lagringsmedie img.lagringsmedie-ikon {
	width: auto;
	height: 1.5em;
	vertical-align: middle;
	margin-right: 0.5em;
}

.lagringsmedie {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0rem;
	padding-right: 1.5rem;
}
.lagringsmedie-tekst {
	font-size: 0.875rem;
}
/* --------------------------------------------------
   MEDIA-ITEM (KORT)
-------------------------------------------------- */
.media-item {
	cursor: pointer;
	background-color: var(--bg-card);

	transition: box-shadow 0.15s ease, transform 0.15s ease,
		background-color 0.15s ease;
}

.media-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
	background-color: var(--bg-card-hover);
}

.media-item.active-card {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	background-color: var(--bg-card-active);
}

.media-item.active-card:hover {
	transform: none;
}

/* --------------------------------------------------
   VARIGHET / POSISJON
-------------------------------------------------- */
span.varighet {
	display: block;
	bottom: 5px;
	position: absolute;
	right: 10px;
	font-size: smaller;
	opacity: 0.6;
	color: var(--text-muted);
}

li.posisjon-item {
	cursor: pointer;
}

/* --------------------------------------------------
   PLAY-KNAPP (FUNKSJONELL FARGE)
-------------------------------------------------- */
button.play-button {
	background-color: #4caf50;
	color: #ffffff;

	padding: 14px 20px;
	padding-right: 4em;
	margin: 8px 0;

	border: none;
	cursor: pointer;
	width: 100%;
}

/* --------------------------------------------------
   LYDKILDE-IKON
-------------------------------------------------- */
.lydkilde {
	width: auto;
	height: 2em;
	margin-right: 0.5em;
	margin-left: 3em;
}

/* --------------------------------------------------
   STRIPED TEXT (DEKORATIV)
-------------------------------------------------- */
.striped-text:nth-child(odd) {
	color: #9b9899;
}

.striped-text:nth-child(even) {
	color: #a28da0;
}

/* Hindrer komma etter siste element */
.striped-text:not(:last-child)::after {
	content: ", ";
	color: var(--text-muted);
}

/* --------------------------------------------------
   ÅR-VALG (FUNKSJONELL)
-------------------------------------------------- */
.year-selected {
	background-color: #ffd;
	border: 2px solid #2196f3;
}

.year-label.year-selected {
	background-color: #ccc;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
	font-weight: bold;
	border-left: 4px solid #666;
}

.year-label {
	position: relative;
}

.year-label .year-close {
	display: none;
	position: absolute;
	top: -3px;
	right: 2px;
	font-size: 14px;
	color: #d00;
	cursor: pointer;
}

.year-label.year-selected .year-close {
	display: inline;
}

.year-label.year-selected .year-close:hover {
	color: #f00;
}

/* --------------------------------------------------
   PROGRAM-LABEL
-------------------------------------------------- */
.program-label {
	position: absolute;
	top: 0.75em;
	right: 0.75em;

	font-size: 0.85em;
	color: var(--text-muted);

	padding: 4px 8px;
	border-radius: 4px;

	cursor: pointer;
	user-select: none;
	transition: all 0.15s ease;
}

/* Hover – føles som knapp */
.media-item:hover .program-label {
	background-color: var(--bg-card-hover);
	border: 1px solid var(--border-soft);
	color: var(--text-main);
}

/* Valgt / aktiv */
.program-label.active,
.program-label.program-selected {
	background-color: var(--bg-card-active);
	border: 1px solid var(--border-strong);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
	color: var(--text-main);
	font-weight: bold;
}

/* --------------------------------------------------
   REDIGERBAR LISTE
-------------------------------------------------- */
.redigerbar_liste_container {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	vertical-align: middle;
}

.redigerbar_liste_container > button {
	flex-shrink: 0;
}

.medarbeider-liste,
.tema-liste {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	font-size: 0.875rem;
	flex-grow: 1;
	min-width: 0;
}

.medarbeider-tag,
.tema-tag {
	white-space: nowrap;
}

/* --------------------------------------------------
   KOMPAKT VISNING
-------------------------------------------------- */
.media-item.compact-view img,
.media-item.compact-view .hidden-content,
.media-item.compact-view .toggle-text {
	display: none !important;
}

body.kompakt .skjules {
	display: none !important;
}

/* --------------------------------------------------
   VALGT TEKST
-------------------------------------------------- */
.valgt {
	font-weight: bold;
	background-color: #ffffcc;
	border-radius: 4px;
	padding: 0 4px;
}
