@charset "UTF-8";
/*
 * rw-app — shared styles for rebuilt React islands.
 *
 * Conventions (features-overview §7):
 * - Semantic HTML + `.rw-*` classes (no new <grid>/<row>/<g> in rebuilt screens).
 * - Reuse :root tokens from style.css; do not invent a second palette.
 * - One author voice: same naming across slices (.rw-page, .rw-filters, .rw-list, …).
 */

/* —— Page shell —— */

.rw-app {
	display: block;
}

.rw-page-wrap {
	padding: 10px;
	max-width: 100%;
}

.rw-page {
	background-color: var(--white);
	border-radius: var(--big-radius);
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rw-page__title {
	margin: 0;
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
}

.rw-page__title b {
	font-weight: 800;
}

.rw-page__count {
	font-size: 14px;
	font-weight: 400;
}

.rw-page--muted {
	background-color: var(--shd-light);
}

.rw-muted {
	color: var(--shd-mid);
}

.rw-tip {
	position: relative;
}

.rw-tip::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translateX(-50%);
	background: var(--shd-dark);
	color: var(--white);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	padding: 4px 8px;
	border-radius: var(--sml-radius);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	z-index: 8;
}

.rw-tip:hover::after,
.rw-tip:focus-visible::after {
	opacity: 1;
}

.rw-empty {
	margin: 0;
	color: var(--shd-mid);
}

.rw-error {
	margin: 0;
	color: var(--alrt-red);
}

.rw-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--shd-mid);
}

/* —— Buttons —— */

.rw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: none;
	border-radius: var(--sml-radius);
	padding: 8px 14px;
	font: inherit;
	cursor: pointer;
	line-height: 1.3;
	text-decoration: none;
}

.rw-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rw-btn--primary {
	background-color: var(--act-blue);
	color: var(--white);
}

.rw-btn--primary:hover:not(:disabled) {
	background-color: var(--act-blue-dark);
	color: var(--white);
}

.rw-btn--ghost {
	background: transparent;
	color: var(--act-blue);
	padding: 4px 8px;
}

.rw-btn--ghost:hover:not(:disabled) {
	color: var(--act-blue-dark);
}

.rw-btn--danger {
	background-color: var(--alrt-red);
	color: var(--white);
}

.rw-btn--danger:hover:not(:disabled) {
	filter: brightness(0.92);
	color: var(--white);
}

.rw-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rw-alert {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 15px;
	border-radius: var(--sml-radius);
	line-height: 1.2;
}

.rw-alert--danger {
	border: 1px solid var(--alrt-red);
	color: var(--alrt-red);
	background-color: rgba(255, 255, 255, 0.4);
}

.rw-alert--warn {
	border: 1px solid var(--shd-mid);
	color: var(--shd-dark);
	background-color: var(--alrt-yellow);
}

.rw-alert--block {
	display: block;
	max-width: 42rem;
}

.rw-mail-log {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rw-mail-log .rw-alert {
	display: flex;
	align-items: flex-start;
	max-width: 100%;
}

/* —— Two-column page (horse detail) —— */

.rw-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: start;
}

.rw-split__col {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media screen and (max-width: 900px) {
	.rw-split {
		grid-template-columns: 1fr;
	}
}

/* —— Horse detail —— */

.rw-horse-detail {
	margin-bottom: 50px;
}

.rw-horse-detail--idle {
	opacity: 0.92;
}

.rw-horse-detail__toolbar {
	justify-content: flex-end;
	margin-bottom: 4px;
}

.rw-horse-detail__toolbar--back {
	justify-content: flex-start;
}

.rw-horse-detail__idle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(0, 0, 0, 0.05);
	padding: 8px 15px 8px 10px;
	border-radius: var(--sml-radius);
}

.rw-horse-detail__idle .rw-switch input:checked + .slider.horse {
	background-color: var(--act-orange);
}

.rw-horse-detail__idle .rw-switch input:focus + .slider.horse {
	box-shadow: 0 0 1px var(--act-orange);
}

.rw-horse-detail__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* —— Forms (shared horse create/edit) —— */

.rw-form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rw-form label {
	margin: 10px 0 0;
}

.rw-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rw-form__span {
	grid-column: 1 / -1;
}

.rw-form__field.is-invalid input,
.rw-form__field.is-invalid select,
.rw-form__field.is-invalid textarea {
	border-color: var(--alrt-red);
}

.rw-form__field.is-invalid > label {
	color: var(--alrt-red);
}

.rw-form__error {
	margin: 0;
	color: var(--alrt-red);
	font-size: 13px;
	line-height: 1.3;
}

.rw-form__field > label {
	margin: 0;
}

.rw-form__field input,
.rw-form__field select,
.rw-form__field textarea {
	width: 100%;
}

.rw-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: end;
}

.rw-form__check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 6px;
}

.rw-form__check label {
	margin: 0;
}

.rw-form.rw-horse-form {
	gap: 14px;
}

.rw-horse-form .rw-form__field > label {
	color: var(--shd-dark);
}

.rw-horse-form__head {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 14px;
	align-items: start;
}

.rw-horse-form__identity {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.rw-horse-form__fields {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.rw-horse-form__avatar {
	position: relative;
	display: block;
	width: 160px;
	height: 160px;
	cursor: pointer;
}

.rw-horse-form--readonly .rw-horse-form__avatar {
	cursor: default;
}

.rw-horse-form--readonly .rw-horse-form__avatar-overlay,
.rw-horse-form--readonly .rw-horse-form__avatar-badge {
	display: none;
}

.rw-horse-form__avatar-frame {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	border: 1px solid var(--shd-light);
	border-radius: var(--sml-radius);
	background-color: var(--shd-light);
	box-sizing: border-box;
}

.rw-horse-form__avatar img,
.rw-horse-form__avatar-placeholder {
	width: 100%;
	height: 100%;
	display: block;
}

.rw-horse-form__avatar img {
	object-fit: cover;
}

.rw-horse-form__avatar-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--shd-mid);
	font-size: 48px;
}

.rw-horse-form__avatar input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	background: none;
}

.rw-horse-form__avatar-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(0, 13, 26, 0.5);
	color: var(--white);
	font-size: 13px;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.rw-horse-form__avatar-overlay i {
	font-size: 22px;
}

.rw-horse-form__avatar:hover .rw-horse-form__avatar-overlay,
.rw-horse-form__avatar:focus-within .rw-horse-form__avatar-overlay {
	opacity: 1;
}

.rw-horse-form__avatar:focus-within .rw-horse-form__avatar-frame {
	border-color: var(--act-blue);
	box-shadow: 0 0 0 2px var(--act-blue-trans);
}

.rw-horse-form__avatar-badge {
	position: absolute;
	right: -4px;
	bottom: -4px;
	z-index: 1;
	width: 34px;
	height: 34px;
	border: 1px solid var(--shd-light);
	border-radius: 50%;
	background: var(--white);
	color: var(--act-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	box-sizing: border-box;
}

.rw-horse-form__avatar:hover .rw-horse-form__avatar-badge,
.rw-horse-form__avatar:focus-within .rw-horse-form__avatar-badge {
	opacity: 0;
}

.rw-horse-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
}

.rw-horse-form .rw-form__check {
	padding-bottom: 0;
}

