/* Client portal (includes/portal.php): the dark colour scheme and the fonts of kamiwebdesign.nl (its header, footer
   and dark sections), the fonts from the theme (kpo_portal_fonts_css() in portal.php).
   - Logged in: a black menu on the left (Loom-like), the page fluid on the right; below 1024px a slim black top bar
     with the same menu behind a <details> button. The page itself is .kpo_view; portal.js swaps only that part.
   - Without login: the black brand panel on the left, the form in a dark card on the right; on small screens only the
     form, under the logo.
   - Print: light again (black on white), see the end of the file.
   Mobile first; the wide layouts come from media queries (the shell) and container queries on .kpo_view (the page;
   the middle of an overview item has one of its own, kpo-item).
   Motion: only transform and opacity, the tokens below, nothing on first paint, all of it off with reduced motion.
   The onboarding (its own block below) uses the same cards, settings sections and fields.
   The Japanese theme of the site (21-11-2026): warm blacks, the orange, seigaiha waves (behind the page, in the menu,
   in the corner of every card), medallions for the icons, pill buttons with the icon in a circle and Mount Fuji with
   the sun and the logo (the overview, the menu, the login pages). The images are made from the theme's
   cta-card-bg-v4.svg, menu-waves-dark.svg, intro-corner-waves.svg and intro-icon-waves.svg (the generators are in
   the koppen backup, portaal-test/); their seigaiha circles are filled with --kpo-bg, --kpo-chrome or --kpo-surface,
   so those colours and the images go together. */

/* The dark scheme of the site: black (#0F0F0F), white text in steps of opacity, thin white lines, the orange of the
   buttons, #E8691F for small orange text on dark (the site's --orange-text-dark) */
:root {
	color-scheme: dark; /* native controls, scrollbars and autofill in the dark scheme too */
	--kpo-orange: #CA4F00;
	--kpo-button: #C24900;
	--kpo-button-hover: #A84100; /* darker on hover, as on the site */
	--kpo-orange-text: #E8691F;
	--kpo-orange-soft: rgba(202, 79, 0, .16);
	--kpo-black: #0F0F0F; /* the brand panel (and the menu, the top bar: --kpo-chrome) */
	--kpo-chrome: #151311; /* the menu, the top bar (the warm black of the site's dark cards): white in the light scheme */
	--kpo-bg: #0F0F0F; /* the page */
	--kpo-surface: #151311; /* cards, tiles, messages */
	--kpo-input: #0F0D0C; /* text fields: a shade darker than the card they are in */
	--kpo-ink: #FFFFFF; /* headings, amounts, values */
	--kpo-text: rgba(255, 255, 255, .86);
	--kpo-text-2: rgba(255, 255, 255, .72);
	--kpo-muted: rgba(255, 255, 255, .62);
	--kpo-line: rgba(232, 105, 31, .16);
	--kpo-card-line: rgba(224, 101, 26, .28); /* the edge of cards and tiles */
	--kpo-field: rgba(255, 255, 255, .18); /* buttons with a text label, tiles, the read-only value */
	--kpo-field-hover: rgba(255, 255, 255, .32);
	--kpo-input-line: rgba(255, 255, 255, .2); /* the edge of a text field */
	--kpo-input-line-hover: rgba(255, 255, 255, .34);
	--kpo-soft: rgba(232, 105, 31, .04);
	--kpo-hover: rgba(255, 255, 255, .06);
	--kpo-focus: #E8691F;
	--kpo-ok: #5CC98A;
	--kpo-ok-soft: rgba(92, 201, 138, .14);
	--kpo-ok-line: rgba(92, 201, 138, .32);
	--kpo-danger: #F97066;
	--kpo-danger-soft: rgba(240, 68, 56, .12);
	--kpo-danger-line: rgba(249, 112, 102, .4);
	--kpo-ring: rgba(232, 105, 31, .28);
	--kpo-r-sm: 10px;
	--kpo-r: 12px;
	--kpo-r-lg: 18px;
	--kpo-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--kpo-shadow-lg: 0 15px 35px rgba(0, 0, 0, .45);
	--kpo-font: 'Poppins', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--kpo-heading: 'Raleway', 'Poppins', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--kpo-gutter: clamp(16px, 3vw, 40px);
	--kpo-side: 248px;
	--kpo-top: 0px; /* the admin-view bar above the sidebar (wide screens) */
	/* Motion tokens: enter (page, sheet, new content), exit (faster), small feedback (hover, toggles, icons) */
	--kpo-ease-out: cubic-bezier(.16, 1, .3, 1);
	--kpo-ease-fast: cubic-bezier(.4, 0, .2, 1);
	--kpo-t-fast: 120ms;
	--kpo-t: 200ms;
	--kpo-t-enter: 260ms;
	--kpo-t-exit: 160ms;
	/* Statistieken: the one series colour (the brand orange: 5.4:1 on a card, checked as a chart colour for this
	   dark surface) and the baseline of a chart, a step above the gridlines (--kpo-line) */
	--kpo-chart: #E8691F;
	--kpo-chart-axis: rgba(255, 255, 255, .16);
	--kpo-medal: #24170F; /* the inside of a medallion (an icon in an orange ring) */
	--kpo-main-end: 48px; /* the padding under the page (56px on wide screens): the overview's Mount Fuji reaches into it */
}

html {background: var(--kpo-bg);-webkit-text-size-adjust: 100%;text-size-adjust: 100%;scrollbar-gutter: stable;}
.kpo, .kpo *, .kpo *::before, .kpo *::after {box-sizing: border-box;}
body.kpo {min-height: 100vh;min-height: 100dvh;margin: 0;background: var(--kpo-bg);color: var(--kpo-text);font-family: var(--kpo-font);font-size: 15px;line-height: 1.55;-webkit-font-smoothing: antialiased;overflow-wrap: break-word;}
/* The app's page: a light seigaiha (filled with --kpo-bg) under a veil of the page colour, a little stronger towards
   the bottom right, where the overview has its Mount Fuji */
