.vlgs-dashboard-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}
.vlgs-stat-box {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 16px 24px;
	text-align: center;
	min-width: 120px;
}
.vlgs-stat-number {
	display: block;
	font-size: 28px;
	font-weight: 700;
}
.vlgs-stat-label {
	display: block;
	font-size: 13px;
	color: #555;
}
.vlgs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}
.vlgs-table th,
.vlgs-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e2e2e2;
}
.vlgs-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	background: #eee;
}
.vlgs-badge-anmeldt { background: #fdecea; color: #a94442; }
.vlgs-badge-dato_oplyst { background: #fff8e1; color: #8a6d00; }
.vlgs-badge-udbedret { background: #e6f4ea; color: #1e7e34; }
.vlgs-badge-annulleret { background: #eee; color: #666; }

.vlgs-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: end;
	margin-bottom: 20px;
}
.vlgs-search-form label {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	gap: 4px;
}
.vlgs-status-search {
	/* Samme smalle "telefon-bredde" som Forside, Anmeld glasskade og
	   Glasskade færdigmelding, så siden altid fremstår i et stående,
	   telefon-agtigt format. */
	max-width: 440px;
	margin: 0 auto;
}

/* -------------------------------------------------------------
   Forside (mobil landingsside)
   ------------------------------------------------------------- */
.vlgs-forside {
	/* Fast "telefon-skærm"-format (iPhone i stående format) - siden skal
	   altid fremstå smal og høj, uanset browservindue/skærmstørrelse. */
	max-width: 440px;
	min-height: 959px;
	margin: 0 auto;
	padding: 24px 16px 40px;
	text-align: center;
	background-size: cover;
	background-position: bottom center;
	background-repeat: no-repeat;
	border-radius: 12px;
	box-sizing: border-box;
	/* Nødvendig for at "Log ud" (se .vlgs-forside-account-logout) kan
	   placeres i det øverste højre hjørne af selve boksen. */
	position: relative;
}
.vlgs-forside-title {
	font-size: 22px;
	margin-bottom: 24px;
}
.vlgs-forside-logo {
	/* Sat ned til det halve (400x220 -> 200x110) efter tilbagemelding om
	   at logoet virkede for stort på Forsiden. */
	max-width: 200px;
	max-height: 110px;
	width: auto;
	height: auto;
	margin: 0 auto 24px;
	display: block;
}

/* -------------------------------------------------------------
   Branded login "popup" på forsiden
   ------------------------------------------------------------- */
.vlgs-login-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	text-align: left;
}
.vlgs-login-kicker {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-align: center;
	color: #333;
}
.vlgs-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.vlgs-login-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
}
.vlgs-login-form input[type="email"],
.vlgs-login-form input[type="password"] {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 400;
}
.vlgs-btn-block {
	width: 100%;
	padding: 12px;
	font-size: 15px;
}
.vlgs-lost-password {
	margin-top: 16px;
	font-size: 13px;
}
.vlgs-lost-password summary {
	cursor: pointer;
	color: #2e7d32;
	font-weight: 600;
}
.vlgs-lost-password .vlgs-login-form {
	margin-top: 12px;
}
.vlgs-notice-info {
	background: #e8f0fe;
	color: #1a4a8a;
}
.vlgs-forside-buttons {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.vlgs-forside-btn {
	display: block;
	padding: 18px 16px;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: #4caf50;
	transition: opacity 0.15s ease;
}
.vlgs-forside-btn:hover,
.vlgs-forside-btn:focus {
	opacity: 0.9;
	color: #fff;
}
.vlgs-forside-btn-secondary {
	background: #2e7d32;
}
.vlgs-forside-btn-muted {
	background: #333;
}
.vlgs-forside-logout {
	margin-top: 32px;
	font-size: 13px;
}
.vlgs-forside-account-logout {
	/* Placeres i det øverste højre hjørne af selve "telefon-boksen"
	   (samme 16px-margin som boksens eget indre samt sprogvælgeren
	   øverst på siden), i stedet for nederst under knapperne. */
	position: absolute;
	top: 16px;
	right: 16px;
	margin: 0;
	font-size: 13px;
}
.vlgs-forside-account-logout a {
	font-weight: 700;
}

/* -------------------------------------------------------------
   Front-end administration (stationer/leverandører/brugere/indst.)
   ------------------------------------------------------------- */
.vlgs-front-admin {
	max-width: 560px;
	margin: 0 auto;
}
.vlgs-notice {
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
}
.vlgs-notice-success {
	background: #e6f4ea;
	color: #1e7e34;
}
.vlgs-notice-error {
	background: #fdecea;
	color: #a94442;
}
.vlgs-hint {
	font-size: 13px;
	color: #666;
}
.vlgs-front-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #f7f7f7;
	padding: 16px;
	border-radius: 8px;
	margin-bottom: 24px;
}
.vlgs-front-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
}
.vlgs-front-form input[type="text"],
.vlgs-front-form input[type="email"],
.vlgs-front-form input[type="date"],
.vlgs-front-form select,
.vlgs-front-form textarea {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 400;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}
.vlgs-front-form h3 {
	margin: 4px 0 -6px;
	font-size: 15px;
}
.vlgs-fieldset {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 12px;
}
.vlgs-fieldset legend {
	font-size: 13px;
	font-weight: 600;
	padding: 0 4px;
}
.vlgs-image-preview {
	display: block;
	margin: 6px 0;
}
.vlgs-image-preview img {
	max-width: 180px;
	max-height: 100px;
	border-radius: 6px;
	border: 1px solid #ddd;
	display: block;
}
.vlgs-checkbox-label,
.vlgs-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400 !important;
	margin: 4px 0;
}
.vlgs-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	color: #333;
	text-align: center;
}
.vlgs-btn-primary {
	background: #2e7d32;
	border-color: #2e7d32;
	color: #fff;
}
.vlgs-btn-danger {
	background: #fff;
	border-color: #a94442;
	color: #a94442;
}
.vlgs-card-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.vlgs-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vlgs-card label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
}
.vlgs-card input[type="text"],
.vlgs-card input[type="email"] {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 400;
}
.vlgs-card-actions {
	display: flex;
	gap: 10px;
}