.rw-horse-form__relations {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.rw-horse-form__relation {
	display: grid;
	grid-template-columns: 40px 1fr;
	align-items: start;
	gap: 12px;
	margin: 0;
	padding: 12px;
	background-color: var(--shd-light);
	border-radius: var(--big-radius);
}

.rw-horse-form__relation-note {
	grid-column: 1 / -1;
	margin: 0;
}

.rw-horse-form__relation-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.rw-horse-form__relation--group .rw-horse-form__relation-icon {
	color: var(--act-green);
}

.rw-horse-form__relation--owner .rw-horse-form__relation-icon {
	color: var(--act-blue);
}

.rw-horse-form__relation-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.rw-horse-form__rvo {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 13px;
	color: var(--input);
}

.rw-horse-form__rvo span {
	color: var(--shd-dark);
	font-size: 13px;
}

.rw-horse-form__rvo-line {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rw-rvo-warn,
.rw-horse-form__rvo .rw-rvo-warn {
	flex: 0 0 auto;
	color: var(--act-orange);
	font-size: 14px;
	line-height: 1;
}

.rw-horse-form textarea {
	min-height: 72px;
	resize: vertical;
}

.rw-customer-search {
	margin-bottom: 0;
	width: 100%;
}

.rw-customer-search .search-result {
	position: static;
	max-height: 180px;
	overflow: auto;
}

.rw-customer-search .search-keuze-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	font: inherit;
}

.rw-customer-search__control {
	position: relative;
}

.rw-customer-search__control.is-staff input {
	padding-right: 28px;
}

.rw-customer-search__staff {
	flex: none;
	font-size: 12px;
	color: var(--shd-dark);
}

.rw-customer-search__control > .rw-customer-search__staff {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY( -50% );
}

.rw-modal__block {
	margin: 0 0 12px;
}

.rw-modal__list {
	margin: 4px 0 0;
	padding-left: 1.2em;
}

@media screen and (max-width: 700px) {
	.rw-horse-form__head,
	.rw-horse-form__grid,
	.rw-horse-form__relations,
	.rw-form__row,
	.rw-form.rw-aanmelden__form,
	.rw-form.rw-customer-form {
		grid-template-columns: 1fr;
	}

	.rw-horse-form__avatar {
		width: 132px;
		height: 132px;
		justify-self: start;
	}
}

.rw-horse-detail .rw-horse-form__relations {
	grid-template-columns: 1fr;
}

@media screen and (min-width: 1400px) {
	.rw-horse-detail .rw-horse-form__relations {
		grid-template-columns: 1fr 1fr;
	}
}

.rw-modal .rw-horse-form__head {
	grid-template-columns: 120px 1fr;
}

.rw-modal .rw-horse-form__avatar {
	width: 120px;
	height: 120px;
}

/* —— Filters —— */

.rw-filters {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: center;
}

.rw-filters__search {
	width: 100%;
	min-width: 0;
}

.rw-filters__sort {
	width: auto;
	max-width: 9.5em;
	min-width: 0;
	padding: 6px 28px 6px 8px;
	font-size: 13px;
}

/* —— Lists —— */

.rw-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-list-item {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background-color: #fbfbfb;
}

.rw-list-item--pick {
	grid-template-columns: auto auto minmax(0, 1fr);
}

.rw-list-item--pick > input {
	margin: 0;
}

.rw-list-item--idle {
	opacity: 0.45;
	border-left: 3px solid var(--act-orange);
}

.rw-list-item--removed {
	opacity: 0.45;
	border-left: 3px solid var(--alrt-red);
}

.rw-customer-detail .rw-list-item--removed {
	opacity: 1;
	border-left: 3px solid var(--alrt-red);
	background-color: rgba(200, 40, 40, 0.06);
}

.rw-list-item__removed {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--alrt-red);
	font-size: 13px;
	font-weight: 700;
}

.rw-list-item__photo,
.rw-list-item__photo-placeholder {
	width: 50px;
	height: 50px;
	border-radius: 3px;
	display: block;
	line-height: 0;
	overflow: hidden;
	flex-shrink: 0;
}

.rw-list-item__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rw-list-item__photo-placeholder {
	background-color: var(--shd-light);
}

