/* Widere Status & Meldingen – voorkant
 * Kleuren en lettertype volgen widere.nl. Pas de variabelen aan om te finetunen.
 */
.ws-status {
	--ws-navy: #353d57;
	--ws-navy-2: #434c6a;
	--ws-olive: #8c9266;
	--ws-olive-dark: #737852;
	--ws-sage: #c9cda6;
	--ws-cream: #f5f2f0;
	--ws-text: #3e4352;
	--ws-muted: #7a7f8e;
	--ws-line: #e6e1db;
	--ws-white: #fff;
	--ws-radius: 12px;

	--ws-ok: #5b8c51;
	--ws-onderhoud: #4f6fa8;
	--ws-verminderd: #d4a21a;
	--ws-storing: #e07a2f;
	--ws-groot: #c7423a;

	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ws-text);
	font-size: 16px;
	line-height: 1.6;
}
.ws-status *, .ws-status *::before, .ws-status *::after { box-sizing: border-box; }
.ws-status p { margin: 0; }

/* Banner ---------------------------------------------------------------- */
.ws-banner {
	--c: var(--ws-ok);
	display: flex; align-items: center; gap: 18px;
	padding: 22px 26px; border-radius: var(--ws-radius);
	background: var(--c); color: #fff;
	box-shadow: 0 10px 30px -18px rgba(53, 61, 87, .6);
}
.ws-banner-icon {
	flex: none; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255,255,255,.18) center/22px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.ws-banner:not(.ws-lvl-ok) .ws-banner-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v7'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E");
}
.ws-banner-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.ws-banner-sub { font-size: 14px; opacity: .85; margin-top: 2px !important; }

.ws-lvl-ok { --c: var(--ws-ok); }
.ws-lvl-onderhoud { --c: var(--ws-onderhoud); }
.ws-lvl-verminderd { --c: var(--ws-verminderd); }
.ws-lvl-storing { --c: var(--ws-storing); }
.ws-lvl-groot { --c: var(--ws-groot); }

/* Secties ---------------------------------------------------------------- */
.ws-section { margin-top: 44px; }
.ws-eyebrow {
	color: var(--ws-olive); font-size: 14px; font-weight: 600;
	letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px !important;
}
.ws-heading { color: var(--ws-navy); font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 18px; }
.ws-empty {
	background: var(--ws-cream); border-radius: var(--ws-radius);
	padding: 18px 22px; color: var(--ws-text);
}

/* Diensten --------------------------------------------------------------- */
.ws-services {
	list-style: none; margin: 8px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.ws-service {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	background: var(--ws-white); border: 1px solid var(--ws-line); border-radius: var(--ws-radius);
	padding: 16px 18px;
}
.ws-service-name { font-weight: 600; color: var(--ws-navy); }
.ws-service-state { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--c); font-weight: 500; }
.ws-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }

/* Storing ---------------------------------------------------------------- */
.ws-incident {
	--c: var(--ws-storing);
	background: var(--ws-white); border: 1px solid var(--ws-line);
	border-left: 5px solid var(--c); border-radius: var(--ws-radius);
	padding: 22px 24px; margin-bottom: 16px;
}
.ws-imp-onderhoud { --c: var(--ws-onderhoud); }
.ws-imp-verminderd { --c: var(--ws-verminderd); }
.ws-imp-storing { --c: var(--ws-storing); }
.ws-imp-groot { --c: var(--ws-groot); }

.ws-incident-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ws-incident-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--ws-navy); line-height: 1.3; }
.ws-pill {
	display: inline-block; padding: 3px 11px; border-radius: 999px;
	font-size: 12px; font-weight: 600; letter-spacing: .3px;
	color: var(--c); background: color-mix(in srgb, var(--c) 13%, white);
}
.ws-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ws-tag { font-size: 13px; padding: 2px 10px; border-radius: 6px; background: var(--ws-cream); color: var(--ws-navy-2); }
.ws-window { margin-top: 10px !important; font-size: 14px; font-weight: 600; color: var(--ws-onderhoud); }

