/* BOEKUNA rustige look: greeting, smaller cents, avatars and cost icons, status dots,
   a calm "all done" moment and friendlier empty lists. Uses the app's own tokens so dark mode follows. */
#mainApp,#modalRoot{
  --look-tone-0:#E3EFE6;--look-ink-0:#2F6B45;
  --look-tone-1:#E6ECF7;--look-ink-1:#3A5A8F;
  --look-tone-2:#F6ECE1;--look-ink-2:#8A5A26;
  --look-tone-3:#EEE8F4;--look-ink-3:#614A85;
  --look-icon-bg:#EEF2F0;--look-icon-ink:#4C5A54;
}
html[data-theme="dark"] #mainApp,html[data-theme="dark"] #modalRoot{
  --look-tone-0:#1F2E24;--look-ink-0:#8FD9A2;
  --look-tone-1:#1F2635;--look-ink-1:#9DB8E8;
  --look-tone-2:#2E261D;--look-ink-2:#E0B98A;
  --look-tone-3:#2A2433;--look-ink-3:#C3AEE6;
  --look-icon-bg:#232B27;--look-icon-ink:#B7C0C6;
}

/* 1. Greeting and one calm line, also on a phone. */
#mainApp #content .dashboard-page-head h1{text-wrap:balance;overflow-wrap:anywhere;word-break:break-word;min-width:0}
#mainApp #content .dashboard-page-head .page-status{display:block!important;margin-top:4px!important;font-weight:500!important}
@media (max-width:820px){
  #mainApp #content .dashboard-page-head h1{font-size:26px!important;line-height:1.15!important}
}

/* 2. Euro's first, cents smaller and lighter. */
#mainApp .amount-cents{font-size:.62em;font-weight:inherit;letter-spacing:0;color:var(--app-muted-strong,#5E6870);margin-left:.5px}
#mainApp :is(td.money,.mobile-card-value) .amount-cents{font-size:.85em}