.rw-list-item__body {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

.rw-list-item__body:hover .rw-list-item__name {
	color: var(--act-blue);
}

.rw-list-item__identity {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rw-list-item__title {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.rw-list-item__name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.rw-list-item__staff {
	flex: none;
	font-size: 12px;
	color: var(--shd-dark);
}

.rw-tag {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 3px 5px;
	border-radius: 3px;
	color: var(--act-orange-dark);
	background-color: rgba(255, 100, 0, 0.12);
}

.rw-tag--strijp {
	color: var(--act-blue-dark);
	background-color: var(--act-blue-trans);
}

.rw-tag--pill {
	display: inline-block;
	margin-top: 4px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 12px;
	color: var(--act-blue-dark);
	background-color: var(--act-blue-trans);
}

.rw-tag--signed {
	color: var(--act-green-dark);
	background-color: rgba(110, 199, 20, 0.18);
}

.rw-tag--pending {
	color: var(--act-orange-dark);
	background-color: rgba(255, 100, 0, 0.12);
}

.rw-tag--removed {
	color: var(--alrt-red);
	background-color: rgba(200, 40, 40, 0.12);
}

.rw-list-item__contract {
	flex: 0 0 auto;
	color: var(--act-orange);
	font-size: 14px;
	text-decoration: none;
}

.rw-list-item__meta {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rw-list-item__chevron {
	color: var(--act-blue);
	justify-self: end;
}

@media screen and (max-width: 768px) {
	.rw-list-item__body {
		grid-template-columns: 1fr 1fr auto;
	}

	.rw-list-item__owner {
		display: none;
	}
}

/* —— Pagination —— */

.rw-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.rw-pager__btn {
	min-width: 32px;
	padding: 4px 8px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: var(--white);
	font: inherit;
	cursor: pointer;
	color: var(--text);
}

.rw-pager__btn:hover:not(:disabled) {
	border-color: var(--act-blue);
	color: var(--act-blue);
}

.rw-pager__btn.is-current {
	background: var(--act-blue);
	border-color: var(--act-blue);
	color: var(--white);
	cursor: default;
}

/* —— Modal (create horse) —— */

.rw-modal {
	position: fixed;
	margin: 0 auto;
	top: 50px;
	left: 0;
	right: 0;
	background-color: var(--white);
	width: 80vw;
	max-width: 600px;
	padding: 20px;
	border-radius: var(--sml-radius);
	z-index: 1100;
	overflow: auto;
	max-height: 80vh;
}

.rw-modal__title {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
}

.rw-modal__title b {
	font-weight: 800;
}

.rw-modal .rw-muted {
	margin: 0 0 12px;
}

/* —— Lists without photo column (groups) —— */

.rw-list-item--plain {
	grid-template-columns: 1fr;
}

.rw-list-item--plain.rw-list-item--pick {
	grid-template-columns: auto minmax(0, 1fr);
}

@media screen and (max-width: 768px) {
	.rw-list-item__pasture {
		display: none;
	}

	.rw-list-item--plain .rw-list-item__body {
		grid-template-columns: minmax(0, 1fr) auto auto;
	}

	.rw-list-item__count-label {
		display: none;
	}

	.rw-list-item__count {
		font-variant-numeric: tabular-nums;
		text-align: right;
	}
}

/* —— Group detail —— */

.rw-group-nav {
	background-color: var(--shd-dark);
}

.rw-group-nav .rw-btn {
	border-radius: 0;
}

.rw-group-nav__dropdown {
	display: flex;
	flex-direction: column;
	padding: 4px 8px 10px;
}

.rw-group-nav__dropdown a {
	color: var(--white);
	padding: 5px;
	text-decoration: none;
}

.rw-group-nav__dropdown a:hover {
	color: var(--act-blue);
}

.rw-group-detail {
	margin-bottom: 50px;
}

.rw-group-form__facilities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	align-items: end;
	background-color: var(--shd-light);
	border-radius: var(--big-radius);
	padding: 10px;
}

.rw-group-form__facilities > * {
	min-width: 0;
}

.rw-group-form__facilities label {
	margin-top: 0;
}

.rw-group-form__facilities input[type="number"] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.rw-group-form__facilities .rw-form__check {
	padding-bottom: 0;
}

.rw-group-form__actions {
	margin-top: 10px;
}

.rw-horse-search {
	align-self: start;
	width: 100%;
}

.rw-horse-search .search-result {
	position: static;
	max-height: 180px;
	overflow: auto;
}

.rw-horse-search .search-keuze-btn {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	font: inherit;
}

.rw-horse-search .search-keuze-btn:disabled {
	cursor: not-allowed;
}

.rw-horse-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-x: clip;
}

.rw-group-horses {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.rw-horse-row {
	position: relative;
	overflow: hidden;
	border: 1px solid #ddd;
	border-left: 2px solid var(--act-orange);
	border-radius: 3px;
	background-color: #fbfbfb;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.rw-horse-row--idle,
.rw-horse-search .search-keuze-btn.is-idle,
.rw-scan__result .is-idle,
.rw-dossiers__horse-title.is-idle,
.rw-dossiers__card-horse.is-idle,
.rw-modal__list .is-idle,
.rw-contract-item__horses .is-idle,
.rw-contract-page__title.is-idle,
.rw-list-item__horses .is-idle {
	opacity: 0.45;
}

.rw-horse-row--checked {
	border-left-color: var(--act-green);
}

.rw-horse-row--swipeable {
	cursor: grab;
}

.rw-horse-row.is-dragging {
	cursor: grabbing;
}

.rw-horse-row__action {
	position: absolute;
	inset: 0 auto 0 0;
	width: 72px;
	display: grid;
	place-items: center;
	background: linear-gradient(90deg, var(--act-orange) 0%, #ff9a2e 100%);
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.rw-horse-row.is-swiping .rw-horse-row__action {
	opacity: 1;
	visibility: visible;
}

.rw-horse-row--checked .rw-horse-row__action {
	background: linear-gradient(90deg, var(--act-green) 0%, #8ad63a 100%);
}

.rw-horse-row__action-icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	color: var(--white);
	font-size: 14px;
	opacity: 0;
	transform: scale(0.65);
	will-change: transform, opacity;
}

.rw-horse-row__front {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 25px 0.7fr 1fr auto;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background-color: #fbfbfb;
	border-radius: 2px;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.rw-horse-row a,
.rw-horse-row button {
	position: relative;
	z-index: 1;
}

.rw-horse-row__photo,
.rw-horse-row__photo-empty {
	display: grid;
	place-items: center;
	justify-self: center;
	line-height: 1;
	text-decoration: none;
}

.rw-horse-row__photo {
	color: var(--act-blue);
}

.rw-horse-row__photo:hover {
	color: var(--act-blue-dark);
}

.rw-horse-row__photo-empty {
	color: var(--shd-mid);
}

.rw-horse-row__name {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--text);
	text-decoration: none;
	min-width: 0;
}

.rw-horse-row__name i {
	color: var(--shd-mid);
}

.rw-horse-row__owner {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rw-horse-row__remove {
	border: none;
	background: transparent;
	color: var(--alrt-red);
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}

.rw-horse-row__remove:hover {
	color: var(--act-blue-dark);
}

@media screen and (max-width: 600px) {
	.rw-horse-row__front {
		grid-template-columns: 25px 1fr auto;
	}

	.rw-horse-row__owner {
		display: none;
	}
}

/* —— Buttons (accent / e-Boekhouden) —— */

.rw-btn--accent {
	background-color: var(--act-orange);
	color: var(--white);
}

.rw-btn--accent:hover:not(:disabled) {
	filter: brightness(0.92);
	color: var(--white);
}

.rw-form input:disabled,
.rw-form textarea:disabled,
.rw-form select:disabled {
	background-color: var(--shd-light);
}

/* —— Customer archive —— */

.rw-filter-flag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: transparent;
	color: var(--shd-mid);
	font: inherit;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: var(--sml-radius);
}

.rw-filter-flag:hover,
.rw-filter-flag.is-on {
	color: var(--act-orange);
}

.rw-list-item__body--customer {
	grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
}

.rw-list-item__body--customer-horse {
	grid-template-columns: 1fr auto;
}

.rw-list-item__notice {
	grid-column: 1 / -1;
}

@media screen and (max-width: 768px) {
	.rw-list-item__email,
	.rw-list-item__phone {
		display: none;
	}

	.rw-list-item--plain .rw-list-item__body--customer {
		grid-template-columns: 1fr 1fr auto;
	}
}

/* —— Customer detail —— */

.rw-form.rw-customer-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	align-items: start;
}

.rw-customer-form__span,
.rw-customer-form__actions {
	grid-column: 1 / -1;
}

.rw-customer-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rw-customer-form__bookkeeping {
	display: contents;
}

.rw-customer-detail {
	margin-bottom: 50px;
}

.rw-customer-detail--idle {
	opacity: 0.92;
}

.rw-customer-detail__toolbar {
	justify-content: flex-end;
	margin-bottom: 4px;
}

.rw-customer-detail__approved {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(255, 255, 255, 0.4);
	padding: 8px 15px 8px 10px;
	border-radius: var(--sml-radius);
}

.rw-customer-detail__approved .rw-switch input:checked + .slider.customer {
	background-color: var(--act-green);
}

.rw-customer-detail__approved .rw-switch input:focus + .slider.customer {
	box-shadow: 0 0 1px var(--act-green);
}

.rw-call {
	width: 30px;
	height: 30px;
	background-color: var(--act-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--white);
	text-decoration: none;
}

.rw-call:hover {
	background-color: var(--act-blue-dark);
	color: var(--white);
}

.rw-contract {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--act-blue);
	text-decoration: none;
	background: none;
	border: none;
	font: inherit;
	cursor: pointer;
	padding: 0;
	white-space: nowrap;
}

.rw-contract:hover {
	color: var(--act-blue-dark);
}

.rw-contract--pending,
.rw-contract--open {
	color: var(--act-orange);
}

.rw-contract--pending i,
.rw-contract--open i {
	color: var(--act-orange);
}

.rw-contract--signed i {
	color: var(--act-green);
}

.rw-contract-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rw-contract-page__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.rw-contract-page__title {
	margin: 0;
	font-size: 22px;
}

.rw-contract-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 12px;
	align-items: start;
}

.rw-contract-page__frame {
	width: 100%;
	height: 78vh;
	min-height: 480px;
	border: 1px solid #ddd;
	border-radius: var(--big-radius);
	background: var(--white);
}

.rw-contract-page__side {
	position: sticky;
	top: 12px;
}

.rw-contract-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rw-contract-step {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-left: 12px;
	border-left: 3px solid #ddd;
}

.rw-contract-step--done {
	border-left-color: var(--act-green);
}

.rw-contract-step--wait {
	border-left-color: var(--act-orange);
}

.rw-contract-step--rejected {
	border-left-color: var(--alrt-red);
}

.rw-contract-page__confirm {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (max-width: 800px) {
	.rw-contract-page__layout {
		grid-template-columns: 1fr;
	}

	.rw-contract-page__side {
		position: static;
		order: -1;
	}

	.rw-contract-page__frame {
		height: 70vh;
		min-height: 360px;
	}
}

.rw-sign {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.rw-sign-pad {
	width: 300px;
	max-width: 100%;
	height: 150px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: #fff;
	touch-action: none;
}

.rw-sign__reset {
	border: none;
	background: none;
	padding: 0;
	font: inherit;
	color: var(--act-blue);
	cursor: pointer;
}

.rw-sign__reset:hover {
	color: var(--act-blue-dark);
}

.rw-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.rw-check input[type="checkbox"] {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 2px 0 0;
	padding: 0;
}

.rw-check span {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.4;
}

.rw-contract__delete {
	border: none;
	background: transparent;
	color: var(--alrt-red);
	cursor: pointer;
	padding: 2px 4px;
	line-height: 1;
}

.rw-contract__delete:hover {
	color: var(--act-blue-dark);
}

/* —— Overlay (modals) —— */

#std-overlay {
	position: fixed;
	background-color: rgba(0, 0, 0, 0.7);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
}

.rw-modal--narrow {
	max-width: 400px;
}

/* —— FAB (new dossier) —— */

.rw-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 70px;
	height: 70px;
	background-color: var(--act-orange);
	color: var(--white);
	border-radius: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
	z-index: 99;
	border: none;
	cursor: pointer;
}

.rw-fab:hover {
	filter: brightness(0.95);
	color: var(--white);
}

/* —— Dossier board —— */

#rw-dossiers-dashboard-root {
	width: 100%;
}

.rw-dossiers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rw-dossiers__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.rw-dossiers__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	font-size: 13px;
}

.rw-dossiers__stat {
	color: var(--shd-mid);
	text-decoration: none;
}

a.rw-dossiers__stat:hover {
	color: var(--act-blue);
}

.rw-dossiers__stat--due {
	color: var(--text);
	font-weight: 700;
}

.rw-dossiers__date {
	align-self: auto;
}

.rw-dossiers__board {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rw-dossiers__future {
	background-color: var(--shd-light);
	border-radius: var(--big-radius);
	padding: 10px;
}

.rw-dossiers__future-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	border: none;
	background: transparent;
	padding: 0;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	color: var(--text);
	text-align: left;
}

.rw-dossiers__future-toggle:hover {
	color: var(--act-blue);
}

.rw-timeline {
	position: relative;
	padding-left: 16px;
	margin-top: 8px;
}

.rw-timeline::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: var(--shd-mid);
	border-radius: 1px;
}

