/* ==========================================================================
   Startsidans "senaste-ruta" (under bildspelet, over knapparna).
   Ligger i undermapp -> byggs INTE in i cachen; laddas fran misc-header.asp.
   Farger enligt profilen: ljusbla #dbe3f1 (som knapparna), rubrik #1E4679.
   Diskret: sma storlekar, ingen hover-zoom.
   ========================================================================== */
html .section-notice {
	width: 100%;
	padding: 14px 0;
}
html .section-notice .notice-box {
	box-sizing: border-box;
	width: 100%; /* lika bred som bildspelet */
	margin: 0;
	/* texten linjerar med knapparnas 1000px-container */
	padding: 14px max(24px, calc((100% - 1000px) / 2));
	background-color: #dbe3f1;
	color: #333;
	border-radius: 20px;
	text-align: left;
	font-family: 'Poppins', Arial, Helvetica, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.5;
}
html .section-notice .notice-title {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.3;
	color: #1E4679;
	margin: 0 0 4px;
}
html .section-notice .notice-text,
html .section-notice .notice-content,
html .section-notice .notice-content p,
html .section-notice .notice-content li {
	font-family: 'Poppins', Arial, Helvetica, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #333;
	margin: 0 0 6px;
}
html .section-notice .notice-content img,
html .section-notice .notice-content iframe,
html .section-notice .notice-content video { max-width: 100%; }
html .section-notice .notice-link {
	display: inline-block;
	margin-top: 2px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1E4679;
	text-decoration: underline;
}
html .section-notice .notice-link:hover { color: #586F8C; }

/* Innehallet: bild (valfri) + text */
html .section-notice .notice-main.has-image {
	display: flex;
	align-items: center;
	gap: 16px;
}
html #swl-content-wrapper .section-notice img.notice-image {
	flex: 0 0 auto;
	max-width: none;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 14px;
}
html .section-notice .notice-body { flex: 1 1 auto; min-width: 0; }

@media (max-width: 567px) {
	html .section-notice { padding: 10px 0; }
	html .section-notice .notice-box { padding: 12px 16px; }
	html #swl-content-wrapper .section-notice img.notice-image { width: 56px; height: 56px; }
}


/* ==========================================================================
   ADMINPANEL - bara for inloggade administratorer, alltid langst ner i rutan.
   Ser ut som ett verktyg (vit, streckad ram), inte som en del av innehallet.
   Statusen ar EN mening om rutan; noten langst ner galler panelen.
   ========================================================================== */
html .section-notice .notice-admin {
	margin: 14px 0 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px dashed #586F8C;
	border-radius: 12px;
	font-family: 'Poppins', Arial, Helvetica, sans-serif;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #333;
}
html .section-notice .notice-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 0.875rem;
	color: #333;
}
html .section-notice .notice-dot {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #586F8C;
}
html .section-notice .notice-status.is-visible .notice-dot { background: #1d7a43; }
html .section-notice .notice-status.is-hidden  .notice-dot { background: #b45f06; }
html .section-notice .notice-status.just-changed {
	padding: 6px 10px;
	border-radius: 8px;
	background: #e3f3e8;
}
html .section-notice .notice-error {
	margin: 0 0 10px;
	padding: 6px 10px;
	border-radius: 8px;
	background: #fde2e2;
	color: #7f1d1d;
	font-size: 0.875rem;
}
html .section-notice .notice-admin-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
html .section-notice .notice-admin-actions form,
html .section-notice .notice-admin-actions .message-box-tool { margin: 0; padding: 0; float: none; position: static; }

/* Knappar i panelen: egna farger, texten byter ALDRIG farg vid hover
   (annars tar sajtens a:hover / Bootstraps hover over och texten blir svarlast).
   Hover = bara en svag nyans pa bakgrunden. */
html .section-notice .notice-admin .btn,
html .section-notice .notice-admin a.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	font-family: 'Poppins', Arial, Helvetica, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	background-image: none;
	transform: none;
	transition: background-color .15s ease;
	/* standard (sekundar): vit med bla text */
	background-color: #fff;
	border: 1px solid #1E4679;
	color: #1E4679;
}
html .section-notice .notice-admin .btn:hover,
html .section-notice .notice-admin .btn:focus,
html .section-notice .notice-admin .btn:active,
html .section-notice .notice-admin a.btn:hover,
html .section-notice .notice-admin a.btn:focus {
	background-color: #eef2f9;
	border-color: #1E4679;
	color: #1E4679;
	text-decoration: none;
	box-shadow: none;
}
/* Huvudknapp (Visa igen / Skapa rutan): fylld bla med vit text */
html .section-notice .notice-admin .btn-primary,
html .section-notice .notice-admin a.btn.btn-primary {
	background-color: #1E4679;
	border-color: #1E4679;
	color: #fff;
}
html .section-notice .notice-admin .btn-primary:hover,
html .section-notice .notice-admin .btn-primary:focus,
html .section-notice .notice-admin .btn-primary:active,
html .section-notice .notice-admin a.btn.btn-primary:hover,
html .section-notice .notice-admin a.btn.btn-primary:focus {
	background-color: #2a5a94;
	border-color: #2a5a94;
	color: #fff;
}
html .section-notice .notice-admin .btn:focus-visible {
	outline: 2px solid #1E4679;
	outline-offset: 2px;
}
/* Redigera-knappen som karnan skriver ut inne i innehallet doljs; panelen har sin egen */
html .section-notice .notice-content .message-box-tool { display: none; }

/* Endast-admin-lage (dold eller tom ruta): streckad ram runt hela rutan och
   innehallet nedtonat som forhandsvisning - panelen ar fullt synlig. */
html .section-notice-adminonly .notice-box-adminonly {
	background-color: #f4f6fa;
	border: 2px dashed #586F8C;
}
html .section-notice-adminonly .notice-preview { opacity: 0.5; }
html .section-notice-adminonly .notice-placeholder {
	margin: 0;
	font-size: 0.9375rem;
	color: #333;
}
html .section-notice-adminonly .notice-preview:has(.notice-placeholder) { opacity: 1; }
