/* Daily capture and editing use the same type, surfaces and controls as the overview. */
.vr-app .sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--vr-muted);
}
.vr-app .sync-bar button {
  padding: 6px 12px;
  font-size: 14px;
}
.vr-app .quick-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}
.vr-app .quick-entry input {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.vr-app .mic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vr-app .mic-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.vr-app .text-button {
  background: transparent;
  color: var(--vr-link);
  font-weight: 400;
  padding: 4px 0;
  font-size: 14px;
  min-height: 44px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vr-app #message:empty,
.vr-app #quickError:empty,
.vr-app #quickResult:empty {
  display: none;
}
.vr-app #message.is-error,
.vr-app #captureError {
  color: var(--vr-error);
}
.vr-app dialog#quickEditor,
.vr-app dialog#dictationDialog {
  width: min(580px, calc(100vw - 24px));
  max-width: none;
  padding: 24px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.vr-app dialog.capture-dialog {
  width: min(760px, calc(100vw - 24px));
  max-width: none;
  padding: 24px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.vr-app .capture-dialog .heading,
.vr-app #quickEditor .heading,
.vr-app #dictationDialog .heading {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.vr-app .capture-dialog h2,
.vr-app #quickEditor h2,
.vr-app #dictationDialog h2 {
  margin-bottom: 4px;
}
.vr-app .capture-dialog label,
.vr-app #quickEditor label,
.vr-app #dictationDialog label {
  margin-bottom: 12px;
}
.vr-app .capture-dialog .columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vr-app .capture-toolbar,
.vr-app .candidate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.vr-app .candidate-tabs button {
  text-align: left;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.vr-app .candidate-tabs button[aria-pressed="true"] {
  background: var(--vr-selected);
  font-weight: 700;
}
.vr-app #captureFields {
  border-top: 1px solid var(--vr-border);
  padding-top: 12px;
}
.vr-app #captureFields .checklabel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.vr-app .checklabel input {
  flex-shrink: 0;
}
.vr-app .field-mic {
  display: block;
  font-size: 14px;
  font-weight: 400;
  padding: 4px 10px;
  margin-top: 4px;
  min-height: 44px;
}
.vr-app .form-disclosure {
  border-top: 1px solid var(--vr-border);
  margin-bottom: 12px;
}
.vr-app .form-disclosure > summary {
  min-height: 44px;
  cursor: pointer;
  display: list-item;
  padding: 10px 0;
}
.vr-app .form-disclosure[open] > summary {
  margin-bottom: 8px;
}
.vr-app .detail-workspace .completion-evidence {
  margin-top: 12px;
}
.vr-app #quickEditor input,
.vr-app #quickEditor select,
.vr-app #quickEditor textarea,
.vr-app .capture-dialog input,
.vr-app .capture-dialog textarea {
  min-width: 0;
  max-width: 100%;
}
.vr-app .detail-workspace .drawer-footer {
  position: sticky;
  z-index: 2;
}
.vr-app .commitment-table .commitment-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.4 !important;
  padding-block: 6px !important;
}
.vr-app[data-density] .commitment-table button {
  min-height: 44px !important;
}
.vr-app[data-density] .commitment-table .project-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}
.vr-app .commitment-table .quick-action {
  white-space: normal !important;
  overflow: visible !important;
  display: block !important;
  line-height: 1.4 !important;
}
.vr-app .commitment-table th:first-child {
  width: 38% !important;
}
.vr-app #tracker h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 959px) {
  .vr-app aside {
    padding-block: 8px;
  }
  .vr-app .appearance {
    margin-top: 0;
    padding-top: 0;
    border: 0;
  }
  .vr-app .appearance > summary {
    min-height: 44px;
  }
  .vr-app .project-navigation {
    margin-top: 0;
  }
}
@media (max-width: 639px) {
  .vr-app main {
    padding: 16px;
  }
  .vr-app #tracker > .heading {
    gap: 4px 12px;
  }
  .vr-app .quick-entry {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .vr-app .quick-entry input {
    grid-column: 1/-1;
  }
  .vr-app .quick-entry button {
    width: 100%;
  }
  .vr-app .sync-bar {
    align-items: center;
    margin-bottom: 8px;
  }
  .vr-app .sync-bar span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .vr-app .sync-bar button {
    flex-shrink: 0;
  }
  .vr-app dialog#quickEditor,
  .vr-app dialog#dictationDialog,
  .vr-app dialog.capture-dialog {
    padding: 16px;
  }
  .vr-app .capture-dialog .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .vr-app .capture-dialog .heading,
  .vr-app #quickEditor .heading,
  .vr-app #dictationDialog .heading {
    gap: 8px;
  }
  .vr-app #quickEditor .heading button,
  .vr-app .capture-dialog .heading button {
    padding-inline: 12px;
  }
  .vr-app .detail-workspace .drawer-footer {
    position: static;
  }
  .vr-app .commitment-table tr {
    gap: 8px;
    padding: 16px;
  }
  .vr-app .commitment-table td,
  .vr-app .commitment-table th {
    width: auto !important;
    min-width: 0;
  }
  .vr-app .commitment-table td:first-child {
    margin-bottom: 4px;
  }
  .vr-app .commitment-table .commitment-title {
    font-weight: 700;
  }
  .vr-app .topbar .product-description {
    display: none;
  }
}
@media (max-width: 359px) {
  .vr-app .topbar,
  .vr-app[data-density="compact"] .topbar {
    padding-inline: 12px;
    gap: 8px;
  }
  .vr-app .topbar .product-symbol {
    display: none;
  }
  .vr-app .product-title {
    font-size: 18px;
  }
  .vr-app main {
    padding-inline: 12px;
  }
}
@media (max-width: 639px) {
  .vr-app .commitment-table tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
  }
  .vr-app .commitment-table td:first-child {
    grid-column: 1/-1;
  }
  .vr-app .commitment-table td:not(:first-child) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
  }
  .vr-app .commitment-table td:not(:first-child)::before {
    min-width: 0;
    flex: 0 0 auto;
  }
  .vr-app .commitment-table td:nth-child(3)::before {
    content: "Eigenaar";
  }
  .vr-app .commitment-table td:nth-child(6)::before {
    display: none;
  }
  .vr-app .commitment-table .date-cell {
    font-size: 14px;
  }
  .vr-app aside nav {
    flex-wrap: wrap;
    overflow: visible;
    gap: 0 4px;
  }
  .vr-app aside nav button {
    padding: 8px;
    font-size: 14px;
  }
  .vr-app aside nav button:first-child {
    flex: 1 0 48%;
  }
  .vr-app aside nav button:nth-child(2) {
    flex: 1 0 40%;
  }
  .vr-app .project-navigation nav {
    max-height: 140px;
    overflow-y: auto;
  }
}