.rw-timeline__month {
	margin: 12px 0 6px;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--shd-mid);
	text-transform: capitalize;
}

.rw-timeline__group:first-child .rw-timeline__month {
	margin-top: 0;
}

.rw-timeline__item {
	position: relative;
	margin-bottom: 8px;
}

.rw-timeline__item::before {
	content: '';
	position: absolute;
	left: -15px;
	top: 14px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--act-blue);
	box-shadow: 0 0 0 2px var(--white);
}

.rw-dossiers__future .rw-timeline__item::before {
	box-shadow: 0 0 0 2px var(--shd-light);
}

.rw-dossiers__section {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	scroll-margin-top: 12px;
}

.rw-dossiers__section-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.rw-dossiers__section-count {
	font-weight: 600;
	font-size: 13px;
	color: var(--shd-mid);
}

.rw-dossiers__section .rw-page__title {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.rw-dossiers__section--done .rw-dossiers__section-title {
	font-weight: 600;
	color: var(--shd-mid);
}

.rw-dossiers__section--done .rw-dossier {
	border-left-color: var(--act-green);
}

.rw-dossiers__horse-title {
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 400;
}

.rw-dossiers__horse-title a {
	color: inherit;
	text-decoration: none;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}

.rw-dossiers__horse-title b {
	font-weight: 700;
}

.rw-dossiers__horse-title a:hover {
	color: var(--act-blue);
}

.rw-dossiers__card-horse {
	display: block;
	margin: 0 0 2px;
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
}

.rw-dossiers__card-horse:hover {
	color: var(--act-blue);
}

.rw-dossiers__cards {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.rw-dossiers__cards--grid {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.rw-dossiers__cell {
	min-width: 0;
}

.rw-dossier {
	border: 1px solid #ddd;
	border-left: 3px solid var(--act-blue);
	padding: 5px 5px 0 8px;
	border-radius: 3px;
	background-color: #fcfcfc;
}

.rw-dossier--due {
	border-left-color: var(--act-orange);
	background-color: rgba(255, 136, 0, 0.08);
}

.rw-dossier--done {
	border-left-color: var(--act-green);
}

.rw-dossier__late {
	display: inline-flex;
	align-items: center;
	color: var(--act-orange);
	font-size: 15px;
	line-height: 1;
	cursor: default;
}

.rw-dossier__reaction {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 4px 0;
	line-height: 17px;
	padding: 4px 6px;
	border-left: 2px solid var(--act-blue);
	background: rgba(0, 178, 255, 0.06);
	border-radius: 0 3px 3px 0;
}

.rw-dossier__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-size: 11px;
}

.rw-dossier__counters {
	display: flex;
	gap: 6px;
	font-size: 12px;
	color: #777;
	margin-left: 8px;
}

.rw-dossier__pin,
.rw-dossier__save-treat,
.rw-dossier__more,
.rw-actie__edit {
	border: none;
	background: transparent;
	color: #aaa;
	cursor: pointer;
	padding: 2px 4px;
	line-height: 1;
}

.rw-dossier__pin:hover,
.rw-dossier__more:hover,
.rw-actie__edit:hover {
	color: var(--act-blue);
}

.rw-dossier__note,
.rw-actie__note {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 4px 0;
	line-height: 17px;
}

.rw-dossier__treat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 2px;
}

.rw-dossier__treat-pick,
.rw-dossier__picker {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rw-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: none;
	border-radius: 3px;
	padding: 4px 5px;
	line-height: 15px;
	color: #999;
	background-color: rgba(0, 0, 0, 0.05);
	font: inherit;
	cursor: pointer;
}

.rw-chip--treat {
	border: 1px solid var(--act-orange);
	color: var(--act-orange-dark);
	background-color: rgba(255, 100, 0, 0.05);
}

.rw-chip:disabled {
	cursor: default;
}

.rw-dossier__save-treat {
	color: var(--act-blue);
	font-size: 20px;
}

.rw-dossier__file {
	color: #aaa;
}

.rw-dossier__file:hover {
	color: var(--act-blue);
}

.rw-dossier__action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: none;
	border-radius: 3px;
	padding: 5px;
	font: inherit;
	cursor: pointer;
	background-color: rgba(0, 178, 255, 0.1);
	color: rgba(0, 119, 170, 0.5);
}

.rw-dossier__action--treat {
	background-color: var(--act-orange);
	color: #fff;
}

.rw-dossier__action--done {
	background-color: var(--act-green);
	color: #fff;
	cursor: default;
}

.rw-dossier__action--treat i,
.rw-dossier__action--done i {
	color: #fff;
}

.rw-dossier__more {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 6px 0;
	color: #aaa;
}

.rw-dossier__extra {
	border-top: 1px solid #eee;
	padding-top: 10px;
	margin-top: 5px;
}

.rw-dossier__label {
	margin: 8px 0 4px;
	font-size: 11px;
	color: var(--shd-mid);
}

.rw-dossier__upload {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rw-dossier__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	margin-bottom: 6px;
}

