/* Factuurmaatje app. Gebruikt de design tokens van het theme (Overstapmaatje-familie) met eigen terugval,
   zodat de app ook los (demo.html) klopt. Plat en zakelijk: dunne randen, geen verloop, geen gloed.
   Alleen de primaire knop heeft de harde sticker-schaduw. */

.fm-shell { width: 100%; max-width: calc(var(--wrap, 1200px) + 2 * var(--gutter, 16px)); margin-inline: auto; padding-inline: var(--gutter, 16px); box-sizing: border-box; }
.fm-shell--narrow { max-width: calc(560px + 2 * var(--gutter, 16px)); margin-inline: 0; padding-inline: 0; }
.fm-app {
	--fm-ink: var(--ink, #13291f);
	--fm-ink-2: var(--ink-2, #354c40);
	--fm-ink-3: var(--ink-3, #56615c);
	--fm-paper: var(--paper, #f5f7f0);
	--fm-paper-2: var(--paper-2, #ebf0e4);
	--fm-card: var(--card, #ffffff);
	--fm-line: var(--line-c, #d3ddd0);
	--fm-ctl: var(--line-ctl, #8a978f);
	--fm-green: var(--frog-text, #1d6e29);
	--fm-green-wash: var(--frog-wash, #e5f6de);
	--fm-sun: var(--sun, #ffd23f);
	--fm-sun-wash: var(--sun-wash, #fff4c7);
	--fm-coral: var(--coral-text, #a8321f);
	--fm-coral-wash: var(--coral-wash, #ffe8e3);
	--fm-r: var(--r-ctl, 12px);
	--fm-rc: var(--r-card, 16px);
	--fm-body: var(--f-body, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--fm-display: var(--f-display, var(--fm-body));
	--fm-sticker: var(--sticker, 3px 3px 0 #13291f);
	font: 400 1rem/1.5 var(--fm-body);
	color: var(--fm-ink);
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
}
.fm-app *, .fm-app *::before, .fm-app *::after { box-sizing: border-box; }
.fm-app :focus-visible { outline: 3px solid var(--fm-ink); outline-offset: 2px; border-radius: 4px; }
.fm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fm-app h2, .fm-app h3, .fm-app h4 { font-family: var(--fm-display); margin: 0; line-height: 1.2; }
.fm-app h3 { font-size: 1.125rem; }
.fm-app a { color: var(--fm-green); }
.fm-app a.fm-btn { color: var(--fm-ink); text-decoration: none; }

/* ---------- knoppen ---------- */
.fm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 44px; padding: .55em 1.05em; border: 1.5px solid var(--fm-ink); border-radius: var(--fm-r);
	background: var(--fm-card); color: var(--fm-ink); font: 600 .9375rem/1.2 var(--fm-body); cursor: pointer; text-decoration: none;
}
.fm-btn:hover { background: var(--fm-paper-2); }
.fm-btn--primary { background: var(--fm-sun); box-shadow: var(--fm-sticker); }
.fm-btn--primary:hover { background: var(--sun-2, #f5bf0a); }
.fm-btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--fm-ink); }
.fm-btn--ghost { border-color: var(--fm-line); }
.fm-btn--ghost:hover { border-color: var(--fm-ink); background: var(--fm-card); }
.fm-btn--sm { min-height: 36px; padding: .3em .75em; font-size: .875rem; }
.fm-btn--danger { border-color: var(--fm-coral); color: var(--fm-coral); }
.fm-btn--danger:hover { background: var(--fm-coral-wash); }
.fm-btn[disabled] { opacity: .5; cursor: not-allowed; }
.fm-link {
	background: none; border: 0; padding: .35em .1em; min-height: 44px; color: var(--fm-green);
	font: 500 .9375rem/1.2 var(--fm-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.fm-link:hover { color: var(--fm-ink); }
.fm-link[disabled] { color: var(--fm-ink-3); opacity: .5; text-decoration: none; cursor: default; }
.fm-link--del { color: var(--fm-coral); }
.fm-actions { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-top: .75rem; }

/* ---------- kaarten en velden ---------- */
.fm-card { background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: var(--fm-rc); padding: 1rem 1.1rem 1.15rem; margin: 0 0 .9rem; }
.fm-card--top { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .75rem 1.1rem; }
.fm-sec > h3, .fm-sec__head { margin-bottom: .75rem; }
.fm-sec__head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
details.fm-sec > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; min-height: 44px; align-content: center; }
details.fm-sec > summary::-webkit-details-marker { display: none; }
details.fm-sec > summary::after { content: "Wijzigen"; margin-left: auto; font-size: .875rem; color: var(--fm-green); text-decoration: underline; text-underline-offset: 3px; }
details.fm-sec[open] > summary::after { content: "Inklappen"; }
details.fm-sec[open] > summary { margin-bottom: .5rem; }
.fm-sum { color: var(--fm-ink-3); font-size: .9375rem; }
.fm-intro { margin: 0 0 .75rem; color: var(--fm-ink-2); font-size: .9375rem; }
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem .9rem; }
.fm-field--wide, .fm-grid > .fm-seg, .fm-grid > .fm-actions { grid-column: 1 / -1; }
.fm-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.fm-field > label, .fm-label, .fm-field > legend, .fm-seg legend { font-size: .875rem; font-weight: 600; color: var(--fm-ink-2); padding: 0; }
.fm-opt { font-weight: 400; color: var(--fm-ink-3); }
.fm-hint { font-size: .875rem; color: var(--fm-ink-3); line-height: 1.4; }
.fm-static { margin: 0; min-height: 44px; display: flex; align-items: center; font-size: .9375rem; color: var(--fm-ink-2); }
.fm-app input[type="text"], .fm-app input[type="email"], .fm-app input[type="tel"], .fm-app input[type="date"], .fm-app input[type="password"],
.fm-app input:not([type]), .fm-app select, .fm-app textarea {
	width: 100%; min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--fm-ctl); border-radius: 8px;
	background: #fff; color: var(--fm-ink); font: 400 1rem/1.35 var(--fm-body);
}
.fm-app textarea { resize: vertical; min-height: 44px; }
.fm-app select { -webkit-appearance: none; appearance: none; padding-right: 2.2rem; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313291f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .8rem center; }
.fm-app input:focus, .fm-app select:focus, .fm-app textarea:focus { outline: 2px solid var(--fm-ink); outline-offset: 0; border-color: var(--fm-ink); }
.fm-app input[readonly] { background: var(--fm-paper); }
.fm-app fieldset { min-width: 0; }
.fm-body { border: 0; margin: 0; padding: 0; }
.fm-body[disabled] .fm-sec, .fm-body[disabled] .fm-card--top { opacity: .72; }
.fm-check { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin: .75rem 0 .25rem; font-size: .9375rem; }
.fm-check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--fm-green); flex: none; }
.fm-check label { flex: 1; font-weight: 600; min-height: 24px; }
.fm-check .fm-hint { flex-basis: 100%; padding-left: 30px; }

/* segmented control */
.fm-seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.fm-seg legend { margin-bottom: .3rem; }
.fm-seg__row { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--fm-ctl); border-radius: 10px; overflow: hidden; background: #fff; }
.fm-seg__opt { position: relative; display: flex; }
.fm-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fm-seg__opt span { display: flex; align-items: center; min-height: 42px; padding: .4rem .9rem; font-size: .9375rem; font-weight: 500; border-right: 1px solid var(--fm-line); }
.fm-seg__opt:last-child span { border-right: 0; }
.fm-seg__opt input:checked + span { background: var(--fm-ink); color: #fff; }
.fm-seg__opt input:focus-visible + span { outline: 3px solid var(--fm-ink); outline-offset: -5px; box-shadow: inset 0 0 0 2px #fff; }
.fm-seg--type legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fm-seg--type .fm-seg__opt span { font-weight: 600; padding: .4rem 1.05rem; }
.fm-seg--sm { display: flex; align-items: center; gap: .5rem; }
.fm-seg--sm legend { float: left; margin: 0 .5rem 0 0; }
.fm-seg--sm .fm-seg__opt span { min-height: 38px; padding: .3rem .7rem; font-size: .875rem; }

/* swatches */
.fm-swatches__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fm-swatch { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px; cursor: pointer; font-size: .875rem; }
.fm-swatch input[type="radio"] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fm-swatch > span:not(.fm-sr) { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--fm-line); }
.fm-swatch input:checked + span { box-shadow: 0 0 0 2px var(--fm-ink); }
.fm-swatch input:focus-visible + span { outline: 3px solid var(--fm-ink); outline-offset: 2px; }
.fm-swatch--own { padding-left: .5rem; color: var(--fm-ink-2); }
.fm-swatch--own input { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--fm-ctl); border-radius: 8px; background: #fff; cursor: pointer; }
.fm-logo__img { max-width: 220px; max-height: 80px; object-fit: contain; align-self: flex-start; border: 1px dashed var(--fm-line); padding: 4px; border-radius: 6px; background: #fff; }
.fm-file { position: relative; overflow: hidden; }
.fm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fm-file:focus-within { outline: 3px solid var(--fm-ink); outline-offset: 2px; }

/* ---------- regels ---------- */
.fm-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fm-line { border: 1px solid var(--fm-line); border-radius: 12px; padding: .7rem .75rem .25rem; background: var(--fm-paper); }
.fm-line__top { display: flex; gap: .55rem; align-items: flex-start; }
.fm-line__n { flex: none; width: 26px; height: 26px; margin-top: 1.7rem; border-radius: 50%; background: var(--fm-card); border: 1px solid var(--fm-line); display: grid; place-items: center; font-size: .875rem; font-weight: 600; color: var(--fm-ink-2); }
.fm-line__desc { flex: 1; }
.fm-line__nums { display: grid; grid-template-columns: 64px minmax(70px, 1fr) minmax(90px, 1.2fr) minmax(96px, 1.1fr) minmax(84px, 1fr); gap: .55rem; margin-top: .55rem; padding-left: 33px; }
.fm-line__nums:has(.fm-f-disc) { grid-template-columns: 64px minmax(64px, 1fr) minmax(90px, 1.2fr) minmax(96px, 1.1fr) 70px minmax(84px, 1fr); }
.fm-line__nums:not(:has(.fm-f-vat)) { grid-template-columns: 64px minmax(70px, 1fr) minmax(90px, 1.2fr) minmax(84px, 1fr); }
.fm-line__nums .fm-field > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-line__amt .fm-label { text-align: right; }
.fm-line__amt { display: flex; flex-direction: column; gap: .3rem; justify-content: flex-start; }
.fm-line__amt span[data-amount] { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; font-weight: 600; font-variant-numeric: tabular-nums; }
.fm-line__acts { display: flex; flex-wrap: wrap; gap: 0 .9rem; padding-left: 33px; }
.fm-line__acts .fm-link { font-size: .875rem; color: var(--fm-ink-2); }
.fm-line__acts .fm-link--del { color: var(--fm-coral); margin-left: auto; }
.fm-line textarea { overflow: hidden; }
.fm-line__acts .fm-arrow { min-width: 44px; text-decoration: none; font-size: 1.125rem; color: var(--fm-ink); }
.fm-line__acts .fm-arrow[disabled] { color: var(--fm-ink-3); }
.fm-actions--lines { justify-content: space-between; }
.fm-actions--lines .fm-field--pick { flex: 1 1 220px; max-width: 340px; }
.fm-grid--disc { margin-top: .9rem; grid-template-columns: minmax(0, 220px); }
.fm-field--pick { margin-bottom: .6rem; }

.fm-totals { margin-top: 1rem; border-top: 1px solid var(--fm-line); padding-top: .6rem; }
.fm-totals dl { margin: 0; display: grid; gap: .2rem; }
.fm-totals dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; color: var(--fm-ink-2); font-variant-numeric: tabular-nums; }
.fm-totals dt, .fm-totals dd { margin: 0; }
.fm-totals .strong { color: var(--fm-ink); font-weight: 700; font-size: 1.0625rem; border-top: 1px solid var(--fm-ink); padding-top: .35rem; margin-top: .25rem; }

/* ---------- controle ---------- */
.fm-card.fm-check { display: block; font-size: .9375rem; }
.fm-check h3 { margin-bottom: .4rem; }
.fm-check ul { margin: .25rem 0 .6rem; padding-left: 1.2rem; }
.fm-check li { margin: .15rem 0; }
.fm-check li.lvl-blok { color: var(--fm-coral); font-weight: 600; }
.fm-check li a { font-size: .875rem; font-weight: 400; }
.fm-check__lead { margin: .2rem 0; color: var(--fm-ink-2); }
.fm-check__lead.is-alert { color: var(--fm-coral); font-weight: 600; }
.fm-ok { margin: 0 0 .4rem; color: var(--fm-green); font-weight: 600; }
.fm-tips { color: var(--fm-ink-3); }

.fm-note { background: var(--fm-sun-wash); border: 1px solid var(--sun-2, #f5bf0a); border-radius: var(--fm-rc); padding: .9rem 1.1rem; margin: 0 0 .9rem; font-size: .9375rem; }
.fm-note p { margin: 0; }
.fm-import { background: var(--fm-green-wash); border: 1px solid var(--fm-green); border-radius: var(--fm-rc); padding: .9rem 1.1rem; margin: 0 0 1rem; }
.fm-import p { margin: 0; }
.fm-new .fm-link { font-size: .875rem; }

/* ---------- indeling: kolommen en tabbladen ---------- */
.fm-tabs { display: flex; gap: 0; margin: 0 0 .9rem; border: 1px solid var(--fm-ctl); border-radius: 10px; overflow: hidden; background: #fff; }
.fm-tabs button { flex: 1; min-height: 44px; border: 0; background: none; font: 600 .9375rem var(--fm-body); color: var(--fm-ink); cursor: pointer; }
.fm-tabs button[aria-selected="true"] { background: var(--fm-ink); color: #fff; }
.fm-cols { display: block; }
.fm-editor[data-tab="form"] .fm-preview-col { display: none; }
.fm-editor[data-tab="preview"] .fm-form-col { display: none; }
.fm-preview { background: var(--fm-paper-2); border-radius: var(--fm-rc); padding: 10px; overflow: hidden; }
.fm-preview__scale { position: relative; }
.fm-preview__scale .fma-doc { transform-origin: 0 0; }

@media (min-width: 1100px) {
	.fm-tabs { display: none; }
	.fm-cols { display: grid; grid-template-columns: minmax(440px, 560px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
	.fm-editor[data-tab] .fm-preview-col, .fm-editor[data-tab] .fm-form-col { display: block; }
	.fm-preview-col { position: sticky; top: calc(var(--header-h, 0px) + 12px); }
	.fm-preview { max-height: calc(100vh - var(--header-h, 0px) - 120px); overflow: auto; }
}

/* actiebalk */
.fm-bar {
	position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
	margin: .5rem 0 0; padding: .7rem 1rem; background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: var(--fm-rc) var(--fm-rc) 0 0;
	box-shadow: 0 -1px 0 var(--fm-line);
}
.fm-bar__sum { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fm-bar__lbl { color: var(--fm-ink-3); font-size: .9375rem; }
.fm-bar__sum strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.fm-bar__btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.fm-badge { min-height: 36px; border-radius: 999px; padding: .2rem .7rem; border: 1px solid var(--fm-line); background: var(--fm-paper); font: 600 .875rem var(--fm-body); color: var(--fm-ink-2); cursor: pointer; }
.fm-badge[data-kind="blok"] { background: var(--fm-coral-wash); border-color: var(--fm-coral); color: var(--fm-coral); }
.fm-badge[data-kind="mist"] { background: var(--fm-sun-wash); border-color: var(--sun-2, #f5bf0a); color: var(--fm-ink); }
.fm-badge[data-kind="ok"] { background: var(--fm-green-wash); border-color: var(--fm-green); color: var(--fm-green); }
.fm-status { flex-basis: 100%; margin: 0; font-size: .9375rem; color: var(--fm-ink-2); min-height: 0; }
.fm-status:empty { display: none; }
.fm-status[data-kind="err"] { color: var(--fm-coral); font-weight: 600; }
.fm-privacy { font-size: .875rem; color: var(--fm-ink-3); margin: .9rem 0 0; max-width: 70ch; }
@media (max-width: 599px) {
	.fm-grid { grid-template-columns: 1fr; }
	.fm-grid > .fm-field:not(.fm-field--wide) { grid-column: auto; }
	.fm-bar { margin-left: calc(-1 * var(--gutter, 16px) + 4px); margin-right: calc(-1 * var(--gutter, 16px) + 4px); border-radius: 12px 12px 0 0; padding: .6rem .8rem; }
	.fm-bar__btns { width: 100%; }
	.fm-bar__btns .fm-btn--primary { flex: 1; }
	.fm-hide-sm { display: none; }
	.fm-card { padding: .85rem .85rem 1rem; }
	.fm-line__nums, .fm-line__acts { padding-left: 0; }
	.fm-line__nums, .fm-line__nums:has(.fm-f-disc), .fm-line__nums:not(:has(.fm-f-vat)) { grid-template-columns: 1fr 1fr; }
	.fm-line__n { margin-top: 1.75rem; }
	.fm-line__amt { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--fm-line); padding-top: .4rem; }
	.fm-line__amt span[data-amount] { min-height: 0; }
	.fm-line__acts { gap: 0 .75rem; }
	.fm-seg--type { width: 100%; }
	.fm-seg--type .fm-seg__row { display: flex; }
	.fm-seg--type .fm-seg__opt { flex: 1; }
	.fm-seg--type .fm-seg__opt span { justify-content: center; width: 100%; padding: .4rem .5rem; }
}

/* ---------- A4-voorbeeld (en afdrukken) ---------- */
.fma-doc {
	--acc: #1d6e29;
	width: 794px; min-height: 1123px; background: #fff; color: #171c1a; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
	font: 400 12.5px/1.42 Helvetica, Arial, sans-serif; position: relative;
}
.fma-doc--serif { font-family: "Times New Roman", Times, serif; }
.fma-doc .sheet-in { padding: 64px 67px 90px; }
.fma-doc--band .sheet-in { padding-left: 83px; }
.fma-doc--band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 24px; background: var(--acc); }
.fma-doc p { margin: 0; }
.fma-doc .ph { color: #b3b8b5; }
.fma-doc .muted { color: #5c615f; }
.sh-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; min-height: 40px; }
.sh-logo img { max-width: 227px; max-height: 85px; display: block; }
.sh-seller { text-align: right; }
.sh-seller .name { font-weight: 700; font-size: 13.8px; }
.fma-doc * { font-family: inherit; letter-spacing: normal; text-transform: none; }
.fma-doc table, .fma-doc th, .fma-doc td { font-size: inherit; background: none; }
.fma-doc .sh-title { font-weight: 700; font-size: 29px; line-height: 1.1; color: var(--acc); margin: 40px 0 18px !important; }
.sh-title span { font-weight: 400; color: #5c615f; font-size: 18px; }
.sh-parties { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.sh-cust .name { font-weight: 700; }
.sh-meta { margin: 0; width: 280px; }
.sh-meta > div { display: flex; justify-content: space-between; gap: 12px; }
.sh-meta dt { color: #5c615f; }
.sh-meta dd { margin: 0; text-align: right; }
.sh-meta > div:first-child dd { font-weight: 700; }
.sh-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sh-lines th { text-align: left; font-weight: 700; padding: 6px 5px 6px 0; border-bottom: 2px solid var(--acc); font-size: 12px; }
.sh-lines td { padding: 6px 5px 6px 0; border-bottom: 1px solid #d5d9d6; vertical-align: top; }
.sh-lines .r { text-align: right; white-space: nowrap; }
.sh-lines .d { width: 100%; }
.sh-lines .sub { display: block; color: #5c615f; font-size: 11px; }
.sh-lines .empty { color: #b3b8b5; }
.fma-doc--band .sh-lines th { background: var(--acc); color: #fff; border-bottom: 0; padding-left: 5px; }
.fma-doc--band .sh-lines td.d { padding-left: 5px; }
.fma-doc--compact { font-size: 11.5px; }
.fma-doc--compact .sh-title { font-size: 23px; margin: 26px 0 14px !important; }
.fma-doc--compact .sh-lines th { border-bottom: 1px solid #171c1a; }
.fma-doc--compact .sheet-in { padding-top: 53px; }
.sh-totals { margin: 14px 0 22px auto; width: 360px; font-variant-numeric: tabular-nums; }
.sh-totals .t { display: flex; justify-content: space-between; gap: 12px; padding: 1px 5px 1px 0; color: #5c615f; }
.sh-totals .t span:last-child { color: #171c1a; }
.sh-totals .strong { color: #171c1a; font-weight: 700; font-size: 13.8px; border-top: 1px solid #171c1a; margin-top: 6px; padding-top: 6px; }
.sh-p { margin: 0 0 8px !important; }
.sh-legal { font-weight: 700; }
.sh-foot { position: absolute; left: 67px; right: 67px; bottom: 34px; border-top: 1px solid #d5d9d6; padding-top: 8px; font-size: 10.5px; color: #5c615f; }
.fma-doc--band .sh-foot { left: 83px; }

/* ---------- overzicht ---------- */
.fm-ov-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.fm-ov-filters { display: flex; flex-wrap: wrap; gap: .75rem; }
.fm-ov-filters .fm-field { min-width: 150px; }
.fm-ov-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.fm-ov-sums > div { background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 12px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.fm-ov-sums span { font-size: .875rem; color: var(--fm-ink-3); }
.fm-ov-sums strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.fm-ov-sums small { font-size: .875rem; color: var(--fm-ink-3); }
.fm-ov-sums .is-late { border-color: var(--fm-coral); background: var(--fm-coral-wash); }
.fm-table { width: 100%; border-collapse: collapse; background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 12px; overflow: hidden; font-size: .9375rem; }
.fm-table th, .fm-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--fm-line); vertical-align: middle; }
.fm-table thead th { font-size: .875rem; color: var(--fm-ink-3); font-weight: 600; background: var(--fm-paper); }
.fm-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-table tbody th { font-weight: 600; }
.fm-table tr.is-late td, .fm-table tr.is-late th { background: #fff8f6; }
.fm-type { display: block; font-size: .875rem; font-weight: 400; color: var(--fm-ink-3); }
.fm-row-acts { display: flex; flex-wrap: wrap; gap: 0 .7rem; justify-content: flex-end; align-items: center; }
.fm-table td.c-acts { padding-top: .2rem; padding-bottom: .2rem; }
.fm-pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .875rem; font-weight: 600; border: 1px solid var(--fm-line); background: var(--fm-paper); white-space: nowrap; }
.fm-pill--betaald { background: var(--fm-green-wash); border-color: var(--fm-green); color: var(--fm-green); }
.fm-pill--verstuurd { background: #fff; border-color: var(--fm-ctl); }
.fm-pill--vervallen { background: var(--fm-coral-wash); border-color: var(--fm-coral); color: var(--fm-coral); }
.fm-empty { color: var(--fm-ink-3); }
@media (max-width: 760px) {
	.fm-ov-sums { grid-template-columns: 1fr; gap: 0; background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 12px; padding: .2rem .9rem; }
	.fm-ov-sums > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; border: 0; border-radius: 0; padding: .45rem 0; background: none; }
	.fm-ov-sums > div + div { border-top: 1px solid var(--fm-line); }
	.fm-ov-sums > div span { flex: 1; font-size: .9375rem; color: var(--fm-ink-2); }
	.fm-ov-sums strong { font-size: 1.0625rem; order: 3; }
	.fm-ov-sums small { order: 2; }
	.fm-ov-sums .is-late { background: none; }
	.fm-ov-sums .is-late strong { color: var(--fm-coral); }
	.fm-ov-filters, .fm-ov-head > .fm-btn { width: 100%; }
	.fm-ov-filters .fm-field { flex: 1 1 100px; min-width: 0; }
	.fm-table, .fm-table tbody, .fm-table tr, .fm-table th, .fm-table td { display: block; }
	.fm-table { border: 0; background: none; }
	.fm-table thead { display: none; }
	.fm-table tr { background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 12px; margin-bottom: .6rem; padding: .6rem .8rem .2rem;
		display: grid; grid-template-columns: 1fr auto; grid-template-areas: "num bedrag" "klant klant" "datum status" "vervalt status" "acts acts"; gap: .1rem .75rem; }
	.fm-table th, .fm-table td { border: 0; padding: 0; background: none !important; }
	.fm-table .c-num { grid-area: num; }
	.fm-table .c-bedrag { grid-area: bedrag; font-weight: 700; }
	.fm-table .c-klant { grid-area: klant; }
	.fm-table .c-datum { grid-area: datum; font-size: .875rem; color: var(--fm-ink-3); }
	.fm-table .c-vervalt { grid-area: vervalt; font-size: .875rem; color: var(--fm-ink-3); }
	.fm-table .c-status { grid-area: status; align-self: center; }
	.fm-table .c-acts { grid-area: acts; }
	.fm-table .c-datum::before { content: "Datum "; }
	.fm-table .c-vervalt:not(:empty)::before { content: "Vervalt "; }
	.fm-table .c-vervalt:empty { display: none; }
	.fm-row-acts { justify-content: flex-start; border-top: 1px solid var(--fm-line); margin-top: .45rem; padding-top: .2rem; }
	.fm-table tr.is-late { border-color: var(--fm-coral); }
}

/* ---------- account en formulieren ---------- */
.fm-auth { max-width: 460px; }
.fm-auth form { display: grid; gap: .85rem; }
.fm-auth .fm-btn--primary { width: 100%; }
.fm-msg { border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1rem; font-size: .9375rem; border: 1px solid var(--fm-line); background: var(--fm-paper); }
.fm-msg--ok { background: var(--fm-green-wash); border-color: var(--fm-green); }
.fm-msg--err { background: var(--fm-coral-wash); border-color: var(--fm-coral); color: #6d1f12; }
.fm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-auth__alt { font-size: .9375rem; color: var(--fm-ink-2); }
.fm-list { list-style: none; margin: 0; padding: 0; }
.fm-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--fm-line); padding: .3rem 0; }
.fm-muted { color: var(--fm-ink-3); font-size: .9375rem; }
.fm-numrow { border-top: 1px solid var(--fm-line) !important; padding-top: .75rem !important; }
.fm-numrow legend { float: left; width: 100%; font-weight: 700; font-size: 1rem; color: var(--fm-ink); margin-bottom: .4rem; }
.fm-numrow__f { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .9rem; }
.fm-numrow__f .fm-hint { grid-column: 1 / -1; margin: 0; }
.fm-grid--prod { margin-top: 1rem; border-top: 1px solid var(--fm-line); padding-top: 1rem; }
.fm-danger { margin-top: 1.25rem; border-top: 1px solid var(--fm-line); padding-top: .75rem; }
.fm-danger summary { cursor: pointer; color: var(--fm-coral); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.fm-account-app h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.fm-accbar { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding: .6rem .9rem; border: 1px solid var(--fm-line); border-radius: 12px; background: var(--fm-card); font-size: .9375rem; color: var(--fm-ink-2); }
.fm-accbar__nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.fm-accbar__nav a, .fm-accbar__nav span { display: inline-flex; align-items: center; min-height: 44px; }
.fm-accbar__nav span[aria-current] { font-weight: 700; color: var(--fm-ink); }

@media print {
	@page { size: A4; margin: 0; }
	body * { visibility: hidden !important; }
	.fma-doc, .fma-doc * { visibility: visible !important; }
	.fm-preview-col, .fm-editor[data-tab] .fm-preview-col { display: block !important; position: static !important; }
	.fm-preview { overflow: visible !important; max-height: none !important; padding: 0 !important; background: none !important; }
	.fm-preview__scale { height: auto !important; }
	.fma-doc { position: absolute; left: 0; top: 0; transform: none !important; box-shadow: none; width: 210mm; min-height: 297mm; }
	.sh-lines tr { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
	.fm-app * { transition: none !important; animation: none !important; }
}