body.kpo--app {background: radial-gradient(farthest-corner at 100% 100%, rgba(15, 15, 15, .5), rgba(15, 15, 15, .86) 70%), url("portal-seigaiha-page-dark.svg") left top / 36px 18px repeat, var(--kpo-bg);}
.kpo a {color: var(--kpo-orange-text);text-decoration-thickness: 1px;text-underline-offset: 2px;}
.kpo a:hover {color: var(--kpo-ink);}
.kpo h1, .kpo h2, .kpo h3 {color: var(--kpo-ink);font-family: var(--kpo-heading);font-weight: 700;line-height: 1.2;text-wrap: balance;}
.kpo :focus-visible {outline: 2px solid var(--kpo-focus);outline-offset: 2px;}
.kpo main:focus, .kpo h1[tabindex]:focus {outline: none;}
.kpo_icon {display: block;flex: none;width: 20px;height: 20px;}
.kpo_sr {position: absolute !important;width: 1px;height: 1px;margin: -1px;padding: 0;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap;border: 0;}
.kpo_skip {position: absolute;top: -100px;left: 16px;z-index: 200;padding: 10px 16px;border: 2px solid var(--kpo-orange);border-radius: var(--kpo-r-sm);background: var(--kpo-black);box-shadow: var(--kpo-shadow-lg);color: #fff !important;font-weight: 600;text-decoration: none;}
.kpo_skip:focus {top: 12px;}
.kpo_muted {color: var(--kpo-muted);}
/* Running text: no single word left on its last line */
.kpo_lead, .kpo_intro, .kpo_section_desc, .kpo_box_text, .kpo_hint, .kpo_small, .kpo_footnote, .kpo_empty p, .kpo_brandpanel_intro {text-wrap: pretty;}

/* -----------------------------------------------------------------------------
   Buttons: pills, as on the site. The hover colour is a layer that fades in (opacity), the press a small scale.
----------------------------------------------------------------------------- */
.kpo_button {position: relative;isolation: isolate;display: inline-flex;align-items: center;justify-content: center;gap: 8px;min-height: 44px;margin: 0;padding: 0 22px;border: 1px solid var(--kpo-button);border-radius: 999px;background: var(--kpo-button);color: #fff;font: inherit;font-size: 14px;font-weight: 700;line-height: 1.2;text-align: center;text-decoration: none;white-space: nowrap;cursor: pointer;-webkit-tap-highlight-color: transparent;transition: transform 100ms var(--kpo-ease-fast);}
.kpo a.kpo_button, .kpo a.kpo_button:hover {color: #fff;text-decoration: none;}
.kpo_button::before {content: '';position: absolute;inset: -1px;z-index: -1;border-radius: inherit;background: var(--kpo-button-hover);opacity: 0;transition: opacity var(--kpo-t) var(--kpo-ease-fast);}
.kpo_button:hover::before {opacity: 1;}
.kpo_button:active {transform: scale(.98);}
/* The icon in a white circle at the edge it is on: the arrow after the text (it nudges on hover), the others before */
.kpo_button > .kpo_icon {box-sizing: content-box;width: 14px;height: 14px;padding: 8px;border-radius: 50%;background: #fff;color: #C24900;transition: transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo_button:hover > .kpo_icon--arrow {transform: translateX(3px);}
.kpo_button:has(> .kpo_icon--arrow) {padding-right: 6px;}
.kpo_button:has(> .kpo_icon:not(.kpo_icon--arrow)) {padding-left: 6px;}
.kpo_button--block {width: 100%;}
/* A whole-width button with an arrow (the login pages) is the site's button: 52px, the text on the left, a 38px
   arrow circle on the right */
.kpo_button--block:has(> .kpo_icon--arrow) {justify-content: space-between;gap: 14px;min-height: 52px;padding: 0 7px 0 24px;font-size: 15px;text-align: left;}
.kpo_button--block > .kpo_icon--arrow {width: 17px;height: 17px;padding: 10.5px;}
/* Secondary: an outline, as the outline buttons on the site's dark sections */
.kpo_button--secondary, .kpo a.kpo_button--secondary, .kpo a.kpo_button--secondary:hover {border-color: var(--kpo-field);background: transparent;color: var(--kpo-ink);}
.kpo_button--secondary::before {inset: 0;background: rgba(255, 255, 255, .08);}
.kpo_button--secondary:hover {border-color: var(--kpo-field-hover);}
.kpo_button--secondary > .kpo_icon {background: #C24900;color: #fff;}
.kpo_button:disabled, .kpo_button.is-busy {cursor: progress;}
/* Busy: the spinner lies over the label (which hides), so the button keeps its size */
.kpo_button.is-busy {color: transparent;}
.kpo_button.is-busy .kpo_icon {visibility: hidden;}
.kpo_button.is-busy::after {content: '';position: absolute;inset: 0;width: 14px;height: 14px;margin: auto;border: 2px solid #fff;border-right-color: transparent;border-radius: 50%;animation: kpo-spin 600ms linear infinite;}
.kpo_button--secondary.is-busy::after {border-color: var(--kpo-text);border-right-color: transparent;}
@media (forced-colors: active) {
	.kpo_button.is-busy {color: ButtonText;}
	.kpo_button.is-busy::after {display: none;}
}
.kpo_refresh.is-spinning .kpo_icon {animation: kpo-spin 600ms linear infinite;}
.kpo_refresh.is-spinning::after {content: none;}

/* A small square button with an icon (PDF in the lists, Uitloggen in the menu) */
.kpo_iconbtn {position: relative;isolation: isolate;display: inline-grid;place-items: center;flex: none;width: 32px;height: 32px;margin: 0;padding: 0;border: 0;border-radius: var(--kpo-r-sm);background: transparent;color: var(--kpo-muted);font: inherit;cursor: pointer;-webkit-tap-highlight-color: transparent;}
.kpo a.kpo_iconbtn {color: var(--kpo-muted);}
.kpo_iconbtn::before {content: '';position: absolute;inset: 0;z-index: -1;border-radius: inherit;background: var(--kpo-hover);opacity: 0;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_iconbtn:hover::before {opacity: 1;}
.kpo .kpo_iconbtn:hover {color: var(--kpo-ink);}
.kpo_iconbtn .kpo_icon {width: 18px;height: 18px;}

/* -----------------------------------------------------------------------------
   "Bekijk portaal als klant" from the admin: full width above everything
----------------------------------------------------------------------------- */
/* A dark amber strip: clearly not part of the client's own portal */
.kpo_adminview {position: relative;z-index: 60;display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 6px 16px;padding: 8px var(--kpo-gutter);border-bottom: 1px solid rgba(245, 199, 107, .24);background: #2A2110;color: #F5C76B;font-size: 13.5px;line-height: 1.4;}
.kpo_adminview p {min-width: 0;margin: 0;}
.kpo_adminview strong {margin-right: 6px;}
.kpo_adminview form {margin: 0;}
.kpo_adminview_stop {min-height: 32px;padding: 0 12px;border: 1px solid rgba(245, 199, 107, .6);border-radius: var(--kpo-r-sm);background: transparent;color: #F5C76B;font: inherit;font-size: 13px;font-weight: 600;white-space: nowrap;cursor: pointer;}
.kpo_adminview_stop:hover {background: rgba(245, 199, 107, .12);}
.kpo_adminview_stop:focus-visible {outline-color: #F5C76B;}

/* -----------------------------------------------------------------------------
   App shell: the top bar with the menu sheet (small screens), the sidebar (wide screens)
----------------------------------------------------------------------------- */
.kpo_shell {min-height: 100vh;}
/* The brand: the site's logo (white KAMI, as in the site's header), then "Klantportaal" after a thin line */
.kpo_brandmark {display: flex;align-items: center;gap: 10px;min-width: 0;min-height: 40px;text-decoration: none;}
.kpo a.kpo_brandmark, .kpo a.kpo_brandmark:hover {color: var(--kpo-ink);text-decoration: none;}
.kpo_brandmark .kpo_logo {flex: none;width: 112px;}
.kpo_brandmark_sub {min-width: 0;overflow: hidden;padding-left: 10px;border-left: 1px solid var(--kpo-field);color: var(--kpo-text-2);font-size: 13px;font-weight: 500;line-height: 20px;text-overflow: ellipsis;white-space: nowrap;}

.kpo_mbar {position: sticky;top: 0;z-index: 40;display: flex;align-items: center;justify-content: space-between;gap: 12px;height: 56px;padding: 0 var(--kpo-gutter);border-bottom: 1px solid var(--kpo-line);background: linear-gradient(rgba(21, 19, 17, .55), rgba(21, 19, 17, .55)), url("portal-seigaiha-dark.svg") left top / 36px 18px repeat, var(--kpo-chrome);}
.kpo_menu {flex: none;}
.kpo_menu_toggle {display: flex;align-items: center;gap: 8px;min-height: 40px;padding: 0 12px;border: 1px solid var(--kpo-field);border-radius: var(--kpo-r-sm);background: transparent;color: var(--kpo-ink);font-size: 14px;font-weight: 600;list-style: none;cursor: pointer;-webkit-tap-highlight-color: transparent;user-select: none;}
.kpo_menu_toggle::-webkit-details-marker {display: none;}
.kpo_menu_toggle::marker {content: '';}
.kpo_menu_icon {position: relative;display: block;width: 20px;height: 20px;}
.kpo_menu_icon .kpo_icon {position: absolute;inset: 0;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast), transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo_menu_icon .kpo_icon--x, .kpo_menu[open] .kpo_menu_icon .kpo_icon--menu {opacity: 0;transform: scale(.7);}
.kpo_menu[open] .kpo_menu_icon .kpo_icon--x {opacity: 1;transform: none;}
/* Without JavaScript the dimmed page below the bar is part of the summary: a tap there closes the menu */
.kpo_menu[open] > .kpo_menu_toggle::before {content: '';position: absolute;top: 100%;left: 0;right: 0;height: 100vh;height: 100dvh;background: rgba(0, 0, 0, .6);cursor: default;animation: kpo-fade-in var(--kpo-t) var(--kpo-ease-out);}
.kpo_menu_panel {position: absolute;top: 100%;left: 0;right: 0;z-index: 1;display: flex;flex-direction: column;max-height: calc(100vh - 56px);max-height: calc(100dvh - 56px);overflow-y: auto;overscroll-behavior: contain;padding: 12px var(--kpo-gutter) 16px;border-bottom: 1px solid var(--kpo-line);border-radius: 0 0 16px 16px;background: linear-gradient(rgba(21, 19, 17, .6), rgba(21, 19, 17, .15)), url("portal-seigaiha-dark.svg") left top / 36px 18px repeat, var(--kpo-chrome);box-shadow: var(--kpo-shadow-lg);transform-origin: top center;animation: kpo-sheet-in var(--kpo-t-enter) var(--kpo-ease-out);}
/* Closing mirrors the opening (the same curve, shorter); portal.js waits for the panel's animation-duration */
.kpo_menu.is-closing > .kpo_menu_toggle::before {animation: kpo-fade-out var(--kpo-t-exit) var(--kpo-ease-out) forwards;}
.kpo_menu.is-closing .kpo_menu_panel {animation: kpo-sheet-out var(--kpo-t-exit) var(--kpo-ease-out) forwards;}
/* The sheet as the sidebar: Mount Fuji with the sun and the logo above the foot (170px: the sheet is as high as its
   content), the foot a solid band the mountain stands on */
.kpo_menu_panel::after {content: '';order: 1;flex: none;height: 170px;margin: 8px calc(-1 * var(--kpo-gutter)) 0;background: url("portal-side-fuji-dark.svg") center bottom / auto 100% no-repeat;pointer-events: none;}
.kpo_menu_panel .kpo_menu_foot {order: 2;margin: 0 calc(-1 * var(--kpo-gutter)) -16px;padding: 14px var(--kpo-gutter) 16px;border-top: 1px solid var(--kpo-card-line);border-radius: 0 0 16px 16px;background: var(--kpo-chrome);}

.kpo_side {display: none;}

/* The menu itself: account, pages, help, user (the same in the sidebar and the sheet) */
.kpo_workspace {display: flex;align-items: center;gap: 10px;min-width: 0;padding: 8px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r);background: linear-gradient(var(--kpo-soft), var(--kpo-soft)), var(--kpo-chrome);}
.kpo_avatar {display: grid;place-items: center;flex: none;width: 32px;height: 32px;border-radius: 50%;background: rgba(255, 255, 255, .1);color: var(--kpo-text);font-size: 12.5px;font-weight: 600;letter-spacing: .02em;}
.kpo_avatar--org {border-radius: var(--kpo-r-sm);background: var(--kpo-orange-soft);color: var(--kpo-orange-text);font-weight: 700;}
.kpo_workspace_text, .kpo_user_text {display: flex;flex-direction: column;min-width: 0;line-height: 1.3;}
.kpo_workspace_name, .kpo_user_name {overflow: hidden;color: var(--kpo-ink);font-size: 13.5px;font-weight: 600;text-overflow: ellipsis;white-space: nowrap;}
.kpo_workspace_sub, .kpo_user_mail {overflow: hidden;color: var(--kpo-muted);font-size: 12px;text-overflow: ellipsis;white-space: nowrap;}
.kpo_menu_label {margin: 18px 10px 6px;color: var(--kpo-muted);font-size: 11px;font-weight: 600;letter-spacing: .08em;text-transform: uppercase;}
.kpo_nav ul {display: grid;gap: 2px;margin: 0;padding: 0;list-style: none;}
.kpo .kpo_nav a {position: relative;isolation: isolate;display: flex;align-items: center;gap: 12px;min-height: 46px;padding: 0 10px;border-radius: var(--kpo-r-sm);color: var(--kpo-text-2);font-size: 14px;font-weight: 500;text-decoration: none;-webkit-tap-highlight-color: transparent;}
.kpo_nav a::before {content: '';position: absolute;inset: 0;z-index: -1;border-radius: inherit;background: var(--kpo-hover);opacity: 0;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_nav a:hover::before {opacity: 1;}
.kpo .kpo_nav a:hover {color: var(--kpo-ink);}
/* Every page a medallion; the current one filled orange */
.kpo_nav a > .kpo_icon {box-sizing: content-box;width: 16px;height: 16px;padding: 6px;border: 1.5px solid rgba(232, 105, 31, .45);border-radius: 50%;background: var(--kpo-chrome);color: var(--kpo-orange-text);}
.kpo .kpo_nav a[aria-current=page] {color: var(--kpo-ink);font-weight: 600;}
.kpo_nav a[aria-current=page]::before {background: transparent;opacity: 1;}
.kpo_nav a[aria-current=page] > .kpo_icon {border-color: #C24900;background: #C24900;color: #fff;box-shadow: 0 0 0 3px rgba(202, 79, 0, .22);}
.kpo_nav a:focus-visible {outline-offset: 0;}
.kpo_menu_foot {display: grid;gap: 10px;margin-top: 18px;}
.kpo_user {display: flex;align-items: center;gap: 10px;min-width: 0;padding: 10px 2px 2px;border-top: 1px solid var(--kpo-line);}
.kpo_user_text {flex: 1 1 auto;}
.kpo_user_logout {flex: none;margin: 0;}
.kpo .kpo_logout {grid-auto-flow: column;width: auto;gap: 8px;height: 36px;padding: 0 12px;border: 1px solid var(--kpo-field);color: var(--kpo-text);font-size: 13px;font-weight: 600;}
.kpo_side .kpo_logout {width: 32px;height: 32px;padding: 0;border: 0;color: var(--kpo-muted);}
.kpo_side .kpo_logout_text {position: absolute;width: 1px;height: 1px;margin: -1px;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap;}

/* -----------------------------------------------------------------------------
   Page area: fluid, with a slim header
----------------------------------------------------------------------------- */
.kpo_main {display: block;min-width: 0;padding: 20px var(--kpo-gutter) var(--kpo-main-end);}
.kpo_view {container-type: inline-size;}
/* Small: Vernieuwen is an icon button in the corner beside the kicker and title, the lead below runs the full width
   (its label stays for screen readers, the title attribute shows it on hover); from a 480px page the button with its
   label, at the bottom right of the header */
.kpo_head {display: grid;grid-template-columns: minmax(0, 1fr) auto;column-gap: 12px;margin-bottom: 20px;}
.kpo_head_text {display: contents;}
.kpo_head .kpo_kicker, .kpo_head h1 {grid-column: 1;}
.kpo_head .kpo_lead {grid-column: 1 / -1;}
.kpo_head_actions {grid-column: 2;grid-row: 1 / span 2;align-self: start;}
.kpo .kpo_head .kpo_refresh {width: 44px;padding: 0;}
.kpo_head .kpo_refresh > .kpo_icon {padding: 0;background: none;color: inherit;}
.kpo_head .kpo_refresh > span {position: absolute;width: 1px;height: 1px;margin: -1px;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap;}
.kpo_kicker {margin: 0 0 4px;overflow: hidden;color: var(--kpo-orange-text);font-size: 12px;font-weight: 600;letter-spacing: .08em;text-overflow: ellipsis;text-transform: uppercase;white-space: nowrap;}
.kpo_head h1 {margin: 0;font-size: clamp(22px, 1.4vw + 16px, 28px);letter-spacing: -.01em;}
.kpo_lead {max-width: 62em;margin: 6px 0 0;color: var(--kpo-muted);font-size: 14.5px;line-height: 1.5;}
.kpo_head_actions {display: flex;flex: none;gap: 8px;}

/* Cards */
.kpo_card {position: relative;isolation: isolate;border: 1px solid var(--kpo-card-line);border-radius: var(--kpo-r-lg);background: var(--kpo-surface);box-shadow: var(--kpo-shadow-sm);}
/* The corner waves of the site's tiles, at the bottom right of every card (::before: .is-skeleton uses ::after) */
.kpo_card::before, .kpo_gate_inner::before {content: '';position: absolute;z-index: -1;right: 0;bottom: 0;width: 288px;max-width: 100%;height: 96px;border-radius: 0 0 calc(var(--kpo-r-lg) - 1px) 0;background: url("portal-corner-waves-dark-v2.svg") right bottom / 288px 96px no-repeat;pointer-events: none;}
.kpo_box {min-width: 0;padding: 16px 18px;}
.kpo_box_head {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 6px 16px;margin-bottom: 10px;}
.kpo_box h2, .kpo_box h3 {display: flex;align-items: center;gap: 8px;margin: 0;font-size: 16px;}
.kpo_count {min-width: 22px;padding: 1px 7px;border-radius: 999px;background: var(--kpo-hover);color: var(--kpo-text-2);font-family: var(--kpo-font);font-size: 12px;font-weight: 600;line-height: 1.6;text-align: center;font-variant-numeric: tabular-nums;}
.kpo .kpo_more {display: inline-flex;align-items: center;gap: 6px;min-height: 32px;font-size: 13.5px;font-weight: 600;text-decoration: none;}
.kpo .kpo_more:hover {color: var(--kpo-ink);text-decoration: underline;}
.kpo_more .kpo_icon {width: 16px;height: 16px;transition: transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo_more:hover .kpo_icon {transform: translateX(2px);}
.kpo_box_text {margin: 0;color: var(--kpo-muted);font-size: 14px;}
.kpo_box_foot {margin-top: 12px;padding-top: 10px;border-top: 1px solid var(--kpo-line);}
.kpo_box--help {background: var(--kpo-soft);}

/* Messages */
.kpo_notice {display: flex;align-items: flex-start;gap: 10px;margin: 0 0 16px;padding: 10px 14px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r);background: var(--kpo-surface);font-size: 14px;line-height: 1.5;}
.kpo_notice .kpo_icon {width: 18px;height: 18px;margin-top: 1px;}
.kpo_notice > div {min-width: 0;}
.kpo_notice p {margin: 0;}
.kpo_notice ul {margin: 4px 0 0;padding-left: 18px;}
.kpo .kpo_notice a {color: inherit;font-weight: 600;}
.kpo_notice--ok {border-color: var(--kpo-ok-line);background: var(--kpo-ok-soft);color: var(--kpo-ok);}
.kpo_notice--error {border-color: var(--kpo-danger-line);background: var(--kpo-danger-soft);color: var(--kpo-danger);}
.kpo_notice--info {color: var(--kpo-text);}
.kpo_notice--info .kpo_icon {color: var(--kpo-orange-text);}
.kpo_notice:focus {outline: none;}
.kpo_notice:focus-visible {outline: 2px solid var(--kpo-focus);outline-offset: 2px;}

/* -----------------------------------------------------------------------------
   Totals (KPI tiles)
----------------------------------------------------------------------------- */
/* Two tiles beside each other on a phone: a smaller icon, so "Betaald dit jaar" stays on one line from a 360px screen */
.kpo_kpis {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 30px 10px;margin: 20px 0 16px;}
.kpo_kpi {position: relative;isolation: isolate;min-width: 0;padding: 30px 12px 12px;border: 1px solid var(--kpo-card-line);border-radius: var(--kpo-r-lg);background: var(--kpo-surface);box-shadow: var(--kpo-shadow-sm);}
.kpo_kpi::before {content: '';position: absolute;z-index: -1;right: 0;bottom: 0;width: 192px;max-width: 100%;height: 64px;border-radius: 0 0 calc(var(--kpo-r-lg) - 1px) 0;background: url("portal-corner-waves-dark-v2.svg") right bottom / 192px 64px no-repeat;pointer-events: none;}
.kpo_kpi dt {display: flex;align-items: center;justify-content: space-between;gap: 6px;color: var(--kpo-muted);font-size: 13px;font-weight: 500;line-height: 1.3;}
.kpo_kpi_label {min-width: 0;}
.kpo_kpi_icon {position: absolute;top: -19px;left: 14px;display: grid;place-items: center;flex: none;width: 38px;height: 38px;border: 1.5px solid #CA4F00;border-radius: 50%;background: var(--kpo-medal);box-shadow: 0 0 0 4px var(--kpo-bg);color: var(--kpo-orange-text);}
.kpo_kpi_icon .kpo_icon {width: 17px;height: 17px;}
.kpo_kpi dd {margin: 0;}
.kpo .kpo_kpi_value {margin-top: 6px;overflow: hidden;color: var(--kpo-ink);font-size: 18px;font-size: clamp(17px, 2.6cqi, 24px);font-weight: 600;line-height: 1.25;text-overflow: ellipsis;white-space: nowrap;font-variant-numeric: tabular-nums;}
.kpo .kpo_kpi_sub {margin-top: 2px;color: var(--kpo-muted);font-size: 12.5px;line-height: 1.4;}
.kpo_kpi--alert .kpo_kpi_icon {border-color: var(--kpo-danger);color: var(--kpo-danger);}
.kpo .kpo_kpi--alert .kpo_kpi_value, .kpo .kpo_kpi--alert .kpo_kpi_sub {color: var(--kpo-danger);}

/* -----------------------------------------------------------------------------
   Overview
----------------------------------------------------------------------------- */
.kpo_dash, .kpo_dash_main, .kpo_dash_side {display: grid;align-content: start;gap: 16px;min-width: 0;}
/* Mount Fuji with the sun, the logo and the dots at the bottom right of the overview, as the last part of the side
   column; it reaches into the padding of .kpo_main, to the right and bottom edge of the page. On a wide page it fills
   the room the column has left under its cards (at least 300px, the picture at most 520px high). */
.kpo_view[data-kpo-view="overzicht"] .kpo_dash_side::after {content: '';grid-column: 1 / -1;height: 200px;margin: 8px calc(-1 * var(--kpo-gutter)) calc(-1 * var(--kpo-main-end));background: url("portal-fuji-dark-v2.svg") right bottom / auto 100% no-repeat;pointer-events: none;}
.kpo_items {margin: 0 -18px;padding: 0;list-style: none;}
.kpo_item {display: flex;align-items: center;gap: 12px;min-width: 0;padding: 11px 18px;border-top: 1px solid var(--kpo-line);}
.kpo_item_icon {display: none;}
/* The middle of an item is a container of its own (kpo-item): how much room the description has depends on the
   amount, the badge and the column the list is in, not only on the page */
.kpo_item_main {flex: 1 1 auto;min-width: 0;container: kpo-item / inline-size;}
.kpo_item_title {display: flex;flex-wrap: wrap;align-items: baseline;gap: 0 8px;min-width: 0;margin: 0;font-size: 14px;line-height: 1.4;}
.kpo_item_number {flex: none;color: var(--kpo-ink);font-weight: 600;font-variant-numeric: tabular-nums;}
/* Narrow: the description on a row of its own under the number, at most two lines; "+N meer" after it (under it when
   the text needs the whole row), never cut off. From 340px (see the container queries) on one line next to the
   number, the text cut off with an ellipsis and "+N meer" beside it. */
.kpo_item_desc {display: flex;flex: 1 1 100%;flex-wrap: wrap;align-items: baseline;gap: 2px 6px;min-width: 0;color: var(--kpo-muted);}
.kpo_item_desc .kpo_desc_text {display: -webkit-box;min-width: 0;overflow: hidden;-webkit-box-orient: vertical;-webkit-line-clamp: 2;line-clamp: 2;}
/* The other lines of an invoice: a small muted chip after the description (lists, invoice cards and table) */
.kpo_desc_more {display: inline-block;flex: none;padding: 0 6px;border-radius: 999px;background: var(--kpo-hover);color: var(--kpo-muted);font-size: 11.5px;font-weight: 600;line-height: 1.6;white-space: nowrap;font-variant-numeric: tabular-nums;}
.kpo_item_meta {display: flex;flex-wrap: wrap;align-items: center;gap: 2px 10px;margin: 2px 0 0;color: var(--kpo-muted);font-size: 12.5px;line-height: 1.4;}
.kpo_when {display: inline-flex;align-items: center;gap: 4px;color: var(--kpo-text-2);font-weight: 500;}
.kpo_when .kpo_icon {width: 14px;height: 14px;}
.kpo_when.is-late {color: var(--kpo-danger);font-weight: 600;}
.kpo_item_end {display: flex;flex: none;flex-direction: column;align-items: flex-end;gap: 3px;}
.kpo_item_amount {color: var(--kpo-ink);font-size: 14px;font-weight: 600;white-space: nowrap;font-variant-numeric: tabular-nums;}
.kpo_item_pdf.is-empty {display: block;flex: none;width: 32px;}
.kpo_facts {display: grid;gap: 10px;margin: 0;}
.kpo_facts div {display: grid;grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);gap: 12px;}
.kpo_facts dt {color: var(--kpo-muted);font-size: 13px;line-height: 1.5;}
.kpo_facts dd {margin: 0;color: var(--kpo-ink);font-size: 14px;line-height: 1.45;overflow-wrap: anywhere;}
/* One label column for all rows, as wide as the longest label (at most 40%): no "Contactpersoo-n", and the rest is
   room for the value (the e-mail address breaks after its @, see kpo_portal_details_card()) */
@supports (grid-template-columns: subgrid) {
	.kpo_facts {grid-template-columns: fit-content(40%) minmax(0, 1fr);}
	.kpo_facts div {grid-column: 1 / -1;grid-template-columns: subgrid;gap: 16px;}
	.kpo_facts dt {overflow-wrap: normal;}
}

/* Contact (overview card, menu, brand panel) */
.kpo_contact {display: grid;gap: 2px;margin: 10px 0 0;padding: 0;list-style: none;font-size: 14px;}
.kpo_contact li {display: flex;align-items: center;gap: 10px;min-width: 0;min-height: 36px;}
.kpo_contact .kpo_icon {width: 16px;height: 16px;color: var(--kpo-orange-text);}
.kpo .kpo_contact a {color: var(--kpo-ink);font-weight: 500;text-decoration: none;}
.kpo .kpo_contact a:hover {text-decoration: underline;}
.kpo_contact a[href^="tel:"], .kpo_contact li > span {white-space: nowrap;}
.kpo_contact--small {margin-top: 6px;font-size: 12.5px;}
.kpo_contact--small li {gap: 8px;min-height: 26px;}
.kpo_contact--small .kpo_icon {width: 14px;height: 14px;color: var(--kpo-muted);}
.kpo_contact--small li:last-child {color: var(--kpo-muted);}

/* -----------------------------------------------------------------------------
   Invoices: filter, list; cards on small screens, a table on wide ones
----------------------------------------------------------------------------- */
.kpo_toolbar {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 12px;margin: 0 0 12px;}
/* Narrow: the filter fills the row and its options share it (so two- and three-digit counts fit a 360px screen); from a
   480px page it is as wide as its options again */
.kpo_seg {width: 100%;max-width: 100%;overflow-x: auto;scrollbar-width: none;}
.kpo_seg::-webkit-scrollbar {display: none;}
.kpo_seg ul {display: flex;width: max-content;min-width: 100%;gap: 2px;margin: 0;padding: 3px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r);background: var(--kpo-soft);list-style: none;}
.kpo_seg li {display: flex;flex: 1 1 auto;}
.kpo .kpo_seg a {position: relative;isolation: isolate;display: inline-flex;flex: 1 1 auto;align-items: center;justify-content: center;gap: 6px;min-height: 34px;padding: 0 6px;border-radius: 7px;color: var(--kpo-text-2);font-size: 13.5px;font-weight: 600;text-decoration: none;white-space: nowrap;-webkit-tap-highlight-color: transparent;}
.kpo_seg a::before {content: '';position: absolute;inset: 0;z-index: -1;border-radius: inherit;background: rgba(255, 255, 255, .1);box-shadow: 0 1px 2px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .06);opacity: 0;transform: scale(.94);transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast), transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo .kpo_seg a:hover, .kpo .kpo_seg a[aria-current=page] {color: var(--kpo-ink);}
.kpo_seg a[aria-current=page]::before {opacity: 1;transform: none;}
.kpo_seg a:focus-visible {outline-offset: 0;}
.kpo_seg_count {min-width: 20px;padding: 0 6px;border-radius: 999px;background: rgba(255, 255, 255, .08);color: var(--kpo-text-2);font-size: 11.5px;line-height: 1.6;text-align: center;font-variant-numeric: tabular-nums;}

.kpo_invoices {display: block;width: 100%;border-collapse: separate;border-spacing: 0;}
.kpo_invoices caption {caption-side: top;}
.kpo_invoices thead {position: absolute;width: 1px;height: 1px;margin: -1px;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap;}
.kpo_invoices tbody {display: grid;gap: 10px;}
.kpo_invoices tr {display: grid;grid-template-columns: minmax(0, 1fr) auto;gap: 8px 16px;padding: 14px 16px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r-lg);background: var(--kpo-surface);box-shadow: var(--kpo-shadow-sm);}
.kpo_invoices tr.kpo_inv--overdue {border-color: var(--kpo-danger-line);box-shadow: inset 3px 0 0 var(--kpo-danger), var(--kpo-shadow-sm);}
.kpo_invoices td {display: block;min-width: 0;padding: 0;font-size: 14px;}
.kpo_invoices .kpo_c_number {order: 1;align-self: center;color: var(--kpo-ink);font-size: 15px;font-weight: 600;font-variant-numeric: tabular-nums;}
.kpo_invoices .kpo_c_status {order: 2;text-align: right;}
.kpo_invoices .kpo_c_desc {order: 3;grid-column: 1 / -1;color: var(--kpo-muted);font-size: 13.5px;}
.kpo_invoices .kpo_c_date {order: 4;}
.kpo_invoices .kpo_c_amount {order: 5;text-align: right;}
.kpo_invoices .kpo_c_due {order: 6;}
.kpo_invoices .kpo_c_pdf {order: 7;align-self: end;text-align: right;}
.kpo_invoices td.is-empty.kpo_c_desc, .kpo_invoices td.is-empty.kpo_c_pdf {display: none;}
.kpo_cell_label {display: block;color: var(--kpo-muted);font-size: 11.5px;font-weight: 600;letter-spacing: .04em;text-transform: uppercase;}
.kpo_amount {color: var(--kpo-ink);font-weight: 600;white-space: nowrap;font-variant-numeric: tabular-nums;}
.kpo_invoices time {white-space: nowrap;}
.kpo_inv--paid .kpo_c_due time {color: var(--kpo-muted);}
.kpo_none {color: var(--kpo-muted);}
.kpo .kpo_pdf {position: relative;isolation: isolate;display: inline-flex;align-items: center;justify-content: center;gap: 6px;min-width: 40px;min-height: 32px;padding: 0 10px;border: 1px solid var(--kpo-field);border-radius: var(--kpo-r-sm);background: transparent;color: var(--kpo-text);font-size: 13px;font-weight: 600;text-decoration: none;white-space: nowrap;}
.kpo_pdf::before {content: '';position: absolute;inset: 0;z-index: -1;border-radius: inherit;background: var(--kpo-hover);opacity: 0;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_pdf:hover::before {opacity: 1;}
.kpo .kpo_pdf:hover {border-color: var(--kpo-field-hover);color: var(--kpo-ink);}
.kpo_pdf .kpo_icon {width: 16px;height: 16px;color: var(--kpo-orange-text);}

/* Status pills: light text on a tint of its own colour; the word says the status, the colour only helps */
.kpo_badge {display: inline-flex;align-items: center;gap: 6px;padding: 2px 9px;border-radius: 999px;background: rgba(148, 170, 196, .14);color: #B8C7D9;font-size: 12px;font-weight: 700;line-height: 1.5;white-space: nowrap;}
.kpo_badge::before {content: '';flex: none;width: 6px;height: 6px;border-radius: 50%;background: currentColor;}
.kpo_badge--paid {background: var(--kpo-ok-soft);color: var(--kpo-ok);}
.kpo_badge--open {background: rgba(148, 170, 196, .14);color: #B8C7D9;}
.kpo_badge--partial {background: rgba(245, 176, 66, .14);color: #F5C26B;}
.kpo_badge--overdue {background: rgba(240, 68, 56, .16);color: var(--kpo-danger);}
.kpo_badge--credit {background: rgba(160, 130, 240, .16);color: #C4B2F7;}
.kpo_status_detail {display: block;margin-top: 4px;color: var(--kpo-muted);font-size: 12px;line-height: 1.4;}
.kpo_inv--overdue .kpo_status_detail {color: var(--kpo-danger);}

.kpo_empty {display: grid;justify-items: center;gap: 2px;padding: 22px 16px;color: var(--kpo-muted);font-size: 14px;text-align: center;}
/* The icon in a medallion, as the totals: dark with an orange ring (light with seigaiha in the light scheme) */
.kpo_empty .kpo_icon {box-sizing: content-box;width: 24px;height: 24px;margin-bottom: 12px;padding: 16px;border: 1.5px solid #CA4F00;border-radius: 50%;background: var(--kpo-medal);box-shadow: 0 0 0 6px var(--kpo-surface);color: var(--kpo-orange-text);}
.kpo_empty--ok .kpo_icon {border-color: rgba(92, 201, 138, .6);color: var(--kpo-ok);}
.kpo_empty strong {color: var(--kpo-ink);font-size: 15px;}
.kpo_empty p {margin: 0;}
.kpo_footnote {display: flex;align-items: flex-start;gap: 8px;max-width: 62em;margin: 16px 0 0;color: var(--kpo-muted);font-size: 13px;line-height: 1.55;}
.kpo_footnote .kpo_icon {width: 16px;height: 16px;margin-top: 2px;color: var(--kpo-orange-text);}

/* -----------------------------------------------------------------------------
   Forms: compact fields; settings sections (title and explanation left, fields right)
----------------------------------------------------------------------------- */
.kpo_form {margin: 0;}
.kpo_field {min-width: 0;margin-top: 16px;}
.kpo_field label, .kpo_label {display: block;margin: 0 0 6px;color: var(--kpo-text);font-size: 13px;font-weight: 600;line-height: 1.35;}
.kpo_req {color: var(--kpo-muted);font-weight: 400;}
.kpo_input {display: block;width: 100%;height: 40px;margin: 0;padding: 0 12px;border: 1px solid var(--kpo-input-line);border-radius: var(--kpo-r-sm);background: var(--kpo-input);box-shadow: none;color: var(--kpo-ink);font: inherit;font-size: 16px; /* 16px on phones: iOS does not zoom in */line-height: 1.3;-webkit-appearance: none;appearance: none;}
.kpo_input:hover {border-color: var(--kpo-input-line-hover);}
.kpo_input::placeholder {color: rgba(255, 255, 255, .42);opacity: 1;}
.kpo_select option {background: var(--kpo-surface);color: var(--kpo-ink);}
/* Focus: a 2px orange edge (border plus a 1px ring) and a soft halo */
.kpo_input:focus {border-color: var(--kpo-focus);outline: none;box-shadow: 0 0 0 1px var(--kpo-focus), 0 0 0 4px var(--kpo-ring);}
.kpo_input[aria-invalid=true] {border-color: var(--kpo-danger);}
/* A field with an error is red already: its focus is a separate red ring, as with :focus-visible elsewhere */
.kpo_input[aria-invalid=true]:focus {border-color: var(--kpo-danger);box-shadow: 0 0 0 1px var(--kpo-danger);outline: 2px solid var(--kpo-danger);outline-offset: 2px;}
.kpo_hint {margin: 6px 0 0;color: var(--kpo-muted);font-size: 12.5px;line-height: 1.45;}
.kpo_field_error {margin: 6px 0 0;color: var(--kpo-danger);font-size: 12.5px;font-weight: 500;line-height: 1.45;}
/* The login code: one field, the six digits large and monospaced with room between them (the letter spacing after
   the last digit is made up on the left, so the code stays centred) */
.kpo_field--code .kpo_input {height: 60px;padding: 0 12px 0 calc(12px + .42em);font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;font-size: 28px;font-weight: 600;letter-spacing: .42em;text-align: center;font-variant-numeric: tabular-nums;}
.kpo_row {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 0 16px;margin-top: 6px;}
.kpo_check {display: inline-flex;align-items: center;gap: 8px;min-height: 40px;color: var(--kpo-text);font-size: 13.5px;cursor: pointer;}
/* Check boxes and radio buttons (here and the onboarding choices): the site's orange with a white tick */
.kpo_check input, .kpo_ob_q .kpo_ob_option input {appearance: none;-webkit-appearance: none;display: inline-block;flex: none;box-sizing: border-box;width: 18px;height: 18px;margin: 0;border: 1.5px solid var(--kpo-input-line);border-radius: 5px;background: var(--kpo-input);cursor: pointer;transition: background-color var(--kpo-t-fast) var(--kpo-ease-fast), border-color var(--kpo-t-fast) var(--kpo-ease-fast), box-shadow var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_check input:hover, .kpo_ob_q .kpo_ob_option:hover input {border-color: #CA4F00;}
.kpo_check input:checked, .kpo_ob_q .kpo_ob_option input:checked {border-color: #C24900;background: #C24900 url("portal-check.svg") center / 13px no-repeat;}
.kpo_check input:disabled, .kpo_ob_q .kpo_ob_option input:disabled {cursor: not-allowed;opacity: .55;}
.kpo .kpo_rowlink {display: inline-flex;align-items: center;min-height: 40px;font-size: 13.5px;font-weight: 500;}
/* A form button that looks like a link (Code opnieuw sturen) */
.kpo_inline {display: inline;margin: 0;}
.kpo_linkbtn {display: inline-flex;align-items: center;min-height: 40px;margin: 0;padding: 0;border: 0;background: none;color: var(--kpo-orange-text);font: inherit;font-size: 13.5px;font-weight: 500;text-decoration: underline;text-decoration-thickness: 1px;text-underline-offset: 2px;cursor: pointer;-webkit-tap-highlight-color: transparent;}
.kpo_linkbtn:hover {color: var(--kpo-ink);}
.kpo_linkbtn:disabled, .kpo_linkbtn[aria-disabled="true"] {color: var(--kpo-muted);text-decoration: none;cursor: default;}
.kpo_linkbtn.is-busy {cursor: progress;}
.kpo_readonly_value {display: flex;align-items: center;height: 40px;padding: 0 12px;border: 1px dashed var(--kpo-field);border-radius: var(--kpo-r-sm);background: var(--kpo-soft);color: var(--kpo-ink);font-size: 14.5px;font-variant-numeric: tabular-nums;}

.kpo_settings {max-width: 1080px;overflow: hidden;}
.kpo_settings + .kpo_settings {margin-top: 16px;} /* Inloggegevens: the e-mail card, then "Zo log je in" */
.kpo_section {display: flow-root;min-width: 0;margin: 0;padding: 20px;border: 0;border-top: 1px solid var(--kpo-line);}
.kpo_settings .kpo_section:first-of-type {border-top: 0;} /* the first of a card (gegevens: the first fieldset) */
.kpo_section_title {float: left;width: 100%;margin: 0;padding: 0;color: var(--kpo-ink);font-family: var(--kpo-heading);font-size: 15px;font-weight: 700;line-height: 1.4;}
.kpo_section_desc {float: left;clear: left;width: 100%;margin: 4px 0 0;color: var(--kpo-muted);font-size: 13.5px;line-height: 1.5;}
.kpo_section_desc strong {color: var(--kpo-ink);font-weight: 600;overflow-wrap: anywhere;}
.kpo_section_fields {display: flow-root;clear: both;min-width: 0;}
.kpo_section_fields > .kpo_notice {margin: 16px 0 0;}
.kpo_fields {display: grid;gap: 16px;padding-top: 16px;}
.kpo_fields .kpo_field {margin-top: 0;}
.kpo_section_foot {display: flex;flex-wrap: wrap;align-items: center;justify-content: flex-end;gap: 10px 16px;padding: 12px 20px;border-top: 1px solid var(--kpo-line);background: var(--kpo-soft);}
.kpo_section_foot .kpo_hint {margin: 0 auto 0 0;}
/* Short facts with a check mark (how logging in works) */
.kpo_ticks {display: grid;gap: 10px;margin: 16px 0 0;padding: 0;color: var(--kpo-text-2);font-size: 14px;line-height: 1.5;list-style: none;}
.kpo_ticks li {display: flex;align-items: flex-start;gap: 10px;}
.kpo_ticks .kpo_icon {flex: none;width: 18px;height: 18px;margin-top: 1px;color: var(--kpo-orange-text);}

/* An app message (404, PDF not available) */
.kpo_message {max-width: 720px;}
.kpo_message p {max-width: 60ch;margin: 0 0 16px;}
.kpo_message_actions {display: flex;flex-wrap: wrap;gap: 8px;}

/* -----------------------------------------------------------------------------
   Pages without login
----------------------------------------------------------------------------- */
.kpo_split {display: flex;flex-direction: column;min-height: 100vh;min-height: 100dvh;}
/* The black brand panel only beside the form on wide screens; above the form on small ones the logo */
.kpo_brandpanel {position: relative;display: none;align-items: center;justify-content: space-between;gap: 12px;overflow: hidden;padding: 12px var(--kpo-gutter);color: var(--kpo-text);}
.kpo_brand {display: flex;flex: none;align-items: center;min-height: 40px;}
.kpo_logo {display: block;width: 128px;height: auto;}
.kpo_brandpanel_title {margin: 0;color: #fff;font-family: var(--kpo-heading);font-size: 14px;font-weight: 700;line-height: 1.2;}
.kpo_brandpanel_intro, .kpo_benefits, .kpo_brandpanel .kpo_contact {display: none;}
/* Small screens have no brand panel: its seigaiha and Mount Fuji are behind the whole page (light in the light
   scheme), the form keeps room under it, so the mountain (about a quarter of the page high) stays below the text */
@media (max-width: 1023.98px) {
	.kpo_split {background: var(--kpo-bg) url("portal-login-bg-v2.svg") right bottom / cover no-repeat;}
	[data-theme="light"] .kpo_split {background-image: url("portal-login-bg-light-v2.svg");}
}
.kpo_gate {display: flex;flex: 1 0 auto;flex-direction: column;padding: 28px var(--kpo-gutter) 220px;}
.kpo_gate_mark {width: 100%;max-width: 440px;margin: 0 auto 24px;}
.kpo_gate_mark .kpo_logo {width: 136px;}
/* The form in a dark card, as the cards on the site's dark sections */
.kpo_gate_inner {position: relative;isolation: isolate;width: 100%;max-width: 440px;margin: 0 auto;padding: 24px 20px;border: 1px solid var(--kpo-card-line);border-radius: 22px;background: var(--kpo-surface);box-shadow: var(--kpo-shadow-lg);}
.kpo_gate_inner::before {border-bottom-right-radius: 21px;}
.kpo_gate h1 {margin: 0 0 6px;font-size: 24px;letter-spacing: -.01em;}
.kpo_intro {margin: 0;color: var(--kpo-muted);font-size: 14.5px;line-height: 1.55;}
.kpo_gate_inner .kpo_notice {margin: 16px 0 0;}
.kpo_gate_inner .kpo_notice + .kpo_intro {margin-top: 12px;}
.kpo_gate_inner .kpo_form {margin-top: 8px;}
.kpo_gate_inner .kpo_button--block {margin-top: 20px;}
.kpo_gate_inner .kpo_row + .kpo_button--block {margin-top: 12px;}
.kpo_small {margin: 20px 0 0;color: var(--kpo-muted);font-size: 13px;}
/* Under the code: why no mail came, Code opnieuw sturen and Ander e-mailadres */
.kpo_otp_help {margin-top: 20px;padding-top: 14px;border-top: 1px solid var(--kpo-line);}
.kpo_otp_help .kpo_small {margin: 0;}
.kpo_otp_help .kpo_row {margin-top: 2px;}
/* "Code opnieuw sturen" pressed before its time (portal.js): the wait stands out for a moment. Only colours, not
   animated: the background reaches past the text with a shadow, so nothing moves. */
.kpo_wait.is-nudged {border-radius: 3px;background: var(--kpo-orange-soft);box-shadow: 0 0 0 3px var(--kpo-orange-soft);color: var(--kpo-ink);-webkit-box-decoration-break: clone;box-decoration-break: clone;}
@media (forced-colors: active) {
	.kpo_wait.is-nudged {outline: 1px solid CanvasText;outline-offset: 2px;}
}
.kpo_gate_foot {width: 100%;max-width: 440px;margin: 28px auto 0;padding-top: 16px;border-top: 1px solid var(--kpo-line);color: var(--kpo-muted);font-size: 13px;}


/* -----------------------------------------------------------------------------
   Onboarding: no start screen; every step is a tab under the header (services and how far), the questions in
   settings sections, choices as tiles, uploads with a drop zone, lists, colour chips, "Voor je begint" (step 1),
   Versturen (the last step), "Hulp nodig?"
----------------------------------------------------------------------------- */
.kpo [hidden] {display: none !important;}
/* The badge of Onboarding in the menu: how far, or a check once sent in */
.kpo_nav_badge {margin-left: auto;min-width: 36px;padding: 0 7px;border-radius: 999px;background: var(--kpo-hover);color: var(--kpo-text-2);font-size: 11.5px;font-weight: 600;line-height: 20px;text-align: center;font-variant-numeric: tabular-nums;}
.kpo_nav a[aria-current=page] .kpo_nav_badge {background: rgba(232, 105, 31, .2);color: var(--kpo-orange-text);}
.kpo_nav_badge--done {display: inline-grid;place-items: center;min-width: 20px;height: 20px;padding: 0;background: var(--kpo-ok-soft);}
.kpo .kpo_nav .kpo_nav_badge--done .kpo_icon {width: 12px;height: 12px;color: var(--kpo-ok);}
/* A bar of how far: the fill is scaled, never its width animated */
.kpo_meter {position: relative;display: block;width: 100%;height: 6px;overflow: hidden;border-radius: 999px;background: rgba(255, 255, 255, .1);}
.kpo_meter_fill {position: absolute;inset: 0;border-radius: inherit;background: var(--kpo-orange);transform: scaleX(0);transform-origin: 0 50%;transition: transform var(--kpo-t-enter) var(--kpo-ease-out);}

/* The card on the overview of the portal */
.kpo_view > .kpo_ob_card {margin-bottom: 16px;}
.kpo_ob_card h2 .kpo_icon {width: 18px;height: 18px;color: var(--kpo-orange-text);}
.kpo_ob_card_meter {max-width: 420px;margin: 12px 0 14px;}
.kpo_ob_card_actions {display: flex;flex-wrap: wrap;align-items: center;gap: 8px 16px;}
.kpo_ob_card--done {background: var(--kpo-soft);}
/* Several onboardings (a second website): onboarding lists them, a card each, its services as chips */
.kpo_ob_card_services {margin: 0 0 10px;}

/* The header of a step: the services as chips and how far (the meter follows each save); a row of its own under
   the lead, as wide as the questions below */
.kpo_ob_meta {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 10px 24px;max-width: 1080px;margin-top: 12px;}
.kpo_head .kpo_ob_meta {grid-column: 1 / -1;}
.kpo_ob_services {display: flex;flex-wrap: wrap;align-items: center;gap: 6px 8px;min-width: 0;}
.kpo_ob_services_label {color: var(--kpo-muted);font-size: 11.5px;font-weight: 600;letter-spacing: .06em;text-transform: uppercase;}
.kpo_ob_services ul {display: flex;flex-wrap: wrap;gap: 6px;margin: 0;padding: 0;list-style: none;}
.kpo_ob_services li {padding: 1px 10px;border-radius: 999px;background: var(--kpo-orange-soft);color: var(--kpo-orange-text);font-size: 12.5px;font-weight: 600;line-height: 1.6;}
.kpo_ob_total {display: flex;flex: 1 1 240px;align-items: center;gap: 10px;max-width: 340px;color: var(--kpo-muted);font-size: 13px;white-space: nowrap;}
.kpo_ob_total .kpo_meter {flex: 1 1 auto;min-width: 80px;}
.kpo_ob_total .kpo_badge {flex: none;}
.kpo_ob_total strong {color: var(--kpo-ink);font-variant-numeric: tabular-nums;}
.kpo_ob_tips {display: grid;gap: 10px;margin: 0;padding: 0;color: var(--kpo-text-2);font-size: 13.5px;line-height: 1.5;list-style: none;}
.kpo_ob_tips strong {display: block;color: var(--kpo-ink);}
.kpo_ob_prepare {margin-top: 0;}
.kpo_ob_prepare .kpo_icon {width: 16px;height: 16px;margin-top: 2px;}

/* The steps as tabs, under the header: one row, natural widths. Wider than the page, it scrolls sideways (a soft
   glow at an edge says there is more: the covers scroll with the row, the glows stay; nothing animates) and
   portal.js brings the current tab into view; on a wide page the other titles first give up a little room
   (ellipsis, the full title in the tooltip). The current step is underlined in orange. The number sits in a ring
   that fills with the step's progress (--p, from the page and portal.js; not animated), a check on green at 100%. */
.kpo_ob_tabs {max-width: 1080px;margin: 0 0 16px;}
.kpo_ob_tablist {display: flex;gap: 2px;margin: 0;padding: 0;overflow-x: auto;overscroll-behavior-x: contain;scrollbar-width: none;list-style: none;box-shadow: inset 0 -1px 0 var(--kpo-line);background: linear-gradient(to right, var(--kpo-bg) 30%, rgba(15, 15, 15, 0)) 0 0 / 40px 100% no-repeat local, linear-gradient(to left, var(--kpo-bg) 30%, rgba(15, 15, 15, 0)) 100% 0 / 40px 100% no-repeat local, linear-gradient(to right, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)) 0 0 / 14px 100% no-repeat scroll, linear-gradient(to left, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)) 100% 0 / 14px 100% no-repeat scroll;}
.kpo_ob_tablist::-webkit-scrollbar {display: none;}
.kpo_ob_tablist li {display: flex;flex: none;}
.kpo .kpo_ob_tab {position: relative;isolation: isolate;display: flex;align-items: center;gap: 8px;min-width: 0;min-height: 46px;padding: 0 12px 2px;border-radius: var(--kpo-r-sm);color: var(--kpo-text-2);font-size: 13.5px;font-weight: 500;line-height: 1.3;text-decoration: none;white-space: nowrap;-webkit-tap-highlight-color: transparent;}
.kpo_ob_tab::before {content: '';position: absolute;inset: 5px 2px 7px;z-index: -1;border-radius: var(--kpo-r-sm);background: var(--kpo-hover);opacity: 0;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_ob_tab:hover::before {opacity: 1;}
.kpo .kpo_ob_tab:hover {color: var(--kpo-ink);}
.kpo_ob_tab::after {content: '';position: absolute;right: 8px;bottom: 0;left: 8px;height: 2px;border-radius: 2px 2px 0 0;background: var(--kpo-orange);opacity: 0;transform: scaleX(.4);transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast), transform var(--kpo-t) var(--kpo-ease-out);}
.kpo .kpo_ob_tab[aria-current=page] {color: var(--kpo-orange-text);}
.kpo_ob_tab[aria-current=page]::after {opacity: 1;transform: none;}
.kpo .kpo_ob_tab:focus-visible {outline-offset: -3px;} /* inside: the row clips what sticks out */
.kpo_ob_tabtitle {min-width: 4.5em;overflow: hidden;text-overflow: ellipsis;}
.kpo_ob_tabnum {position: relative;display: grid;place-items: center;flex: none;width: 24px;height: 24px;border-radius: 50%;background: conic-gradient(var(--kpo-orange) calc(var(--p, 0) * 1%), var(--kpo-field) 0);color: var(--kpo-text-2);font-size: 11.5px;font-weight: 600;font-variant-numeric: tabular-nums;}
.kpo_ob_tabnum::before {content: '';position: absolute;inset: 2px;border-radius: 50%;background: var(--kpo-bg);transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_ob_tabnum > span {position: relative;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_ob_tabnum .kpo_icon {position: absolute;width: 14px;height: 14px;color: var(--kpo-black);opacity: 0;transform: scale(.6);transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast), transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo_ob_tab[aria-current=page] .kpo_ob_tabnum {color: var(--kpo-orange-text);}
.kpo_ob_tab[data-state=done] .kpo_ob_tabnum {background: var(--kpo-ok);}
.kpo_ob_tab[data-state=done] .kpo_ob_tabnum::before, .kpo_ob_tab[data-state=done] .kpo_ob_tabnum > span {opacity: 0;}
.kpo_ob_tab[data-state=done] .kpo_ob_tabnum .kpo_icon {opacity: 1;transform: none;}
@media (forced-colors: active) {
	/* The ring and the underline are backgrounds, which forced colours remove: a border and a system colour instead */
	.kpo_ob_tabnum {border: 1px solid CanvasText;}
	.kpo_ob_tab[aria-current=page]::after {background: Highlight;forced-color-adjust: none;}
}

/* Under the tabs: what changes from step to step (portal.js lets only this rise in after a tab) */
.kpo_ob_pane {min-width: 0;max-width: 1080px;}
.kpo_ob_main {display: grid;gap: 16px;min-width: 0;container-type: inline-size;}
/* The form ("Voor je begint" above it on step 1), and "Hulp nodig?" beside it once there is room, else under it */
.kpo_ob_content {display: grid;gap: 16px;min-width: 0;container-type: inline-size;}
.kpo_ob_aside {display: grid;gap: 16px;min-width: 0;}
.kpo_view .kpo_ob_pane.is-entering {animation: kpo-enter var(--kpo-t-enter) var(--kpo-ease-out) both;}
/* "Voor je begint" (step 1): closed, like "Hulp nodig?"; open, what to have ready beside the tips */
.kpo_ob_info > .kpo_ob_info_body {display: grid;grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));gap: 18px 32px;padding-top: 16px;}
.kpo_ob_info h2 {margin: 0 0 10px;font-size: 14.5px;}
/* Versturen on the last step, above the form's buttons */
.kpo_ob_send .kpo_ob_total {max-width: 420px;margin-top: 16px;}
.kpo .kpo_ob_send_text {margin: 10px 0 0;color: var(--kpo-text-2);font-size: 14px;line-height: 1.5;text-wrap: pretty;}

/* The questions */
.kpo_ob_q {min-width: 0;margin: 0;padding: 0;border: 0;}
.kpo_ob_q > legend {float: left;width: 100%;margin: 0 0 6px;padding: 0;}
.kpo_ob_q > legend + * {clear: left;}
.kpo_textarea {height: auto;min-height: 88px;padding: 9px 12px;line-height: 1.5;resize: vertical;}
.kpo_select {padding-right: 32px;}
.kpo_ob_options {display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));gap: 8px;}
/* .kpo_ob_q in front: ".kpo_field label" (a block, bold, a margin) must not win over the tile */
.kpo_ob_q .kpo_ob_option {display: flex;align-items: flex-start;gap: 10px;min-height: 42px;margin: 0;padding: 10px 14px;border: 1px solid var(--kpo-field);border-radius: var(--kpo-r-sm);background: var(--kpo-soft);color: var(--kpo-text);font-size: 14px;font-weight: 500;line-height: 1.4;cursor: pointer;-webkit-tap-highlight-color: transparent;}
.kpo_ob_option:hover {border-color: var(--kpo-field-hover);}
.kpo_ob_q .kpo_ob_option input {margin-top: 1px;}
.kpo_ob_q .kpo_ob_option input[type="radio"] {border-radius: 50%;}
.kpo_ob_q .kpo_ob_option input[type="radio"]:checked {background: #C24900;box-shadow: inset 0 0 0 3.5px var(--kpo-input);}
.kpo_ob_q .kpo_ob_option:has(input:checked) {border-color: var(--kpo-orange);background: var(--kpo-orange-soft);color: var(--kpo-ink);font-weight: 600;}
.kpo_ob_q.has-error .kpo_ob_option {border-color: var(--kpo-danger-line);}
.kpo_ob_q > .kpo_hint, .kpo_ob_q > .kpo_field_error {clear: left;}
/* Opening hours: the day left, its field right, close together */
.kpo_fields > .kpo_field--day {display: grid;grid-template-columns: 100px minmax(0, 1fr);align-items: center;gap: 4px 12px;}
.kpo_fields > .kpo_field--day > label {margin: 0;font-weight: 500;}
.kpo_fields > .kpo_field--day > .kpo_hint, .kpo_fields > .kpo_field--day > .kpo_field_error {grid-column: 2;margin: 0;}
.kpo_fields > .kpo_field--day + .kpo_field--day {margin-top: -8px;}
/* A list: a row per line, the columns side by side once there is room */
.kpo_ob_rows {display: grid;gap: 8px;}
.kpo_ob_rowhead {display: none;}
.kpo_ob_row {display: grid;grid-template-columns: minmax(0, 1fr) 40px;align-items: center;gap: 6px 8px;}
.kpo_ob_row > input {grid-column: 1;}
.kpo_ob_row > button {grid-column: 2;grid-row: 1;}
.kpo_ob_rows--2 .kpo_ob_row {padding-bottom: 8px;border-bottom: 1px dashed var(--kpo-line);}
.kpo .kpo_ob_row_add {gap: 6px;margin-top: 4px;font-weight: 600;text-decoration: none;}
.kpo_ob_row_add .kpo_icon {width: 16px;height: 16px;}
/* An info text between the questions */
.kpo_ob_note {display: flex;align-items: flex-start;gap: 10px;padding: 12px 14px;border-radius: var(--kpo-r);background: var(--kpo-orange-soft);color: var(--kpo-ink);font-size: 14px;line-height: 1.5;}
.kpo_ob_note p {margin: 0;}
.kpo_ob_note .kpo_icon {width: 18px;height: 18px;margin-top: 1px;color: var(--kpo-orange-text);}
/* The introduction of a step the owner added (Onboardingvragen), above its first section */
.kpo_ob_stepdesc {margin: 0;padding: 20px 20px 0;color: var(--kpo-muted);font-size: 14px;line-height: 1.55;text-wrap: pretty;}
/* A password: kept, never shown again */
.kpo_ob_stored .kpo_check {min-height: 32px;}
/* Uploads: the files so far, a drop zone (the browser's file field without JavaScript), a bar per upload */
.kpo_ob_q--upload {position: relative;}
.kpo_ob_files, .kpo_ob_uploads {display: grid;gap: 6px;margin: 0 0 8px;padding: 0;list-style: none;}
.kpo_ob_uploads:empty {display: none;}
.kpo_ob_uploads {margin: 8px 0 0;}
.kpo_ob_file {display: flex;align-items: center;gap: 10px;min-width: 0;padding: 4px 4px 4px 10px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r-sm);background: var(--kpo-soft);font-size: 13.5px;}
.kpo_ob_file_icon .kpo_icon {width: 16px;height: 16px;color: var(--kpo-muted);}
.kpo .kpo_ob_file_name {flex: 1 1 auto;min-width: 0;overflow: hidden;color: var(--kpo-ink);font-weight: 500;text-overflow: ellipsis;white-space: nowrap;}
.kpo_ob_file_size {flex: none;color: var(--kpo-muted);font-size: 12.5px;font-variant-numeric: tabular-nums;}
.kpo_ob_file_remove .kpo_icon, .kpo_ob_row_remove .kpo_icon {width: 16px;height: 16px;}
/* .kpo_field in front: ".kpo_field label" (a block, bold, small) must not win over the drop zone */
.kpo_field .kpo_ob_drop {display: flex;flex-direction: column;align-items: center;justify-content: center;gap: 4px;min-height: 96px;margin: 0;padding: 16px;border: 1.5px dashed rgba(255, 255, 255, .22);border-radius: var(--kpo-r);background: var(--kpo-soft);color: var(--kpo-muted);font-size: 14px;font-weight: 400;text-align: center;cursor: pointer;}
.kpo_ob_drop:hover, .kpo_ob_drop.is-dragover {border-color: var(--kpo-orange);background: rgba(202, 79, 0, .08);}
.kpo_ob_drop_icon .kpo_icon {width: 22px;height: 22px;color: var(--kpo-orange-text);}
.kpo_ob_drop strong {color: var(--kpo-ink);font-weight: 600;}
.kpo_ob_drop_link {color: var(--kpo-orange-text);font-weight: 600;text-decoration: underline;text-underline-offset: 2px;}
.kpo_ob_drop_text {color: var(--kpo-text);font-size: 14px;font-weight: 400;line-height: 1.45;}
.kpo_ob_drop small {display: block;max-width: 46em;color: var(--kpo-muted);font-size: 12.5px;font-weight: 400;line-height: 1.45;}
.kpo_ob_file_input {display: block;width: 100%;margin-top: 8px;font-size: 13.5px;}
.kpo_ob_q--upload.is-enhanced .kpo_ob_file_input {position: absolute;width: 1px;height: 1px;margin: -1px;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap;border: 0;opacity: 0;}
.kpo_ob_q--upload:has(.kpo_ob_file_input:focus-visible) .kpo_ob_drop {outline: 2px solid var(--kpo-focus);outline-offset: 2px;}
.kpo_ob_upload {display: grid;grid-template-columns: minmax(0, 1fr) auto;align-items: center;gap: 4px 10px;padding: 8px 10px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r-sm);background: var(--kpo-soft);font-size: 13px;}
.kpo_ob_upload .kpo_meter {grid-column: 1 / -1;height: 4px;}
.kpo_ob_upload .kpo_meter_fill {transition: transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo_ob_upload_name {min-width: 0;overflow: hidden;color: var(--kpo-ink);text-overflow: ellipsis;white-space: nowrap;}
.kpo_ob_upload_pct {color: var(--kpo-muted);font-variant-numeric: tabular-nums;}
.kpo_ob_upload.is-error {display: flex;align-items: flex-start;gap: 8px;padding: 6px 6px 6px 10px;border-color: var(--kpo-danger-line);background: var(--kpo-danger-soft);color: var(--kpo-danger);line-height: 1.45;}
.kpo_ob_upload_msg {flex: 1 1 auto;padding-top: 2px;}
.kpo_ob_upload.is-error .kpo_iconbtn {color: var(--kpo-danger);font-size: 18px;}
/* Colours: a chip per colour with its picker and code; the text field stays for the answer */
.kpo_ob_q--colors {position: relative;}
.kpo_ob_q--colors.is-enhanced > .kpo_input {position: absolute;width: 1px;height: 1px;margin: -1px;overflow: hidden;clip: rect(0 0 0 0);border: 0;opacity: 0;}
.kpo_ob_colors {display: flex;flex-wrap: wrap;align-items: center;gap: 8px;}
.kpo_ob_color_list {display: contents;}
.kpo_ob_color {display: inline-flex;align-items: center;gap: 8px;padding: 4px;border: 1px solid var(--kpo-field);border-radius: var(--kpo-r-sm);background: var(--kpo-soft);list-style: none;}
.kpo_ob_color_pick {width: 34px;height: 30px;padding: 0;border: 0;border-radius: 6px;background: none;cursor: pointer;}
.kpo_ob_color_pick::-webkit-color-swatch-wrapper {padding: 0;}
.kpo_ob_color_pick::-webkit-color-swatch {border: 1px solid rgba(255, 255, 255, .24);border-radius: 6px;}
.kpo_ob_color_pick::-moz-color-swatch {border: 1px solid rgba(255, 255, 255, .24);border-radius: 6px;}
.kpo .kpo_ob_color_hex {width: 92px;height: 30px;margin: 0;padding: 0 8px;border: 1px solid transparent;border-radius: 6px;background: transparent;color: var(--kpo-ink);font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;font-size: 13px;text-transform: uppercase;}
.kpo .kpo_ob_color_hex::placeholder {color: var(--kpo-muted);text-transform: none;opacity: .7;}
.kpo .kpo_ob_color_hex:hover {border-color: var(--kpo-field);}
.kpo .kpo_ob_color_hex:focus {border-color: var(--kpo-focus);outline: none;}
.kpo .kpo_ob_color_hex[aria-invalid] {border-color: var(--kpo-danger);}
.kpo .kpo_ob_color_remove {width: 28px;height: 28px;font-size: 18px;}
.kpo_ob_color_add {min-height: 40px;padding: 0 14px;border: 1.5px dashed rgba(255, 255, 255, .22);border-radius: var(--kpo-r-sm);background: var(--kpo-soft);color: var(--kpo-orange-text);font: inherit;font-size: 13.5px;font-weight: 600;cursor: pointer;}
.kpo_ob_color_add:hover {border-color: var(--kpo-orange);}
/* The foot of a step: how the saving goes, then the buttons */
.kpo .kpo_ob_status.is-error {color: var(--kpo-danger);font-weight: 500;}
/* "Opgeslagen" next to a question's label right after its save (portal.js, aria-hidden): fades in, stays a moment,
   fades out; only opacity moves, and it keeps its place meanwhile (no jump when it goes) */
.kpo_ob_saved {display: inline-flex;align-items: center;gap: 4px;margin-left: 8px;color: var(--kpo-ok);font-size: 12px;font-weight: 500;line-height: 1;white-space: nowrap;vertical-align: 1px;opacity: 0;pointer-events: none;user-select: none;transition: opacity var(--kpo-t-exit) var(--kpo-ease-out);}
.kpo_ob_saved.is-shown {opacity: 1;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_ob_saved .kpo_icon {width: 14px;height: 14px;}
.kpo_field--day .kpo_ob_saved_text {display: none;} /* a day of the opening hours: its column is narrow, the check says it */
/* "Hulp nodig?": a card that opens */
.kpo_ob_help {max-width: 1080px;overflow: hidden;}
.kpo_ob_help_summary {display: flex;align-items: center;gap: 12px;min-height: 56px;padding: 12px 18px;list-style: none;cursor: pointer;-webkit-tap-highlight-color: transparent;}
.kpo_ob_help_summary::-webkit-details-marker {display: none;}
.kpo_ob_help_summary::marker {content: '';}
.kpo_ob_help_summary::after {content: '';flex: none;width: 8px;height: 8px;margin: 0 4px 0 auto;border-right: 2px solid var(--kpo-muted);border-bottom: 2px solid var(--kpo-muted);transform: translateY(-2px) rotate(45deg);transition: transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo_ob_help[open] > .kpo_ob_help_summary::after {transform: translateY(2px) rotate(225deg);}
.kpo_ob_help_summary:focus-visible {outline-offset: -2px;}
.kpo_ob_help_icon {display: grid;place-items: center;flex: none;width: 32px;height: 32px;border-radius: var(--kpo-r-sm);background: var(--kpo-orange-soft);color: var(--kpo-orange-text);}
.kpo_ob_help_icon .kpo_icon {width: 18px;height: 18px;}
.kpo_ob_help_text {display: flex;flex-direction: column;line-height: 1.35;}
.kpo_ob_help_text strong {color: var(--kpo-ink);font-size: 14.5px;}
.kpo_ob_help_text > span {color: var(--kpo-muted);font-size: 13px;}
.kpo_ob_help_body {padding: 0 18px 16px;border-top: 1px solid var(--kpo-line);}
.kpo_ob_help_body > .kpo_notice {margin: 16px 0 0;}
.kpo_ob_help[open] > .kpo_ob_help_body {animation: kpo-sheet-in var(--kpo-t-enter) var(--kpo-ease-out);}
.kpo_ob_help_foot {margin-top: 14px;}
.kpo_ob_help .kpo_contact {margin-top: 14px;padding-top: 10px;border-top: 1px solid var(--kpo-line);}
/* A follow-up question, a new file or row: rises in; a question that goes fades out before it makes room */
.kpo_view .kpo_ob_q.is-entering, .kpo_view .kpo_ob_file.is-entering, .kpo_view .kpo_ob_row.is-entering {animation: kpo-enter var(--kpo-t-enter) var(--kpo-ease-out) both;}
.kpo_ob_q.is-leaving, .kpo_ob_file.is-leaving {animation: kpo-fade-out var(--kpo-t-exit) var(--kpo-ease-out) forwards;}

/* -----------------------------------------------------------------------------
   Documenten and Ontwerpen (portal.php): the lists of the overview, the badges, and a card per design with its
   version, the images, the actions and the history (both <details>, they work without JavaScript)
----------------------------------------------------------------------------- */
/* What waits for the client: the count beside the menu item in orange */
.kpo_nav_badge--alert {min-width: 22px;background: var(--kpo-orange-soft);color: var(--kpo-orange-text);}
.kpo_badge--new, .kpo_badge--waiting {background: var(--kpo-orange-soft);color: var(--kpo-orange-text);}
.kpo_badge--approved {background: var(--kpo-ok-soft);color: var(--kpo-ok);}
.kpo_badge--changes {background: rgba(245, 176, 66, .14);color: #F5C26B;}
.kpo .kpo_doc_link {min-width: 0;color: var(--kpo-ink);font-weight: 600;text-decoration: none;overflow-wrap: anywhere;}
.kpo .kpo_doc_link:hover {color: var(--kpo-ink);text-decoration: underline;}
.kpo_doc .kpo_item_title {flex-wrap: wrap;}
.kpo_doc.is-new .kpo_item_icon {background: var(--kpo-orange-soft);color: var(--kpo-orange-text);}
.kpo_doc_note {margin: 6px 0 0;color: var(--kpo-text-2);font-size: 13px;line-height: 1.5;}
.kpo_docs_card h2 .kpo_icon, .kpo_design_card h2 .kpo_icon {width: 18px;height: 18px;color: var(--kpo-orange-text);}
.kpo_view > .kpo_design_card {margin-bottom: 16px;}
.kpo_design_card_list {display: grid;gap: 4px;margin: 0 0 14px;padding: 0;list-style: none;font-size: 14px;}
.kpo_design_card_list strong {color: var(--kpo-ink);font-weight: 600;}
/* Offerte-akkoord (includes/quotes.php): the line of a quote in Documenten and the step documenten/<id>/akkoord */
.kpo_quote_line {display: flex;flex-wrap: wrap;align-items: center;gap: 8px 12px;margin: 10px 0 0;color: var(--kpo-text-2);font-size: 13px;line-height: 1.5;}
.kpo_quote_text {flex: 1 1 220px;min-width: 0;}
.kpo_quote_line .kpo_button {flex: none;}
.kpo_quote_note {margin: 0 0 14px;}
.kpo_quote_file {display: flex;flex-wrap: wrap;align-items: center;gap: 8px 14px;margin: 0;}
.kpo_quote_file_meta {color: var(--kpo-muted);font-size: 13px;}
/* After the download and the ticks (the wide layout sets the first block of a section flush: not these) */
.kpo_quote_confirm .kpo_section_fields > .kpo_ticks {margin-top: 18px;}
.kpo_quote_confirm .kpo_section_fields > .kpo_quote_fields {margin-top: 22px;padding-top: 0;}
/* A quote to approve or reject (includes/quote-link.php, 25-11-2026; new look 25-11): the quote itself large in a
   frame, at once in view. On a wide screen its title (and the note) over the pages on the left, until when and the PDF
   over the choice on the right (the choice stays in view while the pages scroll); on smaller screens the title, until
   when with the PDF and a jump to the choice, the pages, then the choice. The link has a page of its own (.kpo_qv):
   over the whole window a sea of seigaiha that rises from the bottom (faint at the top) with the warm glow of the sun
   from the lower corners; it stays put while the quote scrolls. The logged-in step (documenten/<id>/akkoord) uses the
   same parts in the portal's own page. */
body.kpo--quoteview {background: transparent;}
body.kpo--quoteview::before {content: '';position: fixed;z-index: -1;inset: 0;pointer-events: none;background: radial-gradient(55% 75% at 0 100%, rgba(202, 79, 0, .46), rgba(202, 79, 0, .15) 50%, rgba(202, 79, 0, 0)), radial-gradient(45% 60% at 100% 100%, rgba(202, 79, 0, .3), rgba(202, 79, 0, .1) 50%, rgba(202, 79, 0, 0)), radial-gradient(35% 40% at 100% 0, rgba(202, 79, 0, .12), rgba(202, 79, 0, 0)), url("portal-seigaiha-page-dark.svg") center bottom / 48px 24px repeat;-webkit-mask-image: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .32) 45%, #000);mask-image: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .32) 45%, #000);}
[data-theme="light"] body.kpo--quoteview::before {background: radial-gradient(55% 75% at 0 100%, rgba(202, 79, 0, .24), rgba(202, 79, 0, .08) 50%, rgba(202, 79, 0, 0)), radial-gradient(45% 60% at 100% 100%, rgba(202, 79, 0, .16), rgba(202, 79, 0, .05) 50%, rgba(202, 79, 0, 0)), radial-gradient(35% 40% at 100% 0, rgba(202, 79, 0, .07), rgba(202, 79, 0, 0)), url("portal-seigaiha-page-light.svg") center bottom / 48px 24px repeat;-webkit-mask-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .4) 45%, #000);mask-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .4) 45%, #000);}
.kpo_qv {max-width: 1240px;margin: 0 auto;padding: 0 var(--kpo-gutter) 64px;}
.kpo_qv_top {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 6px 24px;padding: 22px 0;}
.kpo_qv_top .kpo_logo {width: 128px;}
.kpo_qv_contact {margin: 0;color: var(--kpo-muted);font-size: 13px;}
.kpo_qv_main {display: grid;gap: 18px;padding-top: 8px;}
.kpo_qv_main:focus {outline: none;}
.kpo_qv_main--app {padding-top: 0;}
.kpo_qv_head {min-width: 0;}
.kpo_qv_head .kpo_kicker {margin-bottom: 6px;letter-spacing: .14em;}
.kpo_qv_head h1 {margin: 0;font-size: clamp(24px, 3vw, 34px);line-height: 1.15;letter-spacing: -.01em;}
.kpo_qv_note {max-width: 72ch;margin: 10px 0 0;color: var(--kpo-text-2);font-size: 15px;line-height: 1.55;}
.kpo_qv_head > .kpo_qv_note:first-child {margin-top: 0;}
.kpo_qv_meta {display: flex;flex-wrap: wrap;align-items: center;gap: 10px;min-width: 0;}
.kpo_qv_line {display: flex;flex: 1 0 100%;align-items: center;gap: 8px;margin: 0;color: var(--kpo-text-2);font-size: 14px;line-height: 1.4;}
.kpo_qv_line .kpo_icon {flex: none;width: 16px;height: 16px;color: var(--kpo-orange-text);}
/* The total (when the team gave one): large, as the first thing of the panel on the right, the days left beside
   "Totaal"; under it one quiet line with the other total and the VAT */
.kpo_qv_total {flex: 1 0 100%;margin: 0;}
.kpo_qv_total_head {display: flex;align-items: center;justify-content: space-between;gap: 8px;}
.kpo_qv_total_label {margin: 0;color: var(--kpo-muted);font-size: 12px;font-weight: 600;letter-spacing: .1em;text-transform: uppercase;}
.kpo_qv_total_main {display: flex;flex-wrap: wrap;align-items: baseline;gap: 2px 8px;margin: 4px 0 0;}
.kpo_qv_total_amount {color: var(--kpo-ink);font-family: var(--kpo-heading);font-size: 30px;font-weight: 700;line-height: 1.15;letter-spacing: -.01em;font-variant-numeric: tabular-nums;}
.kpo_qv_total_vat {color: var(--kpo-text-2);font-size: 14px;}
.kpo_qv_total_other {margin: 2px 0 0;color: var(--kpo-muted);font-size: 13px;font-variant-numeric: tabular-nums;}
/* How many days are left: a label of its own under until when; red in the last days */
.kpo_qv_days {display: inline-flex;align-items: center;gap: 6px;width: fit-content;margin: 0;padding: 3px 10px;border: 1px solid var(--kpo-card-line);border-radius: 999px;background: var(--kpo-orange-soft);color: var(--kpo-orange-text);font-size: 12.5px;font-weight: 600;line-height: 1.4;}
.kpo_qv_days .kpo_icon {flex: none;width: 14px;height: 14px;}
.kpo_qv_days.is-soon {border-color: var(--kpo-danger-line);background: var(--kpo-danger-soft);color: var(--kpo-danger);}
.kpo_qv_doc {min-width: 0;}
.kpo_qv_pages {display: grid;gap: 16px;}
.kpo_qv_page {position: relative;margin: 0;overflow: hidden;border: 1px solid var(--kpo-card-line);border-radius: 16px;background: #fff;box-shadow: var(--kpo-shadow-lg);}
.kpo_qv_empty {padding: 48px 20px;border: 1px solid var(--kpo-card-line);border-radius: 16px;background: rgba(21, 19, 17, .86);box-shadow: var(--kpo-shadow-lg);}
.kpo_qv_page img {position: relative;z-index: 1;display: block;width: 100%;height: auto;opacity: 0;transition: opacity 450ms var(--kpo-ease-out);animation: kpo-qv-shown 1ms 3s forwards;}
.kpo_qv_page.is-loaded img {opacity: 1;animation: none;}
.kpo_qv_page.is-loaded::before {content: none;}
@keyframes kpo-qv-shown {to {opacity: 1;}}
/* While a page loads: in the middle of the white page the sun with the Kami mark, waves turning around it
   (portal-loader-sun.svg, its own animation, still with reduced motion); the page itself fades in once it is all there
   (portal.js marks it loaded; without a script it shows after 3 seconds), not line by line */
.kpo_qv_page::before {content: '';position: absolute;top: 50%;left: 50%;width: 96px;height: 96px;margin: -48px 0 0 -48px;background: url("portal-loader-sun.svg") center / contain no-repeat;}
@media (prefers-reduced-motion: reduce) {
	.kpo_qv_page img {transition: none;}
}
.kpo_qv_doc > .kpo_small {margin: 12px 0 0;}
.kpo_qv_empty {display: grid;justify-items: center;gap: 12px;text-align: center;}
.kpo_qv_empty > .kpo_icon {width: 40px;height: 40px;color: var(--kpo-orange-text);}
[data-theme="light"] .kpo_qv_empty {background: rgba(255, 255, 255, .72);}
[data-theme="light"] .kpo_qv_page {box-shadow: 0 10px 30px rgba(15, 15, 15, .12);}
.kpo_qv_card {position: relative;isolation: isolate;padding: 22px 20px;border: 1px solid var(--kpo-card-line);border-radius: 16px;background: var(--kpo-surface);box-shadow: var(--kpo-shadow-lg);}
.kpo_qv_card::before {content: '';position: absolute;z-index: -1;right: 0;bottom: 0;width: 288px;max-width: 100%;height: 96px;border-radius: 0 0 15px 0;background: url("portal-corner-waves-dark-v2.svg") right bottom / 288px 96px no-repeat;pointer-events: none;}
[data-theme="light"] .kpo_qv_card::before {background-image: url("portal-corner-waves-light-v2.svg");}
.kpo_qv_card_top {display: none;}
/* Under the choice on the link page: who answers the questions, with Bellen and WhatsApp */
.kpo_qv_help {display: grid;grid-template-columns: auto minmax(0, 1fr);align-items: center;gap: 14px;margin-top: 16px;padding: 16px 18px;border: 1px solid var(--kpo-card-line);border-radius: 16px;background: rgba(21, 19, 17, .86);}
.kpo_qv_help_photo {display: block;width: 52px;height: 52px;border-radius: 50%;object-fit: cover;box-shadow: 0 0 0 2px var(--kpo-bg), 0 0 0 4px #C24900;}
.kpo_qv_help_title {margin: 0;color: var(--kpo-ink);font-size: 15px;font-weight: 700;line-height: 1.3;}
.kpo_qv_help_sub {margin: 2px 0 0;color: var(--kpo-text-2);font-size: 13px;}
.kpo_qv_help_reply {display: flex;align-items: center;gap: 7px;margin: 5px 0 0;color: var(--kpo-text-2);font-size: 12.5px;}
.kpo_qv_help_dot {flex: none;width: 8px;height: 8px;border-radius: 50%;background: var(--kpo-ok);box-shadow: 0 0 0 3px var(--kpo-ok-soft);}
.kpo_qv_help_buttons {display: grid;grid-column: 1 / -1;grid-template-columns: 1fr 1fr;gap: 8px;}
.kpo_qv_help_buttons .kpo_button {width: 100%;}
[data-theme="light"] .kpo_qv_help {background: rgba(255, 255, 255, .86);}
/* After an approval: what happens now, the first step done */
.kpo_qv_steps_title {margin: 18px 0 10px;font-size: 15px;}
.kpo_qv_steps {display: grid;gap: 10px;margin: 0;padding: 0;list-style: none;}
.kpo_qv_steps li {display: flex;align-items: center;gap: 10px;color: var(--kpo-text);font-size: 14px;line-height: 1.4;}
.kpo_qv_steps .kpo_icon {flex: none;box-sizing: content-box;width: 15px;height: 15px;padding: 6px;border: 1.5px solid var(--kpo-card-line);border-radius: 50%;color: var(--kpo-orange-text);}
.kpo_qv_steps li.is-done .kpo_icon {border-color: #C24900;background: #C24900;color: #fff;}
.kpo_qv_renew {margin-top: 14px;}
.kpo_qv_card h2 {margin: 0 0 14px;font-size: 18px;}
.kpo_qv_card > .kpo_notice {margin: 0 0 14px;}
.kpo_qv_card > .kpo_intro {margin: 0;}
.kpo_qv_radio {position: absolute;width: 1px;height: 1px;margin: 0;opacity: 0;pointer-events: none;}
/* The choice: Goedkeuren the main button; under it, quieter, Wijziging aanvragen (an outline) and Afkeuren (a link).
   The chosen one opens its fields under it (the radio buttons before them, no script) */
.kpo_qv_pick {display: flex;align-items: center;justify-content: center;gap: 8px;cursor: pointer;-webkit-tap-highlight-color: transparent;transition: background-color var(--kpo-t-fast) var(--kpo-ease-fast), border-color var(--kpo-t-fast) var(--kpo-ease-fast), color var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_qv_pick .kpo_icon {flex: none;width: 18px;height: 18px;}
.kpo_qv_pick--ok {min-height: 54px;padding: 0 18px;border: 1.5px solid #C24900;border-radius: 999px;background: #C24900;color: #fff;font-size: 16px;font-weight: 700;}
.kpo_qv_pick--ok .kpo_icon {width: 20px;height: 20px;stroke-width: 2.5;}
.kpo_qv_pick--ok:hover {border-color: var(--kpo-button-hover);background: var(--kpo-button-hover);}
#kpo-do-ok:checked ~ .kpo_qv_pick--ok {display: none;} /* chosen: its fields (with their own button) take its place */
.kpo_qv_more {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 8px 12px;margin-top: 12px;}
.kpo_qv_pick--change {min-height: 42px;padding: 0 16px;border: 1px solid var(--kpo-field);border-radius: 999px;color: var(--kpo-ink);font-size: 14px;font-weight: 600;}
.kpo_qv_pick--change .kpo_icon {color: var(--kpo-orange-text);}
.kpo_qv_pick--change:hover {border-color: var(--kpo-field-hover);}
#kpo-do-change:checked ~ .kpo_qv_more .kpo_qv_pick--change {border-color: #C24900;background: var(--kpo-orange-soft);}
.kpo_qv_pick--no {min-height: 42px;padding: 0 4px;color: var(--kpo-text-2);font-size: 14px;font-weight: 600;text-decoration: underline;text-decoration-color: var(--kpo-field-hover);text-underline-offset: 3px;}
.kpo_qv_pick--no:hover, #kpo-do-no:checked ~ .kpo_qv_more .kpo_qv_pick--no {color: var(--kpo-danger);text-decoration-color: currentColor;}
#kpo-do-ok:focus-visible ~ .kpo_qv_pick--ok, #kpo-do-change:focus-visible ~ .kpo_qv_more .kpo_qv_pick--change, #kpo-do-no:focus-visible ~ .kpo_qv_more .kpo_qv_pick--no {outline: 2px solid var(--kpo-focus);outline-offset: 2px;}
[data-theme="light"] #kpo-do-change:checked ~ .kpo_qv_more .kpo_qv_pick--change {background: #FBEFE6;}
.kpo_qv_panel {display: none;}
#kpo-do-ok:checked ~ .kpo_qv_panel--ok, #kpo-do-change:checked ~ .kpo_qv_panel--change, #kpo-do-no:checked ~ .kpo_qv_panel--no {display: block;}
.kpo_qv_panel--ok {margin-top: 0;}
.kpo_qv_panel--change, .kpo_qv_panel--no {margin-top: 12px;padding-top: 16px;border-top: 1px solid var(--kpo-line);}
.kpo_qv_tick {margin: 10px 0 0;}
.kpo_qv_tick .kpo_check {display: flex;align-items: flex-start;min-height: 40px;padding: 8px 0;font-weight: 600;line-height: 1.45;}
.kpo_qv_tick .kpo_check input {margin-top: 1px;}
.kpo_qv_tick + .kpo_field_error {margin-top: 0;}
.kpo_qv_panel > .kpo_button--block {margin-top: 14px;}
.kpo_qv_panel > .kpo_small {margin: 10px 0 0;}
.kpo_qv_panel .kpo_textarea {width: 100%;min-height: 110px;}
/* Afkeuren: why (one of a few), then a remark if the client likes */
.kpo_qv_reasons {margin: 0 0 14px;padding: 0;border: 0;}
.kpo_qv_reasons legend {margin: 0 0 8px;padding: 0;color: var(--kpo-ink);font-size: 14px;font-weight: 600;}
.kpo_qv_reason {display: flex;align-items: center;gap: 10px;min-height: 42px;padding: 0 12px;border: 1px solid var(--kpo-field);border-radius: 12px;color: var(--kpo-text);font-size: 14px;cursor: pointer;}
.kpo_qv_reason + .kpo_qv_reason {margin-top: 6px;}
.kpo_qv_reason input {flex: none;width: 16px;height: 16px;margin: 0;accent-color: #C24900;}
.kpo_qv_reason:hover {border-color: var(--kpo-field-hover);}
.kpo_qv_reason:has(input:checked) {border-color: #C24900;background: var(--kpo-orange-soft);color: var(--kpo-ink);}
.kpo_qv_reasons .kpo_field_error {margin: 8px 0 0;}
.kpo_qv_signed {margin-top: 14px;}
.kpo_qv_card_foot {display: none;margin: 0;text-align: center;}
.kpo .kpo_qv_pdf_link {display: inline-flex;align-items: center;gap: 6px;min-height: 40px;color: var(--kpo-text-2);font-size: 13.5px;font-weight: 600;text-decoration: none;}
.kpo .kpo_qv_pdf_link:hover {color: var(--kpo-ink);text-decoration: underline;}
.kpo_qv_pdf_link .kpo_icon {width: 16px;height: 16px;color: var(--kpo-orange-text);}
@media (forced-colors: active) {
	#kpo-do-ok:checked ~ .kpo_qv_pick--ok, #kpo-do-change:checked ~ .kpo_qv_more .kpo_qv_pick--change, #kpo-do-no:checked ~ .kpo_qv_more .kpo_qv_pick--no {outline: 3px solid Highlight;}
}
/* On a phone (the link page): the total and Goedkeuren in a bar at the bottom, away while the choice is in view
   (portal.js); the bar takes the place of the jump to the choice */
.kpo_qv_bar {position: fixed;z-index: 40;right: 0;bottom: 0;left: 0;display: flex;align-items: center;justify-content: space-between;gap: 12px;padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));border-top: 1px solid var(--kpo-card-line);background: rgba(21, 19, 17, .96);box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);transition: transform var(--kpo-t) var(--kpo-ease-out);}
.kpo_qv_bar.is-away {transform: translateY(110%);}
.kpo_qv_bar_what {display: flex;flex-wrap: wrap;align-items: baseline;gap: 0 6px;min-width: 0;margin: 0;color: var(--kpo-text-2);font-size: 13px;line-height: 1.3;}
.kpo_qv_bar_label {flex: 1 0 100%;color: var(--kpo-muted);font-size: 11px;font-weight: 600;letter-spacing: .08em;text-transform: uppercase;}
.kpo_qv_bar_what strong {min-width: 0;max-width: 100%;overflow: hidden;color: var(--kpo-ink);font-size: 18px;text-overflow: ellipsis;white-space: nowrap;font-variant-numeric: tabular-nums;}
.kpo_qv_bar_ok {flex: none;}
.kpo_qv:has(> .kpo_qv_bar) {padding-bottom: 120px;}
.kpo_qv .kpo_qv_jump {display: none;}
[data-theme="light"] .kpo_qv_bar {background: rgba(255, 255, 255, .96);box-shadow: 0 -10px 30px rgba(15, 15, 15, .1);}
@media (prefers-reduced-motion: reduce) {
	.kpo_qv_bar {transition: none;}
}
@media (min-width: 1024px) {
	.kpo_qv_bar {display: none;}
	.kpo_qv:has(> .kpo_qv_bar) {padding-bottom: 64px;}
}
.kpo_optional {color: var(--kpo-muted);font-weight: 400;}
/* Motion of a quote (25-11-2026), only for those who do not ask for less motion: the link page comes in (the title,
   the pages, the panel one after the other, the bar from below), Goedkeuren glows twice to draw the eye, a button
   gives way under a click and the chosen one springs back with a ring, the fields of a choice unfold, the steps after an approval come in one by one (the first with a pop), the dot of the reply time
   pulses and the glow of the background slowly breathes. Only opacity, transform and box-shadow: nothing shifts. */
@keyframes kpo-qv-rise {from {opacity: 0;transform: translateY(16px);}}
@keyframes kpo-qv-open {from {opacity: 0;transform: translateY(-6px);}}
@keyframes kpo-qv-glow {0%, 100% {box-shadow: 0 0 0 0 rgba(194, 73, 0, 0);} 45% {box-shadow: 0 0 0 9px rgba(194, 73, 0, .25);}}
@keyframes kpo-qv-pop {0% {transform: scale(.4);} 60% {transform: scale(1.15);} 100% {transform: scale(1);}}
@keyframes kpo-qv-ping {0% {box-shadow: 0 0 0 0 rgba(92, 201, 138, .55);} 70%, 100% {box-shadow: 0 0 0 7px rgba(92, 201, 138, 0);}}
@keyframes kpo-qv-breathe {from {opacity: .78;} to {opacity: 1;}}
@keyframes kpo-qv-up {from {transform: translateY(110%);}}
@keyframes kpo-qv-press {0% {transform: scale(.94);box-shadow: 0 0 0 0 var(--kpo-qv-ring);} 55% {transform: scale(1.03);} 100% {transform: scale(1);box-shadow: 0 0 0 12px transparent;}}
@keyframes kpo-qv-tap {0% {transform: scale(.97);} 60% {transform: scale(1.01);} 100% {transform: scale(1);}}
@media (prefers-reduced-motion: no-preference) {
	body.kpo--quoteview::before {animation: kpo-qv-breathe 7s ease-in-out infinite alternate;}
	.kpo_qv .kpo_qv_top, .kpo_qv .kpo_qv_head, .kpo_qv .kpo_qv_meta, .kpo_qv .kpo_qv_doc, .kpo_qv .kpo_qv_side {animation: kpo-qv-rise 640ms var(--kpo-ease-out) backwards;}
	.kpo_qv .kpo_qv_head {animation-delay: 60ms;}
	.kpo_qv .kpo_qv_meta {animation-delay: 110ms;}
	.kpo_qv .kpo_qv_doc {animation-delay: 160ms;}
	.kpo_qv .kpo_qv_side {animation-delay: 240ms;}
	.kpo_qv_bar {animation: kpo-qv-up 520ms var(--kpo-ease-out) 500ms backwards;}
	.kpo_qv_pick--ok {animation: kpo-qv-glow 1700ms ease-in-out 1100ms 2;}
	/* A click: the button gives way while pressed; the choice that is then chosen springs back with a ring */
	.kpo_qv_pick, .kpo_qv_reason, .kpo_qv .kpo_button, .kpo_qv_main--app .kpo_button {transition: background-color var(--kpo-t-fast) var(--kpo-ease-fast), border-color var(--kpo-t-fast) var(--kpo-ease-fast), color var(--kpo-t-fast) var(--kpo-ease-fast), transform 90ms var(--kpo-ease-fast);}
	.kpo_qv_pick:active, .kpo_qv_reason:active, .kpo_qv .kpo_button:active, .kpo_qv_main--app .kpo_button:active {transform: scale(.95);}
	.kpo_qv_pick--ok, .kpo_qv_pick--change {--kpo-qv-ring: rgba(194, 73, 0, .45);}
	.kpo_qv_pick--no {--kpo-qv-ring: transparent;}
	#kpo-do-change:checked ~ .kpo_qv_more .kpo_qv_pick--change {animation: kpo-qv-press 520ms var(--kpo-ease-out);}
	#kpo-do-no:checked ~ .kpo_qv_more .kpo_qv_pick--no, .kpo_qv_reason:has(input:checked) {animation: kpo-qv-tap 360ms var(--kpo-ease-out);}
	.kpo_qv_tick input:checked {animation: kpo-qv-pop 320ms var(--kpo-ease-out);}
	.kpo_qv_panel {animation: kpo-qv-open 280ms var(--kpo-ease-out);}
	.kpo_qv_card > .kpo_notice, .kpo_qv_signed {animation: kpo-qv-rise 520ms var(--kpo-ease-out) backwards;}
	.kpo_qv_signed {animation-delay: 120ms;}
	.kpo_qv_steps li {animation: kpo-qv-rise 520ms var(--kpo-ease-out) backwards;}
	.kpo_qv_steps li:nth-child(1) {animation-delay: 200ms;}
	.kpo_qv_steps li:nth-child(2) {animation-delay: 380ms;}
	.kpo_qv_steps li:nth-child(3) {animation-delay: 560ms;}
	.kpo_qv_steps li.is-done .kpo_icon {animation: kpo-qv-pop 520ms var(--kpo-ease-out) 420ms backwards;}
	.kpo_qv_help_dot {animation: kpo-qv-ping 2.2s ease-out infinite;}
	.kpo_qv_days.is-soon .kpo_icon {animation: kpo-qv-pop 900ms var(--kpo-ease-out) 900ms 2;}
}
/* Wide: the title over the pages on the left; on the right one panel: the total and until when, the choice, the PDF */
@media (min-width: 1024px) {
	.kpo_qv_main:not(.kpo_qv_main--app) {grid-template-columns: minmax(0, 1fr) 360px;grid-template-areas: "head ." "doc side";align-items: start;gap: 24px 36px;}
	/* The link page: until when and the PDF in the top of the choice (one panel on the right, level with the pages) */
	.kpo_qv_main:not(.kpo_qv_main--app) .kpo_qv_meta {display: none;}
	.kpo_qv_main:not(.kpo_qv_main--app) .kpo_qv_card_top {display: grid;gap: 10px;margin: -2px 0 18px;padding-bottom: 18px;border-bottom: 1px solid var(--kpo-line);}
	.kpo_qv_main:not(.kpo_qv_main--app) .kpo_qv_card_foot {display: block;margin-top: 10px;}
	.kpo_qv_main--app {grid-template-areas: "head" "meta" "doc" "side";}
}
@media (min-width: 1280px) {
	.kpo_qv_main--app {grid-template-columns: minmax(0, 1fr) 340px;grid-template-areas: "head meta" "doc side";align-items: start;gap: 20px 32px;}
}
@media (min-width: 1024px) {
	.kpo_qv_main .kpo_qv_head {grid-area: head;align-self: end;}
	.kpo_qv_main .kpo_qv_meta {grid-area: meta;align-self: end;}
	.kpo_qv_main .kpo_qv_doc {grid-area: doc;}
	.kpo_qv_main .kpo_qv_side {grid-area: side;}
	.kpo_qv_main:not(.kpo_qv_main--app) .kpo_qv_side {position: sticky;top: 24px;}
	.kpo_qv_main:not(.kpo_qv_main--app) .kpo_qv_jump {display: none;}
}
@media (min-width: 1280px) {
	.kpo_qv_main--app .kpo_qv_side {position: sticky;top: 24px;}
	.kpo_qv_main--app .kpo_qv_pdf {flex: 1 0 100%;min-height: 48px;font-size: 14px;}
	.kpo_qv_main--app .kpo_qv_jump {display: none;}
}

.kpo_designs {display: grid;gap: 16px;}
.kpo_design {min-width: 0;padding: 18px 20px;}
.kpo_design_head {display: flex;flex-wrap: wrap;align-items: flex-start;justify-content: space-between;gap: 8px 16px;}
.kpo_design_heading {min-width: 0;}
.kpo_design h2 {margin: 0;font-size: 17px;overflow-wrap: anywhere;}
.kpo_design_meta {margin: 2px 0 0;color: var(--kpo-muted);font-size: 13px;}
.kpo_design_desc {max-width: 62em;margin: 12px 0 0;color: var(--kpo-text-2);font-size: 14px;}
.kpo_design_note {max-width: 62em;margin: 12px 0 0;padding: 10px 14px;border-left: 3px solid var(--kpo-orange);border-radius: 0 var(--kpo-r-sm) var(--kpo-r-sm) 0;background: var(--kpo-soft);font-size: 14px;}
.kpo_design_note p {margin: 0;}
.kpo .kpo_design_note_title {margin-bottom: 2px;color: var(--kpo-ink);font-weight: 600;}
.kpo_design_preview {display: grid;gap: 12px;margin-top: 16px;}
.kpo_design_images {display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));gap: 10px;margin: 0;padding: 0;list-style: none;}
.kpo_design_image {position: relative;display: block;overflow: hidden;aspect-ratio: 4 / 3;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r);background: var(--kpo-black);}
.kpo_design_image img {display: block;width: 100%;height: 100%;object-fit: cover;object-position: top center;transition: transform var(--kpo-t) var(--kpo-ease-out);}
.kpo_design_image:hover img {transform: scale(1.02);}
.kpo_design_files {display: grid;gap: 6px;margin: 0;padding: 0;list-style: none;}
.kpo .kpo_design_file {display: flex;align-items: center;gap: 10px;min-height: 40px;padding: 6px 12px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r-sm);background: var(--kpo-soft);color: var(--kpo-ink);font-size: 14px;text-decoration: none;}
.kpo .kpo_design_file:hover {border-color: var(--kpo-field);color: var(--kpo-ink);}
.kpo_design_file .kpo_icon {width: 16px;height: 16px;color: var(--kpo-orange-text);}
.kpo_design_file_name {min-width: 0;overflow-wrap: anywhere;}
.kpo_design_file_size {flex: none;margin-left: auto;color: var(--kpo-muted);font-size: 12.5px;font-variant-numeric: tabular-nums;}
.kpo_design_link {display: flex;flex-wrap: wrap;align-items: center;gap: 6px 12px;margin: 0;}
.kpo_design_host {min-width: 0;color: var(--kpo-muted);font-size: 13px;overflow-wrap: anywhere;}
.kpo_design_actions {display: flex;flex-wrap: wrap;align-items: flex-start;gap: 10px;margin-top: 18px;padding-top: 16px;border-top: 1px solid var(--kpo-line);}
.kpo_design_changes {min-width: 0;}
.kpo_design_changes[open] {flex: 1 1 100%;}
.kpo_design_changes > summary {list-style: none;-webkit-tap-highlight-color: transparent;}
.kpo_design_changes > summary::-webkit-details-marker {display: none;}
.kpo_design_changes > summary::marker {content: '';}
.kpo_design_changes[open] > summary {border-color: var(--kpo-field-hover);}
.kpo_design_changes_form {max-width: 640px;margin-top: 4px;}
.kpo_design_changes_form > .kpo_notice {margin: 12px 0 0;}
.kpo_design_changes[open] > .kpo_design_changes_form {animation: kpo-sheet-in var(--kpo-t-enter) var(--kpo-ease-out);}
.kpo_design_changes_foot {margin-top: 12px;}
.kpo_design_state {display: flex;align-items: flex-start;gap: 8px;margin: 18px 0 0;padding-top: 14px;border-top: 1px solid var(--kpo-line);color: var(--kpo-text-2);font-size: 14px;}
.kpo_design_state .kpo_icon {width: 18px;height: 18px;margin-top: 1px;color: var(--kpo-muted);}
.kpo_design--approved .kpo_design_state .kpo_icon {color: var(--kpo-ok);}
.kpo_design_history {margin-top: 14px;font-size: 13.5px;}
.kpo_design_history > summary {display: inline-flex;align-items: center;gap: 8px;min-height: 32px;color: var(--kpo-text-2);font-weight: 600;list-style: none;cursor: pointer;-webkit-tap-highlight-color: transparent;}
.kpo_design_history > summary::-webkit-details-marker {display: none;}
.kpo_design_history > summary::marker {content: '';}
.kpo_design_history > summary::after {content: '';width: 7px;height: 7px;margin-left: 2px;border-right: 2px solid var(--kpo-muted);border-bottom: 2px solid var(--kpo-muted);transform: translateY(-2px) rotate(45deg);transition: transform var(--kpo-t) var(--kpo-ease-fast);}
.kpo_design_history[open] > summary::after {transform: translateY(1px) rotate(225deg);}
.kpo_design_history > summary:hover {color: var(--kpo-ink);}
.kpo_design_events {display: grid;gap: 10px;margin: 8px 0 0;padding: 0 0 0 14px;border-left: 1px solid var(--kpo-line);list-style: none;}
.kpo_design_history[open] > .kpo_design_events {animation: kpo-sheet-in var(--kpo-t-enter) var(--kpo-ease-out);}
.kpo_design_events time {display: block;color: var(--kpo-muted);font-size: 12.5px;font-variant-numeric: tabular-nums;}
.kpo_design_events span {color: var(--kpo-text);}
.kpo_design_comment {max-width: 62em;margin: 4px 0 0;padding: 8px 12px;border-radius: var(--kpo-r-sm);background: var(--kpo-soft);color: var(--kpo-text-2);}
.kpo_design_confirm .kpo_design_preview {margin: 0 0 4px;}
.kpo_design_confirm .kpo_design_images {grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));}

/* -----------------------------------------------------------------------------
   Verzoeken (includes/requests.php): the lists (as the documents, the status a badge), the form of a new request and
   the reply (settings sections), and the thread of a request: a card per message, the team's with an orange edge.
   Tokens only, so the light scheme follows; paper leaves out the forms, forced colours keep the edge.
----------------------------------------------------------------------------- */
.kpo_req_empty .kpo_button {margin-top: 16px;}
.kpo_reqs + .kpo_reqs {margin-top: 16px;}
.kpo .kpo_req_link {min-width: 0;color: var(--kpo-ink);font-weight: 600;text-decoration: none;overflow-wrap: anywhere;}
.kpo .kpo_req_link:hover {color: var(--kpo-ink);text-decoration: underline;}
.kpo_req_item .kpo_item_title {flex-wrap: wrap;}
.kpo_req_item.is-yours .kpo_item_icon {background: var(--kpo-orange-soft);}
.kpo_head .kpo_req_meta {display: flex;flex-wrap: wrap;grid-column: 1 / -1;align-items: center;gap: 6px 10px;margin: 10px 0 0;color: var(--kpo-muted);font-size: 13px;}
/* A small page: the button of the head (Nieuw verzoek, Alle verzoeken) under the lead, not beside a long subject */
@container (max-width: 479px) {
	.kpo_head_actions:has(> .kpo_req_headbtn) {grid-column: 1 / -1;grid-row: auto;margin-top: 12px;}
}
.kpo_req_card h2 .kpo_icon {width: 18px;height: 18px;color: var(--kpo-orange-text);}
.kpo_req_card_list {display: grid;gap: 8px;margin: 0;padding: 0;list-style: none;font-size: 14px;}
.kpo_req_card_list li {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 4px 10px;min-width: 0;}
.kpo_req_page {display: flex;flex-wrap: wrap;align-items: baseline;gap: 2px 8px;margin: 0 0 12px;color: var(--kpo-muted);font-size: 13.5px;}
.kpo_req_page a {min-width: 0;overflow-wrap: anywhere;}
.kpo_req_msgs {display: grid;gap: 10px;margin: 0;padding: 0;list-style: none;}
.kpo_req_msg {min-width: 0;padding: 12px 14px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r);background: var(--kpo-soft);}
.kpo_req_msg--team {border-left: 3px solid var(--kpo-orange);}
.kpo_req_msg--event {padding-block: 8px;background: transparent;}
.kpo_req_msg_head {display: flex;flex-wrap: wrap;align-items: center;gap: 4px 10px;margin: 0;}
.kpo_req_msg_head .kpo_avatar {width: 28px;height: 28px;font-size: 11px;}
.kpo_req_msg--team .kpo_avatar, [data-theme="light"] .kpo_req_msg--team .kpo_avatar {background: var(--kpo-orange-soft);color: var(--kpo-orange-text);}
.kpo_req_msg_who {color: var(--kpo-ink);font-size: 14px;font-weight: 600;}
.kpo_req_msg_head time {color: var(--kpo-muted);font-size: 12.5px;font-variant-numeric: tabular-nums;}
.kpo_req_msg_text {max-width: 62em;margin: 8px 0 0;color: var(--kpo-text);font-size: 14px;line-height: 1.55;overflow-wrap: anywhere;}
.kpo_req_msg_status {display: flex;flex-wrap: wrap;align-items: center;gap: 6px 8px;margin: 8px 0 0;color: var(--kpo-text-2);font-size: 13px;}
.kpo_req_files {margin-top: 10px;}
.kpo_req_form, .kpo_req_reopen {margin-top: 16px;}
.kpo_req_reopen > .kpo_req_form {margin-top: 12px;}
/* .kpo_req_form in front: ".kpo_field label" (a block, bold, small) must not win over the check box */
.kpo_req_form .kpo_field .kpo_check {display: inline-flex;margin: 0;font-size: 13.5px;font-weight: 400;}
.kpo_req_file_input {display: block;width: 100%;max-width: 520px;color: var(--kpo-text);font: inherit;font-size: 13.5px;}
.kpo_req_file_input::file-selector-button {margin: 0 12px 0 0;padding: 8px 16px;border: 1px solid var(--kpo-field);border-radius: 999px;background: transparent;color: var(--kpo-ink);font: inherit;font-size: 13px;font-weight: 600;cursor: pointer;}
.kpo_req_file_input:hover::file-selector-button {border-color: var(--kpo-field-hover);}
.kpo_req_file_input[aria-invalid=true]::file-selector-button {border-color: var(--kpo-danger);}
.kpo_req_reopen > summary {list-style: none;-webkit-tap-highlight-color: transparent;}
.kpo_req_reopen > summary::-webkit-details-marker {display: none;}
.kpo_req_reopen > summary::marker {content: '';}
.kpo_req_reopen[open] > summary {border-color: var(--kpo-field-hover);}
.kpo_req_reopen[open] > .kpo_req_form {animation: kpo-sheet-in var(--kpo-t-enter) var(--kpo-ease-out);}
@media print {
	.kpo_req_form, .kpo_req_reopen, .kpo_req_new {display: none !important;}
	.kpo_req_msg {break-inside: avoid;}
}
@media (forced-colors: active) {
	.kpo_req_msg--team {border-left-color: Highlight;}
}

/* -----------------------------------------------------------------------------
   Container queries: the page by its own width (with or without the sidebar)
----------------------------------------------------------------------------- */
@container (min-width: 420px) {
	.kpo_kpi {padding: 30px 14px 12px;}
	.kpo_kpi dt {gap: 8px;}
	.kpo_item_icon {display: grid;place-items: center;flex: none;width: 36px;height: 36px;border: 1.5px solid rgba(202, 79, 0, .6);border-radius: 50%;background: var(--kpo-medal);color: var(--kpo-orange-text);}
	.kpo_item_icon .kpo_icon {width: 16px;height: 16px;}
	.kpo_item--overdue .kpo_item_icon {border-color: var(--kpo-danger-line);color: var(--kpo-danger);}
	.kpo_item--paid .kpo_item_icon {border-color: var(--kpo-ok-line);color: var(--kpo-ok);}
}

/* An overview item with room for its description next to the number (kpo-item: the middle of the item) */
@container kpo-item (min-width: 340px) {
	.kpo_item_title {flex-wrap: nowrap;}
	.kpo_item_desc {flex: 0 1 auto;flex-wrap: nowrap;}
	.kpo_item_desc .kpo_desc_text {display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;-webkit-line-clamp: none;line-clamp: none;}
}

@container (min-width: 480px) {
	.kpo_head {display: flex;flex-wrap: wrap;align-items: flex-end;justify-content: space-between;gap: 12px 24px;}
	.kpo_head_text {display: block;flex: 1 1 280px;min-width: 0;}
	.kpo_head_actions {align-self: auto;}
	.kpo .kpo_head .kpo_refresh {width: auto;padding: 0 18px;}
	.kpo_head .kpo_refresh > span {position: static;width: auto;height: auto;margin: 0;overflow: visible;clip: auto;}
	.kpo_fields {grid-template-columns: repeat(2, minmax(0, 1fr));}
	.kpo_fields > .kpo_field {grid-column: 1 / -1;}
	.kpo_fields > .kpo_field--half {grid-column: auto;}
	.kpo_seg {width: auto;}
	.kpo_seg ul {display: inline-flex;width: auto;min-width: 0;}
	.kpo .kpo_seg a {padding: 0 12px;gap: 8px;}
}

/* Invoice cards in two columns until the table fits (its narrowest is about 945-975px, see below) */
@container (min-width: 560px) and (max-width: 999px) {
	.kpo_invoices tbody {grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@container (min-width: 640px) {
	.kpo_box {padding: 18px 20px;}
	.kpo_items {margin: 0 -20px;}
	.kpo_item {padding: 12px 20px;}
	.kpo_dash--even {grid-template-columns: repeat(2, minmax(0, 1fr));align-items: start;}
	.kpo_dash_side {grid-template-columns: repeat(2, minmax(0, 1fr));align-items: start;}
}

@container (min-width: 760px) {
	.kpo_kpis {grid-template-columns: repeat(4, minmax(0, 1fr));gap: 30px 16px;margin-bottom: 20px;}
	.kpo_kpi {padding: 30px 18px 16px;}
}

@container (min-width: 820px) {
	.kpo_section {padding: 24px 28px;}
	.kpo_ob_stepdesc {padding: 24px 28px 0;}
	.kpo_section_title, .kpo_section_desc {width: 240px;margin-right: 40px;}
	.kpo_section_fields {clear: none;max-width: 560px;}
	.kpo_section_fields > div:first-of-type, .kpo_section_fields > .kpo_fields, .kpo_section_fields > .kpo_ticks {margin-top: 0;padding-top: 0;}
	.kpo_section_foot {padding: 12px 28px;}
}

/* The columns of a list side by side, with their headings (the onboarding: the questions' own container) */
@container (min-width: 480px) {
	.kpo_ob_rows--2 .kpo_ob_rowhead {display: grid;grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;gap: 8px;color: var(--kpo-muted);font-size: 12px;font-weight: 600;}
	.kpo_ob_rows--2 .kpo_ob_row {grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;padding-bottom: 0;border-bottom: 0;}
	.kpo_ob_rows--2 .kpo_ob_row > input {grid-column: auto;}
	.kpo_ob_rows--2 .kpo_ob_row > button {grid-column: 3;}
}

/* A step on a wide page: the tabs share the row (the current one keeps its whole title) before it scrolls */
@container (min-width: 720px) {
	.kpo_ob_tablist li {flex: 0 1 auto;}
	.kpo_ob_tablist li:has([aria-current=page]) {flex-shrink: 0;}
}

@container (min-width: 860px) {
	.kpo_dash {grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);align-items: start;}
	.kpo_dash--even {grid-template-columns: repeat(2, minmax(0, 1fr));}
	.kpo_dash_side {grid-template-columns: minmax(0, 1fr);}
	.kpo_view[data-kpo-view="overzicht"] .kpo_dash_side {display: flex;flex-direction: column;align-self: stretch;align-items: stretch;}
	.kpo_view[data-kpo-view="overzicht"] .kpo_dash_side::after {flex: 1 0 auto;height: auto;min-height: 300px;margin-left: 0;background-size: auto min(100%, 520px);}
}

/* A real table again, once it fits: seven columns with dates such as "23 september 2026" need about 945-975px. Should
   a long amount or invoice number make it wider still, the card scrolls sideways instead of cutting off a column. */
@container (min-width: 1000px) {
	.kpo_tablecard {position: relative;isolation: isolate;overflow-x: auto;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r-lg);background: var(--kpo-surface);box-shadow: var(--kpo-shadow-sm);}
	.kpo_tablecard::before {content: '';position: absolute;z-index: -1;right: 0;bottom: 0;width: 288px;max-width: 100%;height: 96px;border-radius: 0 0 calc(var(--kpo-r-lg) - 1px) 0;background: url("portal-corner-waves-dark-v2.svg") right bottom / 288px 96px no-repeat;pointer-events: none;}
	.kpo_invoices {display: table;}
	.kpo_invoices thead {position: static;display: table-header-group;width: auto;height: auto;margin: 0;overflow: visible;clip: auto;white-space: normal;}
	.kpo_invoices tbody {display: table-row-group;}
	.kpo_invoices tr, .kpo_invoices tr.kpo_inv--overdue {display: table-row;padding: 0;border: 0;border-radius: 0;background: none;box-shadow: none;}
	.kpo_invoices th, .kpo_invoices td, .kpo_invoices td.is-empty.kpo_c_desc, .kpo_invoices td.is-empty.kpo_c_pdf {display: table-cell;padding: 12px 14px;border-top: 1px solid var(--kpo-line);text-align: left;vertical-align: middle;}
	/* .kpo before it: the column classes of the cells (.kpo_c_number, .kpo_c_desc) are on the headers too */
	.kpo .kpo_invoices th {border-top: 0;border-bottom: 1px solid var(--kpo-line);background: var(--kpo-soft);color: var(--kpo-muted);font-size: 11.5px;font-weight: 600;letter-spacing: .05em;text-transform: uppercase;white-space: nowrap;}
	.kpo_invoices tbody tr:first-child td, .kpo_invoices tbody tr:first-child td.is-empty {border-top: 0;} /* an empty cell too: no double line under its header */
	.kpo_invoices tbody tr:hover td {background: var(--kpo-soft);}
	.kpo_invoices tr.kpo_inv--overdue td {background: rgba(240, 68, 56, .05);}
	.kpo_invoices tr.kpo_inv--overdue td:first-child {box-shadow: inset 3px 0 0 var(--kpo-danger);}
	.kpo_invoices th:first-child, .kpo_invoices td:first-child {padding-left: 20px;}
	.kpo_invoices th:last-child, .kpo_invoices td:last-child {padding-right: 20px;}
	.kpo_invoices .kpo_c_number {font-size: 14px;white-space: nowrap;}
	.kpo_invoices .kpo_c_desc {min-width: 180px;color: var(--kpo-text-2);font-size: 14px;}
	.kpo_invoices .kpo_c_status {text-align: left;}
	.kpo_invoices .kpo_c_amount {text-align: right;}
	.kpo_invoices .kpo_c_pdf {width: 1%;text-align: right;}
	.kpo_cell_label {display: none;}
}

/* -----------------------------------------------------------------------------
   Wider screens: the shell
----------------------------------------------------------------------------- */
@media (min-width: 640px) {
	.kpo_input {font-size: 14.5px;}
	.kpo_main {padding-top: 24px;}
	.kpo_gate_inner {padding: 32px;}
}

@media (min-width: 1024px) {
	:root {--kpo-main-end: 56px;}
	.kpo--viewing {--kpo-top: 48px;}
	.kpo_adminview {position: sticky;top: 0;flex-wrap: nowrap;height: 48px;padding-top: 0;padding-bottom: 0;}
	.kpo_adminview p {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
	.kpo_shell {display: grid;grid-template-columns: var(--kpo-side) minmax(0, 1fr);min-height: calc(100vh - var(--kpo-top));}
	.kpo_mbar {display: none;}
	.kpo_side {position: sticky;top: var(--kpo-top);display: flex;flex-direction: column;height: calc(100vh - var(--kpo-top));height: calc(100dvh - var(--kpo-top));overflow-y: auto;padding: 18px 14px 14px;border-right: 1px solid var(--kpo-line);background: linear-gradient(rgba(21, 19, 17, .6), rgba(21, 19, 17, .15)), url("portal-seigaiha-dark.svg") left top / 36px 18px repeat, var(--kpo-chrome);}
	/* The logo with "Klantportaal" under it, as an eyebrow */
	.kpo_side > .kpo_brandmark {flex-direction: column;align-items: flex-start;gap: 8px;margin: 2px 6px 18px;}
	.kpo_side .kpo_logo {width: 148px;}
	.kpo_side .kpo_brandmark_sub {padding-left: 0;border-left: 0;color: var(--kpo-muted);font-size: 11px;font-weight: 600;letter-spacing: .08em;line-height: 1.2;text-transform: uppercase;}
	/* Mount Fuji with the sun and the logo right above the foot, in the room the menu leaves (the whole width; with
	   less room only its lower part rises above the foot); the foot is a solid band the mountain stands on */
	.kpo_side::after {content: '';order: 1;flex: 1 1 0;min-height: 0;max-height: 260px;margin: auto -14px 0;background: url("portal-side-fuji-dark.svg") center bottom / 100% auto no-repeat;pointer-events: none;}
	.kpo_side .kpo_menu_foot {order: 2;margin: 0 -14px -14px;padding: 14px;border-top: 1px solid var(--kpo-card-line);background: var(--kpo-chrome);}
	.kpo_main {padding-top: 28px;}

	/* Without login: the brand panel on the left, full height */
	.kpo_split {display: grid;grid-template-columns: minmax(380px, 42%) minmax(0, 1fr);}
	/* The brand panel: seigaiha over all of it, Mount Fuji with the sun and the logo at the bottom right */
	.kpo_brandpanel {position: sticky;top: 0;display: flex;flex-direction: column;align-items: flex-start;justify-content: space-between;gap: 40px;height: 100vh;height: 100dvh;padding: 40px clamp(40px, 4vw, 64px);border-right: 1px solid var(--kpo-line);background: var(--kpo-black) url("portal-login-bg-v2.svg") right bottom / cover no-repeat;}
	.kpo_brand .kpo_logo {width: 160px;}
	.kpo_brandpanel_body {max-width: 440px;}
	.kpo_brandpanel_title {font-size: clamp(34px, 2.6vw, 44px);line-height: 1.1;letter-spacing: -.015em;}
	.kpo_brandpanel_intro {display: block;margin: 14px 0 0;color: var(--kpo-text);font-size: 16px;line-height: 1.55;}
	.kpo_benefits {display: grid;gap: 16px;margin: 32px 0 0;padding: 0;list-style: none;}
	.kpo_benefits li {display: flex;align-items: center;gap: 12px;color: #fff;font-size: 15px;font-weight: 500;}
	/* The site's light medallions with seigaiha in their lower half */
	.kpo_benefit_icon {display: grid;place-items: center;flex: none;width: 42px;height: 42px;border-radius: 50%;background: #FDF3EC url("portal-icon-waves.svg") center bottom / 100% 50% no-repeat;box-shadow: 0 0 0 1px rgba(202, 79, 0, .35), 0 0 0 5px rgba(15, 15, 15, .85);color: #C24900;}
	.kpo_benefit_icon .kpo_icon {width: 19px;height: 19px;}
	.kpo_brandpanel .kpo_contact {display: flex;flex-wrap: wrap;gap: 0 22px;margin: 0;color: var(--kpo-text);font-size: 13.5px;}
	.kpo .kpo_brandpanel .kpo_contact a {color: #fff;}
	.kpo_gate {justify-content: center;padding: 48px clamp(32px, 5vw, 80px);}
	.kpo_gate_mark {display: none;}
	.kpo_gate h1 {font-size: 28px;}
	.kpo_gate_foot {display: none;}
}

/* -----------------------------------------------------------------------------
   Touch screens: every control at least 40px high (as the buttons and fields), small links get a taller hit area
----------------------------------------------------------------------------- */
@media (pointer: coarse) {
	.kpo_iconbtn {width: 40px;height: 40px;}
	.kpo_item_pdf.is-empty {width: 40px;}
	.kpo .kpo_pdf, .kpo .kpo_more, .kpo .kpo_seg a, .kpo_adminview_stop {min-height: 40px;}
	.kpo .kpo_logout {height: 40px;}
	.kpo_side .kpo_logout {width: 40px;height: 40px;}
	.kpo_contact--small li {min-height: 40px;}
	.kpo .kpo_ob_color_remove {width: 40px;height: 40px;}
	.kpo .kpo_contact a, .kpo .kpo_small a {display: inline-flex;align-items: center;min-height: 40px;}
	.kpo_design_history > summary {min-height: 40px;}
}

/* -----------------------------------------------------------------------------
   Motion (portal.js adds these classes; nothing runs on the first paint)
----------------------------------------------------------------------------- */
/* Loading: the parts that will change dim and a soft sheen runs over them (after a short delay, see portal.js) */
.kpo_view .is-skeleton {position: relative;overflow: hidden;}
.kpo_view .is-skeleton > * {opacity: .42;transition: opacity var(--kpo-t-exit) var(--kpo-ease-fast);}
.kpo_view .is-skeleton::after {content: '';position: absolute;inset: 0;z-index: 2;background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, 0) 80%);transform: translateX(-100%);animation: kpo-shimmer 1300ms var(--kpo-ease-fast) infinite;pointer-events: none;}
/* A tile keeps its medallion above its top edge (no overflow: hidden there): its sheen moves through its background
   instead of sliding, so it stays inside; the corner waves dim with the content */
.kpo_view .kpo_kpi.is-skeleton {overflow: visible;}
.kpo_view .kpo_kpi.is-skeleton::after {border-radius: inherit;background: linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, 0) 60%) 100% 0 / 300% 100% no-repeat;transform: none;animation-name: kpo-shimmer-bg;}
.kpo_view .is-skeleton::before {opacity: .42;}
.kpo_view[aria-busy=true] {cursor: progress;}
/* New content: the page rises in; a changed part (filter, refresh) only fades in */
.kpo_view.is-entering {animation: kpo-enter var(--kpo-t-enter) var(--kpo-ease-out) both;}
.kpo_view .is-entering {animation: kpo-fade-in var(--kpo-t) var(--kpo-ease-out) both;}
/* The thin bar at the top while a page loads (created by portal.js) */
.kpo_progress {position: fixed;top: 0;left: 0;right: 0;z-index: 300;height: 2px;opacity: 0;pointer-events: none;}
.kpo_progress_bar {height: 100%;background: var(--kpo-orange);transform: scaleX(0);transform-origin: 0 50%;}

@keyframes kpo-spin {to {transform: rotate(360deg);}}
@keyframes kpo-shimmer {to {transform: translateX(100%);}}
@keyframes kpo-shimmer-bg {from {background-position: 100% 0;} to {background-position: 0 0;}}
@keyframes kpo-enter {from {opacity: 0;transform: translateY(6px);}}
@keyframes kpo-fade-in {from {opacity: 0;}}
@keyframes kpo-fade-out {to {opacity: 0;}}
@keyframes kpo-sheet-in {from {opacity: 0;transform: translateY(-8px);}}
@keyframes kpo-sheet-out {to {opacity: 0;transform: translateY(-8px);}}

@media (prefers-reduced-motion: reduce) {
	.kpo *, .kpo *::before, .kpo *::after {transition-duration: 0s !important;animation-duration: 0s !important;animation-iteration-count: 1 !important;}
	.kpo_view .is-skeleton::after {display: none;}
	/* A spinner still says "busy", slower */
	.kpo .kpo_button.is-busy::after, .kpo .kpo_refresh.is-spinning .kpo_icon {animation-duration: 1200ms !important;animation-iteration-count: infinite !important;}
	.kpo_button:active {transform: none;}
}

/* The light scheme ("Lichte weergave" in the menu: data-theme on <html>, kpo_portal_theme()): the same roles on
   white and a light grey page, the orange in its dark text shade (#B34600, 5.5:1 on white), the menu light too. The
   brand panel of the login page stays black (its own dark values below). */
:root[data-theme="light"] {
	color-scheme: light;
	--kpo-chrome: #FFFFFF;
	--kpo-bg: #F6F3F0;
	--kpo-surface: #FFFFFF;
	--kpo-input: #FFFFFF;
	--kpo-ink: #0F0F0F;
	--kpo-text: #2A2622;
	--kpo-text-2: #4A4440;
	--kpo-muted: #6B6460;
	--kpo-line: rgba(202, 79, 0, .14);
	--kpo-card-line: rgba(202, 79, 0, .22);
	--kpo-field: #D6CEC5;
	--kpo-field-hover: #B9B0A6;
	--kpo-input-line: #948D85;
	--kpo-input-line-hover: #6B6460;
	--kpo-soft: #FBF8F6;
	--kpo-hover: #F1ECE7;
	--kpo-orange-text: #B34600;
	--kpo-orange-soft: #FBEFE6;
	--kpo-focus: #B34600;
	--kpo-ring: rgba(179, 70, 0, .22);
	--kpo-ok: #146C34;
	--kpo-ok-soft: #E7F5EC;
	--kpo-ok-line: #C6E7D2;
	--kpo-danger: #B42318;
	--kpo-danger-soft: #FEF3F2;
	--kpo-danger-line: #FECDCA;
	--kpo-shadow-sm: 0 1px 2px rgba(15, 15, 15, .06);
	--kpo-shadow-lg: 0 15px 35px rgba(15, 15, 15, .14);
	--kpo-chart: #B34600;
	--kpo-chart-axis: #B9B0A6;
	--kpo-medal: #FDF3EC;
}
:root[data-theme="light"] .kpo_brandpanel {color-scheme: dark;--kpo-ink: #FFFFFF;--kpo-text: rgba(255, 255, 255, .86);--kpo-text-2: rgba(255, 255, 255, .72);--kpo-muted: rgba(255, 255, 255, .62);--kpo-line: rgba(255, 255, 255, .08);--kpo-field: rgba(255, 255, 255, .18);--kpo-hover: rgba(255, 255, 255, .06);--kpo-soft: rgba(255, 255, 255, .03);--kpo-orange-text: #E8691F;--kpo-focus: #E8691F;}
/* The logo of the scheme: white "KAMI" on dark, black on light (the brand panel is always dark) */
.kpo_logo--light, [data-theme="light"] .kpo_logo--dark, [data-theme="light"] .kpo_brandpanel .kpo_logo--light {display: none;}
[data-theme="light"] .kpo_logo--light, [data-theme="light"] .kpo_brandpanel .kpo_logo--dark {display: block;}
/* What has a colour of its own on dark */
[data-theme="light"] .kpo_button--secondary::before {background: rgba(15, 15, 15, .04);}
[data-theme="light"] .kpo_menu[open] > .kpo_menu_toggle::before {background: rgba(15, 15, 15, .32);}
[data-theme="light"] .kpo_avatar, [data-theme="light"] .kpo_seg_count {background: #EFEAE5;}
[data-theme="light"] .kpo_seg a::before {background: #FFFFFF;box-shadow: 0 1px 2px rgba(15, 15, 15, .12), inset 0 0 0 1px #E2DBD3;}
[data-theme="light"] .kpo_badge, [data-theme="light"] .kpo_badge--open {background: #EAF0F6;color: #34506E;}
[data-theme="light"] .kpo_badge--partial, [data-theme="light"] .kpo_badge--changes {background: #FDF1DC;color: #7A4A00;}
[data-theme="light"] .kpo_badge--credit {background: #F0EBFD;color: #5530A8;}
[data-theme="light"] .kpo_badge--paid, [data-theme="light"] .kpo_badge--approved {background: var(--kpo-ok-soft);color: var(--kpo-ok);}
[data-theme="light"] .kpo_badge--overdue {background: var(--kpo-danger-soft);color: var(--kpo-danger);}
[data-theme="light"] .kpo_badge--new, [data-theme="light"] .kpo_badge--waiting {background: var(--kpo-orange-soft);color: var(--kpo-orange-text);}
[data-theme="light"] .kpo_badge--ended {background: #EFEAE5;color: var(--kpo-muted);}
[data-theme="light"] .kpo_input::placeholder {color: #8A837D;}
[data-theme="light"] .kpo_meter {background: #ECE7E1;}
[data-theme="light"] .kpo_ob_tablist {background: linear-gradient(to right, var(--kpo-bg) 30%, rgba(246, 243, 240, 0)) 0 0 / 40px 100% no-repeat local, linear-gradient(to left, var(--kpo-bg) 30%, rgba(246, 243, 240, 0)) 100% 0 / 40px 100% no-repeat local, linear-gradient(to right, rgba(15, 15, 15, .08), rgba(15, 15, 15, 0)) 0 0 / 14px 100% no-repeat scroll, linear-gradient(to left, rgba(15, 15, 15, .08), rgba(15, 15, 15, 0)) 100% 0 / 14px 100% no-repeat scroll;}
[data-theme="light"] .kpo_field .kpo_ob_drop, [data-theme="light"] .kpo_ob_color_add {border-color: #C9C1B8;}
[data-theme="light"] .kpo_ob_color_pick::-webkit-color-swatch {border-color: rgba(15, 15, 15, .24);}
[data-theme="light"] .kpo_ob_color_pick::-moz-color-swatch {border-color: rgba(15, 15, 15, .24);}
[data-theme="light"] .kpo_ob_tab[data-state=done] .kpo_ob_tabnum .kpo_icon {color: #FFFFFF;}
[data-theme="light"] .kpo_design_image {background: var(--kpo-hover);}
[data-theme="light"] .kpo_view .is-skeleton::after {background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 80%);}
[data-theme="light"] .kpo_view .kpo_kpi.is-skeleton::after {background: linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 60%) 100% 0 / 300% 100% no-repeat;}
/* The light versions of the theme's images (their seigaiha circles in the light colours) */
[data-theme="light"] body.kpo--app {background: radial-gradient(farthest-corner at 100% 100%, rgba(246, 243, 240, .45), rgba(246, 243, 240, .84) 70%), url("portal-seigaiha-page-light.svg") left top / 36px 18px repeat, var(--kpo-bg);}
[data-theme="light"] .kpo_mbar {background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)), url("portal-seigaiha-light.svg") left top / 36px 18px repeat, var(--kpo-chrome);}
[data-theme="light"] .kpo_menu_panel, [data-theme="light"] .kpo_side {background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .15)), url("portal-seigaiha-light.svg") left top / 36px 18px repeat, var(--kpo-chrome);}
[data-theme="light"] .kpo_menu_panel::after, [data-theme="light"] .kpo_side::after {background-image: url("portal-side-fuji-light-v2.svg");}
[data-theme="light"] .kpo_card::before, [data-theme="light"] .kpo_tablecard::before, [data-theme="light"] .kpo_gate_inner::before, [data-theme="light"] .kpo_kpi::before {background-image: url("portal-corner-waves-light-v2.svg");}
[data-theme="light"] .kpo_box--help::before {background-image: url("portal-corner-waves-soft-v2.svg");} /* the help card is --kpo-soft */
[data-theme="light"] .kpo_kpi_icon {background: var(--kpo-medal) url("portal-icon-waves.svg") center bottom / 100% auto no-repeat;}
[data-theme="light"] .kpo_empty .kpo_icon {border-color: rgba(202, 79, 0, .35);background: var(--kpo-medal) url("portal-icon-waves.svg") center bottom / 100% 50% no-repeat;color: #C24900;}
[data-theme="light"] .kpo_empty--ok .kpo_icon {border-color: rgba(30, 122, 69, .45);color: #1E7A45;}
[data-theme="light"] .kpo_view[data-kpo-view="overzicht"] .kpo_dash_side::after {background-image: url("portal-fuji-light-v3.svg");}
[data-theme="light"] .kpo_trend {--kpo-series-i: #2F6BD8;--kpo-series-r: #14866D;--kpo-series-p: #9B3C99;} /* checked: 4.5:1 or more on white, CVD 9+ */
/* The switch in the menu: a row like the menu items; it names the scheme it switches to */
.kpo_theme_form {margin: 0;}
.kpo .kpo_theme {position: relative;isolation: isolate;display: flex;align-items: center;width: 100%;min-height: 40px;margin: 0;padding: 0 10px;border: 0;border-radius: var(--kpo-r-sm);background: transparent;color: var(--kpo-text-2);font: inherit;font-size: 14px;font-weight: 500;text-align: left;cursor: pointer;-webkit-tap-highlight-color: transparent;}
.kpo .kpo_theme::before {content: '';position: absolute;inset: 0;z-index: -1;border-radius: inherit;background: var(--kpo-hover);opacity: 0;transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo .kpo_theme:hover {color: var(--kpo-ink);}
.kpo .kpo_theme:hover::before {opacity: 1;}
.kpo_theme_opt {display: flex;align-items: center;gap: 12px;}
.kpo_theme .kpo_icon {width: 20px;height: 20px;color: var(--kpo-muted);}
.kpo_theme_opt--dark, [data-theme="light"] .kpo_theme_opt--light {display: none;}
[data-theme="light"] .kpo_theme_opt--dark {display: flex;}

/* Paper stays light: the light values of the tokens, black on white */
@media print {
	:root {color-scheme: light;--kpo-orange-text: #B34600;--kpo-orange-soft: #FBEFE6;--kpo-bg: #fff;--kpo-surface: #fff;--kpo-input: #fff;--kpo-ink: #0F0F0F;--kpo-text: #2A2622;--kpo-text-2: #4A4440;--kpo-muted: #6B6460;--kpo-line: #ECE7E1;--kpo-field: #DDD6CE;--kpo-input-line: #948D85;--kpo-soft: #FAF8F6;--kpo-hover: #F1ECE7;--kpo-ok: #146C34;--kpo-ok-soft: #E7F5EC;--kpo-ok-line: #C6E7D2;--kpo-danger: #B42318;--kpo-danger-soft: #FEF3F2;--kpo-danger-line: #FECDCA;--kpo-chrome: #fff;--kpo-card-line: #ECE7E1;--kpo-medal: #fff;}
	:root[data-theme="light"] {--kpo-bg: #fff;--kpo-surface: #fff;--kpo-chrome: #fff;--kpo-input: #fff;--kpo-line: #ECE7E1;--kpo-soft: #FAF8F6;--kpo-card-line: #ECE7E1;--kpo-medal: #fff;}
	html, body.kpo, [data-theme="light"] body.kpo--app {background: #fff;}
	body.kpo--quoteview::before {content: none;}
	.kpo_qv_pages, .kpo_qv_empty {background: none;box-shadow: none;}
	.kpo_qv_page::before {content: none;}
	.kpo_qv_page img {opacity: 1;animation: none;}
	.kpo_qv_bar {display: none;}
	.kpo .kpo_badge {background: none;box-shadow: inset 0 0 0 1px currentColor;color: var(--kpo-text);}
	.kpo .kpo_invoices tr.kpo_inv--overdue td {background: none;}
	.kpo_adminview, .kpo_mbar, .kpo_side, .kpo_head_actions, .kpo_skip, .kpo_seg, .kpo_c_pdf, .kpo_item_pdf, .kpo_footnote, .kpo_brandpanel, .kpo_progress, .kpo_ob_tabs, .kpo_ob_help, .kpo_ob_foot, .kpo_ob_drop, .kpo_ob_file_input, .kpo_ob_file_remove, .kpo_design_actions, .kpo_ob_saved {display: none !important;}
	.kpo_shell, .kpo_split {display: block;}
	.kpo_card, .kpo_kpi, .kpo_invoices tr, .kpo_gate_inner {box-shadow: none;}
	.kpo_card::before, .kpo_tablecard::before, .kpo_gate_inner::before, .kpo_kpi::before, .kpo_view[data-kpo-view="overzicht"] .kpo_dash_side::after, .kpo_menu_panel::after {content: none;}
}
/* Forced colours: no pictures, the system's own check boxes */
@media (forced-colors: active) {
	body.kpo--quoteview::before {content: none;}
	.kpo_card::before, .kpo_tablecard::before, .kpo_gate_inner::before, .kpo_kpi::before, .kpo_view[data-kpo-view="overzicht"] .kpo_dash_side::after, .kpo_menu_panel::after {content: none;}
	.kpo_check input, .kpo_ob_q .kpo_ob_option input {appearance: auto;-webkit-appearance: auto;}
}

/* Onboarding with room: the questions left, info and help in a column on the right that stays in view */
@container (min-width: 1180px) {
	.kpo_ob_tabs, .kpo_ob_meta, .kpo_ob_pane {max-width: 1440px;}
	.kpo_ob_main {grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);align-items: start;gap: 20px;}
	.kpo_ob_aside {position: sticky;top: 24px;container-type: inline-size;}
	.kpo_ob_content .kpo_settings {max-width: none;}
}

/* -----------------------------------------------------------------------------
   Diensten (the services, with the website and its SSL) and online betalen (Betaal nu, the return page). Cards and
   facts as on the overview; nothing of their own moves (the cards come in with data-kpo-anim like the others).
----------------------------------------------------------------------------- */
.kpo_button--sm {min-height: 40px;padding: 0 16px;font-size: 13px;}
.kpo_button--sm > .kpo_icon {padding: 6px;}
.kpo_button--sm:has(> .kpo_icon--arrow) {padding: 0 5px 0 22px;}
.kpo_button--sm:has(> .kpo_icon:not(.kpo_icon--arrow)) {padding: 0 22px 0 5px;}
.kpo_payform {margin: 0;}
/* An open invoice with Betaal nu (Nog te betalen): amount and status stacked on the right, then Betaal nu and the PDF
   button on one line, all centred; narrow: Betaal nu on a row of its own under the invoice, the whole width */
.kpo_item--pay {flex-wrap: wrap;}
.kpo_item--pay .kpo_payform {order: 5;flex: 1 0 100%;}
.kpo_item--pay .kpo_paybtn {width: 100%;justify-content: center;}
@media (min-width: 640px) {
	.kpo_item--pay {flex-wrap: nowrap;}
	.kpo_item--pay .kpo_payform {order: 0;flex: none;margin-left: 6px;}
	.kpo_item--pay .kpo_paybtn {width: auto;}
}
.kpo_inv_actions {display: flex;flex-wrap: wrap;align-items: center;justify-content: flex-end;gap: 8px;}
.kpo_invoices td.kpo_c_pay {white-space: nowrap;}
.kpo_services {display: grid;gap: 12px;margin-bottom: 16px;}
.kpo_service {display: grid;align-content: start;gap: 4px;}
.kpo_service.is-ended {background: var(--kpo-soft);}
.kpo_service_head {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 6px 12px;}
.kpo_service_type {display: inline-flex;align-items: center;padding: 2px 9px;border-radius: 6px;background: var(--kpo-orange-soft);color: var(--kpo-orange-text);font-size: 12px;font-weight: 600;line-height: 1.5;}
.kpo .kpo_service_name {margin: 6px 0 8px;font-size: 17px;overflow-wrap: anywhere;}
.kpo_service .kpo_facts dd {display: flex;flex-wrap: wrap;align-items: center;gap: 4px 8px;}
.kpo .kpo_service_link {color: var(--kpo-ink);font-weight: 500;overflow-wrap: anywhere;}
.kpo_badge--ended {background: rgba(255, 255, 255, .08);color: var(--kpo-muted);}
.kpo_services_card h2 .kpo_icon {width: 18px;height: 18px;color: var(--kpo-orange-text);}
.kpo_services_card_name, .kpo_services_card_when {margin: 0 0 6px;font-size: 14px;line-height: 1.5;}
.kpo_services_card_name strong {color: var(--kpo-ink);font-weight: 600;}
.kpo .kpo_paystate_title {margin: 0 0 10px;}
.kpo_paystate_title .kpo_icon {width: 20px;height: 20px;}
.kpo .kpo_paystate--paid .kpo_paystate_title {color: var(--kpo-ok);}
.kpo .kpo_paystate--failed .kpo_paystate_title {color: var(--kpo-danger);}
.kpo_paystate--wait .kpo_paystate_title .kpo_icon {color: var(--kpo-orange-text);}
.kpo_paystate .kpo_facts {max-width: 480px;margin: 0 0 18px;}
.kpo_message_actions form {display: contents;}

@container (min-width: 640px) {
	.kpo_services {grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@container (min-width: 1100px) {
	.kpo_services {grid-template-columns: repeat(3, minmax(0, 1fr));}
}

@media print {
	.kpo_payform, .kpo_message_actions {display: none !important;}
}

/* -----------------------------------------------------------------------------
   Onderhoud en bereikbaarheid (includes/maintenance.php) on Diensten: a heading as the parts of Statistieken, a card
   per website or service, Bereikbaar (two figures in ink, a strip of 90 days, its legend with the counts, the last
   outages) beside Onderhoud (the newest entries, the rest in a <details>) when the card is wide enough.
   The strip: a cell per day in a status colour (checked against both surfaces: 3:1 or more, the grey of "no checks"
   on white 2.7:1; protan/deutan pairs kept apart), never colour alone: the height says it too (online full, partly
   three fifths, down a third, no checks a sliver), every day has its title, the strip a text alternative and the
   legend says the counts. 30 days a row when the part is narrow (three rows), 90 in one row from 520px.
----------------------------------------------------------------------------- */
.kpo_mnt {display: grid;gap: 12px;min-width: 0;margin: 4px 0 16px;}
.kpo_mnt_head h2 {margin: 0;font-size: 18px;letter-spacing: -.005em;}
.kpo_mnt_head p {margin: 2px 0 0;color: var(--kpo-muted);font-size: 13.5px;}
.kpo_mnt_card .kpo_box_head h3 {min-width: 0;overflow-wrap: anywhere;}
.kpo_mnt_card .kpo_box_head h3 .kpo_icon {width: 18px;height: 18px;color: var(--kpo-orange-text);}
.kpo_mnt_host {font-size: 13px;overflow-wrap: anywhere;}
.kpo_mnt_parts {display: grid;gap: 20px;min-width: 0;}
.kpo_mnt_part {min-width: 0;container: kpo-mnt / inline-size;}
.kpo .kpo_mnt_sub {margin: 0 0 10px;color: var(--kpo-ink);font-family: var(--kpo-heading);font-size: 14.5px;font-weight: 700;line-height: 1.3;}
.kpo .kpo_mnt_minor {margin: 16px 0 4px;color: var(--kpo-text-2);font-size: 13px;font-weight: 600;line-height: 1.4;}
.kpo_mnt_figs {display: flex;flex-wrap: wrap;gap: 8px 32px;margin: 0 0 12px;}
.kpo_mnt_figs div {display: grid;gap: 2px;}
.kpo_mnt_figs dt {color: var(--kpo-muted);font-size: 12.5px;line-height: 1.4;}
.kpo_mnt_figs dd {margin: 0;color: var(--kpo-ink);font-family: var(--kpo-heading);font-size: 24px;font-weight: 700;line-height: 1.15;font-variant-numeric: tabular-nums;}
.kpo_mnt_note, .kpo_mnt_none {margin: 0 0 10px;color: var(--kpo-muted);font-size: 13.5px;line-height: 1.5;text-wrap: pretty;}
.kpo_mnt_none {margin: 0;}
.kpo_uptime_wrap {--kpo-up: #4CC7A4;--kpo-part: #F5C26B;--kpo-down: #F97066;--kpo-none: #6B635C;}
.kpo_uptime {display: grid;grid-template-columns: repeat(30, minmax(0, 1fr));grid-auto-rows: 26px;align-items: end;gap: 6px 2px;margin: 2px 0 0;}
.kpo_uptime > span {display: block;height: 100%;border-radius: 2px 2px 1px 1px;background: var(--kpo-up);transition: opacity var(--kpo-t-fast) var(--kpo-ease-fast);}
.kpo_uptime > span:hover {opacity: .7;}
.kpo_uptime > .is-partial {height: 60%;background: var(--kpo-part);}
.kpo_uptime > .is-down {height: 34%;background: var(--kpo-down);}
.kpo_uptime > .is-none {height: 12%;min-height: 3px;background: var(--kpo-none);}
@container kpo-mnt (min-width: 520px) {
	.kpo_uptime {grid-template-columns: repeat(90, minmax(0, 1fr));grid-auto-rows: 34px;column-gap: 1px;}
}
.kpo_uptime_axis {display: flex;justify-content: space-between;gap: 12px;margin: 6px 0 0;color: var(--kpo-muted);font-size: 11.5px;line-height: 16px;font-variant-numeric: tabular-nums;}
.kpo_uptime_legend {display: flex;flex-wrap: wrap;gap: 4px 16px;margin: 8px 0 0;padding: 0;list-style: none;color: var(--kpo-text-2);font-size: 12.5px;line-height: 1.5;}
.kpo_uptime_legend li {display: inline-flex;align-items: center;gap: 6px;}
.kpo_uptime_key {display: inline-flex;flex: none;align-items: flex-end;width: 8px;height: 14px;}
.kpo_uptime_key::before {content: '';display: block;width: 100%;height: 100%;border-radius: 2px 2px 1px 1px;background: var(--kpo-up);}
.kpo_uptime_key.is-partial::before {height: 60%;background: var(--kpo-part);}
.kpo_uptime_key.is-down::before {height: 34%;background: var(--kpo-down);}
.kpo_uptime_key.is-none::before {height: 3px;background: var(--kpo-none);}
.kpo_uptime_n {color: var(--kpo-muted);font-variant-numeric: tabular-nums;}
.kpo_mnt_list {margin: 0;padding: 0;list-style: none;}
.kpo_mnt_list li {min-width: 0;padding: 8px 0;border-top: 1px solid var(--kpo-line);font-size: 13.5px;line-height: 1.5;}
.kpo_mnt_list li:first-child {border-top: 0;padding-top: 2px;}
.kpo_mnt_incidents li {display: flex;flex-wrap: wrap;align-items: baseline;gap: 2px 10px;}
.kpo_mnt_list time {color: var(--kpo-ink);font-weight: 600;font-variant-numeric: tabular-nums;}
.kpo_mnt_entry_head {display: flex;flex-wrap: wrap;align-items: center;gap: 4px 10px;margin: 0;}
.kpo_mnt_entry_text {margin: 4px 0 0;color: var(--kpo-text);overflow-wrap: anywhere;}
.kpo_mnt_more {margin-top: 2px;border-top: 1px solid var(--kpo-line);}
.kpo_mnt_more > summary {display: list-item;width: max-content;max-width: 100%;min-height: 32px;padding: 8px 0 4px;color: var(--kpo-orange-text);font-size: 13.5px;font-weight: 600;cursor: pointer;}
.kpo_mnt_more > summary:hover {color: var(--kpo-ink);}
.kpo_mnt_more > summary .kpo_count {margin-left: 4px;}
.kpo_mnt_more[open] > .kpo_mnt_list {animation: kpo-sheet-in var(--kpo-t-enter) var(--kpo-ease-out);}
/* Wide enough: Bereikbaar and Onderhoud side by side (a card with Onderhoud only keeps one column) */
@container (min-width: 900px) {
	.kpo_mnt_parts:has(> .kpo_mnt_part + .kpo_mnt_part) {grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);gap: 32px;}
}
[data-theme="light"] .kpo_uptime_wrap {--kpo-up: #13806A;--kpo-part: #9A7000;--kpo-down: #B42318;--kpo-none: #A39B93;} /* 3:1 or more on white (the grey 2.7:1, the legend says it) */
@media print {
	.kpo_uptime_wrap, [data-theme="light"] .kpo_uptime_wrap {--kpo-up: #13806A;--kpo-part: #9A7000;--kpo-down: #B42318;--kpo-none: #A39B93;}
	.kpo_uptime > span, .kpo_uptime_key::before {-webkit-print-color-adjust: exact;print-color-adjust: exact;}
	.kpo_mnt_card {break-inside: avoid;}
	.kpo_mnt_more > summary {display: none;}
}
@media (forced-colors: active) {
	.kpo_uptime > span, .kpo_uptime_key::before {forced-color-adjust: none;background: CanvasText;}
	.kpo_uptime > .is-none, .kpo_uptime_key.is-none::before {background: GrayText;}
}

/* -----------------------------------------------------------------------------
   Statistieken (portal.php, includes/analytics.php, includes/searchconsole.php): the period as the filter of Facturen, six KPI tiles with the
   change against the period before, the visitors as an area chart and the top pages, channels and devices as thin
   bars. One series colour (--kpo-chart) everywhere; the change in the status colours, always with its sign and an
   arrow. The chart: an SVG drawn by the server whose plot stretches to the card (preserveAspectRatio none: the 2px
   line stays 2px with non-scaling-stroke), the axis labels HTML beside and under it, so they keep their size on a
   phone; the plot is as tall as it says (the x-axis band below it, never inside).
----------------------------------------------------------------------------- */
.kpo_stats {display: grid;gap: 16px;min-width: 0;}
.kpo_stats_block {display: grid;gap: 16px;min-width: 0;}
.kpo_stats_block > .kpo_kpis {margin: 20px 0 0;}
.kpo_stats_block + .kpo_stats_block {margin-top: 16px;}
.kpo_stats .kpo_footnote {margin-top: 0;}
.kpo .kpo_kpis--stats .kpo_kpi_value, .kpo .kpo_kpis--gsc .kpo_kpi_value {font-variant-numeric: normal;} /* a figure on its own: proportional digits */
/* Google Analytics and Search Console both: each part its heading (the cards in it an h3) */
.kpo_stats_head h2 {margin: 0;font-size: 18px;letter-spacing: -.005em;}
.kpo_stats_head p {margin: 2px 0 0;color: var(--kpo-muted);font-size: 13.5px;}
.kpo_delta {display: inline-flex;align-items: center;gap: 3px;font-weight: 600;}
.kpo_delta .kpo_icon {width: 14px;height: 14px;}
.kpo_delta--up {color: var(--kpo-ok);}
.kpo_delta--down {color: var(--kpo-danger);}
.kpo_delta--none, .kpo_delta--same {color: var(--kpo-muted);font-weight: 400;}
.kpo_box_head .kpo_stats_range, .kpo_box_head .kpo_stats_unit {color: var(--kpo-muted);font-size: 12.5px;}

/* The chart: y labels (as many as gridlines, spread over the plot: each centred on its line by the half line of
   negative margin), the plot, the x labels under it */
.kpo_chart {margin: 6px 0 0;}
.kpo_chart_body {display: grid;grid-template-columns: auto minmax(0, 1fr);column-gap: 10px;}
.kpo_chart_y {display: flex;flex-direction: column;justify-content: space-between;margin: -8px 0;color: var(--kpo-muted);font-size: 11.5px;line-height: 16px;text-align: right;white-space: nowrap;font-variant-numeric: tabular-nums;}
.kpo_chart_plot {position: relative;height: 180px;}
.kpo_chart_svg {display: block;width: 100%;height: 100%;overflow: visible;}
.kpo_chart_grid line {stroke: var(--kpo-line);stroke-width: 1;}
.kpo_chart_grid .kpo_chart_base {stroke: var(--kpo-chart-axis);}
.kpo_chart_fill {fill: var(--kpo-chart);fill-opacity: .1;}
.kpo_chart_line {fill: none;stroke: var(--kpo-chart);stroke-width: 2;stroke-linecap: round;stroke-linejoin: round;}
/* The last day: a dot with a ring of the card around it */
.kpo_chart_dot {position: absolute;width: 8px;height: 8px;margin: -4px 0 0 -4px;border-radius: 50%;background: var(--kpo-chart);box-shadow: 0 0 0 2px var(--kpo-surface);pointer-events: none;}
/* Hover: one column per day over the whole height (the target is the column, not the line); its title says the
   value, the line and the dot show where */
.kpo_chart_hits {position: absolute;inset: 0;display: flex;}
.kpo_chart_hits > span {position: relative;flex: 1 1 0;min-width: 0;}
.kpo_chart_hits > span::before {content: '';position: absolute;top: 0;bottom: 0;left: 50%;width: 1px;background: var(--kpo-field-hover);opacity: 0;}
.kpo_chart_hits > span::after {content: '';position: absolute;top: var(--y);left: 50%;width: 8px;height: 8px;margin: -4px 0 0 -4px;border-radius: 50%;background: var(--kpo-chart);box-shadow: 0 0 0 2px var(--kpo-surface);opacity: 0;}
.kpo_chart_hits > span:hover::before, .kpo_chart_hits > span:hover::after {opacity: 1;}
.kpo_chart_x {position: relative;grid-column: 2;height: 16px;margin-top: 8px;color: var(--kpo-muted);font-size: 11.5px;line-height: 16px;white-space: nowrap;}
.kpo_chart_x span {position: absolute;top: 0;transform: translateX(-50%);}
.kpo_chart_x .is-start {transform: none;}
.kpo_chart_x .is-end {transform: translateX(-100%);}
.kpo_chart_table {margin-top: 14px;padding-top: 8px;border-top: 1px solid var(--kpo-line);}
.kpo_chart_table > summary {display: list-item;width: max-content;min-height: 32px;padding: 6px 0;color: var(--kpo-orange-text);font-size: 13.5px;font-weight: 600;cursor: pointer;}
.kpo_chart_table > summary:hover {color: var(--kpo-ink);}
.kpo_stats_table {width: 100%;max-width: 420px;margin: 6px 0 0;border-collapse: collapse;font-size: 13.5px;}
.kpo_stats_table th, .kpo_stats_table td {padding: 6px 0;border-top: 1px solid var(--kpo-line);font-weight: 400;text-align: left;}
.kpo_stats_table thead th {border-top: 0;color: var(--kpo-muted);font-size: 12px;font-weight: 600;}
.kpo_stats_table td, .kpo_stats_table thead th:last-child {text-align: right;}
.kpo_stats_table td {color: var(--kpo-ink);font-variant-numeric: tabular-nums;}

/* Verloop per dag of Search Console (kpo_portal_gsc_trend()): a line per figure, chosen with the boxes above it.
   The colours were checked as a set on the card (#1A1A1A; the warmer #151311 of 21-11 is darker still): every pair apart for colour-blind eyes too (OKLab ΔE
   protan/deutan at least 13,7, normal vision at least 20), each at least 3:1. Klikken keeps the orange of the chart.
   Without :has() only Klikken shows (the rules below this block), without the boxes. */
.kpo_trend {--kpo-series-c: var(--kpo-chart);--kpo-series-i: #6B89F9;--kpo-series-r: #29A895;--kpo-series-p: #A2419D;}
.kpo_trend [data-m=c] {--kpo-s: var(--kpo-series-c);}
.kpo_trend [data-m=i] {--kpo-s: var(--kpo-series-i);}
.kpo_trend [data-m=r] {--kpo-s: var(--kpo-series-r);}
.kpo_trend [data-m=p] {--kpo-s: var(--kpo-series-p);}
.kpo_trend .kpo_chart_line {stroke: var(--kpo-s);}
.kpo_trend .kpo_chart_fill {fill: var(--kpo-s);}
.kpo_trend .kpo_chart_dot {background: var(--kpo-s);}
/* The boxes: a row of chips; the box in the colour of its line (filled with a tick when on) */
.kpo_trend_keys {display: flex;flex-wrap: wrap;gap: 8px;min-width: 0;margin: 4px 0 6px;padding: 0;border: 0;}
.kpo_trend_key {position: relative;display: inline-flex;align-items: center;gap: 8px;min-height: 32px;padding: 4px 12px 4px 10px;border: 1px solid var(--kpo-line);border-radius: 999px;color: var(--kpo-muted);font-size: 13px;font-weight: 500;line-height: 1.2;cursor: pointer;-webkit-tap-highlight-color: transparent;user-select: none;}
.kpo_trend_key:hover {border-color: var(--kpo-field-hover);color: var(--kpo-ink);}
.kpo_trend_key input {position: absolute;inset: 0;width: 100%;height: 100%;margin: 0;opacity: 0;cursor: pointer;}
.kpo_trend_box {position: relative;flex: none;width: 14px;height: 14px;border: 2px solid var(--kpo-s);border-radius: 4px;}
.kpo_trend_key input:checked + .kpo_trend_box {background: var(--kpo-s);}
.kpo_trend_key input:checked + .kpo_trend_box::after {content: '';position: absolute;top: 0;left: 3px;width: 4px;height: 7px;border: solid var(--kpo-surface);border-width: 0 2px 2px 0;transform: rotate(45deg);}
.kpo_trend_key:has(input:checked) {border-color: var(--kpo-field-hover);color: var(--kpo-ink);}
.kpo_trend_key:has(input:focus-visible) {outline: 2px solid var(--kpo-orange-text);outline-offset: 2px;}
/* The y-axis: a set of numbers per line in one cell (as wide as the widest, so nothing moves), one shown at a time */
.kpo_chart_y--sets {display: grid;}
.kpo_chart_yset {display: flex;grid-area: 1 / 1;flex-direction: column;justify-content: space-between;}
/* What shows: Klikken (the browser without :has()) */
.kpo_trend :is(.kpo_chart_line, .kpo_chart_fill, .kpo_chart_dot, .kpo_chart_yset)[data-m], .kpo_trend .kpo_chart_hits i {visibility: hidden;}
.kpo_trend :is(.kpo_chart_line, .kpo_chart_fill, .kpo_chart_dot, .kpo_chart_yset)[data-m=c], .kpo_trend .kpo_chart_hits i[data-m=c] {visibility: visible;}
.kpo_trend_none, .kpo_trend_note {display: none;}
@supports not selector(:has(*)) {
	.kpo_trend_keys {display: none;}
}
/* The lines (their last dot, their dot on hover) of the boxes that are on */
.kpo_trend:has(input[data-m=c]:not(:checked)) :is(.kpo_chart_line, .kpo_chart_dot, i)[data-m=c] {visibility: hidden;}
.kpo_trend:has(input[data-m=i]:checked) :is(.kpo_chart_line, .kpo_chart_dot, i)[data-m=i],
.kpo_trend:has(input[data-m=r]:checked) :is(.kpo_chart_line, .kpo_chart_dot, i)[data-m=r],
.kpo_trend:has(input[data-m=p]:checked) :is(.kpo_chart_line, .kpo_chart_dot, i)[data-m=p] {visibility: visible;}
/* The numbers of the y-axis and the area: only while that line is the only one */
.kpo_trend:has(input[data-m=c]:not(:checked), input[data-m=i]:checked, input[data-m=r]:checked, input[data-m=p]:checked) :is(.kpo_chart_fill, .kpo_chart_yset)[data-m=c] {visibility: hidden;}
.kpo_trend:has(input[data-m=i]:checked):not(:has(input[data-m=c]:checked, input[data-m=r]:checked, input[data-m=p]:checked)) :is(.kpo_chart_fill, .kpo_chart_yset)[data-m=i],
.kpo_trend:has(input[data-m=r]:checked):not(:has(input[data-m=c]:checked, input[data-m=i]:checked, input[data-m=p]:checked)) .kpo_chart_yset[data-m=r],
.kpo_trend:has(input[data-m=p]:checked):not(:has(input[data-m=c]:checked, input[data-m=i]:checked, input[data-m=r]:checked)) .kpo_chart_yset[data-m=p] {visibility: visible;}
/* Two lines or more: the note why there are no numbers; none: what to do */
.kpo_trend:has(input[data-m=c]:checked):has(input[data-m=i]:checked, input[data-m=r]:checked, input[data-m=p]:checked) .kpo_trend_note,
.kpo_trend:has(input[data-m=i]:checked):has(input[data-m=r]:checked, input[data-m=p]:checked) .kpo_trend_note,
.kpo_trend:has(input[data-m=r]:checked):has(input[data-m=p]:checked) .kpo_trend_note {display: block;}
.kpo_trend:not(:has(input[data-m]:checked)) .kpo_trend_none {display: grid;}
.kpo_trend_none {position: absolute;inset: 0;place-items: center;margin: 0;color: var(--kpo-muted);font-size: 13.5px;text-align: center;pointer-events: none;}
.kpo_trend_note {margin: 10px 0 0;color: var(--kpo-muted);font-size: 12.5px;line-height: 1.5;}
/* Hover: a dot on each line shown (the ones of its day), in the colour of the line */
.kpo_trend .kpo_chart_hits > span::after {content: none;}
.kpo_chart_hits i {position: absolute;left: 50%;width: 8px;height: 8px;margin: -4px 0 0 -4px;border-radius: 50%;background: var(--kpo-s);box-shadow: 0 0 0 2px var(--kpo-surface);opacity: 0;pointer-events: none;}
.kpo_chart_hits > span:hover i {opacity: 1;}
/* The table with all four */
.kpo_stats_table--wide {max-width: 640px;}
.kpo_table_scroll {max-width: 100%;overflow-x: auto;}
.kpo_table_scroll:focus-visible {outline: 2px solid var(--kpo-orange-text);outline-offset: 2px;}
.kpo_trend_sample {display: none;}
.kpo_stats_table--wide th + th, .kpo_stats_table--wide td {padding-left: 12px;}
.kpo_stats_table--wide thead th:not(:first-child) {text-align: right;}
@media (pointer: coarse) {
	.kpo_trend_key {min-height: 40px;}
}
/* High contrast: the lines in the text colour, told apart by their dashes */
@media (forced-colors: active) {
	.kpo_trend .kpo_chart_line {stroke: CanvasText;}
	.kpo_trend .kpo_chart_line[data-m=i] {stroke-dasharray: 8 5;}
	.kpo_trend .kpo_chart_line[data-m=r] {stroke-dasharray: 2 4;}
	.kpo_trend .kpo_chart_line[data-m=p] {stroke-dasharray: 10 4 2 4;}
	.kpo_trend .kpo_chart_fill {fill: CanvasText;}
	.kpo_trend .kpo_chart_dot, .kpo_chart_hits i {background: CanvasText;box-shadow: none;forced-color-adjust: none;}
	/* The chips show the line they stand for: its dashes */
	.kpo_trend_box {display: none;}
	.kpo_trend_sample {display: block;flex: none;stroke: CanvasText;stroke-width: 2;stroke-linecap: round;}
	.kpo_trend_sample[data-m=i] line {stroke-dasharray: 8 5;}
	.kpo_trend_sample[data-m=r] line {stroke-dasharray: 2 4;}
	.kpo_trend_sample[data-m=p] line {stroke-dasharray: 10 4 2 4;}
	/* Off: a dashed border, on: a solid one, the same width (nothing moves; the focus ring stays an outline) */
	.kpo_trend_key {border: 2px dashed CanvasText;}
	.kpo_trend_key:has(input:checked) {border-style: solid;}
}

/* Ranked lists: the name (and a muted line), the figure on the right, a thin bar under them (its end rounded, its
   start square on the left edge) */
.kpo_rank {display: grid;gap: 14px;margin: 4px 0 0;padding: 0;list-style: none;}
.kpo_rank li {min-width: 0;}
.kpo_rank_row {display: flex;align-items: baseline;justify-content: space-between;gap: 12px;}
.kpo_rank_label {display: grid;min-width: 0;}
.kpo_rank_name, .kpo_rank_sub {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
.kpo_rank_name {color: var(--kpo-ink);font-size: 14px;font-weight: 500;line-height: 1.4;}
.kpo_rank_sub {color: var(--kpo-muted);font-size: 12.5px;line-height: 1.4;}
.kpo_rank_value {flex: none;color: var(--kpo-ink);font-size: 14px;font-weight: 600;font-variant-numeric: tabular-nums;}
.kpo_rank_bar {display: block;min-width: 4px;max-width: 100%;height: 8px;margin-top: 6px;border-radius: 0 4px 4px 0;background: var(--kpo-chart);}

/* The search terms of a page in Google: a muted line that may wrap */
.kpo_rank_more {color: var(--kpo-muted);font-size: 12.5px;line-height: 1.45;overflow-wrap: anywhere;}

/* Wat valt op, Kansen in Google: short lines with an icon */
.kpo_stats_insights h2 .kpo_icon {width: 18px;height: 18px;color: var(--kpo-orange-text);}
.kpo_insights, .kpo_chances {display: grid;gap: 12px;margin: 4px 0 0;padding: 0;list-style: none;}
.kpo_insights li, .kpo_chances li {display: flex;align-items: flex-start;gap: 10px;min-width: 0;color: var(--kpo-ink);font-size: 14px;line-height: 1.5;}
.kpo_insights .kpo_icon, .kpo_chances .kpo_icon {flex: none;width: 16px;height: 16px;margin-top: 3px;color: var(--kpo-orange-text);}
.kpo_insights li > span, .kpo_chances li > span {min-width: 0;text-wrap: pretty;}
.kpo_chances li > span {display: grid;gap: 2px;}
.kpo_chances strong {font-weight: 600;overflow-wrap: anywhere;}
.kpo_chances li > span > span {color: var(--kpo-muted);font-size: 13.5px;}
.kpo_chances_tip {margin-top: 14px;}

/* Contactmomenten: one item per kind, side by side when there is room */
.kpo_contacts {display: grid;grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));gap: 10px;margin: 4px 0 12px;padding: 0;list-style: none;}
.kpo_cm {display: flex;align-items: flex-start;gap: 10px;min-width: 0;padding: 12px;border: 1px solid var(--kpo-line);border-radius: var(--kpo-r-lg);}
.kpo_cm_icon {display: grid;place-items: center;flex: none;width: 30px;height: 30px;border-radius: var(--kpo-r-sm);background: var(--kpo-orange-soft);color: var(--kpo-orange-text);}
.kpo_cm_icon .kpo_icon {width: 16px;height: 16px;}
.kpo_cm_body {display: grid;min-width: 0;}
.kpo_cm_label {color: var(--kpo-muted);font-size: 13px;font-weight: 500;line-height: 1.3;}
.kpo_cm_value {margin-top: 2px;color: var(--kpo-ink);font-size: 20px;font-weight: 600;line-height: 1.25;}
.kpo_cm_delta {margin-top: 2px;color: var(--kpo-muted);font-size: 12.5px;line-height: 1.4;}

/* The failure as the admin view sees it, under the message for the client */
.kpo .kpo_stats_tech {max-width: 46em;margin-top: 8px;font-size: 12.5px;overflow-wrap: anywhere;}

/* The card on the overview */
.kpo_stats_card h2 .kpo_icon {width: 18px;height: 18px;color: var(--kpo-orange-text);}
.kpo_stats_card_value {margin: 0;font-size: 14px;}
.kpo_stats_card_value strong {margin-right: 4px;color: var(--kpo-ink);font-size: 24px;font-weight: 600;line-height: 1.2;}
.kpo_stats_card_delta {margin: 4px 0 0;color: var(--kpo-muted);font-size: 13px;}

/* Six tiles: two, three, then one row from a wide page */
@container (min-width: 560px) {
	.kpo_kpis--stats {grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@container (min-width: 640px) {
	.kpo_chart_plot {height: 220px;}
}
@container (min-width: 1180px) {
	.kpo_kpis--stats {grid-template-columns: repeat(6, minmax(0, 1fr));}
}

@media (pointer: coarse) {
	.kpo_chart_table > summary {min-height: 40px;}
}

/* High contrast: the marks in the system's text colour (they would vanish otherwise) */
@media (forced-colors: active) {
	.kpo_chart_svg, .kpo_chart_dot, .kpo_rank_bar {forced-color-adjust: none;}
	.kpo_chart_line {stroke: CanvasText;}
	.kpo_chart_fill {fill: CanvasText;}
	.kpo_chart_grid line {stroke: GrayText;}
	.kpo_chart_dot, .kpo_rank_bar {background: CanvasText;box-shadow: none;}
}

/* Paper: the light orange of the print tokens, and the table of the chart stays closed */
@media print {
	:root {--kpo-chart: #C24900;--kpo-chart-axis: #948D85;}
	.kpo_chart_hits, .kpo_chart_table {display: none !important;}
}

/* -----------------------------------------------------------------------------
   The language switch of the login pages (NL | EN, kpo_lang_switch_html() in includes/i18n.php): a small pill of two
   segments in the top right corner of the card, the current language in the orange of the buttons. Only the tokens
   above, so it follows the dark and the light scheme; the heading keeps clear of it.
----------------------------------------------------------------------------- */
.kpo_lang {display: inline-flex;gap: 2px;padding: 2px;border: 1px solid var(--kpo-line);border-radius: 999px;background: var(--kpo-soft);font-size: 12px;font-weight: 700;line-height: 1;letter-spacing: .04em;}
.kpo_gate_inner > .kpo_lang {position: absolute;top: 20px;right: 20px;z-index: 1;}
.kpo_gate_inner > .kpo_lang ~ h1 {padding-right: 92px;}
.kpo .kpo_lang_item {display: inline-flex;align-items: center;justify-content: center;min-width: 36px;min-height: 26px;padding: 0 10px;border-radius: 999px;color: var(--kpo-text-2);text-decoration: none;-webkit-tap-highlight-color: transparent;}
.kpo .kpo_lang_item:hover {background: var(--kpo-hover);color: var(--kpo-ink);}
.kpo .kpo_lang_item.is-current {background: var(--kpo-button);color: #fff;}
.kpo .kpo_lang_item:focus-visible {outline-offset: 1px;}
@media (min-width: 640px) {
	.kpo_gate_inner > .kpo_lang {top: 30px;right: 30px;}
}
@media (pointer: coarse) {
	.kpo .kpo_lang_item {min-width: 44px;min-height: 40px;}
	.kpo_gate_inner > .kpo_lang {top: 15px;right: 15px;}
	.kpo_gate_inner > .kpo_lang ~ h1 {padding-right: 108px;}
}
@media (pointer: coarse) and (min-width: 640px) {
	.kpo_gate_inner > .kpo_lang {top: 23px;right: 23px;}
}
@media (forced-colors: active) {
	.kpo .kpo_lang_item.is-current {forced-color-adjust: none;background: Highlight;color: HighlightText;}
}
@media print {
	.kpo_lang {display: none;}
}