.rw-dossier__closed {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--shd-mid);
}

.rw-dossier--idle {
	border-left-color: var(--shd-light);
	background: transparent;
	border-color: transparent;
	padding-left: 3px;
}

.rw-dossier__idle {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 5px;
}

.rw-dossier__idle-icon {
	color: #aaa;
}

.rw-dossier__idle-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.rw-dossier__idle-note p {
	margin: 0;
	line-height: 17px;
}

.rw-dates {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background-color: rgba(0, 0, 0, 0.05);
	padding: 5px;
	gap: 3px;
	border-radius: 5px;
	text-align: center;
	max-height: 144px;
	overflow: auto;
}

.rw-dates__head {
	font-size: 11px;
	color: var(--shd-mid);
}

.rw-dates__day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	padding: 3px;
	border: none;
	border-radius: 3px;
	color: #777;
	cursor: pointer;
	height: 53px;
	font: inherit;
}

.rw-dates__day:disabled {
	cursor: default;
}

.rw-dates__num {
	font-size: 14px;
	font-weight: 700;
	line-height: 15px;
}

.rw-dates__month {
	font-size: 10px;
	text-transform: uppercase;
	line-height: 10px;
}

.rw-dates__day i,
.rw-dates__day svg {
	font-size: 20px;
	color: #ddd;
}

.rw-dates__day.is-set i,
.rw-dates__day.is-set svg,
.rw-dates__day.is-set .fa-calendar-check {
	color: var(--act-blue);
}

.rw-acties {
	border-bottom: 1px solid #eee;
	margin-bottom: 5px;
	max-height: 200px;
	overflow: auto;
}

.rw-acties--preview {
	max-height: 60vh;
	border-top: 1px solid #eee;
	padding-top: 10px;
	margin-top: 8px;
}

.rw-actie-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.rw-actie {
	display: flex;
	gap: 5px;
	font-size: 13px;
}

.rw-actie__status {
	margin-top: 13px;
}

.rw-actie__status--done {
	color: var(--act-green);
}

.rw-actie__status--open {
	color: var(--alrt-red);
}

.rw-actie__status--typed {
	color: var(--act-blue);
}

.rw-actie--auto {
	opacity: 0.7;
}

.rw-actie--late b {
	color: var(--alrt-red);
}

.rw-actie__note--typed {
	padding: 2px 0;
}

.rw-actie__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rw-actie__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.rw-reactie-form {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rw-reactie-form input {
	flex: 1;
	min-width: 0;
	height: 30px;
}

.rw-send {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background-color: var(--act-green);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rw-send:disabled {
	background-color: #ddd;
	cursor: not-allowed;
}

.rw-actie .rw-send {
	width: 30px;
	height: 30px;
	font-size: 15px;
}

/* —— Data dashboard islands —— */

.rw-data-page {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
}

.rw-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	align-self: start;
	gap: 2px;
	padding: 4px;
	margin: 0;
	background-color: var(--white);
	border: 1px solid #e6e6e6;
	border-radius: var(--big-radius);
}

.rw-tab {
	margin: 0;
	padding: 8px 16px;
	border: none;
	border-radius: var(--sml-radius);
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--input);
	cursor: pointer;
}

.rw-tab:hover {
	background-color: var(--shd-light);
	color: var(--text);
}

.rw-tab:focus-visible {
	outline: 2px solid var(--act-blue);
	outline-offset: 1px;
}

.rw-tab.is-active {
	background-color: var(--act-blue-trans);
	color: var(--act-blue-dark);
}

/* —— Tabbed pages (Taken + horse detail; mobile tabs / desktop columns) —— */

.rw-tabbed-page {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rw-tabbed-page__tabs {
	display: none;
}

.rw-tabbed-page__panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: start;
}

.rw-tabbed-page__panel {
	min-width: 0;
}

.rw-tabbed-page__todo .rw-page__title {
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {
	.rw-tabbed-page__tabs {
		display: inline-flex;
		align-self: start;
	}

	.rw-tabbed-page__panels {
		display: block;
	}
}

.rw-islands {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 0;
	align-items: start;
}

.rw-island {
	box-sizing: border-box;
	background-color: var(--white);
	border-radius: var(--big-radius);
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	overflow: hidden;
}

.rw-island--full {
	grid-column: 1 / -1;
}

.rw-island__lede {
	margin: 0;
	line-height: 1.4;
}

.rw-rvo-filters {
	grid-template-columns: auto 1fr;
	align-items: center;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.rw-rvo-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.rw-rvo-toolbar__all {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.rw-rvo-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: start;
}

.rw-rvo-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.rw-rvo-group__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.rw-rvo-group__select {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 8px;
	cursor: pointer;
}

.rw-rvo-group__select input {
	margin: 0;
}

.rw-rvo-item {
	grid-template-columns: auto 1fr auto;
	align-items: start;
	overflow: visible;
}

.rw-rvo-item--new {
	border-left: 3px solid var(--act-green);
}

.rw-rvo-item--moved {
	border-left: 3px solid var(--act-blue);
}

.rw-rvo-item--left {
	border-left: 3px solid var(--act-orange);
}

.rw-rvo-item__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.rw-rvo-item__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}

.rw-rvo-item__body .rw-list-item__name {
	margin: 0;
	min-width: 0;
}

.rw-rvo-kind {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--shd-mid);
}

.rw-rvo-ids {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rw-rvo-id {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	padding: 4px 8px;
	border: 1px solid #ddd;
	border-radius: var(--sml-radius);
	background: #fff;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
}

.rw-rvo-id:hover,
.rw-rvo-id:focus-visible {
	border-color: var(--act-blue);
}

.rw-rvo-id--empty {
	cursor: default;
	opacity: 0.7;
}

.rw-rvo-id__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--shd-mid);
}