/* Tijdlijn --------------------------------------------------------------- */
.ws-timeline { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.ws-timeline li { position: relative; padding: 0 0 18px 28px; }
.ws-timeline li::before {
	content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px;
	width: 2px; background: var(--ws-line);
}
.ws-timeline li:last-child { padding-bottom: 0; }
.ws-timeline li:last-child::before { display: none; }
.ws-tl-dot {
	--d: var(--ws-muted);
	position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%;
	background: #fff; border: 3px solid var(--d);
}
.ws-timeline li:first-child .ws-tl-dot { background: var(--d); }
.ws-st-onderzoek .ws-tl-dot { --d: var(--ws-storing); }
.ws-st-geidentificeerd .ws-tl-dot { --d: var(--ws-verminderd); }
.ws-st-monitoring .ws-tl-dot { --d: var(--ws-onderhoud); }
.ws-st-opgelost .ws-tl-dot { --d: var(--ws-ok); }
.ws-st-gepland .ws-tl-dot, .ws-st-bezig .ws-tl-dot { --d: var(--ws-onderhoud); }

.ws-tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ws-tl-head strong { color: var(--ws-navy); font-size: 15px; }
.ws-tl-head time { color: var(--ws-muted); font-size: 13px; }
.ws-tl-msg { font-size: 15px; margin-top: 2px; }
.ws-tl-msg p + p { margin-top: 8px; }

/* Geschiedenis ----------------------------------------------------------- */
.ws-history { border-top: 1px solid var(--ws-line); }
.ws-day { padding: 18px 0; border-bottom: 1px solid var(--ws-line); }
.ws-day-date { font-weight: 700; color: var(--ws-navy); margin-bottom: 8px !important; }
.ws-day-empty { color: var(--ws-muted); font-size: 15px; }
.ws-incident.ws-is-compact { padding: 14px 18px; margin: 8px 0 0; border-left-width: 4px; }
.ws-is-compact .ws-incident-title { font-size: 16px; }
.ws-is-compact .ws-tags { margin-top: 6px; }
.ws-details { margin-top: 8px; }
.ws-details summary { cursor: pointer; color: var(--ws-olive-dark); font-weight: 600; font-size: 14px; }
.ws-details summary span { color: var(--ws-muted); font-weight: 400; margin-left: 6px; }

/* Formulier -------------------------------------------------------------- */
.ws-form-wrap { max-width: 760px; }
.ws-form {
	background: var(--ws-cream); border-radius: var(--ws-radius); padding: 30px;
}
.ws-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ws-field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.ws-field label, .ws-field legend { display: block; font-weight: 600; color: var(--ws-navy); margin-bottom: 7px; padding: 0; font-size: 15px; }
.ws-req { color: var(--ws-olive); }
.ws-form input[type="text"], .ws-form input[type="email"], .ws-form select, .ws-form textarea {
	width: 100%; font: inherit; color: var(--ws-text);
	background: #fff; border: 1px solid var(--ws-line); border-radius: 8px;
	padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.ws-form textarea { resize: vertical; min-height: 140px; }
.ws-form input:focus, .ws-form select:focus, .ws-form textarea:focus {
	outline: none; border-color: var(--ws-olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-olive) 25%, transparent);
}
.ws-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-choice { margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.ws-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ws-choice span {
	display: inline-block; padding: 9px 16px; border-radius: 8px;
	background: #fff; border: 1px solid var(--ws-line); color: var(--ws-navy); font-size: 15px;
	transition: all .15s;
}
.ws-choice input:checked + span { background: var(--ws-navy); border-color: var(--ws-navy); color: #fff; }
.ws-choice-urgent input:checked + span { background: var(--ws-groot); border-color: var(--ws-groot); }
.ws-choice input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-olive) 35%, transparent); }

.ws-button {
	display: inline-block; cursor: pointer; border: 0;
	background: var(--ws-olive); color: #fff; font: inherit; font-weight: 500;
	padding: 13px 26px; border-radius: 8px; transition: background .15s;
}
.ws-button:hover, .ws-button:focus { background: var(--ws-olive-dark); color: #fff; }

.ws-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ws-notice { border-radius: var(--ws-radius); padding: 16px 20px; margin-bottom: 18px; }
.ws-notice-ok { background: color-mix(in srgb, var(--ws-ok) 12%, white); color: #2f5a27; border: 1px solid color-mix(in srgb, var(--ws-ok) 35%, white); }
.ws-notice-fout { background: color-mix(in srgb, var(--ws-groot) 10%, white); color: #8e2a23; border: 1px solid color-mix(in srgb, var(--ws-groot) 35%, white); }

@media (max-width: 640px) {
	.ws-banner { padding: 18px; gap: 14px; }
	.ws-banner-title { font-size: 18px; }
	.ws-heading { font-size: 23px; }
	.ws-incident { padding: 18px; }
	.ws-row { grid-template-columns: 1fr; }
	.ws-form { padding: 20px; }
}