/* -------------------------------------------------------------
   Leverandør-tabel (kompakt liste med ikon-handlinger)
   ------------------------------------------------------------- */
.vlgs-hidden-form {
	display: none;
}
.vlgs-table-responsive {
	overflow-x: auto;
}
/* Bruges til "Rolle" og "Tilknyttede stationer" i brugeradgang-formularen:
   navn/beskrivelse til venstre, radio-/afkrydsningsfelt til højre på hver
   linje (i stedet for den tidligere lodrette liste med feltet centreret
   ovenover teksten). */
.vlgs-option-table td {
	vertical-align: middle;
}
.vlgs-option-table td:last-child {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}
.vlgs-option-table input[type="checkbox"],
.vlgs-option-table input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
}
.vlgs-supplier-table input[type="text"],
.vlgs-supplier-table input[type="email"] {
	width: 100%;
	min-width: 140px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}
.vlgs-table-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}
.vlgs-table-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 400;
	color: #555;
	cursor: pointer;
}
.vlgs-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #333;
	cursor: pointer;
	text-decoration: none;
}
.vlgs-icon-btn:hover,
.vlgs-icon-btn:focus {
	background: #f0f0f0;
	color: #333;
}
.vlgs-icon-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}
.vlgs-icon-btn-danger {
	border-color: #a94442;
	color: #a94442;
}
.vlgs-icon-btn-danger:hover,
.vlgs-icon-btn-danger:focus {
	background: #fdecea;
	color: #a94442;
}
.vlgs-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------
   Kvitteringspopup ("Ændringerne er gemt.") efter en front-end-gemning
   ------------------------------------------------------------- */
.vlgs-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.vlgs-popup-box {
	background: #fff;
	border-radius: 10px;
	padding: 24px 28px;
	max-width: 320px;
	width: 100%;
	text-align: center;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
}
.vlgs-popup-box p {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 600;
	color: #1e7e34;
}
.vlgs-popup-box-error p {
	color: #a94442;
}

/* -------------------------------------------------------------
   Historik ("hvem har rettet hvad, og hvornår") nederst på en sag
   ------------------------------------------------------------- */
.vlgs-case-log {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	font-size: 13px;
	color: #555;
}
.vlgs-case-log li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}
.vlgs-case-log li:last-child {
	border-bottom: none;
}