.rw-rvo-id__value {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.rw-rvo-id__hint {
	font-size: 11px;
	color: var(--act-blue);
	opacity: 0;
}

.rw-rvo-id:hover .rw-rvo-id__hint,
.rw-rvo-id:focus-visible .rw-rvo-id__hint,
.rw-rvo-id.is-copied .rw-rvo-id__hint {
	opacity: 1;
}

.rw-rvo-id--empty .rw-rvo-id__hint {
	display: none;
}

.rw-rvo-where {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 13px;
}

.rw-rvo-where > div {
	display: flex;
	gap: 8px;
	min-width: 0;
}

.rw-rvo-where dt {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 4.2em;
	color: var(--shd-mid);
	font-weight: 600;
}

.rw-rvo-info {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: help;
	line-height: 1;
	font-size: 12px;
}

.rw-rvo-info.rw-tip::after {
	left: 0;
	transform: none;
	white-space: normal;
	width: 220px;
	text-align: left;
}

.rw-rvo-where dd {
	margin: 0;
	min-width: 0;
}

.rw-rvo-item__link {
	color: var(--act-blue);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: start;
	margin-top: 2px;
}

.rw-filters--single {
	grid-template-columns: 1fr;
}

.rw-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rw-stats--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rw-stats--contracts {
	grid-template-columns: 1fr 1fr;
}

.rw-stats--contracts > .rw-stat:first-child {
	grid-column: 1 / -1;
}

.rw-stat {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 1px solid #ddd;
	border-radius: var(--sml-radius);
	padding: 8px;
	background: #fbfbfb;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
	box-sizing: border-box;
	overflow: hidden;
}

/* Voer (and any single-stat island): fill the row instead of half a 2-col grid */
.rw-stats > .rw-stat:only-child {
	grid-column: 1 / -1;
}

.rw-stat:hover {
	border-color: var(--act-blue);
}

.rw-stat[aria-expanded="true"] {
	border-color: var(--act-blue);
	background: #fff;
}

.rw-stat:focus-visible {
	outline: 2px solid var(--act-blue);
	outline-offset: 2px;
}

.rw-stat__value {
	display: block;
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
}

.rw-stat--static {
	cursor: default;
}

.rw-stat--static:hover {
	border-color: #ddd;
}

.rw-voer-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.rw-voer-head .rw-page__title {
	margin: 0;
}

.rw-voer-year {
	margin: 0;
	max-width: 110px;
	padding: 4px 28px 4px 8px;
	font-size: 13px;
}

.rw-voer-months {
	display: grid;
	/* Half-width island: 12 cols overflow; 6×2 stays inside the widget */
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 4px;
	align-items: end;
	min-height: 110px;
	width: 100%;
	box-sizing: border-box;
}

.rw-voer-month {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	margin: 0;
	padding: 4px 0;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: var(--sml-radius);
	background: none;
	font: inherit;
	color: var(--input);
	cursor: pointer;
}

.rw-voer-month:disabled {
	cursor: default;
	opacity: 0.45;
}

.rw-voer-month:not(:disabled):hover {
	background: #f7f7f7;
}

.rw-voer-month.is-active {
	border-color: var(--act-blue);
	background: #fff;
}

.rw-voer-month__chart {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 72px;
	min-width: 0;
}

.rw-voer-month__bar {
	display: block;
	width: 100%;
	max-width: 22px;
	min-height: 4px;
	border-radius: 3px 3px 0 0;
	background: var(--act-blue);
	opacity: 0.85;
	box-sizing: border-box;
}

.rw-voer-month.is-empty .rw-voer-month__bar {
	background: #ddd;
	opacity: 1;
	min-height: 3px;
	height: 3px !important;
}

.rw-voer-month__count {
	font-size: 10px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--shd-mid);
	min-height: 10px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rw-voer-month__label {
	font-size: 10px;
	line-height: 1;
	color: var(--shd-mid);
	text-transform: lowercase;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rw-voer-detail {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
	min-width: 0;
}

.rw-voer-clusters {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rw-voer-cluster__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 600;
}

.rw-voer-cluster__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rw-voer-timeline {
	margin-top: 0;
}

.rw-voer-event__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.rw-voer-event__row .rw-list-item__name {
	margin: 0;
	font-weight: 400;
	text-transform: capitalize;
}

.rw-voer-event__ruifs {
	margin: 2px 0 0;
	font-size: 12px;
}

.rw-voer-group__count {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}


.rw-contract-item {
	grid-template-columns: 1fr auto;
	align-items: start;
}

.rw-incasso-item {
	grid-template-columns: 1fr;
	align-items: start;
	gap: 10px;
}

.rw-incasso-item__who {
	min-width: 0;
}

.rw-incasso-item__who .rw-list-item__name,
.rw-incasso-item__who .rw-error {
	margin: 0;
}

.rw-incasso-item__who .rw-list-item__name .rw-muted {
	font-weight: 400;
}

.rw-incasso-item__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.rw-incasso-item__actions .rw-btn,
.rw-incasso-item__check {
	box-sizing: border-box;
	min-height: 32px;
	padding: 4px 10px;
	font-size: 13px;
	line-height: 1.2;
}

.rw-incasso-item__actions .rw-btn:not(.rw-btn--accent) {
	border: 1px solid #ddd;
	background: var(--white);
}

.rw-incasso-item__check {
	display: inline-flex;
	align-items: center;
	margin: 0;
	border: 1px solid #ddd;
	border-radius: var(--sml-radius);
	background: var(--white);
}

.rw-incasso-item__check input[type="checkbox"] {
	margin: 0;
}

.rw-contract-item__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rw-contract-item__body .rw-list-item__name {
	margin: 0;
}

.rw-contract-item__horses {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rw-contract-item__horses li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.rw-contract-item__horses a:not(.rw-tag) {
	color: inherit;
}

.rw-contract-item__horses a:not(.rw-tag):hover {
	color: var(--act-blue);
}

.rw-contract-item__horses a.rw-tag {
	text-decoration: none;
}

.rw-contract-item__horses a.rw-tag--signed {
	color: var(--act-green-dark);
}

.rw-contract-item__horses a.rw-tag--pending {
	color: var(--act-orange-dark);
}

.rw-contract-panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.rw-ubn-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 10px;
	align-items: start;
}

.rw-ubn-kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--shd-dark);
}

