* { box-sizing: border-box; }
:root { --navy: rgb(3, 17, 35); --navy-light: #234d75; --green: #168653; --green-dark: #0f6d43; --ink: #173653; --muted: #657c91; --line: #d8e3eb; --surface: #fff; --page: #f5f8fa; }
body { margin: 0; background: radial-gradient(circle at 10% 0%, #eef6f8 0, transparent 30rem), var(--page); color: var(--ink); font: 16px/1.55 "Lexend", system-ui, sans-serif; }
.topbar { background: var(--navy); box-shadow: 0 3px 16px #0311232e; color: white; }
.topbar-inner { align-items: center; display: flex; gap: 1rem; margin: 0 auto; max-width: 1180px; min-height: 4.5rem; padding: .7rem 1rem; }
.brand { align-items: center; display: flex; margin-right: auto; text-decoration: none; }
.brand img { display: block; height: 2.35rem; width: auto; }
.topbar-actions, .topbar-navigation { align-items: center; display: flex; gap: .55rem; }
.topbar-actions { min-width: 0; }
.signed-in { color: #dce8f2; font-size: .82rem; font-weight: 600; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-navigation .button, .logout-form .button { min-height: 2.65rem; }
.customer-menu-selector { display: block; min-width: 15rem; position: relative; }
.customer-menu-selector select { appearance: none; background: #ffffff12; border: 1px solid #ffffff2e; border-radius: .65rem; color: white; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; min-height: 2.65rem; min-width: 100%; outline: none; padding: .55rem 2.3rem .55rem .85rem; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.customer-menu-selector::after { border-bottom: 2px solid #cbd9e5; border-right: 2px solid #cbd9e5; content: ""; height: .42rem; pointer-events: none; position: absolute; right: .95rem; top: 50%; transform: translateY(-65%) rotate(45deg); width: .42rem; }
.customer-menu-selector select:hover { background: #ffffff1f; border-color: #ffffff59; }
.customer-menu-selector select:focus { background: #ffffff1f; border-color: #73c5a0; box-shadow: 0 0 0 3px #73c5a033; }
.customer-menu-selector option { background: var(--navy); color: white; }
.logout-form { margin: 0; }
.container { margin: 0 auto; max-width: 1320px; padding: 2.75rem 1.5rem 4rem; }
.container:has(.reviews-page) { max-width: none; }
.reviews-page { width: 100%; }
.reviews-page .container { padding-top: 1rem; }
.page-header { align-items: end; display: flex; justify-content: space-between; margin-bottom: 2rem; }
.overview-header { margin: 0 auto 2.25rem; max-width: 1320px; }
.overview-header .muted { margin-bottom: 0; }
.overview-header-meta { align-items: center; background: #ffffffb8; border: 1px solid #dce8ed; border-radius: .85rem; box-shadow: 0 8px 22px #1736530d; display: flex; gap: .7rem; padding: .7rem .9rem; }
.overview-header-meta strong, .overview-header-meta small { display: block; }
.overview-header-meta strong { color: var(--navy); font-size: .83rem; }
.overview-header-meta small { color: var(--muted); font-size: .72rem; margin-top: .1rem; }
.overview-header-icon { align-items: center; background: #e7f6ec; border-radius: 50%; color: var(--green-dark); display: inline-flex; font-size: 1rem; font-weight: 700; height: 2rem; justify-content: center; width: 2rem; }
.detail-page-header { margin-bottom: .75rem; }
.detail-page-header .back-link { margin-bottom: .35rem; }
.detail-page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.detail-page-header .muted { margin: .2rem 0 0; }
h1 { color: var(--navy); letter-spacing: -.04em; margin: 0; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.15; }
h2 { margin-top: 0; }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 750; letter-spacing: .12em; margin: 0 0 .45rem; text-transform: uppercase; }
.muted { color: var(--muted); }
.table-card, .card, .empty-state { background: color-mix(in srgb, var(--surface) 96%, #eaf3f5); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 10px 28px #17365312; padding: 1.5rem; }
.table-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: .75rem; }
.table-toolbar strong { color: var(--navy); display: block; font-size: 1rem; }
.toolbar-hint { color: var(--muted); display: block; font-size: .76rem; margin-top: .15rem; }
.table-toolbar-actions { align-items: center; display: flex; gap: .7rem; }
.refresh-button { align-items: center; display: inline-flex; gap: .35rem; }
.refresh-button span { font-size: 1.1rem; line-height: 1; }
.reviews-table-card { padding: 1.35rem 1.5rem 1rem; }
.review-row-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .45rem; }
.inline-form { display: inline; margin: 0; }
.table-scroll { overflow-x: auto; }
.upload-card { align-items: center; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; margin-bottom: 1rem; padding: 1.15rem 1.35rem; }
.upload-card-copy { align-items: center; display: flex; gap: .8rem; min-width: 0; }
.upload-card-copy strong, .upload-card-copy .muted { display: block; }
.upload-card-copy strong { color: var(--navy); font-size: .92rem; }
.upload-card-copy .muted { font-size: .77rem; margin-top: .12rem; }
.upload-icon { align-items: center; background: #e8f0f5; border-radius: .7rem; color: var(--navy-light); display: inline-flex; flex: 0 0 2.7rem; font-size: 1.4rem; font-weight: 700; height: 2.7rem; justify-content: center; }
.upload-form { align-items: center; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.type-input select, .type-filter-form select { background: #fbfcfd; border: 1px solid #cdd6e2; border-radius: .4rem; color: var(--ink); font: inherit; font-size: .78rem; min-height: 2.35rem; padding: .45rem .6rem; }
.type-input select:focus, .type-filter-form select:focus { border-color: #42658e; box-shadow: 0 0 0 3px #42658e22; outline: none; }
.file-input { align-items: center; background: #f8fafc; border: 1px dashed #aebfcd; border-radius: .5rem; color: var(--muted); cursor: pointer; display: flex; font-size: .78rem; min-height: 2.35rem; padding: .45rem .7rem; }
.file-input:hover { background: #f0f6f8; border-color: var(--navy-light); color: var(--ink); }
.file-input input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.upload-progress { align-items: center; background: #eef8f1; border: 1px solid #b9dfc5; border-radius: .55rem; display: flex; gap: .75rem; margin-top: .85rem; padding: .75rem 1rem; }
.upload-modal { border: 0; border-radius: .9rem; box-shadow: 0 24px 80px #03112355; max-width: min(38rem, calc(100vw - 2rem)); padding: 0; width: 100%; }
.upload-modal::backdrop { background: #03112399; }
.upload-modal-content { display: grid; gap: 1rem; padding: 1.5rem; }
.upload-modal-header { align-items: start; display: flex; justify-content: space-between; }
.upload-modal-header h2 { color: var(--navy); margin: 0; }
.upload-modal-header p { margin: .2rem 0 0; }
.upload-modal-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1.7rem; line-height: 1; padding: .1rem .35rem; }
.upload-modal-field { display: grid; gap: .3rem; }
.upload-modal-field > span { color: var(--navy-light); font-size: .82rem; font-weight: 700; }
.upload-modal-field select { background: #fbfcfd; border: 1px solid #cdd6e2; border-radius: .4rem; color: var(--ink); font: inherit; min-height: 2.5rem; padding: .45rem .6rem; }
.upload-modal-actions { display: flex; gap: .75rem; justify-content: flex-end; }
.upload-modal .button.secondary { background: #e8f0f5; color: var(--ink); }
.upload-progress[hidden] { display: none; }
.upload-progress strong, .upload-progress small { display: block; }
.upload-progress strong { color: var(--navy); font-size: .82rem; }
.upload-progress small { color: var(--muted); font-size: .74rem; margin-top: .12rem; }
.progress-spinner { animation: progress-spin .85s linear infinite; border: 3px solid #b9dfd0; border-radius: 50%; border-top-color: var(--green); flex: 0 0 1.35rem; height: 1.35rem; width: 1.35rem; }
.progress-elapsed { color: var(--green-dark); font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 700; margin-left: auto; }
@keyframes progress-spin { to { transform: rotate(360deg); } }
.status-summary { display: grid; gap: .75rem; grid-template-columns: repeat(4, 1fr); margin-bottom: 1rem; }
.status-summary-item { background: white; border: 1px solid var(--line); border-left: .35rem solid; border-radius: .8rem; color: var(--ink); cursor: pointer; display: grid; font: inherit; gap: .1rem; padding: 1rem 1.15rem; text-align: left; transition: box-shadow .15s ease, transform .15s ease, background .15s ease; }
.status-summary-item:hover, .status-summary-item.active { box-shadow: 0 0 0 3px #42658e33; transform: translateY(-1px); }
.status-summary-item:focus-visible { outline: 3px solid #42658e66; outline-offset: 2px; }
.status-summary-item strong { color: var(--navy); font-size: 1.55rem; line-height: 1.2; }
.status-summary-item span { color: #667085; font-size: .85rem; }
.identity-card { margin: 4rem auto; max-width: 30rem; }
.identity-form { display: grid; gap: .55rem; }
.identity-form label:not(.checkbox-row) { color: #344054; font-weight: 600; margin-top: .45rem; }
.identity-form input[type="text"], .identity-form input[type="password"] { border: 1px solid #cdd6e2; border-radius: .4rem; font: inherit; padding: .65rem .75rem; width: 100%; }
.identity-form input[type="hidden"] { display: none !important; }
.identity-form input[type="text"]:focus, .identity-form input[type="password"]:focus { border-color: #42658e; box-shadow: 0 0 0 3px #42658e22; outline: none; }
.checkbox-row { align-items: center; display: flex; gap: .5rem; margin: .6rem 0; }
.checkbox-row input[type="checkbox"] { accent-color: #1d6f42; height: 1rem; margin: 0; width: 1rem; }
.checkbox-row input[type="hidden"] { display: none !important; }
.field-error { color: #9b1c1c; font-size: .9rem; }
.visually-hidden { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; clip: rect(0 0 0 0); }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #e9edf3; padding: .85rem .6rem; text-align: left; }
th { color: #667085; font-size: .73rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f7fafb; }
tbody td { color: #29465f; font-size: .82rem; }
tbody td:first-child { color: var(--navy); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.button { background: #e8f0f5; border: 1px solid transparent; border-radius: .5rem; color: var(--ink); cursor: pointer; display: inline-block; font-size: .82rem; font-weight: 650; padding: .6rem .95rem; text-decoration: none; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); box-shadow: 0 4px 10px #1686532b; color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.danger { background: #b42318; color: white; }
.button.secondary { background: #ffffff18; color: white; }
.parties-heading .button.secondary { background: #e8f0f5; color: var(--ink); }
.status { border-radius: 999px; display: inline-block; font-size: .85rem; font-weight: 600; padding: .2rem .6rem; }
.status-check { border-color: #d99a00; }
.status-check.status { background: #fff4cc; color: #765b00; }
.status-approved { border-color: #1d6f42; }
.status-approved.status { background: #e7f6ec; color: #176b3a; }
.status-processed { border-color: #42658e; }
.status-processed.status { background: #e8eef7; color: #17365d; }
.status-error { border-color: #b42318; }
.status-error.status { background: #fdecec; color: #9b1c1c; }
.status-unknown.status { background: #eef1f5; color: #475467; }
.filter-row th { padding-top: 0; }
.column-filter { background: #fbfcfd; border: 1px solid #cdd6e2; border-radius: .4rem; font: inherit; font-size: .78rem; padding: .55rem .6rem; width: 100%; }
.column-filter:focus { border-color: #42658e; box-shadow: 0 0 0 3px #42658e22; outline: none; }
.filter-reset { background: #e8eef7; color: #17365d; font-size: .85rem; white-space: nowrap; }
.banner { border-radius: .5rem; margin-bottom: 1rem; padding: .85rem 1rem; }
.banner.success { background: #e7f6ec; color: #176b3a; }
.banner.error { background: #fdecec; color: #9b1c1c; }
.confirm-modal { border: 0; border-radius: .9rem; box-shadow: 0 24px 80px #03112355; max-width: min(32rem, calc(100vw - 2rem)); padding: 0; width: 100%; }
.confirm-modal::backdrop { background: #03112399; }
.confirm-modal-content { padding: 1.5rem; }
.confirm-modal-content h2 { color: var(--navy); margin-top: 0; }
.confirm-modal .button.secondary { background: #e8f0f5; color: var(--ink); }
.confirm-modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; }
.delete-form { margin-top: .75rem; }
.empty-state { color: #667085; }
.detail-grid { display: grid; gap: 1rem; grid-template-columns: 1.2fr .8fr; margin-bottom: 1rem; }
.detail-summary-grid { align-items: stretch; grid-auto-rows: max-content; }
.detail-summary-grid .card { align-self: stretch; margin: 0; padding: .85rem 1rem; }
.detail-summary-grid h2 { font-size: 1.05rem; margin-bottom: .65rem; }
.detail-summary-card dl { margin: 0; }
.detail-summary-card dd, .detail-summary-card dt { line-height: 1.35; }
.action-row { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(10rem, .35fr) minmax(18rem, 1fr); }
.detail-action-card .action-form { margin: 0; }
.detail-action-card .action-form button { width: 100%; }
.detail-action-card .approve-form { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.detail-action-card .reject-form { display: grid; gap: .35rem; }
.detail-action-card textarea { min-height: 2.5rem; }
.detail-content-grid { align-items: stretch; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail-data-column { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.type-summary-card { background: white; border: 1px solid var(--line); border-radius: .5rem; margin: 0; padding: 1.25rem; }
.type-summary-card .section-heading { margin-bottom: .75rem; }
.summary-edit-button { align-items: center; background: #eef4fb; border: 1px solid #cddceb; border-radius: .4rem; color: var(--navy-light); cursor: pointer; display: inline-flex; font-size: 1.25rem; height: 2.35rem; justify-content: center; line-height: 1; padding: 0; width: 2.35rem; }
.summary-edit-button:hover { background: #dfeaf6; border-color: #9bb4ce; }
.summary-edit-button:focus-visible { box-shadow: 0 0 0 3px #42658e33; outline: none; }
.summary-actions { align-items: center; display: flex; gap: .5rem; }
.summary-cancel-button { background: white; border: 1px solid #cdd6e2; border-radius: .4rem; color: var(--ink); cursor: pointer; font: inherit; padding: .55rem .75rem; }
.summary-cancel-button:hover { background: #f2f4f7; }
.summary-save-button { margin: 0; white-space: nowrap; }
.summary-edit-field { align-items: center; display: contents; }
.summary-edit-value { overflow-wrap: anywhere; }
.summary-edit-input { background: white; border: 1px solid #cdd6e2; border-radius: .3rem; font: inherit; min-width: 0; padding: .4rem .5rem; width: 100%; }
.summary-edit-input:focus { border-color: #42658e; box-shadow: 0 0 0 3px #42658e22; outline: none; }
.summary-edit-input:disabled { display: none; }
.summary-editing .summary-edit-input { display: block; }
.summary-editing .summary-edit-value { display: none; }
.summary-editing .type-summary-section { border-color: #b7cbe0; }
.json-editor-highlight { animation: json-editor-focus 1.4s ease-out; }
@keyframes json-editor-focus { 0%, 100% { box-shadow: 0 0 0 0 #42658e00; } 25% { box-shadow: 0 0 0 4px #42658e55; } }
.type-summary-content { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.opstalrecht-summary-content { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opstalrecht-overview-section { min-height: 0; }
.opstalrecht-party-section { grid-column: span 1; }
.opstalrecht-party-section:first-of-type { grid-column: 1 / -1; }
.opstalrecht-parcels-section { grid-column: 1 / -1; }
.opstalrecht-people-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.opstalrecht-person-card { background: white; border: 1px solid #e5eaf1; border-radius: .45rem; min-width: 0; padding: .75rem .85rem; }
.opstalrecht-person-card h4 { color: var(--ink); font-size: .98rem; line-height: 1.35; margin: 0 0 .65rem; overflow-wrap: normal; word-break: normal; }
.opstalrecht-person-card dl { gap: .3rem .75rem; grid-template-columns: max-content minmax(0, 1fr); margin: 0; }
.opstalrecht-person-card dt, .opstalrecht-person-card dd { font-size: .86rem; }
.opstalrecht-person-card dd { overflow-wrap: normal; word-break: normal; }
.opstalrecht-parcel-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.opstalrecht-parcel-card { background: white; border: 1px solid #e5eaf1; border-radius: .45rem; min-width: 0; padding: .85rem 1rem; }
.opstalrecht-parcel-card h4 { color: var(--ink); font-size: .98rem; margin: 0 0 .7rem; }
.opstalrecht-parcel-card dl { gap: .35rem .9rem; grid-template-columns: max-content minmax(0, 1fr); margin: 0; }
.opstalrecht-parcel-card dt, .opstalrecht-parcel-card dd { font-size: .86rem; }
.opstalrecht-parcel-card dd { overflow-wrap: anywhere; }
.opstalrecht-parties-section { grid-column: 1 / -1; }
.parties-heading { align-items: center; display: flex; justify-content: space-between; gap: 1rem; }
.parties-heading h3 { margin: 0; }
.opstalrecht-parties-table { border-collapse: separate; border-spacing: 0; display: table; min-width: 0; width: 100%; }
.opstalrecht-parties-table th { background: #eef4fb; color: var(--navy-light); font-size: .8rem; letter-spacing: .03em; padding: .65rem .75rem; text-align: left; }
.opstalrecht-parties-table th:first-child { border-radius: .35rem 0 0 .35rem; }
.opstalrecht-parties-table th:last-child { border-radius: 0 .35rem .35rem 0; }
.opstalrecht-parties-table td { border-bottom: 1px solid #e5eaf1; padding: .75rem; vertical-align: top; }
.opstalrecht-parties-table tbody tr:last-child td { border-bottom: 0; }
.opstalrecht-parties-table td:first-child { color: var(--ink); font-weight: 700; min-width: 12rem; }
.opstalrecht-parties-table td:nth-child(2) { width: 16%; }
.opstalrecht-parties-table th:last-child, .opstalrecht-parties-table td:last-child { text-align: center; width: 4.5rem; }
.party-edit-cell { vertical-align: middle !important; }
.opstalrecht-parties-table dl { gap: .3rem .75rem; grid-template-columns: max-content minmax(0, 1fr); margin: 0; }
.opstalrecht-parties-table dt, .opstalrecht-parties-table dd { font-size: .86rem; }
.party-role { background: #e8f0f8; border: 1px solid #cddceb; border-radius: 999px; color: var(--navy-light); display: inline-block; font-size: .82rem; font-weight: 700; padding: .35rem .65rem; white-space: nowrap; }
.party-assyst { border-radius: 999px; display: inline-block; font-size: .78rem; font-weight: 700; padding: .3rem .55rem; white-space: nowrap; }
.party-assyst.known { background: #e7f6ec; border: 1px solid #a8d8bb; color: #176b3a; }
.party-assyst.unknown { background: #f3f4f6; border: 1px solid #d0d5dd; color: #667085; }
.party-edit-button { font-size: 1rem; height: 1.9rem; margin-left: .5rem; vertical-align: middle; width: 1.9rem; }
.party-delete-button { align-items: center; background: #fff0f0; border: 1px solid #e3b7b7; border-radius: .4rem; color: #a52b2b; cursor: pointer; display: inline-flex; font-size: 1.2rem; height: 1.9rem; justify-content: center; margin-left: .35rem; width: 1.9rem; }
.party-delete-button:hover { background: #ffe0e0; }
.party-edit-modal { border: 0; border-radius: .9rem; box-shadow: 0 24px 80px #03112355; max-height: calc(100vh - 2rem); max-width: min(42rem, calc(100vw - 2rem)); padding: 0; width: 100%; }
.party-edit-modal::backdrop { background: #03112399; }
.party-edit-modal-content { max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; }
.party-edit-modal-header { align-items: center; display: flex; justify-content: space-between; }
.party-edit-modal-header h2 { color: var(--navy); margin: 0; }
.party-edit-modal-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1.7rem; line-height: 1; padding: .2rem .4rem; }
.party-edit-fields { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }
.party-edit-field { display: grid; gap: .25rem; }
.party-edit-field label { color: var(--navy-light); font-size: .82rem; font-weight: 700; }
.party-edit-field input, .party-edit-field output, .party-edit-field select, .party-edit-field textarea { background: white; border: 1px solid #cdd6e2; border-radius: .3rem; font: inherit; min-width: 0; padding: .5rem .6rem; }
.party-edit-modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
@media (max-width: 700px) { .party-edit-fields { grid-template-columns: 1fr; } .party-edit-modal-content { padding: 1rem; } }
.type-summary-section { background: #f8fafc; border: 1px solid #dce3ed; border-radius: .5rem; padding: .9rem 1rem; }
.type-summary-section h3 { color: var(--navy-light); font-size: 1rem; margin: 0 0 .7rem; }
.type-summary-section dl { gap: .45rem .8rem; grid-template-columns: minmax(8rem, max-content) 1fr; margin: 0; }
.type-summary-section dt { font-size: .88rem; }
.type-summary-section dd { font-size: .92rem; }
.type-summary-section ul { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.type-summary-section li { background: white; border: 1px solid #e5eaf1; border-radius: .35rem; padding: .5rem .65rem; }
.comparison-card { display: flex; flex-direction: column; height: calc(100vh - 18rem); min-height: 32rem; min-width: 0; overflow: hidden; }
.section-heading { align-items: start; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.section-heading h2 { margin-bottom: .25rem; }
.pdf-viewer { background: #667085; border: 1px solid #cdd6e2; border-radius: .4rem; display: block; flex: 1 1 auto; min-height: 0; min-width: 0; width: 100%; }
.comparison-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.comparison-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-right: .35rem; }
.comparison-save { flex-shrink: 0; margin-top: 1rem; }
.json-form { display: grid; gap: 1rem; margin-bottom: 1rem; }
.json-object, .json-array { border: 1px solid #dce3ed; border-radius: .5rem; min-width: 0; padding: .75rem 1rem; }
.json-object summary, .json-array summary { align-items: center; border-radius: .35rem; color: #344054; cursor: pointer; display: flex; font-weight: 700; gap: .5rem; padding: .45rem .55rem; transition: background-color .15s ease, box-shadow .15s ease; }
.json-object summary:hover, .json-array summary:hover { background: #eef4fb; }
.json-object summary:focus-visible, .json-array summary:focus-visible { box-shadow: 0 0 0 3px #42658e33; outline: none; }
.json-object summary::before, .json-array summary::before { color: #42658e; content: '▸'; display: inline-block; flex: 0 0 1.25rem; font-size: 1.35rem; line-height: 1; text-align: center; transition: transform .15s ease; }
.json-object[open] > summary::before, .json-array[open] > summary::before { transform: rotate(90deg); }
.json-object summary::-webkit-details-marker, .json-array summary::-webkit-details-marker { display: none; }
.json-fixed > summary { background: #f8fafc; border-bottom: 1px solid #dce3ed; cursor: default; justify-content: center; min-height: 3.25rem; pointer-events: none; position: relative; }
.json-fixed > summary::before { content: '▾'; font-size: 1rem; left: 1rem; position: absolute; transform: none; }
.json-fixed > summary:hover { background: #f8fafc; }
.json-fixed > summary:focus-visible { box-shadow: none; }
.json-fixed > summary .json-add { pointer-events: auto; position: absolute; right: 1rem; }
.json-nested-content { display: grid; gap: .75rem; margin-top: .75rem; }
.json-array { background: #fafbfc; }
.json-array > .json-nested-content { margin-left: .5rem; }
.json-array-item { border: 0; display: grid; gap: .75rem; padding: .5rem 0; }
.json-array-item > .json-object, .json-array-item > .json-array { border: 0; padding: 0; }
.json-array summary { justify-content: space-between; }
.json-array-item > details > summary { background: white; border: 1px solid #dce3ed; min-height: 2.75rem; padding: .55rem .75rem; }
.json-array-item > details > summary:hover { background: #f8fafc; }
.json-add, .json-remove { background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 700; line-height: 1; padding: .15rem .35rem; }
.json-add { color: #1d6f42; font-size: 1.5rem; }
.json-add:hover { color: #176b3a; }
.json-remove { color: #b42318; font-size: 1.35rem; margin-left: auto; }
.json-remove:hover { color: #8f1d16; }
.json-field { align-items: center; display: grid; gap: .75rem; grid-template-columns: minmax(12rem, max-content) minmax(0, 1fr); }
.json-field label { color: #344054; font-size: .9rem; font-weight: 600; }
.json-field:has(.json-checkbox) { display: flex; gap: .5rem; justify-content: flex-start; }
.json-input { border: 1px solid #cdd6e2; border-radius: .35rem; font: inherit; min-width: 0; padding: .55rem .65rem; resize: vertical; width: 100%; }
.json-input:focus { border-color: #42658e; box-shadow: 0 0 0 3px #42658e22; outline: none; }
.json-input[type="checkbox"] { accent-color: #1d6f42; height: 1.1rem; width: 1.1rem; }
.json-readonly { background: #f2f4f7; color: #667085; }
dl { display: grid; gap: .5rem 1rem; grid-template-columns: max-content 1fr; }
dt { color: #667085; font-weight: 600; }
dd { margin: 0; overflow-wrap: anywhere; }
.action-form { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
textarea { border: 1px solid #cdd6e2; border-radius: .4rem; font: inherit; padding: .6rem; resize: vertical; }
.back-link { background: white; border: 1px solid var(--line); color: var(--navy-light); margin-bottom: .5rem; }
.back-link:hover { background: #e9f2f7; border-color: var(--navy-light); }
pre { background: #172033; border-radius: .5rem; color: #edf2f7; max-height: 32rem; overflow: auto; padding: 1rem; white-space: pre-wrap; }
.processing-page { color: var(--ink); }
.processing-page-header { margin-bottom: 1.5rem; }
.processing-page-header h1 { max-width: 42rem; }
.processing-page-header .muted { margin: .55rem 0 0; }
.processing-setting-card, .processing-status-card { padding: 1.6rem; }
.processing-setting-card { margin-bottom: 1rem; }
.processing-card-heading, .processing-status-heading { align-items: flex-start; display: flex; gap: 1.5rem; justify-content: space-between; }
.processing-card-heading h2, .processing-status-heading h2 { color: var(--navy); margin: 0; }
.processing-card-heading .muted, .processing-status-heading .muted { margin: .45rem 0 0; }
.processing-toggle-status, .processing-customer-count { align-items: center; border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-size: .75rem; font-weight: 750; gap: .45rem; padding: .4rem .7rem; white-space: nowrap; }
.processing-toggle-status span, .processing-status-badge span { background: currentColor; border-radius: 50%; display: inline-block; height: .45rem; width: .45rem; }
.processing-toggle-status.is-enabled { background: #e7f6ec; color: var(--green-dark); }
.processing-toggle-status.is-disabled { background: #f1f4f6; color: var(--muted); }
.processing-customer-count { background: #eef4f8; color: var(--navy-light); }
.processing-setting-form { align-items: center; border-top: 1px solid #e5edf1; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; margin-top: 1.35rem; padding-top: 1.15rem; }
.processing-switch-label { align-items: center; color: var(--navy); cursor: pointer; display: inline-flex; font-size: .9rem; font-weight: 600; gap: .65rem; }
.processing-switch-label input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.processing-switch { background: #c8d4dc; border-radius: 999px; height: 1.45rem; padding: .18rem; transition: background .15s ease; width: 2.55rem; }
.processing-switch span { background: white; border-radius: 50%; box-shadow: 0 1px 3px #03112333; display: block; height: 1.09rem; transition: transform .15s ease; width: 1.09rem; }
.processing-switch-label input:checked + .processing-switch { background: var(--green); }
.processing-switch-label input:checked + .processing-switch span { transform: translateX(1.1rem); }
.processing-switch-label input:focus-visible + .processing-switch { box-shadow: 0 0 0 3px #16865333; }
.processing-table-scroll { margin: 1.35rem -1.6rem -1.6rem; overflow-x: auto; padding: 0 1.6rem 1.6rem; }
.processing-table { border-collapse: separate; border-spacing: 0; font-size: .76rem; min-width: 1120px; width: 100%; }
.processing-table th { background: #f5f8fa; border-bottom: 1px solid var(--line); color: var(--navy-light); font-size: .65rem; letter-spacing: .04em; line-height: 1.25; padding: .55rem .55rem; text-transform: uppercase; white-space: normal; }
.processing-table th:first-child { border-radius: .55rem 0 0 .55rem; padding-left: .9rem; }
.processing-table th:last-child { border-radius: 0 .55rem .55rem 0; }
.processing-table td { border-bottom: 1px solid #edf1f4; color: var(--ink); padding: .5rem .55rem; vertical-align: middle; }
.processing-table tbody tr:hover { background: #f8fbfc; }
.processing-table tbody tr:last-child td { border-bottom: 0; }
.processing-table th a { color: inherit; text-decoration: none; }
.processing-table th a:hover { color: var(--green-dark); }
.processing-last-run-cell { min-width: 10rem; }
.processing-last-run-cell span { display: block; line-height: 1.3; white-space: nowrap; }
.processing-last-run-cell strong { color: var(--muted); display: inline-block; font-size: .65rem; font-weight: 700; margin-right: .25rem; text-transform: uppercase; }
.processing-customer-name { color: var(--navy) !important; font-weight: 700; min-width: 10rem; }
.processing-customer-link { color: inherit; text-decoration: none; }
.processing-customer-link:hover { color: var(--green-dark); text-decoration: underline; }
.processing-detail-button { color: var(--navy) !important; font-size: .7rem; padding: .4rem .65rem; white-space: nowrap; }
.processing-detail-button:hover { color: var(--navy) !important; }
.processing-status-badge { align-items: center; border-radius: 999px; display: inline-flex; font-size: .7rem; font-weight: 700; gap: .35rem; padding: .3rem .55rem; white-space: nowrap; }
.processing-status-badge.is-success { background: #e7f6ec; color: var(--green-dark); }
.processing-status-badge.is-failed { background: #fcebea; color: #b42318; }
.processing-status-badge.is-running { background: #fff4d6; color: #9a6700; }
.processing-status-badge.is-neutral { background: #eef2f5; color: var(--muted); }
.processing-current-activity { color: var(--navy-light); display: block; font-size: .68rem; font-weight: 650; margin-top: .2rem; white-space: nowrap; }
.processing-error-row { background: #fff8f7; color: #b42318 !important; font-size: .72rem; }
.processing-error-row span { font-weight: 750; }
.processing-detail-header { align-items: flex-end; display: flex; justify-content: space-between; }
.processing-back-link { display: inline-block; margin-bottom: .8rem; }
.processing-detail-summary { display: grid; gap: 1rem; grid-template-columns: repeat(5, 1fr); margin-bottom: 1rem; }
.processing-detail-stat { background: white; border: 1px solid var(--line); border-radius: .7rem; box-shadow: 0 8px 24px #0311230a; display: grid; gap: .35rem; padding: 1.1rem 1.2rem; }
.processing-detail-stat span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.processing-detail-stat strong { color: var(--navy); font-size: 1.45rem; }
.processing-log-card { padding: 1.6rem; }
.processing-log-list { border-top: 1px solid #e5edf1; margin-top: 1.35rem; }
.processing-log-entry { border-bottom: 1px solid #edf1f4; padding: 1rem 0; }
.processing-log-entry:last-child { border-bottom: 0; }
.processing-log-meta { align-items: center; display: flex; gap: .65rem; margin-bottom: .4rem; }
.processing-log-level { background: #eef2f5; border-radius: 999px; color: var(--muted); font-size: .65rem; font-weight: 800; padding: .25rem .5rem; text-transform: uppercase; }
.processing-log-entry p { color: var(--ink); font-size: .88rem; line-height: 1.55; margin: 0; white-space: pre-wrap; }
.processing-log-meta time { color: var(--muted); font-size: .75rem; }
.processing-log-warning .processing-log-level { background: #fff4d6; color: #9a6700; }
.processing-log-error .processing-log-level { background: #fcebea; color: #b42318; }
.processing-log-information .processing-log-level { background: #e7f6ec; color: var(--green-dark); }
.processing-log-exception { margin-top: .7rem; }
.processing-log-exception summary { color: var(--muted); cursor: pointer; font-size: .75rem; font-weight: 700; }
.processing-log-exception pre { font-size: .72rem; margin-top: .5rem; max-height: 18rem; }
.processing-empty-state { background: #f8fafb; border: 1px dashed var(--line); color: var(--muted); margin-top: 1.35rem; padding: 1.5rem; text-align: center; }
.processing-log-modal { background: transparent; border: 0; height: min(88vh, 58rem); max-height: none; max-width: min(92vw, 58rem); overflow: hidden; padding: 0; width: 100%; }
.processing-log-modal::backdrop { background: #03112399; backdrop-filter: blur(3px); }
.processing-log-modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 1.5rem 4rem #03112340; display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 1.5rem; position: relative; }
.processing-log-modal-x { align-items: center; background: transparent; border: 0; border-radius: 50%; color: var(--muted); cursor: pointer; display: inline-flex; font-size: 1.75rem; height: 2rem; justify-content: center; line-height: 1; padding: 0; position: absolute; right: .85rem; top: .75rem; width: 2rem; z-index: 1; }
.processing-log-modal-x:hover { background: #eef2f5; color: var(--navy); }
.processing-log-modal-x:focus-visible { box-shadow: 0 0 0 3px #42658e33; outline: none; }
.processing-log-modal-header { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.processing-log-modal-header h2 { color: var(--navy); margin: 0; }
.processing-log-modal-header .muted { margin: .35rem 0 0; }
.processing-log-modal-loading, .processing-log-modal-error { border-radius: .55rem; margin-top: 1rem; padding: 1rem; }
.processing-log-modal-loading { background: #eef4f8; color: var(--navy-light); }
.processing-log-modal-error { background: #fcebea; color: #b42318; }
.processing-log-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: .35rem; }
.processing-log-modal-body .processing-log-list { margin-top: 1.35rem; }
.processing-log-modal-actions { border-top: 1px solid #e5edf1; display: flex; justify-content: flex-end; margin-top: 1rem; padding-top: 1rem; }
@media (max-width: 700px) {
    .processing-card-heading, .processing-status-heading { flex-direction: column; gap: .75rem; }
    .processing-setting-card, .processing-status-card { padding: 1.15rem; }
    .processing-table-scroll { margin: 1.15rem -1.15rem -1.15rem; padding: 0 1.15rem 1.15rem; }
    .processing-setting-form { align-items: stretch; flex-direction: column; }
    .processing-setting-form .button { width: 100%; }
    .processing-detail-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .processing-detail-summary { grid-template-columns: repeat(2, 1fr); }
    .processing-log-card { padding: 1.15rem; }
    .processing-log-modal-content { border-radius: .7rem; padding: 1.15rem; }
    .processing-log-modal-header { flex-direction: column; }
}
@media (max-width: 900px) { .detail-content-grid { grid-template-columns: 1fr; } .upload-card { align-items: stretch; flex-direction: column; gap: 1rem; } .upload-form { justify-content: flex-start; } }
@media (max-width: 900px) { .topbar-inner { align-items: flex-start; flex-wrap: wrap; } .brand { margin-right: auto; } .topbar-actions { flex: 1 1 100%; justify-content: flex-end; } .topbar-navigation { flex: 1 1 auto; justify-content: flex-end; } .customer-menu-selector { flex: 1 1 12rem; min-width: 0; } }
@media (max-width: 700px) { .container { padding: 1.75rem .85rem 3rem; } .overview-header { align-items: start; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; } .overview-header-meta { width: 100%; } .detail-grid { grid-template-columns: 1fr; } .section-heading { align-items: stretch; flex-direction: column; } .status-summary { grid-template-columns: repeat(2, 1fr); } .table-card { padding: 1rem; } .reviews-table-card { padding: 1rem .65rem .65rem; } .table-toolbar { align-items: flex-start; gap: .5rem; } .table-toolbar-actions { align-items: flex-end; flex-direction: column; gap: .35rem; } table { min-width: 650px; } .comparison-card { height: auto; min-height: 32rem; } .pdf-viewer { min-height: 24rem; } .json-field { grid-template-columns: 1fr; gap: .3rem; } .action-row { grid-template-columns: 1fr; } .type-summary-content, .opstalrecht-summary-content { grid-template-columns: 1fr; } .type-summary-section dl, .opstalrecht-person-card dl, .opstalrecht-parcel-card dl, .opstalrecht-parties-table dl { grid-template-columns: 1fr; gap: .15rem; } .type-summary-section dd, .opstalrecht-person-card dd, .opstalrecht-parcel-card dd { margin-bottom: .45rem; } .detail-data-column { gap: .75rem; } .type-summary-card { padding: 1rem; } .opstalrecht-party-section, .opstalrecht-party-section:first-of-type, .opstalrecht-parcels-section, .opstalrecht-parties-section { grid-column: auto; } .opstalrecht-parties-table { display: block; overflow-x: auto; } .opstalrecht-parties-table th, .opstalrecht-parties-table td { min-width: 10rem; } }