/* 3 + 4. Initials or logo for a relation, a line icon per kind of cost. */
:is(#mainApp,#modalRoot) .party-avatar{position:relative;flex:0 0 32px;width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;font-size:12px;font-weight:800;letter-spacing:.02em;overflow:hidden;font-variant-numeric:normal}
:is(#mainApp,#modalRoot) .party-avatar.tone-0{background:var(--look-tone-0);color:var(--look-ink-0)}
:is(#mainApp,#modalRoot) .party-avatar.tone-1{background:var(--look-tone-1);color:var(--look-ink-1)}
:is(#mainApp,#modalRoot) .party-avatar.tone-2{background:var(--look-tone-2);color:var(--look-ink-2)}
:is(#mainApp,#modalRoot) .party-avatar.tone-3{background:var(--look-tone-3);color:var(--look-ink-3)}
:is(#mainApp,#modalRoot) .party-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:4px;background:#fff;opacity:0}
:is(#mainApp,#modalRoot) .party-avatar img.is-brand{padding:0;object-fit:cover}
:is(#mainApp,#modalRoot) .party-avatar.has-logo{box-shadow:inset 0 0 0 1px var(--app-border,#E4E7EA)}
:is(#mainApp,#modalRoot) .party-avatar.has-logo img{opacity:1}
:is(#mainApp,#modalRoot) .party-avatar.has-logo .party-initials{visibility:hidden}
:is(#mainApp,#modalRoot) .party-avatar.category-icon{border-radius:9px;background:var(--look-icon-bg);color:var(--look-icon-ink)}
#mainApp .party-avatar.category-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#mainApp .cell-with-avatar{display:flex;align-items:center;gap:10px;min-width:0}
#mainApp .cell-with-avatar>strong,#mainApp .cell-with-avatar-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
#mainApp .cell-with-avatar-text{display:block}
#mainApp .financial-table .cell-name .cell-with-avatar-text>strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mainApp .mobile-card-main.has-lead{display:grid!important;grid-template-columns:32px minmax(0,1fr);column-gap:12px;row-gap:4px;align-content:center}
#mainApp .mobile-card-main.has-lead>.party-avatar{grid-column:1;grid-row:1/span 4;align-self:center}
#mainApp .mobile-card-main.has-lead>:not(.party-avatar){grid-column:2}

/* 5. Status as a small dot with text; only "te laat" stays coloured. */
#mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important;gap:6px!important;font-size:12px!important;font-weight:600!important;color:var(--app-muted-strong,#5E6870)!important;white-space:nowrap}
#mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge::before{content:"";flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--app-border-strong,#C9D1CD)}
#mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge.good::before{background:var(--status-success,#2C9867)}
#mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge.warn::before{background:var(--status-warning,#D99A1C)}
#mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge.info::before{background:var(--status-info,#3B82F6)}
#mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge.bad{color:var(--status-error,#C0392B)!important}
#mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge.bad::before{background:var(--status-error,#E5534B)}

/* 6. All done: one calm moment with a check. */
#mainApp .dashboard-attention-state.success{display:flex!important;align-items:center;gap:12px;padding:14px!important;border-radius:12px!important}
#mainApp .dashboard-attention-state.success>span[aria-hidden]{flex:0 0 32px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--app-white,#fff);color:var(--status-success,#2C9867);font-size:16px;font-weight:800}
#mainApp .dashboard-attention-state.success strong{display:block}
#mainApp .dashboard-attention-state.success div>span{display:block;font-size:13px;color:var(--app-muted-strong,#5E6870)}

/* 7. Empty lists: an icon, one sentence and one button. */
#mainApp .empty .empty-icon{display:block;width:34px;height:34px;margin:0 auto 10px;fill:none;stroke:var(--app-muted,#8A968F);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#mainApp .empty .empty-action{margin-top:14px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}

/* Overview style C: a blue-tinted Winst card and tiles with one small picture each. */
#mainApp#mainApp .dashboard-kpis .dashboard-kpi-profit{background:#EEF4FE!important;border-color:transparent!important}
html[data-theme="dark"] #mainApp#mainApp .dashboard-kpis .dashboard-kpi-profit{background:#1B2740!important}
#mainApp .dashboard-kpis .dashboard-kpi-label{display:inline-flex;align-items:center;gap:6px}
#mainApp .dashboard-kpis .dashboard-kpi-label::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--kpi-dot,#8A949B);flex:0 0 8px}
#mainApp .dashboard-kpi-profit{--kpi-dot:#3B82F6}
#mainApp .dashboard-kpi[onclick*="invoices'"]:not(.dashboard-kpi-receivables){--kpi-dot:#63D471}
#mainApp .dashboard-kpi[onclick*="expenses"]{--kpi-dot:#E5534B}
#mainApp .dashboard-kpi-receivables{--kpi-dot:#D99A1C}
#mainApp .dashboard-kpi[onclick*="'vat'"]{--kpi-dot:#8B6CEF}
#mainApp .kpi-visual{display:block;margin-top:8px;pointer-events:none}
#mainApp .kpi-bars svg{display:block;width:100%;max-width:140px;height:26px}
#mainApp .kpi-bars rect{fill:#63D471}
#mainApp .kpi-bars rect.is-past{opacity:.35}
#mainApp .kpi-ring{display:flex;align-items:center;gap:8px;min-width:0}
#mainApp .kpi-ring svg{width:40px;height:40px;flex:0 0 40px}
#mainApp .kpi-ring circle{fill:none;stroke-width:6}
#mainApp .kpi-ring .ring-track{stroke:var(--app-surface,#F6F7F8)}
#mainApp .kpi-ring .ring-0{stroke:#E5534B;background:#E5534B}
#mainApp .kpi-ring .ring-1{stroke:#F19A94;background:#F19A94}
#mainApp .kpi-ring .ring-2{stroke:#F7C6C2;background:#F7C6C2}
#mainApp .kpi-ring-legend{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:11px;font-weight:500;color:var(--app-muted-strong,#5E6870)}
#mainApp .kpi-ring-legend span{display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mainApp .kpi-ring-legend .ring-dot{width:6px;height:6px;border-radius:50%;flex:0 0 6px}
#mainApp .kpi-share{display:flex;height:5px;border-radius:99px;overflow:hidden;background:var(--app-surface,#F6F7F8)}
#mainApp .kpi-share i{display:block;height:100%}
#mainApp .kpi-share .is-late{background:#E5534B}
#mainApp .kpi-share .is-open{background:#D99A1C;opacity:.55}
#mainApp .kpi-deadline{color:var(--app-muted-strong,#5E6870)}
html[data-theme="dark"] #mainApp .kpi-ring .ring-track,html[data-theme="dark"] #mainApp .kpi-share{stroke:#2E363C;background:#2E363C}
@media(max-width:820px){
  /* Phone: Winst on top, then Omzet, Kosten, Nog te ontvangen and Btw as 2 x 2 tiles. */
  #mainApp .dashboard-kpis .dashboard-kpi-receivables{order:4}
  #mainApp .dashboard-kpis .dashboard-kpi[onclick*="'vat'"]{order:5}
  #mainApp#mainApp .dashboard-kpis .dashboard-kpi:last-child:not(.dashboard-kpi-profit){grid-column:auto!important}
  /* No corner icons on the phone, also not on the Winst block (Kwin 2026-10-09); the dot before the label says enough. */
  #mainApp#mainApp .dashboard-kpis .dashboard-kpi .metric-icon{display:none!important}
}
@media(max-width:359px){#mainApp .kpi-ring svg{width:34px;height:34px;flex-basis:34px}#mainApp .product-kpis.grid-2{grid-template-columns:1fr!important;grid-auto-rows:1fr}}

/* 14. Phone: Nieuw is a round green button in the middle of the bottom bar, on every page.
   It stays the same #quickNew button; the bar keeps an empty middle slot for it. */
@media(max-width:820px){
  #mainApp#mainApp .topbar #quickNew{position:fixed;left:calc(50% - 28px);right:auto;bottom:calc(22px + env(safe-area-inset-bottom));width:56px;height:56px;min-width:56px;min-height:56px;padding:0!important;border-radius:50%!important;border:4px solid #fff!important;background:#63D471!important;color:#10331A!important;display:grid!important;place-items:center;z-index:60;margin:0!important;box-shadow:none!important;overflow:visible}
  #mainApp#mainApp .topbar #quickNew .icon{width:24px;height:24px;stroke-width:2.2}
  #mainApp#mainApp .topbar #quickNew span{position:absolute;top:calc(100% + 1px);left:50%;width:64px;margin-left:-32px;text-align:center;font-size:10px;font-weight:650;line-height:12px;color:#667179;background:#fff;white-space:nowrap;display:block!important;pointer-events:none}
  html[data-theme="dark"] #mainApp#mainApp .topbar #quickNew{border-color:var(--dk-surface,#1A1F23)!important}
  html[data-theme="dark"] #mainApp#mainApp .topbar #quickNew span{color:var(--dk-muted,#9AA4AB);background:var(--dk-surface,#1A1F23)}
  .mobile-bottom-nav-gap{display:block;min-width:0;pointer-events:none}
  #mainApp#mainApp .topbar{z-index:56}
}
@media(min-width:821px){.mobile-bottom-nav-gap{display:none}}

/* 9 + 10. Phone lists: day headers and a thin bar on partly paid invoices. */
#mainApp .mobile-card-group{padding:14px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--app-muted-strong,#5E6870)}
#mainApp .mobile-card-group:first-child{padding-top:2px}
#mainApp .mobile-paid-bar{display:block;height:4px;border-radius:99px;background:var(--app-surface,#F6F7F8);overflow:hidden;margin-top:6px;max-width:180px}
#mainApp .mobile-paid-bar i{display:block;height:100%;background:#63D471;border-radius:99px}
html[data-theme="dark"] #mainApp .mobile-paid-bar{background:#2E363C}

/* 41. Busy button: a small spinner before the label, and it can't be pressed twice. */
button.is-busy{cursor:progress!important;opacity:.88}
button.is-busy::before{content:"";display:inline-block;flex:0 0 14px;width:14px;height:14px;margin-right:6px;vertical-align:-2px;box-sizing:border-box;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:boekuna-busy-spin .7s linear infinite}
@keyframes boekuna-busy-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){button.is-busy::before{animation-duration:2.4s}}

/* 42. Delete is a calm red text button; right after, a 5-second "Ongedaan maken" (no "are you sure?" question). */
:is(#mainApp,#modalRoot) .btn.danger:not(#confirmDeleteAccount):not(#confirmResetAdministration){background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--status-error,#C0392B)!important}
:is(#mainApp,#modalRoot) .btn.danger:not(#confirmDeleteAccount):not(#confirmResetAdministration):hover{background:rgba(229,83,75,.08)!important;transform:none}
html[data-theme="dark"] :is(#mainApp,#modalRoot) .btn.danger:not(#confirmDeleteAccount):not(#confirmResetAdministration){color:#F2817A!important}
#toastRoot .toast-undo{display:flex;align-items:center;gap:14px}

/* 43. Phone forms: the main button stays in view at the bottom and gets the most room. */
@media(max-width:820px){
  #modalRoot .mobile-invoice-nav{position:sticky;bottom:0;z-index:3;margin-top:16px;padding-top:12px;background:var(--app-surface-elevated,#fff);box-shadow:0 -1px 0 var(--app-border,#E4E8EB)}
  #modalRoot#modalRoot .modal-foot{flex-wrap:nowrap}
  #modalRoot#modalRoot .modal-foot .btn.primary{flex:1 1 auto}
  #modalRoot#modalRoot .modal-foot .btn:not(.primary):not(.danger):not(:only-child){flex:0 0 auto;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
}

/* 44. Filters on? The count sits on the button as a small green circle. */
.filter-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:#63D471;color:#10331A;font-size:11.5px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.btn.has-filters{border-color:#63D471!important}

/* 48. Paid: "Alles" or "Een deel" as two buttons above the amount. */
#modalRoot .payment-share{display:flex;gap:4px;padding:3px;margin-bottom:8px;border-radius:12px;background:var(--app-surface,#F6F7F8);border:1px solid var(--app-border,#E4E8EB)}
#modalRoot .payment-share-btn{flex:1 1 0;height:38px;border:0;border-radius:9px;background:transparent;color:var(--app-muted-strong,#5E6870);font-weight:650;font-size:14px;cursor:pointer}
#modalRoot .payment-share-btn.on{background:var(--app-white,#fff);color:var(--app-ink,#17201B);box-shadow:inset 0 0 0 1px var(--app-border,#E4E8EB)}
#modalRoot .payment-share-btn:focus-visible{outline:2px solid #63D471;outline-offset:1px}
html[data-theme="dark"] #modalRoot .payment-share{background:var(--dk-bg,#121619);border-color:var(--dk-line,#2E363C)}
html[data-theme="dark"] #modalRoot .payment-share-btn{color:var(--dk-muted,#A7B1B8)}
html[data-theme="dark"] #modalRoot .payment-share-btn.on{background:var(--dk-raised,#21272C);color:var(--dk-ink,#E9EDEF);box-shadow:inset 0 0 0 1px var(--dk-line-strong,#424C54)}

/* 49. Copy button next to the invoice number and IBAN; it says "Gekopieerd" after a tap. */
#modalRoot .invoice-copy-strip{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
#modalRoot .copy-chip{display:inline-flex;align-items:center;gap:10px;min-width:0;padding:8px 8px 8px 12px;border:1px solid var(--app-border,#E4E8EB);border-radius:12px;background:var(--app-white,#fff)}
#modalRoot .copy-chip-text{display:flex;flex-direction:column;min-width:0}
#modalRoot .copy-chip-label{font-size:11.5px;color:var(--app-muted-strong,#5E6870)}
#modalRoot .copy-chip-value{font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.copy-chip-btn{flex:0 0 auto;height:32px;padding:0 12px;border:0;border-radius:9px;background:var(--app-surface,#F1F3F4);color:var(--app-ink,#17201B);font-size:13px;font-weight:700;cursor:pointer}
.copy-chip-btn.is-copied,.send-channel.is-copied{background:#ECFAEE!important;color:#177A31!important}
html[data-theme="dark"] #modalRoot .copy-chip{background:var(--dk-raised,#21272C);border-color:var(--dk-line,#2E363C)}
html[data-theme="dark"] .copy-chip-btn{background:var(--dk-bg,#121619);color:var(--dk-ink,#E9EDEF)}
html[data-theme="dark"] .copy-chip-btn.is-copied,html[data-theme="dark"] .send-channel.is-copied{background:#1F3A27!important;color:#8FE39C!important}

/* 50. Send: Mail, WhatsApp or copy, as three clear buttons on top. */
#modalRoot .send-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
#modalRoot .send-channel{height:44px;border:1px solid var(--app-border,#E4E8EB);border-radius:12px;background:var(--app-white,#fff);color:var(--app-ink,#17201B);font-weight:700;font-size:14px;cursor:pointer}
#modalRoot .send-channel.on{border-color:#63D471;background:#ECFAEE;color:#10331A}
html[data-theme="dark"] #modalRoot .send-channel{background:var(--dk-raised,#21272C);border-color:var(--dk-line,#2E363C);color:var(--dk-ink,#E9EDEF)}
html[data-theme="dark"] #modalRoot .send-channel.on{background:#1F3A27;border-color:#63D471;color:#DDF7E1}

/* 51. Phone: going back is a round arrow top-left, big enough for your thumb. */
@media(max-width:820px){
  #mainApp#mainApp .settings-center-back{width:44px;height:44px;min-height:44px;padding:0;margin:0 0 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--app-border,#E4E8EB);background:var(--app-white,#fff);color:var(--app-ink,#17201B);font-size:0;line-height:0}
  #mainApp#mainApp .settings-center-back::before{content:"";width:10px;height:10px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateX(2px) rotate(45deg)}
  #mainApp#mainApp .settings-center-back:focus-visible{outline:2px solid #63D471;outline-offset:2px;border-radius:50%}
  html[data-theme="dark"] #mainApp#mainApp .settings-center-back{background:var(--dk-raised,#21272C);border-color:var(--dk-line,#2E363C);color:var(--dk-ink,#E9EDEF)}
}

/* 62. Phone settings: calm white blocks like on an iPhone; no green "selected" row in the list. */
@media(max-width:820px){
  #mainApp#mainApp .settings-center .settings-center-row[aria-current="true"]{background:transparent;box-shadow:none}
  #mainApp#mainApp .settings-center .settings-center-row:active{background:var(--app-surface,#F6F7F8)}
}

/* 61. A wrong or missing field turns red with one sentence under it. */
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:#E5534B!important;box-shadow:0 0 0 3px rgba(229,83,75,.14)!important}
.field.has-error>label,.field.has-error>legend{color:#C0392B!important}
.field-error-text{margin-top:4px;font-size:13px;line-height:1.4;font-weight:600;color:#C0392B}
html[data-theme="dark"] .field-error-text,html[data-theme="dark"] .field.has-error>label,html[data-theme="dark"] .field.has-error>legend{color:#F2817A!important}
#mainApp .product-kpi .kpi-share{max-width:320px}

/* Btw in style C: the deadline as a calm line with a thin time bar, and the return as short rows on a phone. */
#mainApp .kpi-time{display:block;height:5px;max-width:320px;border-radius:99px;overflow:hidden;background:var(--app-surface,#EEF0F2)}
#mainApp .kpi-time i{display:block;height:100%;border-radius:99px;background:#3B82F6}
html[data-theme="dark"] #mainApp .kpi-time{background:#2E363C}
#mainApp .vat-return-card .section-head{align-items:center}
#mainApp .vat-return-copy{flex:0 0 auto}
@media(max-width:820px){
  #mainApp#mainApp .vat-return-card tbody tr{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto;column-gap:10px;row-gap:2px;align-items:baseline;padding:12px 16px!important}
  #mainApp#mainApp .vat-return-card tbody td{display:block!important;padding:0!important;border:0!important;min-height:0!important}
  #mainApp#mainApp .vat-return-card .mobile-cell-label{display:none!important}
  #mainApp#mainApp .vat-return-card tbody td:nth-child(1){grid-column:1;grid-row:1}
  #mainApp#mainApp .vat-return-card tbody td:nth-child(2){grid-column:2;grid-row:1}
  #mainApp#mainApp .vat-return-card tbody td:nth-child(4){grid-column:3;grid-row:1;text-align:right;font-weight:700}
  #mainApp#mainApp .vat-return-card tbody td:nth-child(3){grid-column:2/4;grid-row:2;font-size:13px;color:var(--app-muted-strong,#5E6870);font-weight:500;text-align:left}
  #mainApp#mainApp .vat-return-card tbody td:nth-child(3) .mobile-cell-value:not(:empty)::before{content:"Omzet "}
  #mainApp#mainApp .vat-return-card tbody tr:last-child{font-size:17px}
}

/* Customer card (style C, 20 + 22): tiles, how fast they pay, a reminder with one tap. */
#mainApp .contact-card-link{color:inherit;text-decoration:none;text-align:left}
#mainApp .contact-card-link strong{text-decoration:underline;text-decoration-color:var(--app-border,#D5DBDF);text-underline-offset:3px}
#modalRoot .customer-card{display:grid;gap:14px}
#modalRoot .customer-card-head{display:flex;align-items:center;gap:12px}
#modalRoot .customer-card-head .party-avatar{width:48px;height:48px;flex:0 0 48px;font-size:16px}
#modalRoot .customer-card-head>div>strong{display:block;font-size:18px}
#modalRoot .customer-card-head>div>span{display:block;font-size:13px;color:var(--app-muted-strong,#5E6870)}
#modalRoot .customer-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#modalRoot .customer-tile{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--app-border,#E4E8EB);border-radius:14px;background:var(--app-white,#fff);min-width:0}
#modalRoot .customer-tile-label,#modalRoot .customer-tile-sub{font-size:13px;color:var(--app-muted-strong,#5E6870)}
#modalRoot .customer-tile-value{font-size:22px;font-weight:780;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#modalRoot .customer-pays{margin:0;font-size:14px;color:var(--app-muted-strong,#5E6870)}
#modalRoot .customer-pays strong{color:var(--app-ink,#17201B)}
#modalRoot .customer-late{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;background:#FDF1F0}
#modalRoot .customer-late strong{display:block;font-size:14px;color:#9B2C22}
#modalRoot .customer-late span{font-size:13px;color:#9B2C22}
#modalRoot .customer-invoices h3{margin:4px 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--app-muted-strong,#5E6870)}
#modalRoot .customer-invoice-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;width:100%;padding:12px 2px;border:0;border-top:1px solid var(--app-border,#EEF0F2);background:transparent;color:inherit;text-align:left;cursor:pointer}
#modalRoot .customer-invoice-number{font-weight:650}
#modalRoot .customer-invoice-amount{font-weight:700;font-variant-numeric:tabular-nums}
html[data-theme="dark"] #modalRoot .customer-tile{background:var(--dk-raised,#21272C);border-color:var(--dk-line,#2E363C)}
html[data-theme="dark"] #modalRoot .customer-late{background:#3A2220}
html[data-theme="dark"] #modalRoot .customer-late strong,html[data-theme="dark"] #modalRoot .customer-late span{color:#F2B8B3}
html[data-theme="dark"] #modalRoot .customer-pays strong{color:var(--dk-ink,#E9EDEF)}
html[data-theme="dark"] #modalRoot .customer-invoice-row{border-color:var(--dk-line,#2E363C)}

/* Nieuw pop-up (style C, screen 5): icon left, a short line under each action, the two daily ones in green. */
#modalRoot .quick-action{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:12px}
#modalRoot .quick-action-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#F1F3F4;color:#5E6870}
#modalRoot .quick-action-icon .icon{width:20px;height:20px}
#modalRoot .quick-action-main .quick-action-icon{background:#ECFAEE;color:#2E8B3D}
#modalRoot .quick-action-text{display:flex;flex-direction:column;gap:2px;min-width:0}
#modalRoot .quick-action-text strong{font-size:15px;color:var(--app-ink,#17201B)}
#modalRoot .quick-action-text span{font-size:13px;color:var(--app-muted-strong,#5E6870)}
#modalRoot .quick-action-modal .quick-action-main{min-height:64px!important}
html[data-theme="dark"] #modalRoot .quick-action-icon{background:var(--dk-raised,#21272C);color:#AEB8BF}
html[data-theme="dark"] #modalRoot .quick-action-main .quick-action-icon{background:#1E3324;color:#7FDB8B}
html[data-theme="dark"] #modalRoot .quick-action-text span{color:#AEB8BF}
html[data-theme="dark"] #modalRoot .quick-action-text strong{color:var(--dk-ink,#E9EDEF)}

/* Factuur bekijken (style C, screen 7): status on top, what happened below, Delen and Betaald at the bottom. */
#modalRoot .invoice-view-status{margin:0 0 12px}
#modalRoot .invoice-timeline{margin:18px 0 4px}
#modalRoot .invoice-timeline h3{margin:0 0 10px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--app-muted-strong,#5E6870)}
#modalRoot .invoice-timeline ol{list-style:none;margin:0;padding:0;display:grid;gap:0}
#modalRoot .invoice-event{position:relative;display:flex;gap:12px;padding:0 0 14px}
#modalRoot .invoice-event:not(:last-child)::before{content:"";position:absolute;left:5px;top:16px;bottom:0;width:2px;background:var(--app-border,#E4E8EB)}
#modalRoot .invoice-event-dot{width:12px;height:12px;flex:0 0 12px;margin-top:4px;border-radius:50%;background:#C9D0D5}
#modalRoot .invoice-event.is-good .invoice-event-dot{background:#63D471}
#modalRoot .invoice-event.is-bad .invoice-event-dot{background:#E5534B}
#modalRoot .invoice-event strong{display:block;font-size:14px;color:var(--app-ink,#17201B)}
#modalRoot .invoice-event span:not(.invoice-event-dot){font-size:13px;color:var(--app-muted-strong,#5E6870)}
html[data-theme="dark"] #modalRoot .invoice-event:not(:last-child)::before{background:var(--dk-line,#2E363C)}
html[data-theme="dark"] #modalRoot .invoice-event-dot{background:#4A545B}
html[data-theme="dark"] #modalRoot .invoice-event strong{color:var(--dk-ink,#E9EDEF)}
html[data-theme="dark"] #modalRoot .invoice-event span:not(.invoice-event-dot){color:#AEB8BF}

/* Bonnen (style C, screen 9): tiles per month on the phone. */
@media(max-width:820px){
  #mainApp#mainApp .mobile-card-list.mobile-doc-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-group{grid-column:1/-1}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px;padding:10px!important;min-width:0}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-main{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0;width:100%}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-main .mobile-card-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-metadata{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #mainApp#mainApp .mobile-doc-grid .doc-thumb{display:grid;place-items:center;width:100%;height:84px;margin:0 0 8px;border-radius:10px;background:#F1F3F4;color:#8A949B}
  #mainApp#mainApp .mobile-doc-grid .doc-thumb.is-photo{background:#F6F2EA;color:#A08A5E}
  #mainApp#mainApp .mobile-doc-grid .doc-thumb .icon{width:28px;height:28px}
  /* Supplier logo instead of the receipt icon; hidden until it has really loaded, so a missing logo leaves the icon. */
  #mainApp#mainApp .mobile-doc-grid .doc-thumb{position:relative}
  #mainApp#mainApp .mobile-doc-grid .doc-thumb img{position:absolute;top:50%;left:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:14px;object-fit:contain;opacity:0}
  /* Doubled class: wins over the light and dark photo-tile backgrounds below. */
  :is(html,html[data-theme="dark"]) #mainApp#mainApp .mobile-doc-grid .doc-thumb.has-logo.has-logo{background:transparent}
  #mainApp#mainApp .mobile-doc-grid .doc-thumb.has-logo img{opacity:1}
  #mainApp#mainApp .mobile-doc-grid .doc-thumb.has-logo .icon{visibility:hidden}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-row{border:1px solid var(--app-border,#E4E8EB)!important;border-radius:14px!important;background:var(--app-white,#fff)}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-side{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-items:start;gap:4px 6px;width:100%;text-align:left!important}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-side .mobile-card-value{grid-column:1/-1;font-size:17px!important}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-side>:not(.mobile-card-value):not(span){justify-self:end}
  #mainApp#mainApp .mobile-doc-grid .mobile-card-side .icon-btn{width:36px!important;height:36px!important;min-height:36px!important;border:0!important}
  html[data-theme="dark"] #mainApp#mainApp .mobile-doc-grid .mobile-card-row{background:var(--dk-raised,#21272C)!important;border-color:var(--dk-line,#2E363C)!important}
  html[data-theme="dark"] #mainApp#mainApp .mobile-doc-grid .doc-thumb{background:var(--dk-raised,#21272C);color:#8A949B}
  html[data-theme="dark"] #mainApp#mainApp .mobile-doc-grid .doc-thumb.is-photo{background:#2C2820;color:#C9B385}
}

/* Meer menu (style C, screen 10): profile on top, chevrons, dark-mode switch. Phone drawer only. */
#sidebar .drawer-profile,#sidebar .drawer-theme{display:none}
@media(max-width:820px){
  #sidebar .drawer-profile{display:flex;align-items:center;gap:12px;width:calc(100% - 16px);margin:4px 8px 10px;padding:12px;border:1px solid var(--app-border,#E4E8EB);border-radius:14px;background:var(--app-white,#fff);text-align:left;color:inherit;font:inherit;cursor:pointer}
  #sidebar .drawer-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#ECFAEE;color:#2E8B3D;font-weight:750;font-size:15px}
  #sidebar .drawer-who{display:flex;flex-direction:column;min-width:0}
  #sidebar .drawer-who strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #sidebar .drawer-who span{font-size:13px;color:var(--app-muted-strong,#5E6870)}
  #sidebar .nav-item[data-page]:not(.active)::after{content:"›";margin-left:auto;font-size:20px;line-height:1;color:#A3ACB2}
  #sidebar .drawer-theme{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 16px);min-height:48px;margin:6px 8px 4px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:inherit;font:inherit;font-size:16px;font-weight:550;cursor:pointer}
  #sidebar .drawer-switch{position:relative;width:44px;height:26px;border-radius:13px;background:#D5DBDF;transition:background .2s}
  #sidebar .drawer-switch i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s}
  #sidebar .drawer-theme[aria-checked="true"] .drawer-switch{background:#63D471}
  #sidebar .drawer-theme[aria-checked="true"] .drawer-switch i{transform:translateX(18px)}
  html[data-theme="dark"] #sidebar .drawer-profile{background:var(--dk-raised,#21272C);border-color:var(--dk-line,#2E363C)}
  html[data-theme="dark"] #sidebar .drawer-avatar{background:#1E3324;color:#7FDB8B}
  html[data-theme="dark"] #sidebar .drawer-who span{color:#AEB8BF}
  html[data-theme="dark"] #sidebar .drawer-switch{background:#3A444B}
}
@media(prefers-reduced-motion:reduce){#sidebar .drawer-switch,#sidebar .drawer-switch i{transition:none}}

/* Factuur maken (style C, screen 6): avatars in front of the customer choices. */
#mainApp .mobile-invoice-choice.has-avatar,#modalRoot .mobile-invoice-choice.has-avatar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px;text-align:left}
:is(#mainApp,#modalRoot) .mobile-invoice-choice.has-avatar .party-avatar{width:38px;height:38px;flex:0 0 38px;font-size:13px}
:is(#mainApp,#modalRoot) .mobile-invoice-choice-text{display:flex;flex-direction:column;gap:2px;min-width:0}
#mainApp#mainApp .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text,#modalRoot#modalRoot .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text{color:var(--app-ink,#17201B);font-size:17px;font-weight:600}
#mainApp#mainApp .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text strong,#modalRoot#modalRoot .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text strong{color:var(--app-ink,#17201B)}
#mainApp#mainApp .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text span,#modalRoot#modalRoot .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text span{font-size:14px;font-weight:500;color:var(--app-muted-strong,#5E6870)}
html[data-theme="dark"] :is(#mainApp,#modalRoot) .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text,html[data-theme="dark"] :is(#mainApp,#modalRoot) .mobile-invoice-choice.has-avatar .mobile-invoice-choice-text strong{color:var(--dk-ink,#E9EDEF)!important}

/* 18 month in short, 24 free to spend, 28 receipts: calm note cards. */
#mainApp .look-notes{display:grid;gap:12px;margin:0 0 16px}
#mainApp .look-notes:empty{display:none}
#mainApp .look-note-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin:0 0 16px}
#mainApp .look-notes .look-note-card{margin:0}
#mainApp .look-note-text{display:flex;flex-direction:column;gap:3px;min-width:0}
#mainApp .look-note-text strong{font-size:16px}
#mainApp .look-note-text>span{font-size:14px;color:var(--app-muted-strong,#5E6870)}
#mainApp .look-note-text .look-note-eyebrow{font-size:13px;font-weight:650;color:var(--app-muted-strong,#5E6870)}
#mainApp .look-note-text .month-card-value,#mainApp .look-note-text .free-card-value{font-size:24px;font-weight:780;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
#mainApp .look-note-actions{display:flex;gap:8px;flex:0 0 auto}
@media(max-width:820px){
  #mainApp .look-note-card{flex-direction:column;align-items:stretch}
  #mainApp .look-note-actions{justify-content:flex-end}
}
html[data-theme="dark"] #mainApp .look-note-text>span,html[data-theme="dark"] #mainApp .look-note-text .look-note-eyebrow{color:#AEB8BF}

/* 17. One search for everything. */
#mainApp .topbar .global-search-btn{width:40px;height:40px;min-height:40px;display:inline-grid;place-items:center;border-radius:12px}
#modalRoot .global-search input[type="search"]{width:100%;min-height:48px;font-size:17px}
#modalRoot #globalSearchResults{margin-top:12px;display:grid;gap:14px}
#modalRoot .global-search-hint{margin:6px 2px;font-size:14px;color:var(--app-muted-strong,#5E6870)}
#modalRoot .global-search-group h3{margin:0 0 4px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--app-muted-strong,#5E6870)}
#modalRoot .global-search-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:8px 4px;border:0;border-top:1px solid var(--app-border,#EEF0F2);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
#modalRoot .global-search-item>span{display:flex;flex-direction:column;min-width:0}
#modalRoot .global-search-item>span strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalRoot .global-search-item>span span{font-size:13px;color:var(--app-muted-strong,#5E6870)}
#modalRoot .global-search-value{font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme="dark"] #modalRoot .global-search-item{border-color:var(--dk-line,#2E363C)}
html[data-theme="dark"] #modalRoot .global-search-item>span span,html[data-theme="dark"] #modalRoot .global-search-hint{color:#AEB8BF}

/* 24 lives in the Winst tile; the occasional note cards stay off the one-screen desktop overview. */
#mainApp .kpi-free{margin-top:10px;font-size:14px;color:var(--app-muted-strong,#5E6870)}
#mainApp .kpi-free strong{color:var(--app-ink,#17201B);font-variant-numeric:tabular-nums}
#mainApp .kpi-free span{display:block;font-size:12px}
html[data-theme="dark"] #mainApp .kpi-free{color:#AEB8BF}
html[data-theme="dark"] #mainApp .kpi-free strong{color:var(--dk-ink,#E9EDEF)}
@media(min-width:1101px){#mainApp .look-notes{display:none}}

/* 15. Phone pages (Kwin's picks, round 2): every page uses the overview's blocks and tiles, one main button,
   search and one filter button on a row, calm rows without a ⋯, and every to-do in one "Nog te doen" block.
   Colour per meaning: omzet green, kosten red, winst blue, nog te ontvangen amber, btw purple. */
#mainApp [data-kpi-dot="omzet"]{--kpi-dot:#63D471}
#mainApp [data-kpi-dot="kosten"]{--kpi-dot:#E5534B}
#mainApp [data-kpi-dot="winst"]{--kpi-dot:#3B82F6}
#mainApp [data-kpi-dot="open"]{--kpi-dot:#D99A1C}
#mainApp [data-kpi-dot="btw"]{--kpi-dot:#8B6CEF}
#mainApp [data-kpi-dot="neutral"]{--kpi-dot:#8A949B}
#mainApp :is(.dashboard-kpi,.product-kpi) .kpi-time i{background:var(--kpi-dot,#3B82F6)}
#modalRoot .expense-day-chips{display:none}
@media(min-width:821px){#modalRoot .expense-amount-euro{display:none}#mainApp .settings-account-danger,#mainApp .settings-profile-card{display:none!important}}
@media(max-width:820px){
  /* Top bar: menu and search only. The page head already says where you are; "Opgeslagen" only shows when something is off. */
  #mainApp#mainApp #pageTitle{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
  #mainApp#mainApp #cloudSyncBadge.good{display:none!important}

  /* KPI tiles: white, a coloured dot before the label, the amount, one short line. */
  #mainApp#mainApp #content .product-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  #mainApp#mainApp #content .product-kpis.grid-1{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:359px){
  #mainApp#mainApp #content .product-kpis{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:820px){
  #mainApp#mainApp #content .product-kpis .product-kpi{display:block!important;height:auto!important;min-height:0!important;padding:12px!important;border:1px solid #E4E7EA!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
  #mainApp#mainApp #content .product-kpis .product-kpi .metric-head{display:block!important;min-height:0!important;height:auto!important;margin:0!important}
  #mainApp#mainApp #content .product-kpis .product-kpi-icon{display:none!important}
  #mainApp#mainApp #content .product-kpis .product-kpi-label{display:flex!important;align-items:center;gap:6px!important;min-width:0;font-size:12px!important;font-weight:700!important;line-height:16px!important;color:#5E6870!important}
  #mainApp#mainApp #content .product-kpis .product-kpi-label::before{content:"";width:8px;height:8px;flex:0 0 8px;margin:0!important;border-radius:50%;background:var(--kpi-dot,#8A949B)}
  #mainApp#mainApp #content .product-kpis .product-kpi .metric-value{display:block;margin:9px 0 4px!important;font-weight:650!important;line-height:1.1!important;color:#1B1F23!important}
  #mainApp#mainApp #content .product-kpis .product-kpi:not(.metric-wide):not(.metric-huge) .metric-value{font-size:22px!important;letter-spacing:-.99px!important}
  /* Very long amounts get smaller so they always fit the half-width tile. */
  #mainApp#mainApp #content .product-kpis .product-kpi.metric-wide:not(.kpi-hero) .metric-value{font-size:19px!important;letter-spacing:-.04em!important}
  #mainApp#mainApp #content .product-kpis .product-kpi.metric-huge:not(.kpi-hero) .metric-value{font-size:15px!important;letter-spacing:-.05em!important}
  #mainApp#mainApp #content .product-kpis .product-kpi .amount-cents{font-size:62%;color:#5E6870}
  #mainApp#mainApp #content .product-kpis .product-kpi .metric-sub{min-height:0!important;margin:0!important;font-size:12px!important;font-weight:500!important;line-height:1.35!important;color:#5E6870!important}
  #mainApp#mainApp #content .product-kpis .product-kpi .metric-sub.is-empty{display:none!important}
  #mainApp#mainApp #content .product-kpis .product-kpi .kpi-visual{margin-top:8px}
  /* The number that matters most on a page sits on top in the light-blue block, like Winst on the overview. */
  #mainApp#mainApp #content .product-kpis .product-kpi.kpi-hero{grid-column:1/-1!important;min-height:112px!important;background:#EEF4FE!important;border-color:transparent!important}
  #mainApp#mainApp #content .product-kpis .kpi-hero .metric-value{margin:10px 0 4px!important;line-height:32px!important}
  #mainApp#mainApp #content .product-kpis .kpi-hero:not(.metric-wide):not(.metric-huge) .metric-value{font-size:32px!important;letter-spacing:-1.44px!important}
  #mainApp#mainApp #content .product-kpis .kpi-hero .metric-sub{margin-top:10px!important;font-size:14px!important}
  #mainApp#mainApp #content .product-kpis .kpi-hero .kpi-time{margin-top:12px;max-width:none;background:rgba(27,31,35,.08)}
  html[data-theme="dark"] #mainApp#mainApp #content .product-kpis .product-kpi{background:#1A1F23!important;border-color:#2C3338!important}
  html[data-theme="dark"] #mainApp#mainApp #content .product-kpis .product-kpi.kpi-hero{background:#1B2740!important;border-color:transparent!important}
  html[data-theme="dark"] #mainApp#mainApp #content .product-kpis :is(.product-kpi-label,.metric-sub,.amount-cents){color:#AEB8BF!important}
  html[data-theme="dark"] #mainApp#mainApp #content .product-kpis .product-kpi .metric-value{color:#E9EDEF!important}
  html[data-theme="dark"] #mainApp#mainApp #content .product-kpis .kpi-hero .kpi-time{background:rgba(255,255,255,.12)}
  /* Overview: the tiles say the same in smaller text; the three summary buttons are gone (Nieuw and the quick buttons do this). */
  #mainApp#mainApp #content .dashboard-kpis .dashboard-kpi:not(.dashboard-kpi-profit) .metric-sub{font-size:12px!important}
  #mainApp#mainApp #content .dashboard-summary-grid{display:none!important}

  /* Nog te doen: a dot, what and why, and one green link under it. */
  #mainApp#mainApp .dashboard-attention-item,#mainApp#mainApp .dashboard-attention-item:is(.urgent,.review,.soon){grid-template-columns:8px minmax(0,1fr)!important}
  #mainApp#mainApp .dashboard-attention-item .dashboard-attention-icon{width:8px!important;height:8px!important;margin-top:7px;background:#D99A1C!important}
  #mainApp#mainApp .dashboard-attention-item.urgent .dashboard-attention-icon{background:#E5534B!important}
  #mainApp#mainApp .dashboard-attention-cta{grid-column:2;justify-self:start;display:inline-flex;align-items:center;gap:7px;min-height:0;margin-top:4px;padding:0;border:0!important;border-radius:0;background:transparent!important;color:#2F7D3B!important;font-size:14px;font-weight:700}
  #mainApp#mainApp .dashboard-attention-cta::after{content:"";width:6px;height:6px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
  #mainApp#mainApp .dashboard-attention-chevron{display:none!important}
  #mainApp#mainApp .dashboard-attention-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html[data-theme="dark"] #mainApp#mainApp .dashboard-attention-cta{color:#7FDB8B!important}

  /* One main button over the full width; the second action is a quiet green link under it. */
  #mainApp#mainApp #content .product-page-shell>.product-page-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important}
  #mainApp#mainApp #content .product-page-actions>.btn{width:100%!important;justify-content:center!important}
  #mainApp#mainApp #content .product-page-actions>.btn.primary{min-height:50px!important;font-size:17px!important;border-radius:14px!important}
  #mainApp#mainApp #content .product-page-actions>.btn:not(.primary){min-height:44px!important;margin-top:4px;border:0!important;background:transparent!important;box-shadow:none!important;color:#2F7D3B!important;font-size:15px!important;font-weight:700!important}
  #mainApp#mainApp #content .product-page-actions>.btn:not(.primary) .icon{display:none!important}
  html[data-theme="dark"] #mainApp#mainApp #content .product-page-actions>.btn:not(.primary){color:#7FDB8B!important}
  /* Kwin 2026-10-09: on the phone, making and adding goes through Nieuw in the bottom bar, so the pages have no own main button.
     What stays: "Terug naar Bank" on Inkomsten/Uitgaven and removing demo customers on Relaties. */
  #mainApp#mainApp #content:is([data-page="invoices"],[data-page="expenses"],[data-page="bank"],[data-page="trips"]) .product-page-actions{display:none!important}
  #mainApp#mainApp #content:is([data-page="income"],[data-page="outgoings"],[data-page="contacts"]) .product-page-actions>.btn.primary{display:none!important}
  #mainApp#mainApp #content:is([data-page="income"],[data-page="outgoings"],[data-page="contacts"]) .product-page-actions>.btn:not(.primary){margin-top:0}

  /* Search and one filter button on one row; quick filters as pills under it (still 44px to tap). */
  #mainApp#mainApp #content .list-toolbar{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  #mainApp#mainApp #content .list-toolbar-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 8px!important;align-items:center}
  #mainApp#mainApp #content .list-search-box{grid-column:1;grid-row:1;min-height:44px!important;border:1px solid #E4E7EA!important;border-radius:12px!important;background:#fff!important}
  #mainApp#mainApp #content .list-search-box input{font-size:16px!important}
  #mainApp#mainApp #content .list-toolbar-actions{grid-column:2;grid-row:1;display:flex!important;width:auto!important;gap:8px;margin:0!important}
  #mainApp#mainApp #content .list-toolbar-actions .list-extra-action{display:contents}
  #mainApp#mainApp #content .list-toolbar-quick{grid-column:1/-1;grid-row:2;gap:6px!important;padding:0!important}
  #mainApp#mainApp #content .list-toolbar-actions>.btn:is([data-list-open-filters],[data-list-open-sort]),#mainApp#mainApp #content .page-period-stack .page-filter-btn{position:relative;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:1px solid #E4E7EA!important;border-radius:12px!important;background:#fff!important;color:#1B1F23!important;font-size:0!important;box-shadow:none!important}
  #mainApp#mainApp #content .page-period-stack .page-filter-btn>svg{display:none!important}
  #mainApp#mainApp #content .page-period-stack .page-filter-btn>span:not(.filter-count){font-size:0!important}
  #mainApp#mainApp #content .list-toolbar-actions>.btn:is([data-list-open-filters],[data-list-open-sort])::before,#mainApp#mainApp #content .page-period-stack .page-filter-btn::before{content:"";flex:0 0 20px;width:20px;height:20px;background:currentColor;-webkit-mask:var(--toolbar-icon) center/20px 20px no-repeat;mask:var(--toolbar-icon) center/20px 20px no-repeat;--toolbar-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M7 12h10M10 17h4'/%3E%3C/svg%3E")}
  #mainApp#mainApp #content .list-toolbar-actions>.btn[data-list-open-sort]::before{--toolbar-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v14M5 16l3 3 3-3M16 19V5M13 8l3-3 3 3'/%3E%3C/svg%3E")}
  #mainApp#mainApp #content .list-toolbar-actions [data-list-open-filters]~[data-list-open-sort]{display:none!important}
  #mainApp#mainApp #content .page-head:has(.page-period-stack .period-seg){position:relative}
  #mainApp#mainApp #content .page-head:has(.page-period-stack .period-seg)>div:first-child{padding-right:56px}
  #mainApp#mainApp #content .page-period-stack:has(.period-seg) .page-filter-btn{position:absolute!important;top:0;right:0}
  #mainApp#mainApp #content :is(.list-toolbar-actions,.page-period-stack) .filter-count{position:absolute;top:-6px;right:-6px;margin:0}
  /* The pill is 32px; transparent top and bottom borders keep the tap height at 44px. */
  #mainApp#mainApp #content .list-toolbar-quick .filter-btn{height:44px!important;min-height:44px!important;padding:0 14px!important;border-style:solid!important;border-color:transparent!important;border-width:6px 0!important;border-radius:999px!important;background:#EEF0F2!important;background-clip:padding-box!important;box-shadow:none!important;color:#3D454C!important;font-size:14px!important;font-weight:600!important}
  #mainApp#mainApp #content .list-toolbar-quick .filter-btn.active{background:#1B1F23!important;background-clip:padding-box!important;color:#fff!important}
  html[data-theme="dark"] #mainApp#mainApp #content .list-search-box,html[data-theme="dark"] #mainApp#mainApp #content .list-toolbar-actions>.btn:is([data-list-open-filters],[data-list-open-sort]),html[data-theme="dark"] #mainApp#mainApp #content .page-period-stack .page-filter-btn{background:#1A1F23!important;border-color:#2C3338!important;color:#E9EDEF!important}
  html[data-theme="dark"] #mainApp#mainApp #content .list-toolbar-quick .filter-btn{background:#2A3136!important;color:#D5DCE0!important}
  html[data-theme="dark"] #mainApp#mainApp #content .list-toolbar-quick .filter-btn.active{background:#63D471!important;color:#10331A!important}

  /* Rows: no ⋯ on invoices (tap the row; the same actions sit in the invoice), no Btw line on costs. */
  #mainApp#mainApp #content[data-page="invoices"] .mobile-card-side .icon-btn{display:none!important}
  #mainApp#mainApp #content[data-page="expenses"] .mobile-card-main .mobile-card-metadata~.mobile-card-metadata{display:none!important}

  /* Bank: what, when and the amount; under it one green link (Koppelen, Controleren or Ontkoppelen) and a quiet bin. */
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:start}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-row>.mobile-card-main{grid-column:1;grid-row:1;min-width:0;min-height:0!important}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-row>.mobile-card-side{display:contents!important}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-side>.mobile-card-value{grid-column:2;grid-row:1;align-self:start;text-align:right;white-space:nowrap}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-side>span:not([class]){display:none!important}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions{grid-column:1/-1;grid-row:2;display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;margin:-4px 0 -10px!important}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions>.btn{display:inline-flex!important;align-items:center;gap:7px;width:auto!important;min-height:44px!important;height:44px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#2F7D3B!important;font-size:15px!important;font-weight:700!important}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions>.btn::after{content:"";width:6px;height:6px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
  #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions>.bank-delete-action{width:44px!important;height:44px!important;min-height:44px!important;margin-left:auto;border:0!important;background:transparent!important;color:#8A949B!important}
  #mainApp#mainApp #content .bank-list-head{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:14px 16px 6px!important;border:0!important;background:transparent!important;text-align:left!important}
  #mainApp#mainApp #content .bank-list-title{display:flex;flex-direction:column;gap:2px;min-width:0}
  #mainApp#mainApp #content .bank-list-title strong{font-size:15px;font-weight:700}
  #mainApp#mainApp #content .bank-list-title span{font-size:13px;font-weight:500;color:#5E6870}
  #mainApp#mainApp #content .bank-automatch{display:inline-flex!important;align-items:center;gap:7px;width:auto!important;min-height:44px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#2F7D3B!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap;cursor:pointer}
  #mainApp#mainApp #content .bank-automatch::after{content:"";width:6px;height:6px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
  html[data-theme="dark"] #mainApp#mainApp #content :is(.bank-automatch,[data-page="bank"] .mobile-card-actions>.btn:not(.bank-delete-action)){color:#7FDB8B!important}
  html[data-theme="dark"] #mainApp#mainApp #content .bank-list-title span{color:#AEB8BF}

  /* Bonnetjes: the ⋯ on a tile (rename, delete) stays, but small and quiet. */
  #mainApp#mainApp .mobile-doc-grid .mobile-card-side :is(.icon-btn,.row-action-trigger){width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#8A949B!important}

  /* Relaties and Diensten: one calm row per name with the most useful line under it; tap opens it. */
  #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) tbody tr{padding:0!important;border:0!important;border-bottom:1px solid #EEF0F2!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) tbody tr:last-child{border-bottom:0!important}
  #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) tbody td:not(:first-child):not([colspan]){display:none!important}
  #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) tbody td:first-child{display:block!important;padding:0!important;border:0!important}
  #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) tbody td:first-child>.mobile-cell-label{display:none!important}
  #mainApp#mainApp #content .phone-row-link{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 16px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
  #mainApp#mainApp #content .phone-row-link .party-avatar{width:40px;height:40px;flex:0 0 40px;font-size:14px}
  #mainApp#mainApp #content .phone-row-text{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
  #mainApp#mainApp #content .phone-row-text>strong{font-size:16px;font-weight:650;color:#1B1F23;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mainApp#mainApp #content .phone-row-text>span{font-size:13px;font-weight:500;color:#5E6870;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mainApp#mainApp #content .phone-row-amount{flex:0 0 auto;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
  #mainApp#mainApp #content .phone-row-link::after{content:"";flex:0 0 7px;width:7px;height:7px;margin-left:2px;border-top:2px solid #B4BAC0;border-right:2px solid #B4BAC0;transform:rotate(45deg)}
  #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) .row-action-trigger{display:none!important}
  #mainApp#mainApp #content[data-page="services"]>.page-head{display:block!important}
  /* Nieuwe dienst is under Nieuw > Dienst on the phone. */
  #mainApp#mainApp #content[data-page="services"]>.page-head>.btn.primary{display:none!important}
  #mainApp#mainApp #content[data-page="services"] .list-toolbar-quick{display:none!important}
  html[data-theme="dark"] #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) tbody tr{border-color:#2C3338!important}
  html[data-theme="dark"] #mainApp#mainApp #content .phone-row-text>strong{color:#E9EDEF}
  html[data-theme="dark"] #mainApp#mainApp #content .phone-row-text>span{color:#AEB8BF}

  /* Rapportages: omzet green and kosten red in the chart (winst is the block on top). */
  #mainApp#mainApp #content[data-page="reports"] .bar.profit,#mainApp#mainApp #content[data-page="reports"] span:has(>.legend-dot.profit){display:none!important}
  /* The chart tooltip stays inside its card, also in the moment the phone turns and it has not moved yet. */
  #mainApp#mainApp #content :is(.report-result-card,.dashboard-chart-card){overflow:clip}
  #mainApp#mainApp #content .section-meta{font-size:13px;font-weight:500;color:#5E6870}
  html body #mainApp#mainApp .report-customers-card .category-row .progress span{background:#63D471!important}

  /* Btw: the one line that says Boekuna does not file for you. */
  #mainApp#mainApp #content .vat-phone-note{margin:0;font-size:13px;line-height:1.4;color:#5E6870}
  html[data-theme="dark"] #mainApp#mainApp #content .vat-phone-note{color:#AEB8BF}

  /* Factuur bekijken: who, the amount and the status on top; the copy chips two-up; the A4 page folded until you open it. */
  #modalRoot .invoice-view-summary{display:flex;flex-direction:column;align-items:center;gap:4px;padding:2px 0 14px;text-align:center}
  #modalRoot .invoice-view-who{font-size:14px;font-weight:600;color:#5E6870}
  #modalRoot .invoice-view-amount{font-size:40px;font-weight:700;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:tabular-nums;color:#1B1F23}
  #modalRoot .invoice-view-summary .invoice-view-status{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;font-size:14px;font-weight:600;color:#3D454C}
  #modalRoot .invoice-view-due::before{content:"· "}
  #modalRoot .invoice-copy-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #modalRoot .invoice-copy-strip .copy-chip{min-width:0;gap:2px;padding:8px 2px 8px 10px;border:0;background:#F6F7F8}
  #modalRoot .invoice-copy-strip .copy-chip-text{flex:1 1 auto}
  #modalRoot .invoice-copy-strip .copy-chip-value{font-size:14px;letter-spacing:0}
  #modalRoot .invoice-copy-strip .copy-chip-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
  #modalRoot .invoice-copy-strip .copy-chip-btn{padding:0 6px;font-size:13px;background:transparent;color:#2F7D3B}
  #modalRoot .boekuna-a4-preview.is-collapsed{position:relative;max-height:260px;overflow:hidden}
  #modalRoot .boekuna-a4-preview.is-collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:96px;background:linear-gradient(rgba(255,255,255,0),#fff 80%);pointer-events:none}
  #modalRoot .a4-expand{display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;margin:-52px 0 8px;position:relative;z-index:1;border:0;background:transparent;color:#2F7D3B;font-size:16px;font-weight:700;cursor:pointer}
  #modalRoot .boekuna-a4-preview:not(.is-collapsed)+.a4-expand{margin-top:4px}
  html[data-theme="dark"] #modalRoot .invoice-view-amount{color:#E9EDEF}
  html[data-theme="dark"] #modalRoot :is(.invoice-view-who,.invoice-view-summary .invoice-view-status){color:#AEB8BF}
  html[data-theme="dark"] #modalRoot .invoice-copy-strip .copy-chip{background:#21272C}
  html[data-theme="dark"] #modalRoot :is(.invoice-copy-strip .copy-chip-btn,.a4-expand){color:#7FDB8B}
  html[data-theme="dark"] #modalRoot .boekuna-a4-preview.is-collapsed::after{background:linear-gradient(rgba(26,31,35,0),var(--dk-surface,#1A1F23) 80%)}

  /* Kosten toevoegen: the amount big in the middle, short labels, Vandaag / Gisteren / Andere dag. */
  #modalRoot .expense-amount-field{text-align:center}
  #modalRoot .expense-amount-field>label{display:block;font-size:15px!important;font-weight:600!important;color:#5E6870!important;text-transform:none!important;letter-spacing:0!important}
  #modalRoot .expense-amount-input{display:flex;align-items:center;justify-content:center;gap:4px}
  #modalRoot .expense-amount-euro{font-size:40px;font-weight:700;line-height:1;color:#1B1F23}
  #modalRoot#modalRoot .expense-amount-input input#expenseGross{width:6.5ch!important;min-width:0;height:auto!important;min-height:60px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:40px!important;font-weight:700!important;letter-spacing:-.03em;text-align:left;color:#1B1F23}
  #modalRoot .expense-amount-input input::placeholder{color:#B4BAC0}
  #modalRoot .expense-amount-input:focus-within{outline:2px solid #63D471;outline-offset:4px;border-radius:12px}
  #modalRoot .expense-amount-input input:focus{outline:none}
  #modalRoot .expense-amount-field>.help{text-align:center}
  #modalRoot .expense-day-chips{display:flex;flex-wrap:wrap;gap:6px}
  #modalRoot .expense-day-chip{min-height:44px;padding:0 14px;border:0;border-radius:999px;background:#EEF0F2;color:#3D454C;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
  #modalRoot .expense-day-chip.active{background:#1B1F23;color:#fff}
  #modalRoot .expense-date-field:not(.show-date) input[type="date"]{display:none!important}
  #modalRoot .expense-date-field.show-date input[type="date"]{margin-top:8px}
  html[data-theme="dark"] #modalRoot :is(.expense-amount-euro,.expense-amount-input input){color:#E9EDEF}
  html[data-theme="dark"] #modalRoot .expense-day-chip{background:#2A3136;color:#D5DCE0}
  html[data-theme="dark"] #modalRoot .expense-day-chip.active{background:#63D471;color:#10331A}

  /* Klantkaart: the name is already the title; the head says since when. */
  #modalRoot .customer-card-head>div>strong{display:none}

  /* Instellingen: you and your plan on top; account deletion lives under Account (the separate Gevaarzone row goes). */
  #mainApp#mainApp .settings-center-group-danger{display:none!important}
  #mainApp#mainApp .settings-profile-card{display:flex;align-items:center;gap:14px;width:100%;margin:0 0 18px;padding:16px;border:1px solid #E4E7EA;border-radius:16px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer}
  #mainApp#mainApp .settings-center[data-view="detail"] .settings-profile-card{display:none}
  #mainApp#mainApp .settings-profile-avatar{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border-radius:50%;background:#ECFAEE;color:#1D6B2B;font-size:17px;font-weight:750}
  #mainApp#mainApp .settings-profile-text{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
  #mainApp#mainApp .settings-profile-text strong{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mainApp#mainApp .settings-profile-text span{font-size:14px;color:#5E6870;overflow-wrap:anywhere}
  #mainApp#mainApp .settings-profile-card::after{content:"";flex:0 0 7px;width:7px;height:7px;border-top:2px solid #B4BAC0;border-right:2px solid #B4BAC0;transform:rotate(45deg)}
  html[data-theme="dark"] #mainApp#mainApp .settings-profile-card{background:#1A1F23;border-color:#2C3338}
  html[data-theme="dark"] #mainApp#mainApp .settings-profile-avatar{background:#1E3324;color:#7FDB8B}
  html[data-theme="dark"] #mainApp#mainApp .settings-profile-text span{color:#AEB8BF}

  /* Factuur maken, step 1: search all customers; "Nieuwe klant" is a green link. */
  :is(#mainApp,#modalRoot) .invoice-customer-search{display:flex;align-items:center;gap:10px;min-height:50px;margin:12px 0 8px;padding:0 14px;border:1px solid #E4E7EA;border-radius:14px;background:#fff}
  :is(#mainApp,#modalRoot) .invoice-customer-search svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#8A949B;stroke-width:2;stroke-linecap:round}
  :is(#mainApp,#modalRoot) .invoice-customer-search input{flex:1 1 auto;min-width:0;height:48px;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;font-size:16px}
  :is(#mainApp,#modalRoot) .invoice-customer-search input:focus{outline:none}
  :is(#mainApp,#modalRoot) .invoice-customer-search:focus-within{border-color:#63D471}
  :is(#mainApp,#modalRoot) .invoice-customer-results:empty{display:none}
  :is(#mainApp,#modalRoot) .invoice-customer-results{display:grid;gap:8px}
  #mainApp#mainApp .mobile-new-customer,#modalRoot#modalRoot .mobile-new-customer{justify-content:flex-start!important;width:auto!important;min-height:44px!important;padding:0 2px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#2F7D3B!important;font-size:16px!important;font-weight:700!important}
  #mainApp#mainApp .mobile-new-customer::before,#modalRoot#modalRoot .mobile-new-customer::before{content:"";width:12px;height:12px;margin-right:8px;background:linear-gradient(currentColor,currentColor) center/12px 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 12px no-repeat}
  :is(#mainApp,#modalRoot) .mobile-invoice-choice.is-selected{border-color:#63D471!important;background:#ECFAEE!important}
  :is(#mainApp,#modalRoot) .invoice-customer-select-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
  :is(#mainApp,#modalRoot) form:not([data-customer-picked]) #customerPreview{display:none}
  :is(#mainApp,#modalRoot) .mobile-invoice-step .invoice-customer-section>.section-head{display:none!important}
  :is(#mainApp,#modalRoot) .mobile-invoice-step .invoice-customer-section{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
  :is(#mainApp,#modalRoot) .invoice-customer-results .mobile-flow-hint{margin:0;font-size:14px;color:#5E6870}
  html[data-theme="dark"] :is(#mainApp,#modalRoot) .invoice-customer-search{background:#1A1F23;border-color:#2C3338}
  html[data-theme="dark"] :is(#mainApp,#modalRoot) .mobile-invoice-choice.is-selected{background:#1E3324!important}
  html[data-theme="dark"] #mainApp#mainApp .mobile-new-customer,html[data-theme="dark"] #modalRoot#modalRoot .mobile-new-customer{color:#7FDB8B!important}
}

/* 16. Active filters: each filter ("Verlopen ×") and "Filters wissen" are the same calm grey pill, on every page and width. */
html body #mainApp#mainApp :is(.list-filter-chip,.list-clear-filters){display:inline-flex!important;align-items:center;gap:6px;height:32px!important;min-height:32px!important;padding:0 12px!important;border:0!important;border-radius:999px!important;background:#EEF0F2!important;box-shadow:none!important;color:#3D454C!important;font-size:12px!important;font-weight:600!important;line-height:1!important;text-decoration:none!important;cursor:pointer}
html body #mainApp#mainApp :is(.list-filter-chip,.list-clear-filters):hover{background:#E4E7EA!important}
html body #mainApp#mainApp :is(.list-filter-chip,.list-clear-filters):focus-visible{outline:2px solid #63D471!important;outline-offset:2px}
html body #mainApp#mainApp .list-filter-chip>span{font-size:14px;line-height:1;color:#5E6870}
html[data-theme="dark"] body #mainApp#mainApp :is(.list-filter-chip,.list-clear-filters){background:#2A3136!important;color:#D5DCE0!important}
html[data-theme="dark"] body #mainApp#mainApp :is(.list-filter-chip,.list-clear-filters):hover{background:#333B41!important}
html[data-theme="dark"] body #mainApp#mainApp .list-filter-chip>span{color:#AEB8BF}
@media(max-width:820px){
  /* 44px to tap, the grey pill itself stays 32px like the quick filters. */
  html body #mainApp#mainApp :is(.list-filter-chip,.list-clear-filters){height:44px!important;min-height:44px!important;border-style:solid!important;border-color:transparent!important;border-width:6px 0!important;background-clip:padding-box!important;font-size:14px!important}
  html[data-theme="dark"] body #mainApp#mainApp :is(.list-filter-chip,.list-clear-filters){border-style:solid!important;border-color:transparent!important;border-width:6px 0!important;background-clip:padding-box!important}
}

/* 17. Kwin 2026-10-09 "te veel tekst": on the phone, sentences that only explain are gone.
   Labels, amounts, statuses, error messages, what a delete does and the VAT line "Boekuna verstuurt deze aangifte niet" stay.
   Instellingen > App > "Extra uitleg tonen" still adds its explanations for whoever turns it on. */
@media(max-width:820px){
  #mainApp#mainApp #content :is(.dashboard-attention,.page-todo)>.section-head p{display:none!important}
  #mainApp#mainApp #content :is(.dashboard-attention-copy,.assistant-insight-copy)>span{display:none!important}
  #mainApp#mainApp #content:is([data-page="income"],[data-page="outgoings"]) .product-page-head .page-status{display:none!important}
  #mainApp#mainApp #content .vat-return-card>.section-head .section-meta,#mainApp#mainApp #content .vat-return-card>.help{display:none!important}
  #mainApp#mainApp #content .settings-center-panel-head p,#mainApp#mainApp #content .settings-hint{display:none!important}
}

/* 18. Kwin 2026-10-10: the same look, calmer and neater on white (phone). Fewer boxes, lines and capitals;
   the tiles keep their small charts. Colours come from the --calm-* tokens so dark mode stays dark. */
@media(max-width:820px){
  :root{--calm-surface:#FFFFFF;--calm-line:#ECEEF0;--calm-hair:#EEF0F2;--calm-soft:#F2F3F5;--calm-ink:#1B1F23;--calm-muted:#667179;--calm-label:#5E6870;--calm-green:#2F7D3B;--calm-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1F23' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
  html[data-theme="dark"]{--calm-surface:var(--dk-surface,#1A1F23);--calm-line:var(--dk-line,#2E363C);--calm-hair:var(--dk-line,#2E363C);--calm-soft:var(--dk-raised,#21272C);--calm-ink:var(--dk-ink,#E9EDEF);--calm-muted:var(--dk-faint,#8C979F);--calm-label:var(--dk-muted,#A7B1B8);--calm-green:var(--dk-green-ink,#7FE08B);--calm-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9EDEF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}

  /* White page (the light theme only; dark stays charcoal) and no line under the top bar. */
  html:not([data-theme="dark"]) body,html:not([data-theme="dark"]) body #mainApp#mainApp,html:not([data-theme="dark"]) body #mainApp#mainApp :is(.main,.content,#appMain,#content,.topbar){background:#FFFFFF!important}
  html body #mainApp#mainApp .topbar{border-bottom:0!important;box-shadow:none!important}
  /* Menu and search: just the icon. */
  html body #mainApp#mainApp .topbar :is(#mobileMenu,#globalSearchButton){border:0!important;background:transparent!important;box-shadow:none!important}

  /* Period: one quiet button next to the title ("Deze maand ⌄"), the phone's own picker; the five buttons stay for wider screens. */
  html body #mainApp#mainApp #content .page-head:has(.period-seg){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important}
  html body #mainApp#mainApp #content .page-head:has(.period-seg)>div:first-child{min-width:0;padding-right:0!important}
  html body #mainApp#mainApp #content .page-head .page-period-slot:has(.period-seg){flex:0 0 auto!important;width:auto!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;gap:2px;margin:4px 0 0!important}
  html body #mainApp#mainApp #content .page-period-stack:has(.period-seg) .page-filter-btn{position:static!important}
  html body #mainApp#mainApp #content .period-seg{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .period-seg .period-seg-btn{display:none!important}
  html body #mainApp#mainApp #content .period-seg .period-seg-select{display:block!important;position:static!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;overflow:visible!important;clip-path:none!important;field-sizing:content;width:auto!important;min-width:0!important;max-width:46vw;height:36px!important;min-height:36px!important;margin:0!important;padding:0 30px 0 14px!important;border:0!important;border-radius:999px!important;background:var(--calm-soft) var(--calm-chevron) right 11px center/13px no-repeat!important;-webkit-appearance:none!important;appearance:none!important;box-shadow:none!important;color:var(--calm-ink)!important;font:inherit!important;font-size:15px!important;font-weight:600!important;line-height:36px!important;text-overflow:ellipsis;cursor:pointer}
  html body #mainApp#mainApp #content .period-seg .period-seg-select:focus-visible{outline:2px solid #63D471!important;outline-offset:2px}

  /* Tiles: a thin light border and rounder corners; the small charts stay (Kwin 2026-10-10). */
  html body #mainApp#mainApp #content :is(.dashboard-kpis .dashboard-kpi,.product-kpis .product-kpi):not(.kpi-hero):not(.dashboard-kpi-profit){border:1px solid var(--calm-line)!important;border-radius:16px!important;background:var(--calm-surface)!important}
  html body #mainApp#mainApp #content :is(.dashboard-kpi-profit,.product-kpi.kpi-hero){border-radius:18px!important}

  /* Nog te doen: no frame, one row per item with a grey arrow; the row itself is the button (its action word stays for screen readers). */
  html body #mainApp#mainApp #content .dashboard-attention{padding:4px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .dashboard-attention>.section-head{display:flex!important;align-items:baseline!important;justify-content:flex-start!important;gap:8px!important;margin:0 0 2px!important;padding:0!important}
  html body #mainApp#mainApp #content .dashboard-attention>.section-head h2{font-size:17px!important;font-weight:650!important}
  html body #mainApp#mainApp #content .dashboard-attention>.section-head .badge{min-width:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;color:var(--calm-muted)!important;font-size:15px!important;font-weight:600!important}
  html body #mainApp#mainApp #content .dashboard-attention-list{gap:0!important}
  html body #mainApp#mainApp #content .dashboard-attention-item,html body #mainApp#mainApp #content .dashboard-attention-item:is(.urgent,.review,.soon){grid-template-columns:8px minmax(0,1fr) 10px!important;align-items:center!important;column-gap:12px!important;min-height:52px!important;padding:12px 2px!important;border:0!important;border-bottom:1px solid var(--calm-hair)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .dashboard-attention-item:last-child{border-bottom:0!important}
  html body #mainApp#mainApp #content .dashboard-attention-item .dashboard-attention-icon{margin-top:0!important;align-self:center!important}
  html body #mainApp#mainApp #content .dashboard-attention-copy strong{font-size:15px!important;font-weight:550!important;color:var(--calm-ink)!important}
  html body #mainApp#mainApp #content .dashboard-attention-cta{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important;font-size:0!important;color:var(--calm-muted)!important}
  html body #mainApp#mainApp #content .dashboard-attention-cta::after{width:7px!important;height:7px!important}

  /* Lists: no frame around the list, thin lines between rows, day headers in normal letters; amounts on Inkomsten in ink (green stays for money in on Bank). */
  html body #mainApp#mainApp #content :is(.card.table-card.workspace-table,.mobile-contacts,.mobile-services){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .mobile-card-group{padding:18px 2px 4px!important;font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--calm-muted)!important}
  html body #mainApp#mainApp #content .mobile-card-group:first-child{padding-top:6px!important}
  html body #mainApp#mainApp #content .mobile-card-list:not(.mobile-doc-grid)>.mobile-card-row{padding:12px 2px!important;border:0!important;border-bottom:1px solid var(--calm-hair)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .mobile-card-list:not(.mobile-doc-grid)>.mobile-card-row:last-child{border-bottom:0!important}
  html body #mainApp#mainApp #content :is(.mobile-contacts,.mobile-services) tbody tr{border-color:var(--calm-hair)!important}
  html body #mainApp#mainApp #content .phone-row-link{padding:12px 2px!important}
  html body #mainApp#mainApp #content[data-page="invoices"] .mobile-card-value.money-positive{color:var(--calm-ink)!important}
  html body #mainApp#mainApp #content .mobile-card-side .badge{padding:0!important;background:transparent!important;border:0!important}
  html body #mainApp#mainApp #content .party-avatar{width:36px!important;height:36px!important;flex-basis:36px!important;font-size:12px!important}

  /* Search: a soft grey field; filter is just the icon; quick filters are words and the chosen one gets a soft pill. */
  html body #mainApp#mainApp #content .list-search-box{border:0!important;background:var(--calm-soft)!important;border-radius:12px!important}
  html body #mainApp#mainApp #content .list-toolbar-actions>.btn:is([data-list-open-filters],[data-list-open-sort]),html body #mainApp#mainApp #content .page-period-stack .page-filter-btn{border:0!important;background:transparent!important;width:40px!important;min-width:40px!important;color:var(--calm-ink)!important}
  html body #mainApp#mainApp #content .list-toolbar-quick .filter-btn{padding:0 12px!important;background:transparent!important;color:var(--calm-label)!important;font-weight:600!important}
  html body #mainApp#mainApp #content .list-toolbar-quick .filter-btn.active{background:var(--calm-soft)!important;background-clip:padding-box!important;color:var(--calm-ink)!important}

  /* Bank: two lines per payment; Koppelen and the bin sit under the amount. */
  html body #mainApp#mainApp #content[data-page="bank"] .mobile-card-row>.mobile-card-main{grid-row:1/3!important}
  html body #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions{grid-column:2!important;grid-row:2!important;justify-content:flex-end!important;gap:2px!important;width:auto!important;margin:-10px -10px -12px 0!important}
  html body #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions>.btn{font-size:14px!important}
  html body #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions>.bank-delete-action{margin-left:0!important;color:var(--calm-muted)!important}
  html body #mainApp#mainApp #content .bank-list-head{padding:6px 2px 2px!important}
  html body #mainApp#mainApp #content .bank-list-title span{display:none!important}

  /* Bonnetjes: uploading goes through Nieuw like on the other pages; no frame around the files. */
  html body #mainApp#mainApp #content[data-page="documents"] :is(.product-page-actions,.page-head .btn.primary){display:none!important}
  html body #mainApp#mainApp #content[data-page="documents"] .documents-workspace{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .mobile-doc-grid>.mobile-card-row{border-color:var(--calm-line)!important;border-radius:16px!important;box-shadow:none!important}

  /* Cards that stay (Rapportages, Btw, Instellingen): a thin light border. */
  html body #mainApp#mainApp #content .card:not(.table-card):not(.dashboard-attention):not(.metric),html body #mainApp#mainApp #content .vat-return-card{border-color:var(--calm-line)!important;box-shadow:none!important}

  /* Bottom bar: no shadow; the open page is a green icon and word (no block or line); + sits in the bar. */
  html body #mobileBottomNav#mobileBottomNav{background:var(--calm-surface)!important;border-top:1px solid var(--calm-hair)!important;box-shadow:none!important}
  html body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item{border-top:0!important;box-shadow:none!important;background:transparent!important;color:var(--calm-muted)!important;font-weight:600!important}
  html body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item :is(.icon,span){color:var(--calm-muted)!important;transition:none!important}
  html body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item:is(.active,[aria-current="page"]){color:var(--calm-green)!important;font-weight:700!important}
  html body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item:is(.active,[aria-current="page"]) :is(.icon,span){color:var(--calm-green)!important;font-weight:700!important}
  html body #mainApp#mainApp .topbar #quickNew{left:calc(50% - 24px)!important;bottom:calc(9px + env(safe-area-inset-bottom))!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border:0!important}
  html body #mainApp#mainApp .topbar #quickNew span{display:none!important}

  /* Nieuw: plain rows with their icon, headings in normal letters. */
  html body #modalRoot#modalRoot .quick-action-modal .quick-action{min-height:60px!important;padding:8px 2px!important;border:0!important;border-bottom:1px solid var(--calm-hair)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body #modalRoot#modalRoot .quick-action-modal .quick-action-grid{gap:0!important}
  html body #modalRoot#modalRoot .quick-action-modal .quick-action-grid>.quick-action:last-child{border-bottom:0!important}
  html body #modalRoot#modalRoot .quick-action-modal .quick-action-heading{margin:6px 0 0!important;font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--calm-muted)!important}
  html body #modalRoot#modalRoot .quick-action-modal .quick-action-group+.quick-action-group{margin-top:10px!important;padding-top:0!important;border-top:0!important}
  html body #modalRoot#modalRoot .quick-action-modal .modal-head{border-bottom:0!important}
  /* Pop-ups: labels and small headings in normal letters. */
  html body #modalRoot#modalRoot .modal-body :is(label,legend,h3):not(.invoice-customer-select-sr){text-transform:none!important;letter-spacing:0!important}
  html body #modalRoot#modalRoot .modal-body :is(.field>label,fieldset>legend){font-size:14px!important;font-weight:600!important;color:var(--calm-label)!important}

  /* Menu: words with their icon, no arrows; the open page is green on soft green, without the side line. */
  html body #mainApp#mainApp .sidebar .nav-item::after{display:none!important}
  html body #mainApp#mainApp .sidebar .nav-item.active{border-left:0!important;box-shadow:none!important;border-radius:12px!important;color:var(--calm-green)!important}
  html body #mainApp#mainApp .sidebar .nav-item.active svg{color:var(--calm-green)!important}

  /* Instellingen: group names in normal letters; nothing looks selected on the list itself. */
  html body #mainApp#mainApp .settings-center-group-label{font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--calm-muted)!important}
  html body #mainApp#mainApp .settings-center[data-view="index"] .settings-center-row[aria-current="true"]{background:transparent!important}
}

/* 19. Kwin 2026-10-10 "makkelijker": fewer taps and clearer words. The table header for older open invoices shows at every width;
   the rest is the phone (Nieuw tiles, bank proposal, invoice lines, Betaald, relation form, start card). */
#mainApp .table-group-row th{padding:18px 12px 8px!important;background:transparent!important;border-bottom:1px solid #ECEEF0!important;text-align:left;font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:#5E6870!important}
html[data-theme="dark"] #mainApp .table-group-row th{border-bottom-color:var(--dk-line,#2E363C)!important;color:var(--dk-muted,#A7B1B8)!important}
#mainApp .kpi-next{color:var(--app-muted-strong,#5E6870)}
html[data-theme="dark"] #mainApp :is(.kpi-next,.kpi-deadline){color:var(--dk-muted,#A7B1B8)}
@media(min-width:821px){
  #modalRoot :is(.payment-amount-text,.payment-part-link,.contact-type-pills){display:none!important}
}
@media(max-width:820px){
  /* Nieuw: the three daily actions as big tiles; everything else folds under Meer. */
  html body #modalRoot#modalRoot .quick-action-modal .quick-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:2px 0 10px}
  html body #modalRoot#modalRoot .quick-action-modal .quick-tiles>.quick-action.quick-tile{flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:112px!important;padding:14px 6px!important;border:1px solid var(--calm-line)!important;border-radius:16px!important;background:var(--calm-surface)!important;text-align:center!important}
  html body #modalRoot#modalRoot .quick-tile .quick-action-icon{width:44px;height:44px;flex:0 0 44px;border-radius:14px;background:#ECFAEE;color:#2E8B3D}
  html body #modalRoot#modalRoot .quick-tile .quick-action-icon .icon{width:22px;height:22px}
  html body #modalRoot#modalRoot .quick-tile .quick-action-text{align-items:center}
  html body #modalRoot#modalRoot .quick-tile .quick-action-text strong{font-size:15px}
  html body #modalRoot#modalRoot .quick-tile .quick-action-text span{font-size:13px;line-height:1.25}
  html[data-theme="dark"] body #modalRoot#modalRoot .quick-tile .quick-action-icon{background:#1E3324;color:#7FDB8B}
  html body #modalRoot#modalRoot .quick-more{border-top:1px solid var(--calm-hair)}
  html body #modalRoot#modalRoot .quick-more>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:6px 2px;list-style:none;cursor:pointer}
  html body #modalRoot#modalRoot .quick-more>summary::-webkit-details-marker{display:none}
  html body #modalRoot#modalRoot .quick-more>summary::after{content:"";flex:0 0 14px;width:14px;height:14px;background:var(--calm-chevron) center/14px no-repeat;transition:transform .2s ease}
  html body #modalRoot#modalRoot .quick-more[open]>summary::after{transform:rotate(180deg)}
  html body #modalRoot#modalRoot .quick-more>summary:focus-visible{outline:2px solid #63D471;outline-offset:2px;border-radius:10px}
  html body #modalRoot#modalRoot .quick-more-text{display:flex;flex-direction:column;gap:2px;min-width:0}
  html body #modalRoot#modalRoot .quick-more-text strong{font-size:15px;color:var(--calm-ink)}
  html body #modalRoot#modalRoot .quick-more-text span{font-size:13px;color:var(--calm-muted)}

  /* Bank: what Boekuna found stands under the payment, green when it is one clear match; Klopt is the green pill. */
  html body #mainApp#mainApp #content .mobile-bank-proposal{display:block;margin-top:3px;font-size:13px;font-weight:600;line-height:1.35;color:var(--calm-muted);overflow-wrap:anywhere}
  html body #mainApp#mainApp #content .mobile-bank-proposal.is-match{color:var(--calm-green)}
  html body #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions>.btn.mobile-bank-confirm{min-height:36px!important;height:36px!important;padding:0 16px!important;border:0!important;border-radius:999px!important;background:#63D471!important;background-clip:padding-box!important;box-shadow:none!important;color:#10331A!important;font-weight:700!important}
  html body #mainApp#mainApp #content[data-page="bank"] .mobile-card-actions>.btn.mobile-bank-confirm::after{display:none!important}

  /* Factuur maken: Aantal and Prijs side by side; "+ Nog een regel" is a green link under the lines; the real number gets a small note. */
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item{grid-template-columns:minmax(76px,.42fr) minmax(0,1fr)!important;grid-auto-flow:row dense!important}
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item .field:has([data-k="qty"]){grid-column:1!important}
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item .field:has([data-k="unit"]){grid-column:2!important}
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item .field:has([data-k="vat"]){grid-column:1/-1!important}
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item>.icon-btn{grid-column:2!important;justify-self:end!important}
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item>.line-save-service{grid-column:1!important;align-self:center;justify-self:start}
  html body #modalRoot#modalRoot .mobile-invoice-add-line{display:inline-flex!important;align-items:center;justify-content:flex-start!important;width:auto!important;min-height:44px!important;margin:4px 0 0!important;padding:0 2px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#2F7D3B!important;font-size:16px!important;font-weight:700!important}
  html[data-theme="dark"] body #modalRoot#modalRoot .mobile-invoice-add-line{color:#7FDB8B!important}
  html body #modalRoot#modalRoot .mobile-invoice-summary-value{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
  html body #modalRoot#modalRoot .mobile-invoice-summary-value small{font-size:12px;font-weight:500;color:var(--calm-muted)}

  /* Betaald: the amount as text ("€ 459,80 · alles"); "Een deel betaald?" opens the field. */
  html body #modalRoot#modalRoot #paymentForm .payment-amount-text{margin:2px 0 0;font-size:17px;color:var(--calm-muted)}
  html body #modalRoot#modalRoot #paymentForm .payment-amount-text strong{color:var(--calm-ink);font-weight:700}
  html body #modalRoot#modalRoot #paymentForm .payment-part-link{display:inline-flex!important;align-items:center;justify-content:flex-start!important;align-self:flex-start;width:auto!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--calm-green)!important;font-size:15px!important;font-weight:600!important;text-decoration:none!important}
  html body #modalRoot#modalRoot #paymentForm:not(.is-part) :is(.payment-share,#paymentAmount){display:none!important}
  html body #modalRoot#modalRoot #paymentForm.is-part :is(.payment-amount-text,.payment-part-link){display:none!important}
  html body #modalRoot#modalRoot #paymentForm .field:has(#paymentAmount)>.help{display:none!important}

  /* Relatie: Klant / Leverancier as two pills; Postcode and Plaats on one row. */
  html body #modalRoot#modalRoot #contactForm .contact-type-field select{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
  html body #modalRoot#modalRoot #contactForm .contact-type-pills{display:flex;gap:4px;padding:3px;border-radius:12px;background:var(--calm-soft)}
  html body #modalRoot#modalRoot #contactForm .contact-type-pill{flex:1 1 0;height:42px;border:0;border-radius:9px;background:transparent;color:var(--calm-label);font:inherit;font-size:15px;font-weight:650;cursor:pointer}
  html body #modalRoot#modalRoot #contactForm .contact-type-pill.on{background:var(--calm-surface);color:var(--calm-ink);box-shadow:inset 0 0 0 1px var(--calm-line)}
  html body #modalRoot#modalRoot #contactForm .contact-type-pill:focus-visible{outline:2px solid #63D471;outline-offset:1px}
  html body #modalRoot#modalRoot #contactForm.form-grid{grid-template-columns:minmax(0,2fr) minmax(0,3fr)!important}
  html body #modalRoot#modalRoot #contactForm.form-grid>*{grid-column:1/-1!important}
  html body #modalRoot#modalRoot #contactForm.form-grid>.field:has(#contactPostal){grid-column:1!important}
  html body #modalRoot#modalRoot #contactForm.form-grid>.field:has(#contactCity){grid-column:2!important}

  /* Empty account: "Zo begin je" in three steps instead of tiles full of zeros. */
  html body #mainApp#mainApp #content .dashboard-start{margin:14px 0 0!important;padding:18px 18px 6px!important;border:1px solid var(--calm-line)!important;border-radius:18px!important;background:var(--calm-surface)!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .dashboard-start h2{margin:0 0 4px;font-size:20px;color:var(--calm-ink)}
  html body #mainApp#mainApp #content .dashboard-start>p{margin:0 0 6px;font-size:14px;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .dashboard-start-steps{margin:0;padding:0;list-style:none}
  html body #mainApp#mainApp #content .dashboard-start-step{border-top:1px solid var(--calm-hair)}
  html body #mainApp#mainApp #content :is(.dashboard-start-step:not(:has(.dashboard-start-row)),.dashboard-start-row){display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 0}
  html body #mainApp#mainApp #content .dashboard-start-row{border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
  html body #mainApp#mainApp #content .dashboard-start-row:focus-visible{outline:2px solid #63D471;outline-offset:2px;border-radius:12px}
  html body #mainApp#mainApp #content .dashboard-start-num{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--calm-soft);color:var(--calm-ink);font-weight:700}
  html body #mainApp#mainApp #content .dashboard-start-num.is-done{background:#E5F5E8;color:#2F7D3B}
  html[data-theme="dark"] body #mainApp#mainApp #content .dashboard-start-num.is-done{background:#1E3324;color:#7FDB8B}
  html body #mainApp#mainApp #content .dashboard-start-text{min-width:0}
  html body #mainApp#mainApp #content .dashboard-start-text strong{display:block;font-size:16px;color:var(--calm-ink)}
  html body #mainApp#mainApp #content .dashboard-start-text span{display:block;font-size:14px;line-height:1.35;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .dashboard-start-go{width:8px;height:8px;margin-right:4px;border-right:2px solid var(--calm-muted);border-bottom:2px solid var(--calm-muted);transform:rotate(-45deg)}
  html body #mainApp#mainApp #content .dashboard-start-btn{min-height:40px!important;padding:0 16px!important;border-radius:999px!important}
}
@media(prefers-reduced-motion:reduce){#modalRoot .quick-more>summary::after{transition:none!important}}

/* 20. Kwin 2026-10-10 "verfijnen": the same look, a few words and steps fewer (phone). Nothing is removed, only folded. */
@media(min-width:821px){
  #modalRoot :is(.payment-method-text,.expense-memory){display:none!important}
}
@media(max-width:820px){
  /* Kosten toevoegen: at a shop you know, btw and category are one row ("Net als vorige keer bij NS") with Wijzigen. */
  html body #modalRoot#modalRoot #expenseForm.has-memory>:is(fieldset.choice-group,.expense-category-field){display:none!important}
  html body #modalRoot#modalRoot .expense-memory{grid-column:1/-1!important}
  html body #modalRoot#modalRoot .expense-memory-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:12px 16px;border:1px solid var(--calm-line);border-radius:14px;background:var(--calm-surface)}
  html body #modalRoot#modalRoot .expense-memory-text{display:grid;gap:2px;min-width:0}
  html body #modalRoot#modalRoot .expense-memory-text strong{font-size:16px;color:var(--calm-ink)}
  html body #modalRoot#modalRoot .expense-memory-text span{font-size:14px;color:var(--calm-muted)}
  html body #modalRoot#modalRoot .expense-memory-change{flex:0 0 auto;min-height:44px!important;margin:0!important;padding:0 2px!important;border:0!important;background:transparent!important;color:#2F7D3B!important;font-weight:700!important;font-size:15px!important;white-space:nowrap}
  html[data-theme="dark"] body #modalRoot#modalRoot .expense-memory-change{color:#7FDB8B!important}
  /* Kosten bekijken: the Bon row is a green link ("Geen bon · toevoegen"). */
  html body #modalRoot#modalRoot .expense-receipt-link{display:inline!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#2F7D3B!important;font:inherit!important;font-weight:700!important}
  html[data-theme="dark"] body #modalRoot#modalRoot .expense-receipt-link{color:#7FDB8B!important}
  /* Factuur maken, step 2: the services sit on the white page; one line has no ×; Bewaar als dienst waits for a description. */
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .invoice-service-picker{margin:0 0 6px!important;padding:0!important;border:0!important;background:transparent!important}
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item:only-child>.icon-btn{display:none!important}
  html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] #invoiceLines .line-item:not(.has-desc)>.line-save-service{display:none!important}
  /* Betaald: Vandaag / Gisteren / Andere dag like Kosten; the method is one line until "Anders betaald?". */
  html body #modalRoot#modalRoot #paymentForm .payment-method-group:not(.is-open) .choice-chips{display:none!important}
  html body #modalRoot#modalRoot #paymentForm .payment-method-group.is-open .payment-method-text{display:none!important}
  html body #modalRoot#modalRoot #paymentForm .payment-method-text{margin:2px 0 0;font-size:17px;color:var(--calm-muted)}
  html body #modalRoot#modalRoot #paymentForm .payment-method-text strong{color:var(--calm-ink);font-weight:700}
  html body #modalRoot#modalRoot #paymentForm .payment-method-link{display:inline!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#2F7D3B!important;font:inherit!important;font-weight:700!important}
  html[data-theme="dark"] body #modalRoot#modalRoot #paymentForm .payment-method-link{color:#7FDB8B!important}
  /* Rapportages: eight more blocks with small charts (Kwin 2026-10-10). Colours: omzet green, kosten red, winst blue, btw purple. */
  html body #mainApp#mainApp #content .report-extra-card .section-head{margin-bottom:8px}
  html body #mainApp#mainApp #content .report-duo{margin:4px 0 10px}
  html body #mainApp#mainApp #content .report-duo .total-line{padding:4px 0}
  html body #mainApp#mainApp #content .report-duo-change{font-size:13px;font-weight:600;margin-left:4px}
  html body #mainApp#mainApp #content .report-duo-change.up{color:#2F7D3B}
  html body #mainApp#mainApp #content .report-duo-change.down{color:#B42318}
  html body #mainApp#mainApp #content .report-duo-bars{display:grid;gap:4px}
  html body #mainApp#mainApp #content .report-duo-bar{display:block;height:10px;width:var(--w,0%);min-width:2px;border-radius:5px;background:var(--c,#63D471)}
  html body #mainApp#mainApp #content .report-duo-bar.is-prev{height:6px;background:#D5DAE0}
  html body #mainApp#mainApp #content .report-duo-prev{margin-top:4px;font-size:13px;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .report-duo-legend{margin-top:4px}
  html body #mainApp#mainApp #content .report-dot-now{background:#1B1F23!important}
  html body #mainApp#mainApp #content .report-dot-prev{background:#D5DAE0!important}
  html body #mainApp#mainApp #content .report-vbars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;align-items:end;height:150px;margin:6px 0 8px}
  html body #mainApp#mainApp #content .report-vbar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0;height:100%}
  html body #mainApp#mainApp #content .report-vbar-value{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--calm-ink);white-space:nowrap}
  html body #mainApp#mainApp #content .report-vbar-col{display:block;width:100%;height:var(--h,0%);min-height:3px;border-radius:6px 6px 2px 2px;background:var(--c,#63D471)}
  html body #mainApp#mainApp #content .report-vbar.is-soft .report-vbar-col{opacity:.45}
  html body #mainApp#mainApp #content .report-vbar-label{display:grid;justify-items:center;font-size:12px;color:var(--calm-muted);line-height:1.2;text-align:center}
  html body #mainApp#mainApp #content .report-vbar-label small{font-size:10px}
  html body #mainApp#mainApp #content .report-stack{display:flex;gap:2px;height:12px;margin:6px 0 10px;border-radius:6px;overflow:hidden;background:var(--calm-soft)}
  html body #mainApp#mainApp #content .report-stack span{display:block;width:var(--w,0%);background:var(--c,#63D471)}
  html body #mainApp#mainApp #content .report-legend{display:grid;gap:6px;margin-bottom:6px}
  html body #mainApp#mainApp #content .report-legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:14px;color:var(--calm-ink)}
  html body #mainApp#mainApp #content .report-legend-row.is-empty{color:var(--calm-muted)}
  html body #mainApp#mainApp #content .report-legend-row i{width:10px;height:10px;border-radius:50%;background:var(--c,#63D471)}
  html body #mainApp#mainApp #content .report-legend-row.is-empty i{opacity:.35}
  html body #mainApp#mainApp #content .report-legend-row strong{font-variant-numeric:tabular-nums;font-weight:600}
  html body #mainApp#mainApp #content .report-legend-row small,html body #mainApp#mainApp #content .report-open-customers small{font-size:12px;font-weight:500;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .report-open-customers{margin-top:6px;padding-top:6px;border-top:1px solid var(--calm-hair)}
  html body #mainApp#mainApp #content .report-balance{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 10px}
  html body #mainApp#mainApp #content .report-balance>div{display:grid;gap:6px;min-width:0}
  html body #mainApp#mainApp #content .report-extra-card :is(strong,.report-vbar-value,.report-legend-row){min-width:0;overflow-wrap:anywhere}
  html body #mainApp#mainApp #content .report-balance-label{font-size:13px;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .report-balance-bar{display:block;height:12px;width:var(--w,0%);min-width:6px;border-radius:6px;background:var(--c,#63D471)}
  html body #mainApp#mainApp #content .report-balance strong{font-size:17px;font-variant-numeric:tabular-nums;color:var(--calm-ink);overflow-wrap:anywhere}
  html body #mainApp#mainApp #content .report-hbar{margin:6px 0}
  html body #mainApp#mainApp #content .report-hbar .total-line{padding:3px 0}
  html body #mainApp#mainApp #content .report-hbar.is-grand .total-line{font-weight:700;font-size:16px}
  html body #mainApp#mainApp #content .report-hbar-track{display:block;height:8px;border-radius:4px;background:var(--calm-soft);overflow:hidden}
  html body #mainApp#mainApp #content .report-hbar-track i{display:block;height:100%;width:var(--w,0%);border-radius:4px;background:#3B82F6}
  html body #mainApp#mainApp #content .report-hbar.is-muted .report-hbar-track i{background:#CBD2D8}
  html body #mainApp#mainApp #content .report-month-table{width:100%;margin-top:10px;border-collapse:collapse;table-layout:fixed;font-size:13px;font-variant-numeric:tabular-nums}
  html body #mainApp#mainApp #content .report-month-table th:first-child{width:3.2em}
  html body #mainApp#mainApp #content .report-month-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body #mainApp#mainApp #content .report-extra-card>.help{margin:8px 0 0;font-size:12px;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .report-month-table th{padding:6px 0;font-size:12px;font-weight:600;color:var(--calm-muted);text-align:right;text-transform:none;letter-spacing:0;border-bottom:1px solid var(--calm-hair)}
  html body #mainApp#mainApp #content .report-month-table th:first-child,html body #mainApp#mainApp #content .report-month-table td:first-child{text-align:left}
  html body #mainApp#mainApp #content .report-month-table td{padding:8px 0;text-align:right;border-top:1px solid var(--calm-hair);color:var(--calm-ink)}
  html body #mainApp#mainApp #content .report-month-table td.is-cost{color:#B42318}
  html body #mainApp#mainApp #content .report-month-table td.is-profit{font-weight:700}
  html body #mainApp#mainApp #content .report-share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
  html[data-theme="dark"] body #mainApp#mainApp #content :is(.report-duo-bar.is-prev,.report-dot-prev){background:#3A434A!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .report-dot-now{background:#7FDB8B!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .report-hbar.is-muted .report-hbar-track i{background:#4A545C}
  html[data-theme="dark"] body #mainApp#mainApp #content :is(.report-duo-change.up){color:#7FDB8B}
  html[data-theme="dark"] body #mainApp#mainApp #content :is(.report-duo-change.down,.report-month-table td.is-cost){color:#F28B82}
}

/* 21. Kwin 2026-10-17 "minder keuzes" (Hick): fewer options at once on the phone; the rest is one tap further. */
@media(max-width:820px){
  html body #mainApp#mainApp .dashboard-attention:not(.show-all) .dashboard-attention-item.is-extra{display:none!important}
  html body #mainApp#mainApp #content .dashboard-attention-more{align-self:center;margin:6px auto 0;padding:10px 12px;border:0;background:transparent;color:var(--calm-green)!important;font:inherit;font-size:16px;font-weight:600;text-decoration:none!important;cursor:pointer}
  html body #modalRoot#modalRoot .choice-chips:not(.show-more) .choice-chip.is-more{display:none!important}
  html body #modalRoot#modalRoot .choice-chip-more{border:0;background:transparent;font:inherit;cursor:pointer;color:inherit}
  html body #modalRoot#modalRoot .choice-chip-more:focus-visible span{outline:3px solid var(--app-focus,#2E7D3A);outline-offset:2px}
}

/* 22. Kwin 2026-10-21 "alle schermen moderner" (picks from the keuzepagina, phone only). Same white look; calmer and on one level. */
@media(max-width:820px){
  /* Nieuw (A): a sheet from the bottom with three big tiles and plain rows under them; no "Meer" fold. */
  html body #modalRoot#modalRoot .modal-backdrop.quick-action-backdrop{align-items:flex-end!important;padding:0!important}
  html body #modalRoot#modalRoot .modal.quick-action-modal{width:100%!important;max-width:none!important;max-height:88dvh!important;border:0!important;border-radius:24px 24px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px)}
  html body #modalRoot#modalRoot .quick-action-modal .quick-tiles{margin:0 0 6px}
  html body #modalRoot#modalRoot .quick-action-modal .quick-tiles>.quick-action.quick-tile{min-height:96px!important;border:0!important;background:#F0FAF1!important}
  html body #modalRoot#modalRoot .quick-tile .quick-action-icon{background:transparent;width:32px;height:32px;flex-basis:32px}
  html body #modalRoot#modalRoot .quick-tile .quick-action-icon .icon{width:28px;height:28px}
  html body #modalRoot#modalRoot .quick-tile .quick-action-text strong{font-size:14.5px}
  html body #modalRoot#modalRoot .quick-rows .quick-action{min-height:54px!important}
  html body #modalRoot#modalRoot .quick-rows .quick-action-icon{width:36px;height:36px;flex:0 0 36px;border-radius:11px;background:var(--calm-soft,#F3F5F6)!important;color:var(--calm-ink)!important}
  html body #modalRoot#modalRoot .quick-rows .quick-action-text span:empty{display:none}
  html[data-theme="dark"] body #modalRoot#modalRoot .quick-action-modal .quick-tiles>.quick-action.quick-tile{background:#1E3324!important}
  html[data-theme="dark"] body #modalRoot#modalRoot .quick-rows .quick-action-icon{background:#232A2E!important}
  /* Diensten (A): price big on the right with "per uur" under it; one "+ Dienst toevoegen" row at the end. */
  html body #mainApp#mainApp #content .phone-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:1px;flex:0 0 auto}
  html body #mainApp#mainApp #content .phone-row-side .phone-row-amount{font-size:16px;font-weight:650}
  html body #mainApp#mainApp #content .phone-row-unit{font-size:12.5px;color:var(--calm-muted);white-space:nowrap}
  html body #mainApp#mainApp #content .phone-row-link:has(.phone-row-side)::after{display:none}
  html body #mainApp#mainApp #content .phone-add-row{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 2px;border:0;background:transparent;color:var(--calm-green);font:inherit;font-size:16px;font-weight:600;cursor:pointer}
  html body #mainApp#mainApp #content .phone-add-row .icon{width:20px;height:20px}
  /* Ritten (A): km and the deductible amount side by side; each trip with a car icon, route, purpose and date. */
  html body #mainApp#mainApp #content .trip-duo{display:grid;grid-template-columns:1fr 1fr;background:var(--app-blue-soft,#EEF4FE);border-radius:20px}
  html body #mainApp#mainApp #content .trip-duo>div{display:flex;flex-direction:column;gap:4px;padding:16px 18px}
  html body #mainApp#mainApp #content .trip-duo>div+div{border-left:1px solid rgba(59,130,246,.14)}
  html body #mainApp#mainApp #content .trip-duo span{font-size:14px;font-weight:600;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .trip-duo strong{font-size:24px;letter-spacing:-.02em;color:var(--calm-ink)}
  html body #mainApp#mainApp #content .trip-duo strong.metric-value{font-size:24px!important;line-height:1.2!important}
  html body #mainApp#mainApp #content .trip-rate{margin:-4px 0 4px;font-size:13px;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .trip-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#E9F7EC;color:#2E8B3D}
  html body #mainApp#mainApp #content .trip-icon .icon{width:20px;height:20px}
  html[data-theme="dark"] body #mainApp#mainApp #content .trip-duo{background:#1B2638}
  html[data-theme="dark"] body #mainApp#mainApp #content .trip-icon{background:#1E3324;color:#7FDB8B}
  /* Relaties (A): A-Z letters, the open amount in amber (late in red). */
  html body #mainApp#mainApp #content .contact-letter-row td{display:block!important;text-align:left!important;padding:14px 2px 2px!important;border:0!important;font-size:13.5px;font-weight:700;color:var(--calm-green);background:transparent!important}
  html body #mainApp#mainApp #content .mobile-contacts tr.contact-letter-row{display:block!important;border:0!important;box-shadow:none!important;background:transparent!important;min-height:0!important;padding:0!important;margin:0!important}
  html body #mainApp#mainApp #content .phone-row-amount.is-open{color:#A86412}
  html body #mainApp#mainApp #content .phone-row-amount.is-late{color:#C2392F}
  html[data-theme="dark"] body #mainApp#mainApp #content .phone-row-amount.is-open{color:#F2B640}
  html[data-theme="dark"] body #mainApp#mainApp #content .phone-row-amount.is-late{color:#F28B82}
  /* Klantkaart (A): a full page with the name in the middle and three actions. */
  html body #modalRoot#modalRoot .modal-backdrop.customer-page-backdrop{padding:0!important;align-items:stretch!important}
  html body #modalRoot#modalRoot .modal.customer-page{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important;border:0!important}
  html body #modalRoot#modalRoot .customer-page .modal-head{border:0!important;padding-top:calc(10px + env(safe-area-inset-top,0px))!important}
  html body #modalRoot#modalRoot .customer-page .modal-head h3{visibility:hidden}
  html body #modalRoot#modalRoot .customer-page .modal-body{flex:1 1 auto!important;overflow:auto}
  html body #modalRoot#modalRoot .customer-page .modal-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
  html body #modalRoot#modalRoot .customer-page .customer-card-head{flex-direction:column;text-align:center;gap:8px}
  html body #modalRoot#modalRoot .customer-page .customer-card-head .party-avatar{width:76px;height:76px;flex-basis:76px;font-size:26px}
  html body #modalRoot#modalRoot .customer-page .customer-card-head>div>strong{display:block!important;font-size:24px;letter-spacing:-.02em}
  html body #modalRoot#modalRoot .customer-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
  html body #modalRoot#modalRoot .customer-quick-action{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:64px;justify-content:center;border-radius:14px;background:var(--calm-soft);color:var(--calm-green);font-size:13.5px;font-weight:600;text-decoration:none}
  html body #modalRoot#modalRoot .customer-quick-action .icon{width:22px;height:22px}
  html body #modalRoot#modalRoot .customer-quick-action.is-off{color:var(--calm-muted)}
  /* Bonnen (A): three paper tiles per row with shop and amount; an amber dot when something needs a check. "Klaar" is not repeated. */
  html body #mainApp#mainApp #content .mobile-card-list.mobile-doc-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px 10px!important}
  html body #mainApp#mainApp #content .mobile-doc-grid>.mobile-card-row{position:relative;border:0!important;background:transparent!important;padding:0!important;gap:2px!important;box-shadow:none!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .doc-thumb{height:auto!important;aspect-ratio:3/4;margin:0 0 6px!important;border:1px solid var(--calm-line);border-radius:12px!important;background:#FAFAF7!important;color:#B9BDB4!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .doc-thumb .icon{width:24px!important;height:24px!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-title{font-size:14px!important;font-weight:600!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-metadata{display:none!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side{display:flex!important;align-items:center;justify-content:flex-start!important;gap:4px}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side .badge::before{display:none!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side .mobile-card-value{font-size:13px!important;font-weight:500!important;color:var(--calm-muted)!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side .badge.good{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side .badge:not(.good){position:absolute;top:8px;left:8px;width:10px;height:10px;min-height:0!important;padding:0!important;border:0!important;border-radius:50%!important;overflow:hidden;font-size:0!important;color:transparent!important;background:#E0A030!important;box-shadow:0 0 0 2px #fff}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side .badge.bad{background:#E5534B!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side .badge.info{background:#3B82F6!important}
  html body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side :is(.icon-btn,.row-action-trigger){position:absolute;top:2px;right:2px;width:30px!important;height:30px!important;min-height:30px!important;background:transparent!important;color:#9AA3A9!important}
  html body #mainApp#mainApp #content .documents-workspace .section-head{display:none!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .mobile-doc-grid .doc-thumb{background:#262B2F!important;color:#7D878E!important}
  :is(html,html[data-theme="dark"]) body #mainApp#mainApp #content .mobile-doc-grid .doc-thumb.has-logo{background:transparent!important;border-color:transparent!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .mobile-doc-grid .mobile-card-side .badge:not(.good){box-shadow:0 0 0 2px #262B2F}
  /* Zoeken (A): the whole screen, chips per kind, recent searches, the found word marked. */
  html body #modalRoot#modalRoot .modal-backdrop.global-search-backdrop{padding:0!important;align-items:stretch!important}
  html body #modalRoot#modalRoot .modal.global-search-page{width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important;border:0!important;display:flex!important;flex-direction:column!important}
  html body #modalRoot#modalRoot .global-search-page .modal-head{border:0!important;padding-top:calc(8px + env(safe-area-inset-top,0px))!important}
  html body #modalRoot#modalRoot .global-search-page .modal-body{flex:1 1 auto!important;overflow:auto}
  html body #modalRoot#modalRoot .global-search-page #globalSearchInput{width:100%;height:48px;border:0!important;border-radius:14px!important;background:var(--calm-soft)!important;padding:0 14px!important;font-size:17px!important;box-shadow:none!important}
  html body #modalRoot#modalRoot .global-search-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:12px -2px 6px;padding:0 2px}
  html body #modalRoot#modalRoot .global-search-chips button{flex:none;min-height:36px;padding:0 14px;border:1px solid var(--calm-line);border-radius:999px;background:transparent;color:var(--calm-muted);font:inherit;font-size:14.5px;font-weight:500;cursor:pointer}
  html body #modalRoot#modalRoot .global-search-chips button[aria-pressed="true"]{background:var(--calm-ink);border-color:var(--calm-ink);color:var(--calm-surface)}
  html body #modalRoot#modalRoot .global-search-page mark{background:#FFF0B3;color:inherit;border-radius:3px}
  html[data-theme="dark"] body #modalRoot#modalRoot .global-search-page mark{background:#5A4A12}
  /* Filters (A): no sheet; each filter is a chip in the quick-filter row. A chosen filter turns green. */
  html body #mainApp#mainApp #content .list-chip-row{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto;scrollbar-width:none;margin-top:10px}
  html body #mainApp#mainApp #content .list-chip-row::-webkit-scrollbar{display:none}
  html body #mainApp#mainApp #content .list-chip-gap{flex:0 0 1px;align-self:stretch;margin:6px 2px;background:var(--calm-line)}
  html body #mainApp#mainApp #content .list-chip-select{position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 30px 0 14px;border:1px solid var(--calm-line);border-radius:999px;background:transparent var(--calm-chevron) right 11px center/12px no-repeat;color:var(--calm-ink);font-size:14.5px;font-weight:500;white-space:nowrap;cursor:pointer}
  html body #mainApp#mainApp #content .list-chip-select.is-on{border-color:transparent;background-color:#E3F4E6;color:#1F7A33;font-weight:600}
  html body #mainApp#mainApp #content .list-chip-row .list-chip-on{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px!important;padding:0 12px 0 14px!important;margin:0!important;border:0!important;border-radius:999px!important;background:#E3F4E6!important;color:#1F7A33!important;font:inherit;font-size:15px!important;font-weight:600!important;white-space:nowrap}
  html body #mainApp#mainApp #content .list-chip-row .list-chip-more,html body #mainApp#mainApp #content .list-chip-row .list-chip-clear{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px!important;padding:0 14px!important;margin:0!important;border:1px solid var(--calm-line)!important;border-radius:999px!important;background:transparent!important;color:inherit!important;font:inherit;font-size:15px!important;font-weight:500!important;white-space:nowrap;text-decoration:none!important}
  html body #mainApp#mainApp #content .list-chip-row .list-chip-clear{border-color:transparent!important;color:var(--calm-muted,#6B7280)!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .list-chip-row .list-chip-on{background:#16301D!important;color:#7FDB8B!important}
  html body #mainApp#mainApp #content .list-chip-select select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
  html body #mainApp#mainApp #content .list-chip-select:focus-within{outline:2px solid #63D471;outline-offset:2px}
  html body #mainApp#mainApp #content .list-toolbar-chips .list-toolbar-main{display:flex!important;width:100%}
  html body #mainApp#mainApp #content .list-toolbar-chips .list-search-box{flex:1 1 auto!important;width:100%!important;max-width:none!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .list-chip-select.is-on{background-color:#1E3324;color:#7FDB8B}

/* Bon scannen A: the review as tidy rows (step 1) and one big amount with chips (step 2). Same fields, same checks. */
#modalRoot .two-step-review .review-wizard-head .review-kicker{display:none}
#modalRoot .two-step-review .review-page-copy{display:none}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid{display:block;border:1px solid var(--line,#E6E8EB);border-radius:16px;padding:0 14px;background:var(--surface,#fff)}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field{display:flex;align-items:center;gap:12px;min-height:52px;margin:0;padding:4px 0;border-bottom:1px solid var(--line,#EEF0F2)}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field:last-child{border-bottom:0}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field>label{flex:0 0 auto;margin:0;font-size:15px;font-weight:500;color:var(--muted,#6B7280)}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field>input,
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field>select{flex:1 1 auto;min-width:0;border:0;background-color:transparent;box-shadow:none;text-align:right;text-align-last:right;font-size:16px;font-weight:600;padding:8px 0;min-height:44px}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field>select{padding-right:22px;background-position:right 2px center}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field>input::-webkit-date-and-time-value{text-align:right}
#modalRoot .two-step-review [data-review-page="1"] .review-wizard-grid>.field>.help{display:none}
#modalRoot .two-step-review [data-review-page="2"] [data-review-field="reviewAmount"]{text-align:center;background:var(--soft,#F5F6F7);border-radius:18px;padding:16px 14px 6px;margin-bottom:0}
#modalRoot .two-step-review [data-review-page="2"] [data-review-field="reviewAmount"]>label{display:block;text-align:center;font-size:14px;font-weight:500;color:var(--muted,#6B7280);margin:0}
#modalRoot .two-step-review #pdfImportAmount{border:0;background:transparent;box-shadow:none;text-align:center;font-size:36px;font-weight:700;letter-spacing:-.02em;min-height:56px;padding:0}
#modalRoot .two-step-review [data-review-field="amountBasis"]{background:var(--soft,#F5F6F7);border-radius:0 0 18px 18px;margin-top:-14px;padding:0 14px 14px}
#modalRoot .two-step-review .review-basis-choice{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#E9EBEE;border-radius:12px;padding:3px}
#modalRoot .two-step-review .review-basis-choice .review-choice{border:0;background:transparent;border-radius:10px;min-height:38px;display:flex;align-items:center;justify-content:center;padding:0}
#modalRoot .two-step-review .review-basis-choice .review-choice:has(input:checked){background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}
#modalRoot .two-step-review .review-basis-choice .review-choice strong{font-size:14px;font-weight:600;color:var(--ink,#111)}
#modalRoot .two-step-review .review-basis-choice input{position:absolute;opacity:0;pointer-events:none}
#modalRoot .two-step-review .has-vat-chips>select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#modalRoot .two-step-review .review-vat-chips{display:flex;gap:8px;flex-wrap:wrap}
#modalRoot .two-step-review .review-vat-chips button{min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line,#E2E5E9);background:#fff;font:inherit;font-size:15px;font-weight:600;color:var(--ink,#111)}
#modalRoot .two-step-review .review-vat-chips button[aria-pressed="true"]{background:#111827;border-color:#111827;color:#fff}
#modalRoot .two-step-review [data-review-field="vatRate"]>label{font-size:14px;font-weight:600;color:var(--muted,#6B7280)}
#modalRoot .two-step-review .review-amount-breakdown{background:transparent;border:1px solid var(--line,#E6E8EB);border-radius:16px;padding:6px 14px}
#modalRoot .two-step-review .review-amount-breakdown>div{padding:8px 0;font-size:15px}
#modalRoot .two-step-review #reviewBlockingState.good{background:transparent;border:0;padding:4px 0;display:flex;align-items:center;gap:6px}
#modalRoot .two-step-review #reviewBlockingState.good strong{font-size:15px;color:#1F7A33}
#modalRoot .two-step-review #reviewBlockingState.good span{display:none}
/* Only the 'Meerdere btw-tarieven' link: the Anders… chip does that. 'Toch één btw-tarief?' stays, so mixed mode can be undone. */
#modalRoot .two-step-review [data-review-vat-mode][onclick*="(true)"]{display:none}
#modalRoot .scan-done-modal .modal-head h3{visibility:hidden}
#modalRoot .scan-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:18px 8px 6px}
#modalRoot .scan-done-check{width:64px;height:64px;border-radius:50%;background:#E3F4E6;color:#1F7A33;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
#modalRoot .scan-done-check .icon{width:30px;height:30px;stroke-width:2.4}
#modalRoot .scan-done strong{font-size:22px;letter-spacing:-.01em}
#modalRoot .scan-done p{margin:0;color:var(--muted,#6B7280);font-size:15px;line-height:1.5}
#modalRoot .scan-done p span{display:block;color:#1F7A33;font-weight:600}
#modalRoot .scan-done-modal .modal-foot{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
html[data-theme="dark"] #modalRoot .two-step-review .review-basis-choice{background:#2A2D31}
html[data-theme="dark"] #modalRoot .two-step-review .review-basis-choice .review-choice:has(input:checked){background:#3A3E44}
html[data-theme="dark"] #modalRoot .two-step-review .review-vat-chips button{background:transparent;color:inherit}
html[data-theme="dark"] #modalRoot .two-step-review .review-vat-chips button{border-color:#3A3F44}
html[data-theme="dark"] #modalRoot .two-step-review .review-vat-chips button[aria-pressed="true"]{background:#16301D;border-color:#16301D;color:#7FDB8B}

#modalRoot .two-step-review [data-review-field="reviewAmount"] #pdfImportAmount{border:0!important;background:transparent!important;box-shadow:none!important;outline-offset:4px}
#modalRoot .two-step-review [data-review-field="amountBasis"]{margin-top:-18px;padding-top:4px}
body:has(#modalRoot .scan-done-modal) #toastRoot{opacity:0}

#modalRoot .two-step-review [data-review-page="2"] [data-review-field="reviewAmount"],#modalRoot .two-step-review [data-review-page="2"] [data-review-field="amountBasis"]{background:#F3F5F6!important;border:0!important;box-shadow:none!important}
#modalRoot .two-step-review [data-review-field="reviewAmount"] #pdfImportAmount{font-size:36px!important;font-weight:700!important;min-height:58px!important}
html[data-theme="dark"] #modalRoot .two-step-review [data-review-page="2"] [data-review-field="reviewAmount"],html[data-theme="dark"] #modalRoot .two-step-review [data-review-page="2"] [data-review-field="amountBasis"]{background:#202326!important}

/* Factuur bekijken A: the invoice is its own page on the phone (full screen), big amount, status, timeline. */
html body #modalRoot#modalRoot .modal-backdrop.invoice-page-backdrop{padding:0!important;align-items:stretch!important}
html body #modalRoot#modalRoot .modal.invoice-page{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important;border:0!important}
html body #modalRoot#modalRoot .invoice-page .modal-head{border:0!important;padding-top:calc(10px + env(safe-area-inset-top,0px))!important}
html body #modalRoot#modalRoot .invoice-page .modal-head h3{font-size:15px!important;font-weight:600;color:var(--muted,#6B7280)}
html body #modalRoot#modalRoot .invoice-page .modal-body{flex:1 1 auto!important;overflow:auto}
html body #modalRoot#modalRoot .invoice-page .modal-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
html body #modalRoot#modalRoot .invoice-page .invoice-view-summary{text-align:left;align-items:flex-start;padding:4px 2px 14px}
html body #modalRoot#modalRoot .invoice-page .invoice-view-amount{font-size:40px;letter-spacing:-.03em}
html body #modalRoot#modalRoot .invoice-page .invoice-view-status{justify-content:flex-start}

/* Bankregel A: one sheet per payment, best match on top, other ways under it, delete apart. */
#modalRoot .bank-sheet-backdrop{align-items:flex-end!important;padding:0!important}
#modalRoot .modal.bank-sheet-modal{width:100%!important;max-width:none!important;border-radius:24px 24px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px)}
#modalRoot .bank-sheet-date{margin:-6px 0 12px;color:var(--muted,#6B7280);font-size:14px}
#modalRoot .bank-sheet-label{margin:14px 0 8px;font-size:13px;font-weight:600;color:var(--muted,#6B7280)}
#modalRoot .bank-sheet-match{display:flex;align-items:center;gap:12px;padding:14px;border:1.5px solid #63D471;border-radius:16px;background:#F3FBF4;margin-bottom:10px}
#modalRoot .bank-sheet-match strong{font-size:15px;line-height:1.35}
#modalRoot .bank-sheet-confirm{width:100%;min-height:50px}
#modalRoot .bank-sheet-rows{border:1px solid var(--line,#E6E8EB);border-radius:16px;overflow:hidden}
#modalRoot .bank-sheet-row{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:0 14px;border:0;border-bottom:1px solid var(--line,#EEF0F2);background:transparent;font:inherit;font-size:15px;font-weight:600;color:inherit;text-align:left}
#modalRoot .bank-sheet-row:last-child{border-bottom:0}
#modalRoot .bank-sheet-row>span:nth-child(2){flex:1}
#modalRoot .bank-sheet-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#F1F3F5;display:flex;align-items:center;justify-content:center}
#modalRoot .bank-sheet-icon.is-good{background:#E3F4E6;color:#1F7A33;border-radius:50%}
#modalRoot .bank-sheet-icon .icon{width:18px;height:18px}
#modalRoot .bank-sheet-chev{width:16px;height:16px;color:var(--muted,#9CA3AF)}
#modalRoot .bank-sheet-delete{display:block;margin:18px auto 4px;color:#C2392F!important;font-weight:600;text-decoration:none}
html[data-theme="dark"] #modalRoot .bank-sheet-match{background:#16301D}
html[data-theme="dark"] #modalRoot .bank-sheet-icon{background:#2A2D31}

#modalRoot .bank-sheet .bank-sheet-confirm{display:flex;justify-content:center;align-items:center}
#modalRoot .bank-sheet button.link-btn.bank-sheet-delete{color:#C2392F!important;text-decoration:none!important}

/* Kosten zonder bon B: Waarvoor as chips; from a bank payment the payment is a card and only btw + Waarvoor are asked. */
#modalRoot #expenseForm .has-category-chips>select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#modalRoot #expenseForm .expense-category-chips{display:flex;flex-wrap:wrap;gap:8px}
#modalRoot #expenseForm .expense-category-chips button{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line,#E2E5E9);background:#fff;font:inherit;font-size:15px;font-weight:600;color:var(--ink,#111)}
#modalRoot #expenseForm .expense-category-chips button[aria-pressed="true"]{background:#111827;border-color:#111827;color:#fff}
#modalRoot #expenseForm.from-bank .expense-amount-field,#modalRoot #expenseForm.from-bank .expense-date-field,#modalRoot #expenseForm.from-bank .field:has(>input[name="vendor"]){position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);opacity:0}
#modalRoot #expenseForm .expense-bank-card{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:18px 14px 12px;border-radius:18px;background:#F3F5F6}
#modalRoot #expenseForm .expense-bank-avatar{width:48px;height:48px;border-radius:14px;background:#111827;color:#fff;font-weight:700;font-size:20px;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
#modalRoot #expenseForm .expense-bank-meta{font-size:13px;color:var(--muted,#6B7280)}
#modalRoot #expenseForm .expense-bank-amount{font-size:32px;letter-spacing:-.02em}
#modalRoot #expenseForm .expense-bank-name{font-size:16px}
#modalRoot #expenseForm .expense-bank-edit{margin-top:4px;font-size:14px}
html[data-theme="dark"] #modalRoot #expenseForm .expense-bank-card{background:#202326}
html[data-theme="dark"] #modalRoot #expenseForm .expense-category-chips button{background:transparent;color:inherit}
html[data-theme="dark"] #modalRoot #expenseForm .expense-category-chips button{border-color:#3A3F44}
html[data-theme="dark"] #modalRoot #expenseForm .expense-category-chips button[aria-pressed="true"]{background:#16301D;border-color:#16301D;color:#7FDB8B}

/* Factuur maken A: services as small chips, the total stays in view at the bottom, step 3 looks like the invoice itself. */
html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .invoice-service-picker>.help{display:none}
html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .service-chips{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto;scrollbar-width:none;margin:0 -16px!important;padding:0 16px 2px!important}
html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .service-chips::-webkit-scrollbar{display:none}
html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .service-chip{flex:0 0 auto!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;min-height:40px!important;height:40px!important;padding:0 14px!important;border-radius:999px!important;line-height:1!important;border:1px solid var(--line,#E2E5E9)!important;background:#fff!important;white-space:nowrap}
html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .service-chip strong{font-size:15px!important}
html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .service-chip strong::before{content:"+ ";color:#2F7D3B}
html body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .service-chip small{font-size:13px!important;color:var(--muted,#6B7280)}
html body #modalRoot#modalRoot .mobile-invoice-step[data-step="2"] .invoice-editor-summary{position:sticky;bottom:64px;z-index:2;background:var(--surface,#fff)}
html body #modalRoot#modalRoot .mobile-invoice-step[data-step="2"] .mobile-invoice-nav{position:sticky;bottom:0;z-index:2;background:var(--surface,#fff);padding-bottom:6px}
html body #modalRoot#modalRoot .mobile-invoice-summary{position:relative;background:#fff!important;border:1px solid var(--line,#E6E8EB)!important;border-radius:6px!important;padding-top:44px!important}
html body #modalRoot#modalRoot .mobile-invoice-summary::before{content:"FACTUUR";position:absolute;top:16px;left:16px;font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--muted,#6B7280)}
html body #modalRoot#modalRoot .mobile-invoice-summary::after{content:"";position:absolute;top:22px;right:16px;width:44px;height:4px;border-radius:2px;background:#63D471}
html body #modalRoot#modalRoot .mobile-invoice-summary-top strong:last-child{font-size:22px}
html[data-theme="dark"] body #modalRoot#modalRoot .mobile-invoice-summary,html[data-theme="dark"] body #modalRoot#modalRoot #invoiceForm[data-mobile-invoice-flow] .service-chip{background:#1B1D20!important}
html[data-theme="dark"] body #modalRoot#modalRoot .mobile-invoice-step[data-step="2"] .invoice-editor-summary,html[data-theme="dark"] body #modalRoot#modalRoot .mobile-invoice-step[data-step="2"] .mobile-invoice-nav{background:#1B1D20}

/* Rapportages B: one line that adds up the winst, the period before dotted, three short facts. */
#mainApp #content .report-story{margin:4px 0 16px;min-width:0;max-width:100%;overflow:hidden}
#mainApp #content .report-story-amount{display:block;font-size:40px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
#mainApp #content .report-story-label{margin:2px 0 12px;color:var(--muted,#6B7280);font-size:15px}
#mainApp #content .report-story-line{display:block;width:100%;height:130px;overflow:visible}
#mainApp #content .report-story-legend{display:flex;gap:16px;margin:8px 0 14px;font-size:13px;color:var(--muted,#6B7280)}
#mainApp #content .report-story-legend i{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle;background:#3B82F6}
#mainApp #content .report-story-legend i.is-before{background:repeating-linear-gradient(90deg,#9AA6B2 0 4px,transparent 4px 7px)}
#mainApp #content .report-story-facts{border:1px solid var(--line,#E6E8EB);border-radius:16px;padding:2px 14px}
#mainApp #content .report-story-facts>div{display:flex;align-items:center;gap:12px;min-height:52px;border-bottom:1px solid var(--line,#EEF0F2);font-size:15px;line-height:1.35}
#mainApp #content .report-story-facts>div:last-child{border-bottom:0}
#mainApp #content .report-story-icon{width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:#EEF4FF;color:#3B82F6;display:flex;align-items:center;justify-content:center}
#mainApp #content .report-story-icon .icon{width:17px;height:17px}
html[data-theme="dark"] #mainApp #content .report-story-icon{background:#1B2740}

/* Btw B: the return one rubriek per screen, with a big Kopieer per amount. */
#mainApp #content .vat-return-card .vat-step-start{display:flex;justify-content:center;align-items:center;width:calc(100% - 40px);min-height:50px;margin:14px 20px 4px}
html body #modalRoot#modalRoot .modal-backdrop:has(.vat-step-modal){padding:0!important;align-items:stretch!important}
html body #modalRoot#modalRoot .modal.vat-step-modal{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important;border:0!important}
html body #modalRoot#modalRoot .vat-step-modal .modal-head{border:0!important;padding-top:calc(10px + env(safe-area-inset-top,0px))!important}
html body #modalRoot#modalRoot .vat-step-modal .modal-body{flex:1 1 auto!important;overflow:auto}
html body #modalRoot#modalRoot .vat-step-modal .modal-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
#modalRoot .vat-step-kicker{margin:4px 0 6px;font-size:14px;color:var(--muted,#6B7280)}
#modalRoot .vat-step-title{margin:0 0 20px;font-size:24px;line-height:1.25;letter-spacing:-.02em}
#modalRoot .vat-step-copy{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line,#E6E8EB);border-radius:16px;margin-bottom:10px}
#modalRoot .vat-step-copy>span{flex:0 0 64px;color:var(--muted,#6B7280);font-size:15px}
#modalRoot .vat-step-copy>strong{flex:1;font-size:26px;letter-spacing:-.02em}
#modalRoot .vat-step-copy-btn{min-height:40px;padding:0 16px}
#modalRoot .vat-step-copy-btn.is-copied{background:#E3F4E6!important;color:#1F7A33!important;border-color:#E3F4E6!important}
#modalRoot .vat-step-note{margin:12px 0 0;font-size:14px;color:var(--muted,#6B7280);line-height:1.45}
#modalRoot .vat-step-total{display:block;font-size:40px;letter-spacing:-.03em;margin:-8px 0 8px}
#modalRoot .vat-step-dots{display:flex;justify-content:center;gap:6px;margin-top:24px}
#modalRoot .vat-step-dots i{width:7px;height:7px;border-radius:50%;background:#D9DDE2}
#modalRoot .vat-step-dots i.on{background:#7C5CFA}

/* Instellingen B: search + "Vaak gebruikt" tiles on the start view; the list stays under "Alle instellingen". */
#mainApp #content .settings-center[data-view="detail"] .settings-quick{display:none}
#mainApp #content .settings-search{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border-radius:14px;background:#F1F3F5;margin:4px 0 16px}
#mainApp #content .settings-search .icon{width:18px;height:18px;color:var(--muted,#6B7280)}
#mainApp #content .settings-search input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;font:inherit;font-size:16px;padding:0;min-height:44px}
#mainApp #content .settings-quick-label{margin:0 4px 8px;font-size:14px;font-weight:600;color:var(--muted,#6B7280)}
#mainApp #content .settings-quick-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
#mainApp #content .settings-quick-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:88px;padding:14px;border:1px solid var(--line,#E6E8EB);border-radius:16px;background:var(--surface,#fff);font:inherit;color:inherit;text-align:left}
#mainApp #content .settings-quick-tile .settings-center-icon{width:22px;height:22px;color:#2F7D3B}
#mainApp #content .settings-quick-tile strong{font-size:15px}
#mainApp #content .settings-center.is-searching .settings-quick-tiles,#mainApp #content .settings-center.is-searching .settings-quick-label:not(.settings-all-label),#mainApp #content .settings-center.is-searching .settings-profile-card,#mainApp #content .settings-center.is-searching #settingsSetupStatus{display:none}
#mainApp #content .settings-search-empty{margin:4px 4px 12px;color:var(--muted,#6B7280)}
html[data-theme="dark"] #mainApp #content .settings-search{background:#202326}
#mainApp #content .settings-quick-label.settings-all-label{font-size:18px;font-weight:700;color:var(--ink,#111);margin-top:4px}

/* Inloggen (twijfel-ronde, Kwin 2026-10-21): calm fields, one green button. The opening screen above the form is section 25a. */
#authRoot .auth-form .auth-field input{border:1px solid #E3E6E9!important;background:#F6F7F8!important;box-shadow:none!important;border-radius:14px!important}
#authRoot .auth-form .auth-field input:focus{background:#fff!important;border-color:#63D471!important}
html[data-theme="dark"] #authRoot .auth-form .auth-field input{background:#202326!important;border-color:#33383D!important}

/* 22: rit B - vaste routes bovenaan, postcodes eerst */
#tripForm{display:flex;flex-direction:column;gap:12px}
#tripForm>*{width:100%;margin:0}
#tripForm .trip-retour label,#tripForm .trip-save-route label{min-height:36px!important}
#tripForm .trip-routes{order:0}
#tripForm .trip-from{order:1}
#tripForm .trip-to{order:2}
#tripForm .trip-km{order:3}
#tripForm .trip-retour{order:4}
#tripForm .trip-save-route{order:5}
#tripForm .trip-date{order:6}
#tripForm .trip-purpose{order:7}
#tripForm .trip-bill{order:8}
#tripForm .trip-bill label{min-height:36px!important}
#tripForm .trip-km input{font-size:28px;font-weight:800;letter-spacing:-.01em;min-height:56px}
.trip-route-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.trip-route-chips::-webkit-scrollbar{display:none}
.trip-route-chip{flex:0 0 auto;border:1px solid #E3E6E9;background:#fff;color:#111827;border-radius:14px;padding:9px 14px;font:inherit;font-size:14px;min-height:44px;white-space:nowrap;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left}
.trip-route-chip strong{font-weight:700}
.trip-route-chip span{color:#6B7280;font-size:12px}
.trip-route-chip:active{background:#EAF7EC;border-color:#63D471}
html[data-theme="dark"] .trip-route-chip{background:#1A1D21;border-color:#2B3036;color:#F3F4F6}
html[data-theme="dark"] .trip-route-chip:active{background:#16301D;color:#7FDB8B}
}

/* 23. Kwin 2026-10-21 "UI en UX volledig kloppen": small fixes from a full walk-through, same look.
   A status in a table is a dot with text at every width; "Betaald"/"Gekoppeld" had a green block left from calm-ux. */
html body #mainApp#mainApp :is(.financial-table,.mobile-card-row) .badge.good{background:transparent!important}
/* Number columns: the header sits above the right-aligned amounts. */
html body #mainApp#mainApp .table th.right{text-align:right!important}
/* Omzet per klant is green (omzet) at every width, like the chart; red stays for kosten. */
html body #mainApp#mainApp .report-customers-card .category-row .progress span{background:#63D471!important}
/* An empty list explains itself in readable text, with room before its button. */
html body #mainApp#mainApp #content .empty>.help{font-size:14px;line-height:1.45;max-width:36ch;margin:0 auto 14px}
/* Chrome's own clear button in search fields is blue; make it the calm grey of the rest. */
#mainApp input[type="search"]::-webkit-search-cancel-button{filter:grayscale(1) brightness(.75);cursor:pointer}
html[data-theme="dark"] #mainApp input[type="search"]::-webkit-search-cancel-button{filter:grayscale(1) invert(1) brightness(.85)}
@media(max-width:820px){
  /* Ritten: kilometers and the deductible amount start on the same line. */
  html body #mainApp#mainApp #content .trip-duo strong,html body #mainApp#mainApp #content .trip-duo strong.metric-value{margin:0!important;line-height:1.2!important}
  /* With a sheet open, a message shows at the top so it never covers the sheet's buttons. */
  html body:has(#modalRoot>*) #toastRoot.toast-wrap,html body:has(#modalRoot>*) #toastRoot{top:calc(12px + env(safe-area-inset-top))!important;bottom:auto!important}
  /* Kosten: the day choice looks like the other choices in the same form (Waarvoor). */
  #modalRoot .expense-day-chip{min-height:40px;border:1px solid #E4E7EA;background:#fff;color:#1B1F23;font-size:15px}
  #modalRoot .expense-day-chip.active{border-color:#111827;background:#111827;color:#fff}
  html[data-theme="dark"] #modalRoot .expense-day-chip{border-color:#3A3F44;background:transparent;color:#E9EDEF}
  html[data-theme="dark"] #modalRoot .expense-day-chip.active{border-color:#16301D;background:#16301D;color:#7FDB8B}
  /* Menu: the close button is the same grey square as in every sheet; Donkere modus lines up with the menu items. */
  html body #mobileDrawerClose.mobile-drawer-close{border:0!important;border-radius:9px!important;background:#F1F3F4!important;color:#1B1F23!important;font-size:20px!important;font-weight:400!important}
  html[data-theme="dark"] body #mobileDrawerClose.mobile-drawer-close{background:#21272C!important;color:#DFE2E4!important}
  #sidebar .drawer-theme{width:100%;margin:6px 0 4px;padding:0 10px}
  /* Bank sheet: the amount sits next to the date, so a long description never splits it. */
  #modalRoot .bank-sheet-amount{color:var(--calm-ink,#1B1F23);font-weight:700}
  #modalRoot .bank-sheet-amount.in{color:#2F7D3B}
  html[data-theme="dark"] #modalRoot .bank-sheet-amount{color:#F3F4F6}
  html[data-theme="dark"] #modalRoot .bank-sheet-amount.in{color:#7FDB8B}

  /* 23. Rustiger A (Kwin 2026-10-22): every phone page is title, one blue block, search, chips, then calm rows with a status dot. */
  html body #mainApp#mainApp #content .dashboard-kpis-calm{display:block!important}
  html body #mainApp#mainApp #content .dashboard-kpis-calm .dashboard-kpi-profit{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;width:100%;min-height:112px!important;border:0!important;border-radius:18px!important;text-align:left;font:inherit;cursor:pointer}
  html body #mainApp#mainApp #content .dashboard-kpis-calm .metric-label{font-size:15px!important;font-weight:600!important;color:var(--calm-label)!important}
  html body #mainApp#mainApp #content .dashboard-kpis-calm .metric-value{max-width:100%;overflow-wrap:anywhere;margin:0!important;font-size:clamp(24px,8.6vw,34px)!important;line-height:1.12!important;letter-spacing:-1.4px!important;font-weight:700!important;color:var(--calm-ink)!important}
  html body #mainApp#mainApp #content .calm-list{display:block;margin:14px 0 0;border:1px solid var(--calm-line);border-radius:18px;background:var(--calm-surface);overflow:hidden}
  html body #mainApp#mainApp #content .calm-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto 14px;align-items:center;column-gap:12px;width:100%;min-height:56px;margin:0;padding:0 16px;border:0;border-bottom:1px solid var(--calm-hair);border-radius:0;background:transparent;color:var(--calm-ink);font:inherit;text-align:left;cursor:pointer;overflow:hidden;box-shadow:none}
  html body #mainApp#mainApp #content .calm-row:last-child{border-bottom:0}
  html body #mainApp#mainApp #content .calm-row::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--kpi-dot,#8A949B)}
  html body #mainApp#mainApp #content .calm-row .calm-label{font-size:16px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body #mainApp#mainApp #content .calm-row .calm-value{font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
  html body #mainApp#mainApp #content .calm-row.has-attention .calm-value{color:#C0392B}
  html body #mainApp#mainApp #content .calm-row>.icon,html body #mainApp#mainApp #content .calm-todo>summary>.icon{width:14px;height:14px;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .calm-todo{margin:14px 0 0}
  html body #mainApp#mainApp #content .calm-todo>summary{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:999px;background:#FDECEA;color:#9F2D22;list-style:none;cursor:pointer;font-size:15px}
  html body #mainApp#mainApp #content .calm-todo>summary::-webkit-details-marker{display:none}
  html body #mainApp#mainApp #content .calm-todo>summary .icon{color:inherit;transform:rotate(90deg);transition:transform .2s}
  html body #mainApp#mainApp #content .calm-todo[open]>summary .icon{transform:rotate(-90deg)}
  html body #mainApp#mainApp #content .calm-todo-dot{width:8px;height:8px;border-radius:50%;background:#E5534B}
  html body #mainApp#mainApp #content .calm-todo>:not(summary){margin-top:10px!important}
  html body #mainApp#mainApp #content .calm-todo.is-clear>summary{background:var(--calm-soft);color:var(--calm-ink)}
  html body #mainApp#mainApp #content .calm-todo.is-clear .calm-todo-dot{background:#63D471}
  html[data-theme="dark"] body #mainApp#mainApp #content .calm-todo>summary{background:#3A1D1A;color:#F2A49B}
  html[data-theme="dark"] body #mainApp#mainApp #content .calm-todo.is-clear>summary{background:var(--calm-soft);color:var(--calm-ink)}
  html[data-theme="dark"] body #mainApp#mainApp #content .calm-row.has-attention .calm-value{color:#F2A49B}
  html body #mainApp#mainApp #content .calm-kpis{display:block!important}
  html body #mainApp#mainApp #content .calm-kpis .product-kpi.kpi-hero{min-height:104px!important}
  html body #mainApp#mainApp #content .calm-kpis .kpi-hero .metric-sub:empty{display:none!important}
  /* Rows: name and amount only, the status is a small dot after the amount. */
  html body #mainApp#mainApp #content .calm-rows .mobile-card-metadata,html body #mainApp#mainApp #content .calm-rows .mobile-paid-bar,html body #mainApp#mainApp #content .calm-rows .mobile-bank-proposal,html body #mainApp#mainApp #content .calm-rows .mobile-card-actions{display:none!important}
  html body #mainApp#mainApp #content .calm-rows{grid-template-columns:minmax(0,1fr)!important}
  html body #mainApp#mainApp #content .calm-rows>.mobile-card-row{display:flex!important;align-items:center!important;gap:12px!important;min-height:60px;min-width:0!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-main{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;flex:1 1 0%!important;min-width:0!important;max-width:100%;text-align:left!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-main>:first-child:not(.mobile-card-title){flex:none;margin:0!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-title{flex:1 1 0%!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px!important;font-weight:550!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:none;text-align:right}
  html body #mainApp#mainApp #content[data-page] .calm-rows>.mobile-card-row>.mobile-card-side{display:flex!important}
  html body #mainApp#mainApp #content[data-page] .calm-rows .mobile-card-side>.mobile-card-value{align-self:center!important}
  html body #mainApp#mainApp #content[data-page] .calm-rows .mobile-card-side>span:not([class]){display:inline-flex!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side .mobile-card-value{font-size:16px!important;font-weight:650!important;white-space:nowrap}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side .badge{display:inline-flex!important;width:8px;min-width:8px;height:8px;gap:0!important;overflow:hidden;font-size:0!important;line-height:0!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side .badge::before{display:block!important;flex:0 0 8px!important;width:8px!important;height:8px!important;background:#8A949B}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side .badge.good::before{background:#63D471!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side .badge.warn::before{background:#E0A030!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side .badge.bad::before{background:#E5534B!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side .badge.info::before{background:#3B82F6!important}
  html body #mainApp#mainApp #content .calm-rows .mobile-card-side :is(.icon-btn,.row-action-trigger){width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#8A949B!important}
  html body #mainApp#mainApp #content .calm-rows .doc-thumb{position:relative;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0!important;border:1px solid var(--calm-line);border-radius:12px;background:#FAFAF7;color:#B9BDB4;overflow:hidden}
  html body #mainApp#mainApp #content .calm-rows .doc-thumb .icon{width:20px;height:20px}
  html body #mainApp#mainApp #content .calm-rows .doc-thumb img{position:absolute;inset:4px;width:30px;height:30px;border-radius:8px;object-fit:contain;opacity:0}
  html body #mainApp#mainApp #content .calm-rows .doc-thumb.has-logo{border-color:transparent;background:transparent}
  html body #mainApp#mainApp #content .calm-rows .doc-thumb.has-logo img{opacity:1}
  html body #mainApp#mainApp #content .calm-rows .doc-thumb.has-logo .icon{visibility:hidden}
  html[data-theme="dark"] body #mainApp#mainApp #content .calm-rows .doc-thumb{background:var(--dk-raised,#21272C);color:#8A949B}
  /* One chip shape everywhere: a soft grey 36px pill. The chosen quick filter is dark; a chosen filter stays the green chip with × (Kwin 2026-10-21, Filters A). */
  html body #mainApp#mainApp #content :is(.list-toolbar-quick .filter-btn,.list-chip-row .filter-btn,.list-chip-select,.list-chip-row .list-chip-more){min-height:36px!important;height:36px;border:0!important;border-radius:999px!important;background-color:var(--calm-soft)!important;color:var(--calm-ink)!important;font-size:14.5px!important;font-weight:500!important}
  html body #mainApp#mainApp #content .list-chip-select.is-on{background-color:#E3F4E6!important;color:#1F7A33!important;font-weight:600!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .list-chip-select.is-on{background-color:#1E3324!important;color:#7FDB8B!important}
  html body #mainApp#mainApp #content :is(.list-toolbar-quick .filter-btn.active,.list-chip-row .filter-btn.active){background-color:var(--calm-ink)!important;color:var(--calm-surface)!important;font-weight:600!important}
  html[data-theme="dark"] body #mainApp#mainApp #content :is(.list-toolbar-quick .filter-btn.active,.list-chip-row .filter-btn.active){background-color:#3A444C!important;color:#F3F4F6!important}
}
/* Release audit C-13: a half-filled new invoice that was closed is offered back once. */
#modalRoot .unsaved-invoice-offer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid #E4E7EA;border-radius:14px;background:#F7F8F9}
#modalRoot .unsaved-invoice-offer>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
#modalRoot .unsaved-invoice-offer strong{font-size:14px;color:var(--calm-ink,#1B1F23)}
#modalRoot .unsaved-invoice-offer span{font-size:13px;color:var(--calm-muted,#667179);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalRoot .unsaved-invoice-actions{display:flex;gap:8px;margin-left:auto}
html[data-theme="dark"] #modalRoot .unsaved-invoice-offer{border-color:#2B3036;background:#1A1D21}
html[data-theme="dark"] #modalRoot .unsaved-invoice-offer strong{color:#F3F4F6}

/* Kwin 2026-10-22 (concurrenten, m1): days left for the btw return next to Btw in the menu. */
#mainApp .nav-item .vat-due-badge{margin-left:auto;padding:2px 8px;border-radius:999px;background:#FDECEA;color:#B42318;font-size:12px;font-weight:700;white-space:nowrap}
html[data-theme="dark"] #mainApp .nav-item .vat-due-badge{background:#3A1F1C;color:#F4A79B}
/* Btw page: mark the return as done so the to-do goes away. */
#mainApp .vat-filed-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 20px 18px}
#mainApp .vat-filed-done{font-weight:600;color:var(--app-ink,#17201B)}
html[data-theme="dark"] #mainApp .vat-filed-done{color:var(--dk-ink,#E9EDEF)}
/* Kwin 2026-10-22 (concurrenten, i2): bank line found for an open invoice. */
#modalRoot .invoice-bank-found{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
#modalRoot .invoice-bank-found strong{display:block}
#modalRoot .invoice-bank-found span{font-size:14px}
/* Versturen: tekst kiezen bij een verlopen factuur, en een kopie naar jezelf */
#modalRoot .send-text-field{margin:0 0 4px}
#modalRoot .email-copy-self{display:flex;align-items:center;gap:9px;min-height:44px;margin-top:4px;font-size:14px;color:var(--app-ink,#17201B);cursor:pointer}
#modalRoot .email-copy-self input{width:auto;margin:0}
html[data-theme="dark"] #modalRoot .email-copy-self{color:var(--dk-ink,#E9EDEF)}
/* Diensten: meest verdiend dit jaar */
.services-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin:0 0 12px;font-size:15px}
.services-top span{color:var(--app-muted-strong,#5E6870)}
.services-top strong{text-align:right}
/* Bedragen verbergen: vaag op het overzicht tot je op het grote getal tikt */
html.hide-amounts:not(.amounts-peek) .dashboard-kpis .metric-value,html.hide-amounts:not(.amounts-peek) .calm-list .calm-value{filter:blur(9px);user-select:none}
html.hide-amounts:not(.amounts-peek) .kpi-hero{cursor:pointer}
/* Btw: kwartaal veranderd na je aangifte */
.vat-correction{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.vat-correction strong{display:block}
.vat-correction span{font-size:14px}
/* Rapportages: jaar afsluiten in stappen */
.year-close-card{margin-top:16px}
.year-close-steps{list-style:none;margin:6px 0 0;padding:0 20px 16px;display:flex;flex-direction:column}
.year-close-steps li{display:flex;align-items:center;gap:10px;min-height:44px;border-top:1px solid var(--app-border,#E4E8EB);font-size:15px}
.year-close-steps li:first-child{border-top:0}
.year-close-steps li>span:nth-child(2){flex:1}
.year-close-mark{width:22px;height:22px;border-radius:50%;border:1.5px solid #C9D1D8;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#fff;flex:0 0 auto}
.year-close-steps li.is-done .year-close-mark{background:#63D471;border-color:#63D471}
.year-close-steps li.is-done>span:nth-child(2){color:var(--app-muted-strong,#5E6870)}
.year-close-btn{margin:0 20px 18px;width:calc(100% - 40px)}
html[data-theme="dark"] .year-close-steps li{border-color:var(--dk-line,#2E363C)}
/* Overstappen: vier stappen op het inlogscherm */
.auth-switch-steps{margin:16px 0 20px;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.auth-switch-steps li{display:flex;flex-direction:column;gap:2px;font-size:15px;line-height:1.4}
.auth-switch-steps li span{color:#5F6B7A;font-size:14px}
/* Uren: richting 1.225 uur */
#mainApp [data-kpi-dot="uren"]{--kpi-dot:#A78BFA}
.hours-sheet-total{display:flex;align-items:baseline;gap:8px}
.hours-sheet-total strong{font-size:34px;font-weight:800;letter-spacing:-.02em}
.hours-sheet-total span{color:var(--app-muted-strong,#5E6870)}
.hours-sheet-bar{display:block;height:8px;border-radius:99px;background:#EEF1F4;margin:10px 0 12px;overflow:hidden}
.hours-sheet-bar i{display:block;height:100%;width:var(--w);background:#8B6CEF;border-radius:inherit}
.hours-sheet-list{margin-top:12px;border-top:1px solid var(--app-border,#E4E8EB)}
.hours-sheet-row{display:flex;align-items:center;gap:10px;min-height:52px;border-bottom:1px solid var(--app-border,#E4E8EB)}
.hours-sheet-row>span{flex:1;display:flex;flex-direction:column;font-size:15px}
.hours-sheet-row>span span{color:var(--app-muted-strong,#5E6870);font-size:13px}
html[data-theme="dark"] .hours-sheet-bar{background:#2E363C}
/* Offertes */
.quote-strip-wrap{margin:0 0 14px}
.quote-strip-wrap.is-under-list{margin:14px 0 0}
.quote-list{display:flex;flex-direction:column}
.quote-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 2px;border:0;border-bottom:1px solid var(--app-border,#E4E8EB);background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.quote-row>span{display:flex;flex-direction:column}
.quote-row>span span{color:var(--app-muted-strong,#5E6870);font-size:13px}
.quote-detail-amount{font-size:34px;font-weight:800;letter-spacing:-.02em}
.quote-detail-sub{margin:4px 0 12px;color:var(--app-muted-strong,#5E6870)}
.quote-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
/* Bankbestand: waar vind ik het */
.bank-download-help{margin:0}
.bank-download-help>div{padding:10px 0;border-bottom:1px solid var(--app-border,#E4E8EB)}
.bank-download-help dt{font-weight:700;margin:0 0 2px}
.bank-download-help dd{margin:0;color:var(--app-muted-strong,#5E6870);font-size:14px;line-height:1.45}
/* Terugkerende facturen */
.recurring-intro{margin:0 0 14px;color:var(--app-muted-strong,#5E6870)}
.recurring-choices{display:flex;flex-direction:column;gap:0;margin:0 0 14px;padding:0;border:0}
.recurring-choices legend{margin:0 0 6px;font-weight:700}
.recurring-choice{display:flex;align-items:center;gap:12px;min-height:48px;border-bottom:1px solid var(--app-border,#E4E8EB);font-size:15px;cursor:pointer}
.recurring-choice input{width:20px;height:20px;margin:0;accent-color:var(--brand,#2F8F5B)}
.quote-delete{color:#C2412D;margin-left:auto}
html body #modalRoot#modalRoot form[data-quote] .mobile-invoice-summary::before{content:"OFFERTE"}
/* Hulp: zoeken in korte antwoorden */
.help-search-box input{width:100%;min-height:44px;border-radius:12px;border:1px solid var(--app-border,#E4E8EB);background:var(--app-soft,#F3F5F7);padding:0 14px;font:inherit;font-size:16px}
.help-answers{margin-top:8px}
.help-answer{border-bottom:1px solid var(--app-border,#E4E8EB)}
.help-answer summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer;list-style:none}
.help-answer summary::-webkit-details-marker{display:none}
.help-answer p{margin:0 0 8px;color:var(--app-muted-strong,#5E6870);line-height:1.45}
.help-answer .link-btn{margin-bottom:12px}
html[data-theme="dark"] .help-search-box input{background:var(--dk-raised,#21272C);border-color:var(--dk-line,#2E363C);color:var(--dk-ink,#E9EDEF)}

/* 24. Overzicht naar eigen schets, "R1D Diep groen" (Kwin 2026-10-23), phone only: Winst large on a deep green band
   with the period and four round shortcuts, then blocks in different sizes (Omzet wide, Kosten tall, Te ontvangen and
   Vrij beside it). The band runs behind the top bar; tiles use the --calm-* tokens so dark mode stays dark. */
@media (max-width:820px){
  :root{--r1d-top:#0F2A1A;--r1d-bottom:#1F7A4A}
  html body #mainApp#mainApp:has(#content:where(:not(.bk-peek)) .r1d-hero) .topbar{position:relative!important;top:auto!important;background:var(--r1d-top)!important;border-bottom:0!important;box-shadow:none!important}
  html body #mainApp#mainApp:has(#content:where(:not(.bk-peek)) .r1d-hero) .topbar :is(.mobile-menu,.top-actions>button:not(#quickNew)){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border:0!important;border-radius:50%!important;color:#fff!important;background:#ffffff1f!important}
  html body #mainApp#mainApp:has(#content:where(:not(.bk-peek)) .r1d-hero) .topbar :is(.mobile-menu,.top-actions>button:not(#quickNew)) .icon{color:#fff!important}
  html body #mainApp#mainApp #content .r1d-head{position:absolute!important;margin:0!important;padding:0!important;min-height:0!important}
  html body #mainApp#mainApp #content .r1d-hero{margin:-14px -12px 0!important;padding:14px 12px 24px;background:linear-gradient(180deg,var(--r1d-top) 0%,var(--r1d-bottom) 100%);color:#fff;text-align:center;overflow:hidden}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpis-calm{display:block!important;margin:0!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit{display:flex!important;flex-direction:column;align-items:center!important;justify-content:center;gap:4px;width:100%;min-height:0!important;padding:4px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit .metric-head{justify-content:center!important;margin:0!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit .dashboard-kpi-label{font-size:14px!important;font-weight:600!important;color:#D1D1D6!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit .dashboard-kpi-label::before{display:none!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit .metric-value{color:#fff!important;font-size:clamp(34px,12vw,48px)!important;letter-spacing:-.03em!important;font-weight:700!important;line-height:1.05!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit .metric-value .amount-cents{color:#ffffffa6!important}
  html body #mainApp#mainApp #content .r1d-hero .motion-kpi-extra{display:none!important}
  html body #mainApp#mainApp #content .r1d-period{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:10px}
  html body #mainApp#mainApp #content .r1d-trend{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border-radius:999px;background:#ffffff1f;color:#fff;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
  html body #mainApp#mainApp #content .r1d-period .dashboard-period-control{flex:0 0 auto!important;width:auto!important;justify-content:center!important;margin:0!important}
  html body #mainApp#mainApp #content .r1d-period .period-seg .period-seg-select{background-color:#ffffff1f!important;color:#fff!important;border:0!important}
  html body #mainApp#mainApp #content .r1d-actions{display:flex;justify-content:space-around;margin-top:18px}
  html body #mainApp#mainApp #content .r1d-action{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:64px;padding:0;border:0;background:transparent;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
  html body #mainApp#mainApp #content .r1d-action-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#ffffff1f}
  html body #mainApp#mainApp #content .r1d-action-icon .icon{width:20px;height:20px;color:#fff}
  html body #mainApp#mainApp #content .r1d-action:active .r1d-action-icon{background:#ffffff38}
  html body #mainApp#mainApp #content .r1d-bento{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr 1fr;gap:8px;margin:12px 0 0!important;border:0;background:transparent;overflow:visible;position:relative}
  html body #mainApp#mainApp #content .r1d-bento .r1d-tile{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:8px;min-width:0;min-height:96px;margin:0;padding:14px 15px;border:0;border-radius:20px;background:var(--calm-surface);color:var(--calm-ink);font:inherit;text-align:left;cursor:pointer;overflow:hidden;box-shadow:none!important;border:0!important;border-radius:24px!important;background:var(--calm-surface)!important}
  html body #mainApp#mainApp #content .r1d-bento .r1d-tile::before{display:none}
  html body #mainApp#mainApp #content .r1d-bento .calm-label{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--calm-label)}
  html body #mainApp#mainApp #content .r1d-bento .calm-label::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--kpi-dot,#8A949B)}
  html body #mainApp#mainApp #content .r1d-bento .calm-value{min-width:0;font-size:clamp(16px,5.2vw,20px);font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:normal!important;overflow-wrap:anywhere}
  html body #mainApp#mainApp #content .r1d-bento .r1d-tile.has-attention .calm-value{color:#C0392B}
  html body #mainApp#mainApp #content .r1d-omzet{grid-column:1/3}
  html body #mainApp#mainApp #content .r1d-omzet .calm-value{font-size:clamp(20px,6.8vw,26px)}
  html body #mainApp#mainApp #content .r1d-kosten{grid-row:2/4;min-height:220px!important}
  html body #mainApp#mainApp #content .r1d-kosten .calm-value{font-size:clamp(17px,6vw,23px)}
  html body #mainApp#mainApp #content .r1d-bars{flex:1;display:flex;align-items:flex-end;gap:5px;min-height:70px}
  html body #mainApp#mainApp #content .r1d-bars i{flex:1;border-radius:5px;background:#FBE3E1}
  html body #mainApp#mainApp #content .r1d-bars i.is-now{background:#E5534B}
  html body #mainApp#mainApp #content .r1d-meter{display:block;height:6px;border-radius:6px;background:var(--calm-soft,#EEF0F2);overflow:hidden}
  html body #mainApp#mainApp #content .r1d-meter i{display:block;height:100%;border-radius:6px;background:#F2B233}
  html body #mainApp#mainApp #content .r1d-meter.is-free i{background:#3B82F6}
  html body #mainApp#mainApp #content .r1d-note{font-size:12px;font-weight:500;color:var(--calm-muted)}
  html body #mainApp#mainApp #content .r1d-pills{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-top:14px}
  html body #mainApp#mainApp #content .r1d-pills .calm-todo{margin:0;flex:1 1 100%}
  html body #mainApp#mainApp #content .r1d-pills .calm-todo:not([open]){flex:0 0 auto}
  html body #mainApp#mainApp #content .r1d-hours{min-height:40px;padding:0 14px;border:0;border-radius:999px;background:var(--calm-soft);color:var(--calm-ink);font:inherit;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer}
  /* The same band on every phone page: title, the page's one number, period and shortcuts (Kwin: "A, en kies voor consistentie"). */
  html body #mainApp#mainApp #content .r1d-moved{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
  html body #mainApp#mainApp #content .r1d-title h1{margin:0!important;font-size:17px!important;font-weight:650!important;letter-spacing:0!important;line-height:1.3!important;color:#fff!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .calm-kpis{display:block!important;margin:6px 0 0!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero{display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;min-height:0!important;padding:4px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .metric-head{justify-content:center!important;margin:0!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero :is(.product-kpi-label,.product-kpi-label span){font-size:14px!important;font-weight:600!important;color:#D1D1D6!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .product-kpi-label::before{display:none!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .product-kpi-icon{display:none!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .metric-value{color:#fff!important;font-size:clamp(32px,11vw,44px)!important;letter-spacing:-.03em!important;font-weight:700!important;line-height:1.05!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .metric-value .amount-cents{color:#ffffffa6!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .metric-sub{color:#D1D1D6!important;font-size:13px!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .metric-sub.is-empty{display:none!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero .motion-kpi-extra{display:none!important}
  html body #mainApp#mainApp #content .r1d-page .r1d-period .page-period-slot{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;justify-content:center!important;width:auto!important;margin:0!important}
  html body #mainApp#mainApp #content .r1d-page .r1d-period :is(.period-seg-select,select,.btn){background-color:#ffffff1f!important;color:#fff!important;border:0!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero :is(.kpi-time,.kpi-time span){background:#ffffff26!important;color:#fff!important}
  html body #mainApp#mainApp #content .r1d-page .r1d-period .btn svg{color:#fff!important;stroke:currentColor}
  html body #mainApp#mainApp #content>.r1d-hero+.product-page-shell{height:0!important;margin:0!important;overflow:hidden!important}
  /* Kwin 2026-10-23 ("dit lijkt er niet op"): closer to his R1D pick. Grey page, white cards that start on the green, small grey cents, one pill for trend and period, and a top bar that scrolls away with the band. */
  html:has(#content:where(:not(.bk-peek))>.r1d-hero:not(.r1d-page)) body,html body #mainApp#mainApp:has(#content:where(:not(.bk-peek))>.r1d-hero:not(.r1d-page)) :is(.main,#content){background:#F2F3F5!important}
  html body #mainApp#mainApp #content>.r1d-hero:not(.r1d-page){position:relative;overflow:visible;overflow-x:clip;padding-bottom:22px}
  html body #mainApp#mainApp #content>.r1d-hero:not(.r1d-page)::after{content:"";position:absolute;left:0;right:0;top:100%;height:52px;background:var(--r1d-bottom);pointer-events:none}
  html body #mainApp#mainApp #content .r1d-bento{z-index:1}
  html body #mainApp#mainApp #content .r1d-bento .r1d-tile{padding:16px 18px!important}
  html body #mainApp#mainApp #content .r1d-bento .calm-value .amount-cents{font-size:.62em;font-weight:600;letter-spacing:0;color:var(--calm-label)}
  html body #mainApp#mainApp #content .r1d-omzet{min-height:0!important;gap:4px!important}
  html body #mainApp#mainApp #content .r1d-omzet .calm-value{font-size:clamp(24px,8vw,30px)!important}
  html body #mainApp#mainApp #content :is(.r1d-open,.r1d-free) .calm-value{font-size:clamp(18px,6vw,22px)}
  html body #mainApp#mainApp #content .r1d-pill{display:inline-flex;align-items:center;gap:2px;min-height:36px;padding:0 2px 0 12px;border-radius:999px;background:#ffffff26}
  html body #mainApp#mainApp #content .r1d-pill:not(:has(.r1d-trend)){padding-left:2px}
  html body #mainApp#mainApp #content .r1d-pill .r1d-trend{min-height:0;padding:0;background:transparent;font-size:15px}
  html body #mainApp#mainApp #content .r1d-pill .period-seg .period-seg-select{background-color:transparent!important;font-size:15px!important;font-weight:650!important;padding-left:6px!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit .metric-value{font-size:clamp(40px,14vw,56px)!important}
  html body #mainApp#mainApp #content .r1d-hero .dashboard-kpi-profit .dashboard-kpi-label{font-size:17px!important;color:#fff!important}
  html body #mainApp#mainApp #content .r1d-action-icon{width:52px;height:52px}
  html body #mainApp#mainApp #content .r1d-action{font-size:13px}
  html body #mainApp#mainApp .topbar #quickNew{background:#16191C!important;color:#fff!important}
  html body #mainApp#mainApp .topbar #quickNew .icon{color:#fff!important}
  html[data-theme="dark"]:has(#content:where(:not(.bk-peek))>.r1d-hero:not(.r1d-page)) body,html[data-theme="dark"] body #mainApp#mainApp:has(#content:where(:not(.bk-peek))>.r1d-hero:not(.r1d-page)) :is(.main,#content){background:var(--calm-bg,#0F1214)!important}
  html[data-theme="dark"] body #mainApp#mainApp .topbar #quickNew{background:#2E353B!important;color:#fff!important}
  html[data-theme="dark"] body #mainApp#mainApp .topbar #quickNew .icon{color:#fff!important}
  html[data-theme="dark"] body #mainApp#mainApp:has(#content:where(:not(.bk-peek)) .r1d-hero) .topbar :is(.mobile-menu,.top-actions>button:not(#quickNew)){border-radius:50%!important;background:#ffffff1f!important;color:#fff!important}
  /* Kwin 2026-10-23 "inspiratie van Revolut": a Recent card under the blocks. The search is a magnifier top right since 2026-11-02 (zoeken.css). */
  html body #mainApp#mainApp:has(#content:where(:not(.bk-peek)) .r1d-hero) .topbar .top-actions{flex:1 1 auto!important;max-width:none!important;justify-content:flex-end!important;margin-left:12px!important}
  html body #mainApp#mainApp #content .r1d-recent{margin:12px 0 0!important;padding:8px 6px;border-radius:24px;background:var(--calm-surface)}
  html body #mainApp#mainApp #content .r1d-recent h2{margin:6px 12px 4px!important;font-size:15px!important;font-weight:650!important;color:var(--calm-label)!important}
  html body #mainApp#mainApp #content .r1d-recent-row{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:8px 12px;border:0;border-radius:16px;background:transparent;color:var(--calm-ink);font:inherit;text-align:left;cursor:pointer}
  html body #mainApp#mainApp #content .r1d-recent-row:active{background:var(--calm-soft)}
  html body #mainApp#mainApp #content .r1d-recent-row>:first-child{flex:0 0 auto;width:40px!important;height:40px!important}
  html body #mainApp#mainApp #content .r1d-recent-text{display:flex;flex-direction:column;flex:1;min-width:0}
  html body #mainApp#mainApp #content .r1d-recent-text strong{overflow:hidden;font-size:15px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
  html body #mainApp#mainApp #content .r1d-recent-text span{overflow:hidden;font-size:13px;color:var(--calm-muted);text-overflow:ellipsis;white-space:nowrap}
  html body #mainApp#mainApp #content .r1d-recent-amount{flex:0 0 auto;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
  html body #mainApp#mainApp #content .r1d-recent-amount.is-in{color:#1F7A4A}
  html[data-theme="dark"] body #mainApp#mainApp #content .r1d-recent-amount.is-in{color:#63D471}
  html body #mainApp#mainApp #content .r1d-title .page-status{margin:2px 0 0!important;font-size:13px!important;color:#D1D1D6!important}
  html body #mainApp#mainApp #content .r1d-hero .kpi-hero .metric-value{max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero.metric-wide .metric-value{font-size:clamp(24px,8vw,32px)!important}
  html body #mainApp#mainApp #content .r1d-hero.r1d-page .product-kpi.kpi-hero.metric-huge .metric-value{font-size:clamp(20px,6.4vw,26px)!important}
  html[data-theme="dark"]{--r1d-top:#07150D;--r1d-bottom:#17583A}
  html[data-theme="dark"] body #mainApp#mainApp #content .r1d-bars i{background:#3A2422}
  html[data-theme="dark"] body #mainApp#mainApp #content .r1d-bars i.is-now{background:#E5534B}

/* 25a. Kwin 2026-10-23 "inlogscherm in museumstijl" (pick C1, without the receipt), phone only.
   The login opens on a white screen: "Boe / ku / na." in a serif over a marble statue (Pietro Bernini, Flora,
   The Met, public domain), the promise and one green Inloggen button. The existing form becomes a sheet.
   Desktop keeps the form as it was. */
@font-face{font-family:"Boekuna Serif";src:url("/assets/app-PlayfairDisplay-latin.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
#authRoot .auth-museum,#authRoot .auth-sheet-grab{display:none}
@media(max-width:820px){
  #authRoot .auth-form:has(>.auth-museum){--museum-bg:#FFFFFF;--museum-ink:#14201A;--museum-muted:#5E6A63;--museum-sheet:#FFFFFF}
  #authRoot .auth-museum{display:block;position:fixed;inset:0;z-index:20;background:var(--museum-bg);overflow:hidden}
  #authRoot .auth-museum-beeld{position:absolute;left:50%;top:calc(env(safe-area-inset-top,0px) + 4dvh);height:min(66dvh,600px);width:auto;max-width:none;transform:translateX(-44%);pointer-events:none;user-select:none;-webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent 99%);mask-image:linear-gradient(to bottom,#000 78%,transparent 99%)}
  #authRoot .auth-museum-word{position:absolute;z-index:1;left:max(22px,env(safe-area-inset-left,0px));top:calc(env(safe-area-inset-top,0px) + 9dvh);margin:0;font-family:"Boekuna Serif","Playfair Display",Georgia,"Times New Roman",serif!important;font-weight:400;font-size:min(36vw,19dvh,170px);line-height:.8;letter-spacing:-.02em;color:var(--museum-ink)}
  #authRoot .auth-museum-word span,#authRoot .auth-museum-word i{font-family:inherit!important}
  #authRoot .auth-museum-word span{display:block}
  #authRoot .auth-museum-word span:nth-child(2){margin-left:.8em}
  #authRoot .auth-museum-word span:nth-child(3){margin-left:.12em}
  #authRoot .auth-museum-word i{font-style:normal;color:#63D471}
  #authRoot .auth-museum-foot{position:absolute;z-index:2;left:max(24px,env(safe-area-inset-left,0px));right:max(24px,env(safe-area-inset-right,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 24px);display:grid;gap:12px}
  #authRoot .auth-museum-tag{margin:0!important;text-align:center;font-family:"Boekuna Serif","Playfair Display",Georgia,serif!important;font-size:18px!important;line-height:1.3;color:var(--museum-ink)!important}
  #authRoot .auth-museum .auth-museum-cta{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;min-height:54px;border-radius:14px;font-size:17px;margin:0}
  #authRoot .auth-museum-link{border:0;background:transparent;min-height:44px;font:inherit;font-size:15px;font-weight:600;color:var(--museum-muted)}
  #authRoot .auth-museum-backdrop{position:absolute;inset:0;z-index:3;border:0;padding:0;margin:0;background:rgba(10,16,12,.32);opacity:0;pointer-events:none;transition:opacity .25s ease}
  #authRoot .auth-form.is-sheet-open .auth-museum-backdrop{opacity:1;pointer-events:auto}
  #authRoot .auth-sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;max-height:92dvh;overflow-y:auto;background:var(--museum-sheet);border-radius:22px 22px 0 0;padding:8px max(24px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 24px) max(24px,env(safe-area-inset-left,0px));transform:translateY(104%);visibility:hidden;transition:transform .34s cubic-bezier(.2,.8,.2,1),visibility 0s linear .34s}
  #authRoot .auth-form.is-sheet-open .auth-sheet{transform:none;visibility:visible;transition:transform .34s cubic-bezier(.2,.8,.2,1),visibility 0s}
  /* Fields inside take visibility from the sheet at once (their own "transition:all" would keep them hidden for a moment, so focus failed). */
  #authRoot .auth-sheet *{transition-property:background-color,border-color,color,box-shadow,opacity!important}
  #authRoot .auth-sheet-grab{display:block;width:100%;height:28px;margin:0 0 6px;border:0;background:transparent;position:relative}
  #authRoot .auth-sheet-grab::after{content:"";position:absolute;left:50%;top:10px;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:#D5D9D6}
  #authRoot .auth-sheet>.eyebrow,#authRoot .auth-sheet>h2+p{display:none}
  #authRoot .auth-sheet>h2{font-family:"Boekuna Serif","Playfair Display",Georgia,serif!important;font-weight:400!important;font-size:30px!important;letter-spacing:-.01em;margin:0 0 16px!important}
  html[data-theme="dark"] #authRoot .auth-form:has(>.auth-museum){--museum-bg:#0F1311;--museum-ink:#F1F3F2;--museum-muted:#A3ADA7;--museum-sheet:#171B19}
  html[data-theme="dark"] #authRoot .auth-sheet-grab::after{background:#3A413D}
}
@media(max-width:820px) and (prefers-reduced-motion:reduce){
  #authRoot .auth-sheet,#authRoot .auth-form.is-sheet-open .auth-sheet,#authRoot .auth-museum-backdrop{transition:none}
}

/* 25. Premium zoals Revolut (Kwin 2026-10-23), phone only: the overview blocks are widgets (on/off, own order),
   a Widgets sheet with live previews. (The Thema sheet with band colours and Sfeer photos was removed 2026-11-02: one fixed theme, Diep groen.) */
@media (max-width:820px){
  /* Widgets: the blocks keep the chosen order (no dense packing); phoneWidgetSizes() grows a block instead of leaving a gap. */
  html body #mainApp#mainApp #content .r1d-bento{grid-template-rows:none;grid-auto-rows:minmax(96px,auto);grid-auto-flow:row;align-items:stretch}
  html body #mainApp#mainApp #content .r1d-w{display:flex;min-width:0;min-height:0}
  html body #mainApp#mainApp #content .r1d-w>*{flex:1 1 auto;min-width:0}
  html body #mainApp#mainApp #content .r1d-w-wide,html body #mainApp#mainApp #content .r1d-w-full{grid-column:1/3}
  html body #mainApp#mainApp #content .r1d-w-tall{grid-row:span 2}
  html body #mainApp#mainApp #content .r1d-w .r1d-kosten{min-height:200px!important}
  html body #mainApp#mainApp #content .r1d-w .r1d-recent{margin:0!important}
  html body #mainApp#mainApp #content .r1d-bento .r1d-text{min-width:0;font-size:clamp(17px,5.6vw,21px);font-weight:700;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body #mainApp#mainApp #content .r1d-bento .is-clear .r1d-text{color:var(--calm-muted);font-weight:600}
  html body #mainApp#mainApp #content .r1d-bento .has-attention .r1d-text{color:#C0392B}
  html body #mainApp#mainApp #content .r1d-bento .r1d-tile .r1d-note{margin-top:-4px}
  /* Widgets under the blocks: one quiet pill, as Revolut's "Widgets toevoegen". */
  html body #mainApp#mainApp #content .r1d-custom{display:flex;justify-content:center;gap:8px;margin:0 0 6px}
  html body #mainApp#mainApp #content .r1d-custom-btn{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 16px 0 13px;border:0;border-radius:999px;background:var(--calm-surface);color:var(--calm-label);font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:transform .12s ease,background .12s ease}
  html body #mainApp#mainApp #content .r1d-custom-btn .icon{width:17px;height:17px;color:var(--calm-label)}
  html body #mainApp#mainApp #content .r1d-custom-btn:active{transform:scale(.97);background:var(--calm-soft)}
  /* The Widgets sheet: nearly full height, close top-left, live previews in two columns. */
  html body #modalRoot#modalRoot .modal-backdrop.widget-sheet-backdrop{align-items:flex-end!important;padding:0!important;background:rgba(10,14,12,.5)!important}
  html body #modalRoot#modalRoot .modal.widget-sheet{outline:none;display:flex;flex-direction:column;width:100%!important;max-width:none!important;border:0!important;border-radius:28px 28px 0 0!important;background:#F2F3F5!important;box-shadow:0 -12px 40px rgba(0,0,0,.18)!important}
  html body #modalRoot#modalRoot .modal.widget-sheet{height:calc(var(--mobile-viewport-height,100dvh) - 56px);max-height:none!important}
  html body #modalRoot#modalRoot .widget-sheet .modal-head{flex-direction:row-reverse;justify-content:flex-end;gap:12px;padding:16px 18px 6px!important;border:0!important;background:transparent!important}
  html body #modalRoot#modalRoot .widget-sheet .modal-head h3{font-size:26px!important;font-weight:750!important;letter-spacing:-.03em!important}
  html body #modalRoot#modalRoot .widget-sheet .modal-close{width:38px!important;height:38px!important;border-radius:50%!important;background:#fff!important;font-size:18px!important;color:var(--calm-ink)!important;flex:0 0 auto}
  html body #modalRoot#modalRoot .widget-sheet .modal-body{flex:1 1 auto;padding:10px 12px 20px!important;overflow:auto;overscroll-behavior:contain}
  html body #modalRoot#modalRoot .widget-sheet .modal-foot{border:0!important;background:transparent!important;justify-content:stretch!important;padding:8px 16px calc(12px + env(safe-area-inset-bottom,0px))!important}
  html body #modalRoot#modalRoot .widget-sheet .r1d-wdone{width:100%;min-height:52px;border-radius:999px!important;font-size:16px!important}
  html body #modalRoot#modalRoot .r1d-wgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  html body #modalRoot#modalRoot .r1d-wcard{position:relative;display:flex;flex-direction:column;min-width:0;border-radius:22px;background:#fff;overflow:hidden;opacity:.62;transition:opacity .18s ease,transform .18s ease;touch-action:manipulation;user-select:none;-webkit-user-select:none}
  html body #modalRoot#modalRoot .r1d-wcard.is-on{opacity:1}
  html body #modalRoot#modalRoot .r1d-wcard.is-lifted{transform:scale(1.04);box-shadow:0 14px 30px rgba(0,0,0,.18);z-index:2}
  html body #modalRoot#modalRoot .r1d-wcard.is-ghost{opacity:.25}
  html body #modalRoot#modalRoot .r1d-wcard.is-dragging{opacity:1;transform:scale(1.06) rotate(1deg);box-shadow:0 18px 40px rgba(0,0,0,.24);transition:none;cursor:grabbing}
  html body #modalRoot#modalRoot .r1d-wcard{-webkit-touch-callout:none}
  /* The card that follows the finger lives on <body> (SortableJS fallbackOnBody), so the sheet cannot clip it. */
  html body>.r1d-wcard.is-dragging{position:fixed;display:flex;flex-direction:column;min-width:0;border-radius:22px;background:#fff;overflow:hidden;opacity:1!important;transform:scale(1.06) rotate(1deg);box-shadow:0 18px 40px rgba(0,0,0,.24);z-index:10000;pointer-events:none;font-family:var(--sans)}
  html[data-theme="dark"] body>.r1d-wcard.is-dragging{background:var(--calm-surface)}
  /* Btw: the period pill in the band (same filters as before). */
  html body #mainApp#mainApp #content .r1d-hero .r1d-pill-btn{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px 0 14px;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
  html body #mainApp#mainApp #content .r1d-hero .r1d-pill-btn .icon{width:14px;height:14px;opacity:.85;transform:rotate(90deg)}
  /* Rapportages: the total sits in the band like the main number on every other page. */
  html body #mainApp#mainApp #content .r1d-hero .r1d-story-hero{text-align:center;margin:4px 0 2px}
  html body #mainApp#mainApp #content .r1d-hero .r1d-story-hero .report-story-amount{display:block;margin:0;font-size:36px;font-weight:750;letter-spacing:-.03em;line-height:1.1;color:#fff;font-variant-numeric:tabular-nums}
  html body #mainApp#mainApp #content .r1d-hero .r1d-story-hero .report-story-label{margin:4px 0 0;font-size:13px;font-weight:500;color:rgba(255,255,255,.78)}
  html body #modalRoot#modalRoot :is(.r1d-wcard-full,.r1d-wcard-wide){grid-column:1/3}
  html body #modalRoot#modalRoot .r1d-wcard-tall{grid-row:span 2}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev{flex:1 1 auto;min-height:112px;pointer-events:none}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-tile{display:flex;flex-direction:column;justify-content:space-between;gap:6px;width:100%;height:100%;min-height:112px;padding:14px 16px 10px;border:0;border-radius:0;background:transparent;color:var(--calm-ink);font:inherit;text-align:left}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .calm-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--calm-label)}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .calm-label::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--kpi-dot,#8A949B)}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .calm-value,html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-text{font-size:20px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .calm-value .amount-cents{font-size:.62em;font-weight:600;color:var(--calm-label)}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-bars{display:flex;align-items:flex-end;gap:4px;height:44px}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-bars i{flex:1;border-radius:4px;background:#FBE3E1}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-bars i.is-now{background:#E5534B}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-meter{display:block;height:5px;border-radius:5px;background:var(--calm-soft);overflow:hidden}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-meter i{display:block;height:100%;border-radius:5px;background:#F2B233}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-meter.is-free i{background:#3B82F6}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-note{font-size:12px;color:var(--calm-muted)}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .has-attention :is(.calm-value,.r1d-text){color:#C0392B}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .is-clear .r1d-text{color:var(--calm-muted);font-weight:600}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent{padding:12px 16px 6px}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent h2{margin:0 0 6px;font-size:13px;font-weight:600;color:var(--calm-label)}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-row{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:4px 0;border:0;background:transparent;color:var(--calm-ink);font:inherit;text-align:left}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-row:nth-child(n+4){display:none}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-row>:first-child{flex:0 0 auto;width:30px!important;height:30px!important;font-size:11px}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-text{display:flex;flex-direction:column;flex:1;min-width:0}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-text strong{overflow:hidden;font-size:14px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-text span{display:none}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-amount{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wprev .r1d-recent-amount.is-in{color:#1F7A4A}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wempty{display:block;padding:16px;font-size:14px;color:var(--calm-muted)}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px 10px 16px}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wname{font-size:13px;font-weight:600;color:var(--calm-muted)}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wtoggle{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:var(--calm-soft);color:var(--calm-ink);cursor:pointer;transition:transform .12s ease,background .12s ease}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wtoggle .icon{width:16px;height:16px;stroke-width:2.4}
  html body :is(#modalRoot#modalRoot .r1d-wcard.is-on,.r1d-wcard.is-dragging.is-on) .r1d-wtoggle{background:#1F7A4A;color:#fff}
  html body :is(#modalRoot#modalRoot,.r1d-wcard.is-dragging) .r1d-wtoggle:active{transform:scale(.9)}
  html body #modalRoot#modalRoot .r1d-whint{margin:16px 6px 0;text-align:center;font-size:13px;color:var(--calm-muted)}
  html[data-theme="dark"] body #modalRoot#modalRoot .modal.widget-sheet{background:var(--calm-bg,#0F1214)!important}
  html[data-theme="dark"] body #modalRoot#modalRoot .widget-sheet .modal-close,html[data-theme="dark"] body #modalRoot#modalRoot .r1d-wcard{background:var(--calm-surface)!important}
  html[data-theme="dark"] body #modalRoot#modalRoot .r1d-wprev .r1d-bars i{background:#3A2422}
  html[data-theme="dark"] body #modalRoot#modalRoot .r1d-wprev .r1d-bars i.is-now{background:#E5534B}
  html[data-theme="dark"] body #modalRoot#modalRoot .r1d-wprev .r1d-recent-amount.is-in{color:#63D471}
}
/* 27. Overzicht-stijl overal (Kwin 2026-10-24, "top"), phone only: the band colour (or the Sfeer photo) is the whole screen,
   fixed behind the page; on it text is white, search and filters are glass pills like the period pill, content sits in
   white blocks like the widgets; every sheet looks like the Widgets sheet; Factuur bekijken and the menu open on the colour. */
@media (max-width:820px){
  :root{--r1d-canvas:linear-gradient(180deg,var(--r1d-top) 0%,var(--r1d-bottom) 45%,color-mix(in srgb,var(--r1d-bottom) 50%,var(--r1d-top)) 100%);--r1d-glass:rgba(255,255,255,.14);--r1d-on:#fff;--r1d-on-soft:rgba(255,255,255,.76);--r1d-sheet:#F2F3F5}
  html[data-theme="dark"]{--r1d-sheet:var(--calm-bg,#0F1214)}
  /* 1. The colour (or Sfeer photo) is the whole screen, fixed behind everything; the page scrolls over it. */
  html:has(#mainApp:not(.hidden)){background:var(--r1d-top)!important}
  html:root:has(#mainApp:not(.hidden)):has(#content) body:has(#mainApp:not(.hidden)){background:transparent!important}
  html body:has(#mainApp:not(.hidden))::before{content:"";position:fixed;inset:0;z-index:-1;background:var(--r1d-canvas);pointer-events:none}
  html body #mainApp#mainApp#mainApp,html body #mainApp#mainApp#mainApp:is(*,:has(#content:where(:not(.bk-peek))>.r1d-hero)):has(#content) :is(#appMain,#content){background:transparent!important}
  html body #mainApp#mainApp#mainApp:has(#content:where(:not(.bk-peek)) .r1d-hero) .topbar{background:transparent!important}
  html body #mainApp#mainApp#mainApp #content>.r1d-hero{background:transparent!important;margin-top:-14px!important;padding-top:14px!important}
  html body #mainApp#mainApp#mainApp #content>.r1d-hero::after{display:none!important}
  /* 2. On the colour: text white, controls glass (like the period pill), content in white cards (like the widgets). */
  html body #mainApp#mainApp #content .r1d-custom-btn,html body #mainApp#mainApp #content .r1d-hours{background:var(--r1d-glass);color:var(--r1d-on)}
  html body #mainApp#mainApp #content .r1d-custom-btn .icon{color:var(--r1d-on)}
  html body #mainApp#mainApp#mainApp #content :is(.list-search-box,.settings-search){background:var(--r1d-glass)!important;border:0!important;color:var(--r1d-on)!important;border-radius:999px!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content :is(.list-search-box,.settings-search) input{background:transparent!important;color:var(--r1d-on)!important;border:0!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content :is(.list-search-box,.settings-search) input::placeholder{color:var(--r1d-on-soft)!important}
  html body #mainApp#mainApp#mainApp #content :is(.list-search-box,.settings-search) :is(.icon,svg){color:var(--r1d-on-soft)!important}
  html body #mainApp#mainApp#mainApp #content .list-chip-row :is(.filter-btn,.list-chip-select,.list-chip-more){background-color:var(--r1d-glass)!important;color:var(--r1d-on)!important;border:0!important;box-shadow:none!important}
  html body #mainApp#mainApp#mainApp #content .list-chip-row .list-chip-select :is(select,span){background-color:transparent!important;color:var(--r1d-on)!important}
  html body #mainApp#mainApp#mainApp #content .list-chip-row .filter-btn.active{background:#fff!important;color:#16191C!important}
  html body #mainApp#mainApp#mainApp #content .list-chip-row .list-chip-gap{background:rgba(255,255,255,.3)!important}
  html body #mainApp#mainApp#mainApp #content#content :is(.card.table-card,.card.documents-workspace,.report-story,.report-story-facts,.dashboard-attention,#content>.card,#profileForm>.profile-section,#profileForm>.profile-more){background:var(--calm-surface)!important;border:0!important;border-radius:24px!important;box-shadow:none!important;color:var(--calm-ink)}
  html body #mainApp#mainApp#mainApp #content#content .card.table-card{padding:6px 14px!important;overflow:hidden}
  html body #mainApp#mainApp#mainApp #content#content :is(.card.documents-workspace,.dashboard-attention,#content>.card:not(.table-card),#profileForm>.profile-section,#profileForm>.profile-more){padding:16px!important}
  html body #mainApp#mainApp#mainApp #content#content #profileForm>.profile-more{margin-top:12px!important}
  html body #mainApp#mainApp#mainApp #content#content .report-story{padding:14px 14px 10px!important;margin-top:12px!important}
  html body #mainApp#mainApp#mainApp #content :is(.settings-quick-label,.settings-center-group-label,.vat-phone-note,.trip-rate,.bank-list-title,.bank-list-title *){color:var(--r1d-on)!important}
  html body #mainApp#mainApp#mainApp #content :is(.vat-phone-note,.trip-rate){color:var(--r1d-on-soft)!important}
  html body #mainApp#mainApp#mainApp #content :is(.assistant-disclaimer:not(.card *,.r1d-recent *),#content>.help){color:var(--r1d-on-soft)!important}
  html body #mainApp#mainApp#mainApp #content .settings-profile-card{border:0!important;border-radius:24px!important}
  html body #mainApp#mainApp#mainApp #content .settings-quick-tile{border:0!important;border-radius:22px!important}
  html body #mainApp#mainApp#mainApp #content .settings-center-group>:not(h2){border:0!important;border-radius:22px!important}
  html body #mainApp#mainApp#mainApp #content .r1d-bento .r1d-tile{border-radius:24px!important}

  /* 3. Every sheet looks the same: light grey, round top, big title on the left edge of the fields, a round close button, white blocks. */
  html body #modalRoot#modalRoot .modal-backdrop:not(.invoice-page-backdrop){align-items:flex-end!important;padding:0!important;background:rgba(10,14,12,.5)!important}
  html body #modalRoot#modalRoot .modal:not(.invoice-page){width:100%!important;max-width:none!important;border:0!important;border-radius:28px 28px 0 0!important;background:var(--r1d-sheet)!important;box-shadow:0 -12px 40px rgba(0,0,0,.18)!important}
  html body #modalRoot#modalRoot .modal .modal-head{flex-direction:row!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:16px 16px 6px!important;border:0!important;background:transparent!important}
  html body #modalRoot#modalRoot .modal .modal-head h3{font-size:24px!important;font-weight:750!important;letter-spacing:-.03em!important;color:var(--calm-ink)!important}
  html body #modalRoot#modalRoot .modal .modal-close{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border:0!important;border-radius:50%!important;background:var(--calm-surface)!important;font-size:18px!important;color:var(--calm-ink)!important;box-shadow:none!important;outline:none!important;flex:0 0 auto}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .modal-body{background:transparent!important}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .modal-foot{border:0!important;background:transparent!important}
  html body #modalRoot#modalRoot .modal :is(.modal-foot .btn.primary){border-radius:999px!important;min-height:50px}
  html body #modalRoot#modalRoot .quick-action-modal .quick-tile{background:var(--calm-surface)!important;border:0!important;border-radius:22px!important}
  html body #modalRoot#modalRoot .quick-action-modal .quick-rows{margin-top:12px!important;padding:4px 14px!important;border-radius:22px!important;background:var(--calm-surface)!important}
  html body #modalRoot#modalRoot .quick-action-modal .quick-rows .quick-action:last-child{border-bottom:0!important}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:var(--calm-surface)!important;border-color:transparent!important;border-radius:14px!important}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .expense-form :is(.chip,.choice-chip,button[aria-pressed="false"]){background:var(--calm-surface)!important;border-color:transparent!important}

  /* 4. Full-screen pages (Factuur bekijken) open on the same colour: title and amount white, blocks white. */
  html body #modalRoot#modalRoot .modal.invoice-page{background:var(--r1d-canvas)!important;color:var(--r1d-on)}
  html body #modalRoot#modalRoot .modal.invoice-page :is(.modal-head,.modal-body){background:transparent!important}
  html body #modalRoot#modalRoot .modal.invoice-page .modal-head h3{color:var(--r1d-on)!important;font-size:17px!important;font-weight:650!important}
  html body #modalRoot#modalRoot .modal.invoice-page .modal-close{background:var(--r1d-glass)!important;color:var(--r1d-on)!important}
  html body #modalRoot#modalRoot .modal.invoice-page .invoice-view-summary{text-align:center;align-items:center!important}
  html body #modalRoot#modalRoot .modal.invoice-page :is(.invoice-view-who,.invoice-view-status,.invoice-view-status *:not(.badge)){color:var(--r1d-on-soft)!important;justify-content:center}
  html body #modalRoot#modalRoot .modal.invoice-page .invoice-view-amount{color:var(--r1d-on)!important;font-size:clamp(34px,11vw,44px)!important}
  html body #modalRoot#modalRoot .modal.invoice-page .invoice-view-status .badge{background:var(--r1d-glass)!important;color:var(--r1d-on)!important;border:0!important}
  html body #modalRoot#modalRoot .modal.invoice-page .invoice-preview{border-radius:24px!important;border:0!important}
  html body #modalRoot#modalRoot .modal.invoice-page .invoice-timeline{margin-top:12px!important;padding:16px!important;border-radius:24px!important;background:var(--calm-surface)!important;color:var(--calm-ink)}
  html body #modalRoot#modalRoot .modal.invoice-page .a4-expand{color:var(--calm-ink)!important}
  html body #modalRoot#modalRoot .modal.invoice-page .modal-foot{background:var(--calm-surface)!important;border:0!important;border-radius:28px 28px 0 0!important}

  /* 5. The menu: the same colour, white text, the open page as a glass pill. */
  html body #sidebar#sidebar{background:var(--r1d-canvas)!important;border:0!important;color:var(--r1d-on)}
  html body #sidebar#sidebar :is(.bookuna-wordmark,.bookuna-wordmark *,.nav-item,.nav-item .icon,.drawer-who strong){color:var(--r1d-on)!important}
  html body #sidebar#sidebar :is(.nav-group,.bookuna-wordmark small,.drawer-who span){color:var(--r1d-on-soft)!important}
  html body #sidebar#sidebar .nav-item{background:transparent!important;border-radius:14px!important}
  html body #sidebar#sidebar .nav-item.active{background:var(--r1d-glass)!important}
  html body #sidebar#sidebar#sidebar .nav-item.active,html body #sidebar#sidebar#sidebar .nav-item.active :is(.icon,svg,span){color:#fff!important}
  html body #sidebar#sidebar#sidebar :is(.drawer-theme,.drawer-switch,.drawer-theme *){color:var(--r1d-on)!important}
  html body #sidebar#sidebar .drawer-profile{background:var(--r1d-glass)!important;border:0!important;border-radius:20px!important}
  html body #sidebar#sidebar .mobile-drawer-close{background:var(--r1d-glass)!important;color:var(--r1d-on)!important;border:0!important;border-radius:50%!important}
  /* 6. Kwin 2026-10-24 (iPhone): the iPhone strip behind the clock takes the page's top colour, so the page's top colour is the
     top of the photo; the photo fades in from that colour. The round + stays above the bottom bar with a photo too. */
  html.is-pointer body #mainApp#mainApp .topbar .mobile-menu:focus-visible{outline:none!important;box-shadow:none!important}
}

/* 28. Roast room top 5 (Kwin 2026-10-26, "bouw"), phone only.
   V1: the bottom bar floats as a glass pill in the band colour, so the colour (or Sfeer photo) runs to the bottom of the screen;
   the round + is white with the band colour inside. U2: one glass line under the band for what cannot wait (a late invoice).
   M1: sheets get a grip at the top (the slide itself lives in motion.css, the swipe in motion.js). */
@media (max-width:820px){
  :root{--r1d-bar:color-mix(in srgb,var(--r1d-top) 70%,transparent);--r1d-bar-gap:10px}
  html body #mobileBottomNav#mobileBottomNav{left:var(--r1d-bar-gap)!important;right:var(--r1d-bar-gap)!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;min-height:64px!important;padding:4px 6px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:32px!important;background:var(--r1d-bar)!important;-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);box-shadow:0 10px 30px rgba(0,0,0,.28)!important}
  html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item,html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item :is(.icon,span){color:rgba(255,255,255,.62)!important}
  html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item:is(.active,[aria-current="page"]),html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item:is(.active,[aria-current="page"]) :is(.icon,span){color:#fff!important}
  html body #mainApp#mainApp#mainApp .topbar #quickNew{bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;left:calc(50% - 26px)!important;border-radius:50%!important;background:#fff!important;color:var(--r1d-bottom)!important;box-shadow:0 6px 18px rgba(0,0,0,.25)!important}
  html body #mainApp#mainApp#mainApp .topbar #quickNew .icon{color:var(--r1d-bottom)!important;width:24px!important;height:24px!important}
  /* In Donker no white surfaces: the + and the alert button take the bright accent of the band (groen: the omzet green). */
  html[data-theme="dark"] body #mainApp#mainApp#mainApp .topbar #quickNew{background:var(--r1d-accent,#63D471)!important;color:var(--r1d-accent-ink,#0E2A16)!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp .topbar #quickNew .icon{color:var(--r1d-accent-ink,#0E2A16)!important}
  html[data-theme="dark"] body #mainApp#mainApp #content .r1d-alert-cta{background:var(--r1d-accent,#63D471);color:var(--r1d-accent-ink,#0E2A16)}
  html body #mainApp#mainApp #content{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important}

  html body #mainApp#mainApp #content .r1d-alert{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:12px 12px 12px 16px;border:0;border-radius:22px;background:var(--r1d-glass,rgba(255,255,255,.14));color:#fff;text-align:left;font:inherit;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
  html body #mainApp#mainApp #content .r1d-alert-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:#FF6B5E;box-shadow:0 0 0 4px rgba(255,107,94,.25)}
  html body #mainApp#mainApp #content .r1d-alert-copy{display:flex;flex-direction:column;gap:1px;flex:1 1 auto;min-width:0}
  html body #mainApp#mainApp #content .r1d-alert-copy strong{font-size:15px;font-weight:700;line-height:1.25;color:#fff}
  html body #mainApp#mainApp #content .r1d-alert-copy>span{font-size:13px;line-height:1.3;color:rgba(255,255,255,.76);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body #mainApp#mainApp #content .r1d-alert-more{margin-left:6px;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.2);font-size:12px;font-weight:700;vertical-align:1px}
  html body #mainApp#mainApp #content .r1d-alert-cta{flex:0 0 auto;padding:8px 14px;border-radius:999px;background:#fff;color:#16191C;font-size:14px;font-weight:700;white-space:nowrap}

  html body #modalRoot#modalRoot .modal:not(.invoice-page){position:relative}
  html body #modalRoot#modalRoot .modal:not(.invoice-page)::before{content:"";position:absolute;top:7px;left:50%;width:38px;height:5px;margin-left:-19px;border-radius:3px;background:color-mix(in srgb,var(--calm-ink) 22%,transparent);pointer-events:none;z-index:2}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .modal-head{touch-action:none}
}

/* 29. Netjes (Kwin 2026-10-26, "alles moet gewoon netjes eruit zien"), phone only: small details that broke the one look. */
@media (max-width:820px){
  /* Btw on Kosten toevoegen: round chips without a white square behind them, borderless like the Waarvoor chips below. */
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .expense-form label.choice-chip{background:transparent!important;border-radius:999px}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .expense-form .choice-chip input:not(:checked)+span{border-color:transparent!important}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .expense-form button.choice-chip-more{background:transparent!important}
  html body #modalRoot#modalRoot .modal:not(.invoice-page) .expense-form button.choice-chip-more span{border-color:transparent!important}
  /* Rit toevoegen: "wordt berekend" is a hint, not a value. */
  html body #modalRoot#modalRoot input[name="km"]::placeholder{font-weight:500}
  /* Filter chips that run off the screen fade out, so they read as "scroll for more" instead of cut off. */
  html body #mainApp#mainApp #content .list-chip-row{padding-right:28px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
  /* Empty states: the button has the same round shape as every other main button. */
  html body #mainApp#mainApp #content .beginner-empty-action .btn{border-radius:999px}
  /* Overview: the hours pill looks like the Widgets and Thema buttons, with a clock, centred like them. */
  html body #mainApp#mainApp #content .r1d-pills:has(>.r1d-hours:only-child){justify-content:center}
  html body #mainApp#mainApp #content .r1d-hours{display:inline-flex;align-items:center;gap:7px;padding:0 16px 0 13px;font-size:14px}
  html body #mainApp#mainApp #content .r1d-hours .icon{width:18px;height:18px}
  /* Menu: Donkere modus is a row like the others, with an icon and the same letters. */
  #sidebar .drawer-theme{font-size:13px;font-weight:600}
  #sidebar .drawer-theme-label{display:inline-flex;align-items:center;gap:11px;min-width:0}
  #sidebar .drawer-theme-label .icon{flex:0 0 auto;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
}

/* Rapportages "overzichtelijker" (Kwin 2026-10-28, phone only): the detail cards fold into one "Meer cijfers" list.
   One row per subject with its amount on the right; a tap opens the same content. */
#mainApp #content .report-folds{padding-bottom:4px}
#mainApp #content .report-fold{border-top:1px solid var(--calm-hair,#EEF0F2)}
#mainApp #content .report-folds>.section-head+.report-fold{border-top:0}
#mainApp #content .report-fold>summary{display:flex;align-items:center;gap:10px;min-height:52px;list-style:none;cursor:pointer;font-size:15px;color:var(--calm-ink,#1B1F23)}
#mainApp #content .report-fold>summary::-webkit-details-marker{display:none}
#mainApp #content .report-fold>summary:focus-visible{outline:2px solid #3B82F6;outline-offset:2px;border-radius:8px}
#mainApp #content .report-fold-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mainApp #content .report-fold-value{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#mainApp #content .report-fold-chevron{display:inline-flex;color:var(--calm-muted,#667179);transition:transform .2s}
#mainApp #content .report-fold-chevron .icon{width:16px;height:16px}
#mainApp #content .report-fold[open]>summary .report-fold-chevron{transform:rotate(90deg)}
#mainApp #content .report-fold-body{padding:0 0 14px}
#mainApp #content .report-fold-body>.section-meta{margin:0 0 8px}
#mainApp #content .report-share-actions{display:flex;justify-content:center;margin:12px 0 4px}
@media (prefers-reduced-motion:reduce){#mainApp #content .report-fold-chevron{transition:none}}

/* 30. Kleur C "Inkt met een groene gloed" (Kwin 2026-11-05, picked from four options), phone only.
   Huisstijl D (Kwin 2026-11-06, "Zwart, wit en één punt"): same build, now black, white and Apple greys; green only in
   the logo dot and where something is good (money in, done). The tokens below carry D.
   Proven rule 60-30-10: a calm light screen, white blocks, one accent. Colour now lives in one place, the band at the top:
   near black with a soft green glow and a round bottom edge (like Apple Wallet / Revolut Metal). Below it the page is light,
   text is ink, filters are white pills with a thin line (the one that is on is ink), the bottom bar is white glass and the +
   is ink with a green cross. Donker keeps the same build on a near-black screen. The financial colours stay as they were. */
@media (max-width:820px){
  :root{--r1d-top:#0A0A0A;--r1d-bottom:#0A0A0A;--c-glow:#1C1C1E;--c-canvas:#F5F5F7;--c-ink:#0A0A0A;--c-soft:#6E6E73;--c-pill:#FFFFFF;--c-pill-line:#E5E5E5;--c-mint:#FFFFFF;--c-dot:#3DDC84;
    --r1d-canvas:var(--c-canvas);--r1d-on:var(--c-ink);--r1d-on-soft:var(--c-soft);--r1d-glass:var(--c-pill);--r1d-sheet:#F5F5F7;--r1d-bar:rgba(255,255,255,.9);--r1d-strip:#0A0A0A}
  html[data-theme="dark"]{--r1d-top:#000000;--r1d-bottom:#000000;--c-glow:#2C2C2E;--c-canvas:#111111;--c-ink:#F5F5F7;--c-soft:#A1A1A6;--c-pill:#1C1C1E;--c-pill-line:#2C2C2E;--r1d-sheet:var(--calm-bg,#0F1214);--r1d-bar:rgba(24,28,26,.9)}
  /* The page itself is the light colour (the top strip of the iPhone stays ink like the band). */
  html:root:root:has(#mainApp:not(.hidden)):has(#content) body:has(#mainApp:not(.hidden)){background:var(--c-canvas)!important;min-height:100vh}
  /* The band: ink with a green glow, round at the bottom; the top bar above it is the same ink. */
  /* Kwin 2026-11-05: the glow runs on behind the menu and search buttons, so the top is one piece. The band reaches up under
     the see-through top bar (its height comes from look.js); once you scroll, the bar turns ink (klopt.js bk-compact). */
  html body #mainApp#mainApp#mainApp:has(#content:where(:not(.bk-peek)) .r1d-hero) .topbar{background:transparent!important;z-index:56}
  html body #mainApp#mainApp#mainApp #content>.r1d-hero{margin-top:calc(-14px - var(--r1d-topbar-h,68px))!important;padding-top:calc(14px + var(--r1d-topbar-h,68px))!important}
  html body #mainApp#mainApp#mainApp #content>.r1d-hero{--r1d-on:#fff;--r1d-on-soft:rgba(255,255,255,.76);--r1d-glass:rgba(255,255,255,.12);background:radial-gradient(90% 60% at 50% 52%,var(--c-glow) 0%,var(--r1d-top) 100%)!important;border-radius:0 0 30px 30px;margin-left:-12px!important;margin-right:-12px!important;padding-bottom:22px!important}
  html body #mainApp#mainApp#mainApp #content>.r1d-hero :is(.r1d-action-icon,.r1d-action>span:first-child){color:var(--c-mint)}
  html body #mainApp#mainApp#mainApp #content>.r1d-hero .r1d-trend{background:rgba(255,255,255,.14);color:var(--c-mint)}
  /* On the light page: ink text, white pills with a thin line; the chip that is on is ink. */
  html body #mainApp#mainApp#mainApp #content .list-chip-row :is(.filter-btn,.list-chip-select,.list-chip-more){background-color:var(--c-pill)!important;color:var(--c-ink)!important;border:1px solid var(--c-pill-line)!important}
  html body #mainApp#mainApp#mainApp #content .list-chip-row :is(.list-chip-more,.list-chip-filter) .icon{color:var(--c-ink)!important}
  html body #mainApp#mainApp#mainApp #content .list-chip-row .filter-btn.active{background:var(--c-ink)!important;color:var(--c-canvas)!important;border-color:var(--c-ink)!important}
  html body #mainApp#mainApp#mainApp #content#content :is(.card.table-card,.card.documents-workspace,.report-story,.dashboard-attention,#content>.card,.r1d-bento .r1d-tile,.settings-quick-tile,.settings-profile-card,.settings-center-group>:not(h2)){box-shadow:0 1px 2px rgba(18,22,20,.05)!important}
  html body #mainApp#mainApp #content .r1d-alert{background:var(--c-pill);color:var(--c-ink);border:1px solid var(--c-pill-line);-webkit-backdrop-filter:none;backdrop-filter:none}
  html body #mainApp#mainApp #content .r1d-alert-copy strong{color:var(--c-ink)}
  html body #mainApp#mainApp #content .r1d-alert-copy>span{color:var(--c-soft)}
  html body #mainApp#mainApp #content .r1d-alert-more{background:var(--c-pill-line)}
  html body #mainApp#mainApp #content .r1d-alert-cta{background:var(--c-ink);color:var(--c-canvas)}
  html body #mainApp#mainApp #content :is(.r1d-custom-btn,.r1d-hours){border:1px solid var(--c-pill-line)}
  /* The bottom bar: white glass, grey icons, the open tab in ink; the + is ink with a green cross. */
  html body #mobileBottomNav#mobileBottomNav{border:1px solid var(--c-pill-line)!important;box-shadow:0 8px 24px rgba(18,22,20,.12)!important}
  html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item,html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item :is(.icon,span){color:var(--c-soft)!important}
  html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item:is(.active,[aria-current="page"]),html:is(*,[data-band]) body #mobileBottomNav#mobileBottomNav .mobile-bottom-nav-item:is(.active,[aria-current="page"]) :is(.icon,span){color:var(--c-ink)!important}
  html:is(*,[data-theme]) body #mainApp#mainApp#mainApp .topbar #quickNew{background:var(--c-ink)!important;color:var(--c-mint)!important}
  html:is(*,[data-theme]) body #mainApp#mainApp#mainApp .topbar #quickNew .icon{color:var(--c-mint)!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp #content .list-chip-row .filter-btn.active{background:var(--c-glow)!important;color:var(--c-mint)!important;border-color:var(--c-glow)!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp .topbar #quickNew{background:var(--c-dot)!important;color:#0A0A0A!important}
  html[data-theme="dark"] body #mainApp#mainApp#mainApp .topbar #quickNew .icon{color:#0A0A0A!important}
  /* The menu and Factuur bekijken open on the ink with the glow, white text as before. */
  html body #sidebar#sidebar,html body #modalRoot#modalRoot .modal.invoice-page{--r1d-on:#fff;--r1d-on-soft:rgba(255,255,255,.76);--r1d-glass:rgba(255,255,255,.12);background:radial-gradient(130% 60% at 50% 0%,var(--c-glow) 0%,var(--r1d-top) 70%)!important}
  /* The calm "je bent bij" line (gevoel.js) sits on the light page too. */
  html.boekuna-gevoel body #mainApp#mainApp #content .gv-calm{background:var(--c-pill);color:var(--c-ink);border:1px solid var(--c-pill-line);-webkit-backdrop-filter:none;backdrop-filter:none}
  html.boekuna-gevoel body #mainApp#mainApp #content :is(.gv-calm-copy strong,.gv-calm-plan){color:var(--c-ink)}
  html.boekuna-gevoel body #mainApp#mainApp #content .gv-calm-copy>span{color:var(--c-soft)}
  html.boekuna-gevoel body #mainApp#mainApp #content .gv-calm-meter{background:var(--c-pill-line)}
  html.boekuna-gevoel body #mainApp#mainApp #content .gv-calm-cta{background:var(--c-ink);color:var(--c-canvas)}
}