.rw-ubn-place {
	display: block;
	margin-top: 2px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.rw-ubn-col__lead {
	display: flex;
	flex-direction: column;
	margin: 0 0 2px;
}

.rw-ubn-col__count {
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
}

.rw-ubn-gap {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	min-width: 0;
}

.rw-ubn-gap > input {
	grid-column: 1;
	grid-row: 1;
	margin: 4px 0 0;
}

.rw-ubn-gap__name {
	grid-column: 2;
	grid-row: 1;
	margin: 2px 0 0;
	align-self: center;
}

.rw-ubn-gap > .rw-rvo-item__link {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

.rw-ubn-gap__body {
	grid-column: 2 / -1;
	grid-row: 2;
	min-width: 0;
}

.rw-ubn-gap__is {
	margin: 6px 0 0;
}

.rw-ubn-gap__group {
	margin: 2px 0 0;
	font-size: 12px;
	font-weight: 400;
}

.rw-ubn-gap .rw-rvo-ids {
	margin-top: 6px;
	min-width: 0;
}

.rw-ubn-gap .rw-rvo-id {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rw-ubn-gap .rw-rvo-id__value {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rw-ubn-toolbar {
	margin-bottom: 4px;
}

.rw-ubn-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media screen and (max-width: 768px) {
	.rw-islands {
		grid-template-columns: 1fr;
	}

	.rw-rvo-filters {
		grid-template-columns: 1fr;
	}

	.rw-rvo-toolbar {
		justify-content: space-between;
	}

	.rw-rvo-columns,
	.rw-ubn-columns {
		grid-template-columns: 1fr;
	}

	.rw-rvo-item {
		grid-template-columns: auto 1fr;
	}

	.rw-rvo-item__link {
		grid-column: 2;
		justify-self: start;
	}

	.rw-stats {
		grid-template-columns: 1fr;
	}

	.rw-contract-item {
		grid-template-columns: 1fr;
	}
}

/* —— Taken + controles (semantic rw-*; was tasks-style / controle-style) —— */

.bale-icon {
	height: 15px;
}

.rw-panel {
	display: grid;
	gap: 10px;
	background-color: var(--white);
	border-radius: var(--big-radius);
	padding: 10px;
}

/* After .rw-panel / .rw-page so mobile hide wins over their display */
@media screen and (max-width: 768px) {
	.rw-tabbed-page .rw-tabbed-page__panel {
		display: none;
	}

	.rw-tabbed-page .rw-tabbed-page__panel.is-active {
		display: block;
	}

	.rw-tabbed-page .rw-tabbed-page__panel.is-active.rw-panel {
		display: grid;
	}

	.rw-tabbed-page .rw-tabbed-page__panel.is-active.rw-page {
		display: flex;
		flex-direction: column;
	}
}

.rw-controles-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rw-controles-archive {
	display: grid;
	gap: 2px;
	margin-top: 10px;
}

.rw-controle-wrap {
	display: grid;
}

.rw-controle-row {
	display: grid;
	grid-template-columns: 15px 1fr auto;
	align-items: center;
	gap: 5px;
	width: 100%;
	margin: 0;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background-color: #fbfbfb;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.rw-controle-row .fa-triangle-exclamation {
	color: var(--act-orange);
}

.rw-controle-row .fa-circle-check {
	color: var(--act-green);
}

.rw-controle-row__title {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.rw-controle-icons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rw-controle-icons > span {
	display: flex;
	align-items: center;
	gap: 2px;
}

.rw-controle-icons .fa-droplet {
	color: var(--act-blue);
}

.rw-controle-icons .fa-wheat-awn {
	color: #DEB80B;
}

.rw-controle-icons .fa-bolt {
	color: var(--act-orange);
}

.rw-controle-icons .fa-comment-dots {
	color: var(--act-green);
}

.rw-controle-icons .idle svg {
	fill: var(--shd-mid);
	color: var(--shd-mid);
}

.rw-num {
	font-variant-numeric: tabular-nums;
}

.rw-checkup-detail {
	display: grid;
	gap: 5px;
	margin-bottom: 20px;
	padding: 10px;
}

.rw-checkup-list {
	display: grid;
	gap: 2px;
}

.rw-checkup-response {
	color: var(--shd-mid);
	font-size: 12px;
}

.rw-checkup-item {
	display: grid;
	grid-template-columns: auto 1fr 1fr 60px;
	align-items: center;
	gap: 5px;
	border: none;
	background-color: var(--act-blue-trans);
	padding: 5px;
	border-radius: 3px;
}

.rw-checkup-item--edit {
	grid-template-columns: 1fr 1fr auto;
}

.rw-checkup-item input.state {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	display: grid;
	background-color: rgba(255, 255, 255, 0.3);
	border: 2px solid var(--white);
	box-shadow: 0 0 1px 0 rgba(0, 0, 0, 1);
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.rw-checkup-item input.state:checked {
	background-color: var(--act-green);
}

.rw-checkup-item .fa-check {
	opacity: 0.3;
}

.rw-checkup-item .fa-circle-exclamation {
	color: var(--act-orange);
}

.rw-checkup-action-toggle {
	display: flex;
	align-items: center;
	gap: 5px;
}

.rw-checkup-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.rw-checkup-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rw-checkup-field label {
	display: block;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--input);
}

.rw-checkup-field input,
.rw-checkup-field textarea {
	width: 100%;
	box-sizing: border-box;
}

.rw-checkup-notes {
	width: 100%;
}

.rw-checkup-notes textarea {
	min-height: 88px;
	resize: vertical;
}

.rw-checkup-new__head,
.rw-checkup-last__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.rw-checkup-form {
	display: grid;
	gap: 10px;
}

.rw-checkup-form > .button {
	justify-self: end;
}

.rw-checkup-last {
	background-color: var(--shd-light);
	margin-top: 10px;
}

.rw-checkup-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.rw-open-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	background-color: var(--white);
	border: 1px solid #e6e6e6;
	border-left: 3px solid var(--act-orange);
	border-radius: var(--big-radius);
}

.rw-open-actions.is-zero {
	border-left-color: var(--act-green);
}

.rw-open-actions__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.rw-open-actions__summary {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.rw-open-actions__value {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--act-orange);
}

.rw-open-actions__value.is-zero {
	color: var(--act-green);
}

.rw-open-actions__label {
	font-size: 14px;
	line-height: 1.3;
	color: var(--input);
}

.rw-open-actions__btn {
	margin: 0;
	padding: 6px 14px;
	border: none;
	flex-shrink: 0;
}

.rw-open-actions__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 4px;
	border-top: 1px solid #eee;
}

.rw-open-actions__day {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rw-open-actions__day-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--input);
	cursor: pointer;
	text-align: left;
}

.rw-open-actions__day-head:hover {
	color: var(--act-blue);
}

.rw-open-actions__day-count {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--act-orange);
}

.rw-open-actions__items {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rw-open-actions__items li {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 8px;
	padding: 5px;
	border: none;
	background-color: var(--act-blue-trans);
	border-radius: 3px;
}

.rw-open-actions__items li.is-busy {
	opacity: 0.6;
}

.rw-open-actions__items input.state {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	display: grid;
	background-color: rgba(255, 255, 255, 0.3);
	border: 2px solid var(--white);
	box-shadow: 0 0 1px 0 rgba(0, 0, 0, 1);
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.rw-open-actions__items input.state:checked {
	background-color: var(--act-green);
}

.rw-open-actions__items input.state:disabled {
	cursor: default;
}

.rw-open-actions__item-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	align-items: center;
	min-width: 0;
}

.rw-open-actions__item-body .name {
	font-size: 13px;
	font-weight: 500;
	color: var(--input);
}

.rw-open-actions__item-body .value {
	font-size: 12px;
	color: var(--shd-mid);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rw-open-actions__item-body .value a {
	color: inherit;
}

.rw-open-actions__item-body .value a:hover {
	color: var(--act-blue);
}

.rw-todo {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

.rw-todo-add {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 18px 1fr;
	align-items: center;
	gap: 8px;
	padding: 10px;
	background-color: var(--shd-light);
	border-radius: var(--sml-radius);
	min-width: 0;
}

.rw-todo-add-icon {
	display: grid;
	justify-content: center;
	color: var(--act-green);
}

.rw-todo-add-icon svg {
	color: var(--act-green);
}

.rw-todo-add .rw-todo-input {
	width: 100%;
	margin: 0;
	border: 1px solid #e4e4e4;
	font-size: 14px;
}

.rw-todo-add-opts {
	display: flex;
	grid-column: 2;
	gap: 5px;
	flex-wrap: wrap;
	align-items: center;
}

.rw-todo-add-opts select,
.rw-todo-add-opts input[type="date"] {
	margin: 0;
	padding: 6px 30px 6px 8px;
	border: 1px solid #e4e4e4;
}

.rw-todo-add-opts input[type="date"] {
	padding: 6px 8px;
}

.rw-todo-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	color: var(--shd-mid);
}

.rw-todo-date input[type="date"] {
	min-width: 0;
}

.rw-todo-date-edit {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	align-items: center;
}

.rw-todo-add-opts .button {
	padding: 6px 14px;
	border: none;
	margin-left: auto;
}

.rw-todo-add-opts .button:disabled {
	background-color: var(--shd-mid);
	cursor: default;
}

.rw-todo-filters {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

.rw-todo-filter {
	background: none;
	border: 1px solid #e4e4e4;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	color: var(--input);
	cursor: pointer;
}

.rw-todo-filter .rw-num {
	margin-left: 5px;
	color: var(--shd-mid);
}

.rw-todo-filter.active {
	background-color: var(--act-blue-trans);
	border-color: var(--act-blue);
	color: var(--act-blue-dark);
}

.rw-todo-filter.active .rw-num {
	color: var(--act-blue-dark);
}

.rw-todo-list {
	display: grid;
	gap: 0;
}

.rw-todo-item {
	display: grid;
	grid-template-columns: 22px 1fr 22px;
	align-items: start;
	gap: 8px;
	padding: 8px 5px;
	border-bottom: 1px solid #eee;
}

.rw-todo-item:hover {
	background-color: #fafafa;
}

.rw-todo-item.saving {
	opacity: 0.6;
}

.rw-todo-check {
	background: none;
	border: none;
	padding: 0;
	font-size: 18px;
	line-height: 20px;
	cursor: pointer;
}

.rw-todo-check .fa-circle {
	color: var(--shd-mid);
}

.rw-todo-check .fa-circle-check {
	color: var(--act-green);
}

.rw-todo-body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.rw-todo-text {
	font-size: 14px;
	line-height: 20px;
	cursor: text;
	word-break: break-word;
}

.rw-todo-item.done .rw-todo-text {
	color: var(--shd-mid);
	text-decoration: line-through;
}

.rw-todo-edit {
	width: 100%;
	margin: 0;
	padding: 2px 5px;
	font-size: 14px;
	border: 1px solid var(--act-blue);
}

.rw-todo-meta {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 4px;
	align-items: center;
}

.rw-todo-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 2px 8px;
	border: 1px solid #e6e6e6;
	border-radius: var(--sml-radius);
	background-color: var(--shd-light);
	font-size: 11px;
	line-height: 16px;
	font-weight: 400;
	color: var(--shd-mid);
	cursor: pointer;
}

.rw-todo-chip svg {
	color: var(--shd-mid);
	font-size: 10px;
}

.rw-todo-chip.filled {
	background-color: var(--white);
	border-color: #ddd;
	color: var(--input);
}

.rw-todo-chip.late {
	background-color: #fff5f5;
	border-color: #f0c9c9;
	color: var(--alrt-red);
	font-weight: 500;
}

.rw-todo-chip.late svg {
	color: var(--alrt-red);
}

.rw-todo-chip:hover {
	border-color: #ccc;
	background-color: #f3f3f3;
}

.rw-todo-chip.filled:hover {
	background-color: #fafafa;
}

.rw-todo-chip.late:hover {
	background-color: #ffecec;
}

.rw-todo-inline {
	margin: 0;
	padding: 2px 24px 2px 6px;
	font-size: 12px;
	border: 1px solid #ddd;
	border-radius: var(--sml-radius);
}

.rw-todo-del {
	background: none;
	border: none;
	padding: 0;
	color: var(--shd-mid);
	cursor: pointer;
	visibility: hidden;
}

.rw-todo-item:hover .rw-todo-del,
.rw-todo-item.done .rw-todo-del {
	visibility: visible;
}

.rw-todo-del:hover svg {
	color: var(--alrt-red);
}

.rw-todo-empty {
	color: var(--shd-mid);
	padding: 10px 5px;
}

.rw-todo-done {
	display: grid;
	gap: 0;
	margin-top: 5px;
}

.rw-todo-done-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 0;
	border-top: 1px solid #eee;
}

.rw-todo-toggle,
.rw-todo-clear {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	padding: 0;
	font-size: 12px;
	color: var(--input);
	cursor: pointer;
}

.rw-todo-toggle .rw-num {
	color: var(--shd-mid);
}

.rw-todo-clear {
	color: var(--alrt-red);
}

.rw-todo-clear svg {
	color: var(--alrt-red);
}

.rw-todo-clear:disabled {
	color: var(--shd-mid);
	cursor: default;
}

@media screen and (max-width: 640px) {
	.rw-open-actions__item-body {
		grid-template-columns: 1fr;
		gap: 1px;
	}

	.rw-todo-add-opts .button {
		margin-left: 0;
	}
}

/* —— Scannen (Bluetooth HID chip reader) —— */

.rw-scan {
	max-width: 480px;
	gap: 12px;
}

.rw-scan__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rw-scan__well {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	margin: 0;
	padding: 16px;
	background-color: var(--shd-light);
	border: 1px dashed var(--shd-mid);
	border-radius: var(--big-radius);
	cursor: text;
}

.rw-scan__catcher {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.02;
	font-size: 16px;
	color: transparent;
	caret-color: transparent;
	background: transparent;
	border: 0;
	padding: 0;
}

.rw-scan__well:focus-within {
	border-color: var(--act-blue);
	border-style: solid;
}

.rw-scan__readout {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--shd-dark);
	text-align: center;
	word-break: break-all;
}

.rw-scan__readout i {
	font-size: 28px;
	color: var(--act-blue);
}

.rw-scan__type {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.rw-scan__type input {
	width: 100%;
	font-size: 16px;
}

.rw-scan__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rw-scan__result {
	min-height: 1.2em;
}

.rw-scan .scan-results ul {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: grid;
	gap: 8px;
}

.rw-scan .scan-results a {
	color: var(--act-blue);
}

.rw-aanmelden {
	max-width: none;
	width: 100%;
	padding: 24px;
	gap: 14px;
}

.rw-aanmelden__brand {
	display: flex;
	justify-content: center;
}

.rw-aanmelden__brand img {
	display: block;
	height: 80px;
	width: auto;
	max-width: 280px;
	object-fit: contain;
}

.rw-aanmelden .rw-page__title,
.rw-aanmelden__lede {
	text-align: center;
}

.rw-aanmelden__lede {
	margin: 0;
}

.rw-form.rw-aanmelden__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	align-items: start;
	margin-top: 4px;
}

.rw-aanmelden__span {
	grid-column: 1 / -1;
}

.rw-aanmelden__notice,
.rw-aanmelden__legal {
	margin: 0;
}

.rw-aanmelden__actions {
	display: flex;
}

.rw-aanmelden__done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.rw-aanmelden__done .rw-btn {
	display: inline-flex;
	width: fit-content;
	text-decoration: none;
}

body.rw-aanmelden-page main {
	padding-left: 0;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: safe center;
	box-sizing: border-box;
}

body.rw-aanmelden-page .rw-page-wrap {
	width: 100%;
	max-width: 880px;
	padding: 24px 16px;
	margin: 0 auto;
}

@media only screen and (min-width: 1025px) {
	body.rw-aanmelden-page main {
		padding-left: 0;
		padding: 40px 24px;
	}

	body.rw-aanmelden-page .rw-page-wrap {
		padding: 0;
	}
}

.rw-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rw-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* —— Lijsten —— */

.rw-lists__filters,
.rw-lists__actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: end;
}