/* -------------------------------------------------------------
   Scan nummerplade (Anmeld glasskade)
   ------------------------------------------------------------- */
.vlgs-plate-scan-btn {
	display: inline-block;
	margin-top: 8px;
}
.vlgs-plate-scan-status {
	font-size: 13px;
	color: #666;
	margin-top: 6px;
}

/* -------------------------------------------------------------
   Automatisk bilopslag via Dansk Motor API (Anmeld glasskade)
   ------------------------------------------------------------- */
.vlgs-motorapi-status {
	font-size: 13px;
	color: #666;
	margin-top: 6px;
}

/* -------------------------------------------------------------
   Skadeoversigt ([vlgs_skadeoversigt]) - faneopdelt rapportside
   ------------------------------------------------------------- */
.vlgs-skadeoversigt-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.vlgs-skadeoversigt-tab {
	display: inline-block;
	padding: 10px 18px;
	background: #eee;
	border: 1px solid #ddd;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	text-decoration: none;
	color: #333;
	font-size: 14px;
}
.vlgs-skadeoversigt-tab.is-active {
	background: #fff;
	font-weight: 700;
}
.vlgs-skadeoversigt-filterbar {
	background: #6f9bc4;
	padding: 16px;
	border-radius: 0 6px 0 0;
}
.vlgs-skadeoversigt-search {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
}
.vlgs-skadeoversigt-search label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}
/* Samme højde på alle felter og knapper i søgelinjen, uanset at
   browseren ellers ville give en <select> og en dato-<input> lidt
   forskellig naturlig højde. */
.vlgs-skadeoversigt-search input,
.vlgs-skadeoversigt-search select,
.vlgs-skadeoversigt-filter-actions .vlgs-btn,
.vlgs-skadeoversigt-csv {
	height: 40px;
	box-sizing: border-box;
	font-size: 14px;
}
.vlgs-skadeoversigt-search input,
.vlgs-skadeoversigt-search select {
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid #ccc;
}
.vlgs-skadeoversigt-filter-actions {
	display: flex;
	gap: 8px;
}
.vlgs-skadeoversigt-filter-actions .vlgs-btn,
.vlgs-skadeoversigt-csv {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	white-space: nowrap;
}
/* Skubbes helt ud til højre på samme linje som resten af søgefeltet. */
.vlgs-skadeoversigt-csv {
	margin-left: auto;
}
.vlgs-skadeoversigt-stats {
	background: #6f9bc4;
	padding: 12px 16px 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}
.vlgs-skadeoversigt-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vlgs-skadeoversigt-stat-label {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}
.vlgs-skadeoversigt-stat-number {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}
.vlgs-skadeoversigt-results {
	background: #f2f2f2;
	padding: 16px;
	border-radius: 0 0 6px 6px;
}
.vlgs-skadeoversigt-results img {
	max-width: 80px;
	height: auto;
	border-radius: 4px;
}
.vlgs-skadeoversigt-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

/* -------------------------------------------------------------
   Statistik-fanen ([vlgs_skadeoversigt]) - lagkage- og
   søjlediagrammer (Chart.js), se public/js/vlgs-charts.js.
   ------------------------------------------------------------- */
.vlgs-charts-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 20px;
	background: #f2f2f2;
	padding: 20px;
	border-radius: 0 0 6px 6px;
}
.vlgs-chart-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 16px;
}
.vlgs-chart-card-wide {
	grid-column: 1 / -1;
}
.vlgs-chart-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
}
.vlgs-chart-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}
.vlgs-chart-filters label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
.vlgs-chart-filters select {
	height: 36px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid #ccc;
	font-size: 14px;
	box-sizing: border-box;
}
.vlgs-chart-canvas-wrap {
	position: relative;
	height: 280px;
}
.vlgs-chart-canvas-tall {
	height: 320px;
}
.vlgs-chart-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
	font-size: 13px;
}
.vlgs-chart-table td {
	padding: 4px 6px;
	border-bottom: 1px solid #eee;
}
.vlgs-chart-table td:last-child,
.vlgs-chart-table td:nth-child(2) {
	text-align: right;
	white-space: nowrap;
}
.vlgs-chart-empty {
	color: #666;
	font-size: 13px;
	font-style: italic;
}
@media ( max-width: 780px ) {
	.vlgs-charts-grid {
		grid-template-columns: 1fr;
	}
}