@media (max-width: 639px) {
  .vr-app .quick-add #quickContext {
    display: none !important;
  }
  .vr-app .commitment-table td:not(:first-child)::before {
    text-transform: none;
    letter-spacing: 0;
  }
  .vr-app .commitment-table .project-link {
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .vr-app .commitment-table td:nth-child(2) {
    display: block;
  }
  .vr-app .commitment-table td:nth-child(2)::before {
    display: block;
  }
  .vr-app .commitment-table td:nth-child(6) .parts-button {
    min-height: 44px;
    padding: 4px 0;
  }
  .vr-app #tracker > .heading {
    margin-bottom: 8px;
  }
}

.vr-app .mobile-scope {
  display: none;
}
.vr-app .overview-tools .view-toolbar {
  gap: 8px;
  align-items: center;
}
@media (min-width: 1280px) {
  .vr-app .overview-tools .filterbar {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.65fr) 150px;
  }
}
@media (max-width: 639px) {
  .vr-app aside {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
  }
  .vr-app aside[hidden] {
    display: none;
  }
  .vr-app aside > nav,
  .vr-app aside > .project-navigation {
    display: none;
  }
  .vr-app .mobile-scope {
    display: block;
    flex: 1 1 170px;
    margin: 0;
  }
  .vr-app .mobile-scope select {
    margin: 0;
    width: 100%;
  }
  .vr-app aside > .appearance {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
  }
  .vr-app aside > .appearance summary {
    display: flex;
    align-items: center;
  }
  .vr-app aside > .appearance[open] {
    flex: 1 1 100%;
  }
  .vr-app aside > #pwa-controls:empty {
    display: none;
  }
  .vr-app .overview-tools #resetFilters {
    display: block;
    grid-column: auto;
    grid-row: auto;
    font-size: 14px;
    padding: 4px 8px;
  }
  .vr-app .overview-tools {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 8px;
  }
  .vr-app .overview-tools .extra-filters {
    justify-self: end;
  }
  .vr-app .overview-tools .extra-filters[open] {
    justify-self: stretch;
  }
}
.vr-app .capture-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.vr-app .capture-options #new {
  background: transparent;
  border: 0;
  color: var(--vr-link);
  padding: 4px 0;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vr-app #tracker > .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vr-app #tracker > .heading > .sync-bar {
  margin: 0;
  flex: 0 1 auto;
  gap: 8px;
}
.vr-app #tracker > .heading > .sync-bar #syncStatus {
  max-width: 300px;
  text-align: right;
}
@media (min-width: 960px) and (pointer: fine) {
  .vr-app[data-density="compact"] .commitment-table .commitment-title,
  .vr-app[data-density="compact"] .commitment-table .quick-action {
    min-height: 24px !important;
    padding: 2px 0 !important;
    line-height: 1.4 !important;
  }
  .vr-app[data-density="compact"] .commitment-table td {
    padding-block: 6px;
    height: 56px;
  }
  .vr-app .capture-options .text-button,
  .vr-app .capture-options #new {
    min-height: 30px;
  }
  .vr-app .quick-add {
    margin-bottom: 4px;
  }
}
@media (max-width: 639px) {
  .vr-app #tracker > .heading {
    align-items: start;
  }
  .vr-app #tracker > .heading > .sync-bar {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  .vr-app #tracker > .heading > .sync-bar #syncStatus {
    text-align: left;
  }
  .vr-app .quick-add #quickContext {
    display: none !important;
  }
  .vr-app .commitment-table td:not(:first-child)::before {
    text-transform: none;
    letter-spacing: 0;
  }
  .vr-app .commitment-table .project-link {
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .vr-app .commitment-table td:nth-child(2) {
    display: block;
  }
  .vr-app .commitment-table td:nth-child(2)::before {
    display: block;
  }
}
.vr-app .commitment-table {
  font-size: 14px;
}
.vr-app .commitment-table .commitment-title {
  font-size: 16px;
}
.vr-app .commitment-table .quick-action,
.vr-app .commitment-table .badge,
.vr-app .commitment-table .project-link,
.vr-app .commitment-table .parts-button,
.vr-app .commitment-table th,
.vr-app .commitment-table td,
.vr-app .commitment-table .attention-text,
.vr-app .commitment-table small {
  font-size: 14px;
}
.vr-app #quickTitle,
.vr-app #quickSubmit,
.vr-app #captureVoice {
  font-size: 16px;
}
.vr-app .mobile-scope select {
  font-size: 16px;
}
.vr-app .text-button:hover,
.vr-app .capture-options #new:hover {
  background: transparent;
  text-decoration-thickness: 2px;
}
@media (max-width: 639px) {
  .vr-app .commitment-table td:nth-child(2)::before {
    content: "Project";
  }
  .vr-app .commitment-table td:nth-child(4)::before {
    content: "Status";
  }
  .vr-app .commitment-table td:nth-child(5)::before {
    content: "Datum";
  }
}
.vr-app #mobileOptions {
  display: none;
}
@media (max-width: 639px) {
  .vr-app .overview-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
  }
  .vr-app .overview-tools .filterbar {
    display: contents;
  }
  .vr-app .overview-tools .search-label {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .vr-app .overview-tools .filterbar label:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .vr-app .overview-tools #mobileOptions {
    display: block;
    grid-column: 2;
    grid-row: 2;
    min-width: 92px;
  }
  .vr-app #mobileOptions > summary {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--vr-control);
    background: var(--vr-surface);
    color: var(--vr-text);
    border-radius: 3px;
    list-style: none;
  }
  .vr-app #mobileOptions > summary::after {
    content: "▾";
    margin-left: 8px;
  }
  .vr-app #mobileOptions[open] > summary::after {
    content: "▴";
  }
  .vr-app #mobileOptions[open] {
    grid-column: 1/-1;
  }
  .vr-app #mobileOptions[open] > summary {
    width: fit-content;
    margin-left: auto;
  }
  .vr-app #mobileOptionsContent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
  }
  .vr-app #mobileOptionsContent > .capture-options {
    width: 100%;
    margin: 0;
    gap: 16px;
  }
  .vr-app #mobileOptionsContent > label {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    margin: 0;
  }
  .vr-app #mobileOptionsContent > label > span {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
  }
  .vr-app #mobileOptionsContent .view-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .vr-app #mobileOptionsContent .extra-filters {
    width: 100%;
    margin: 0;
  }
  .vr-app #mobileOptionsContent .extra-filters[open] {
    display: block;
  }
  .vr-app #mobileOptionsContent [data-metric] {
    background: var(--vr-background);
    color: var(--vr-text);
    font-size: 14px;
    min-height: 44px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
  }
  .vr-app #mobileOptionsContent [data-metric] strong {
    order: -1;
  }
  .vr-app #metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .vr-app #metrics button {
    width: 100%;
    min-height: 44px;
  }
  .vr-app .commitment-table td:has(.parts-button[data-count="0"]) {
    display: none;
  }
  .vr-app .commitment-table tr {
    padding-block: 12px;
  }
}
.vr-app[data-density] .commitment-table button.badge.open,
.vr-app[data-density] .commitment-table button.badge.bezig,
.vr-app[data-density] .commitment-table button.badge.geblokkeerd,
.vr-app[data-density] .commitment-table button.badge.afgerond {
  font-size: 14px;
}
.vr-app #mobileCaptureBar {
  display: none;
}
@media (max-width: 639px) {
  .vr-app .topbar,
  .vr-app[data-density="compact"] .topbar {
    flex-wrap: wrap;
    align-items: center;
  }
  .vr-app .topbar .brand {
    min-width: 0;
    flex: 1 1 180px;
    max-width: 100%;
  }
  .vr-app .product-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .vr-app .topbar .account {
    max-width: 100%;
    margin-left: auto;
  }
  .vr-app .quick-entry {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10em), 1fr));
  }
  .vr-app .quick-entry input {
    grid-column: 1/-1;
  }
  .vr-app .quick-entry button {
    white-space: normal;
    overflow-wrap: anywhere;
    padding-inline: 8px;
    min-width: 0;
  }
  .vr-app .mic-button {
    flex-wrap: wrap;
  }
  .vr-app #mobileCaptureBar {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--vr-surface);
    border-top: 1px solid var(--vr-border);
  }
  .vr-app #mobileCaptureBar button {
    flex: 1 1 9em;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .vr-app.has-mobile-capture {
    padding-bottom: calc(var(--mobile-capture-height, 80px) + 8px);
  }
}
/* Enlarged text may wrap inside dialogs; controls retain their native type size. */
@media (max-width: 639px) {
  .vr-app dialog,
  .vr-app dialog form,
  .vr-app dialog section,
  .vr-app dialog label,
  .vr-app dialog .columns > *,
  .vr-app dialog .drawer-head > div {
    min-width: 0;
    max-width: 100%;
  }
  .vr-app dialog h2,
  .vr-app dialog h3,
  .vr-app dialog p,
  .vr-app dialog summary,
  .vr-app dialog .help,
  .vr-app dialog .checklabel {
    overflow-wrap: anywhere;
  }
  .vr-app dialog .heading,
  .vr-app dialog .drawer-head {
    flex-wrap: wrap;
    min-width: 0;
  }
  .vr-app dialog .heading h2,
  .vr-app dialog .drawer-head > div {
    flex: 1 1 100%;
    min-width: 0;
  }
  .vr-app .detail-workspace .drawer-head > div {
    display: block;
  }
  .vr-app .detail-workspace .drawer-tabs {
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
  }
  .vr-app dialog button {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .vr-app dialog input,
  .vr-app dialog textarea,
  .vr-app dialog select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .vr-app dialog input[type="checkbox"] {
    width: 24px;
    flex: 0 0 24px;
  }
  .vr-app dialog .actions,
  .vr-app dialog .capture-toolbar,
  .vr-app dialog .detail-actions {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
  .vr-app dialog .columns,
  .vr-app dialog .commitment-timing,
  .vr-app dialog .next-action {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 639px) {
  .vr-app #metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
  .vr-app #metrics button {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  .vr-app #metrics button > span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
.vr-app #metrics button,
.vr-app #metrics button > span {
  font-size: 14px;
}
/* The base stylesheet declares :root at 14px; application rem values use 16px. */
:root {
  font-size: 16px;
}
/* Controls grow with enlarged interface text instead of clipping at 44px. */
.vr-app input:not([type="checkbox"]),
.vr-app select,
.vr-app .overview-tools .filterbar input,
.vr-app .overview-tools .filterbar select {
  height: auto;
  min-height: calc(1.5em + 22px);
  line-height: 1.5;
}
.vr-app[data-density="compact"] .commitment-table {
  table-layout: auto;
}
.vr-app .commitment-table td,
.vr-app .commitment-table .date-cell,
.vr-app .commitment-table .badge,
.vr-app .commitment-table .parts-button,
.vr-app .commitment-table .project-link {
  white-space: normal;
  overflow-wrap: anywhere;
}
.vr-app .commitment-table .badge,
.vr-app .commitment-table .parts-button {
  max-width: 100%;
}
@media (max-width: 639px) {
  .vr-app .commitment-table tr {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr));
  }
  .vr-app .commitment-table td,
  .vr-app .commitment-table td > *,
  .vr-app .commitment-table td::before {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 639px) {
  /* An expanded options panel starts after the full project-control row. */
  .vr-app .overview-tools #mobileOptions[open] {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
@media (max-width: 639px) {
  .vr-app #mobileOptionsContent > label:has(#sort) {
    display: block;
    width: 100%;
  }
  .vr-app #mobileOptionsContent #sort {
    width: 100%;
  }
}
.vr-app[data-density="compact"] .commitment-table .attention-text {
  display: block;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
/* Autosized inline heights still leave a readable line after text enlargement. */
.vr-app .detail-workspace textarea,
.vr-app .detail-workspace textarea[name="title"],
.vr-app .detail-workspace textarea[name="evidence"] {
  min-height: calc(1.5em + 22px);
}