.rw-lists__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rw-lists__field select,
.rw-lists__field input {
	max-width: 250px;
}

.rw-lists__field--narrow select {
	max-width: 90px;
}

.rw-lists__check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
}

.rw-lists__actions {
	margin-top: 16px;
	border: 1px solid var(--act-green);
	border-radius: 5px;
	padding: 10px;
	background-color: var(--act-green-trans);
}

.rw-lists__actions p {
	margin: 0 0 8px;
}

.rw-lists__result {
	margin-top: 16px;
}

.rw-table-wrap {
	overflow-x: auto;
}

.rw-table {
	width: 100%;
	border-collapse: collapse;
}

.rw-table th,
.rw-table td {
	text-align: left;
	padding: 8px;
	border-bottom: 1px solid #ddd;
	vertical-align: middle;
}

.rw-table th {
	font-weight: 600;
	color: var(--shd-mid);
}

.rw-table img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 3px;
}

.rw-table__name,
.rw-table .rw-muted {
	display: block;
}

.rw-table tr.is-idle {
	opacity: 0.5;
}

/* —— Mailen —— */

.rw-mail__add {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: end;
}

.rw-mail__add .rw-btn {
	margin-bottom: 2px;
}

.rw-mail textarea {
	min-height: 200px;
}

.rw-mail__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}

.rw-mail__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--act-blue);
	background-color: var(--act-blue-trans);
	border-radius: var(--sml-radius);
	padding: 2px 8px;
}

.rw-mail__remove {
	border: 0;
	background: transparent;
	color: var(--act-blue);
	padding: 0;
	cursor: pointer;
}

.rw-mail__response {
	margin: 8px 0 0;
}

