:root {
    --querort-orange: #ffc90e;
    --querort-orange-dark: #dd9e00;
    --ink: #242424;
    --muted: #6f7378;
    --canvas: #f5f5f3;
    --surface: #ffffff;
    --line: #e3e3df;
    --sidebar: #292929;
    --sidebar-hover: #3a3a38;
    --next-header-height: 76px;
    --danger: #b54135;
    --success: #327958;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

/* QTos module workspace */
.next-qtos-module-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 0 12px;
    border: 1px solid var(--next-border, #deddd8);
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
}
.next-property-module-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.next-qtos-module-nav a {
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-right: 1px solid var(--next-border, #deddd8);
    color: #55554f;
    text-decoration: none;
    font-weight: 700;
}

.next-qtos-module-nav a:last-child { border-right: 0; }
.next-qtos-module-nav a:hover { background: #faf9f5; color: #292925; }
.next-qtos-module-nav a.is-active { background: #fff3c5; color: #594200; box-shadow: inset 0 -3px #f5bd00; }
.next-qtos-module-nav svg { width: 19px; height: 19px; }
.next-qtos-module-nav small { min-width: 23px; padding: 2px 6px; border-radius: 999px; background: #efeee9; text-align: center; font-size: .72rem; }

.next-qtos-workspace-page { width: 100%; max-width: none; }
.next-contact-page,
.next-attachments-page { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.next-contact-page > .next-page-head,
.next-contact-page > .next-qtos-module-nav,
.next-attachments-page > .next-page-head,
.next-attachments-page > .next-qtos-module-nav { flex: 0 0 auto; }
.next-qtos-section,
.next-qtos-editor,
.next-qtos-upload {
    margin-bottom: 18px;
    border: 1px solid var(--next-border, #deddd8);
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
}

.next-qtos-section-head,
.next-qtos-editor > header {
    min-height: 94px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--next-border, #deddd8);
}

.next-qtos-section-head h2,
.next-qtos-editor h2,
.next-qtos-upload h2 { margin: 2px 0 3px; font-size: 1.25rem; }
.next-qtos-section-head p,
.next-qtos-editor p,
.next-qtos-upload p { margin: 0; color: #70706b; }
.next-qtos-section-head .next-kicker,
.next-qtos-editor .next-kicker,
.next-qtos-upload .next-kicker { color: #8a6900; }

.next-qtos-search {
    width: min(100%, 42vw);
    min-height: 42px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--next-border, #deddd8);
    border-radius: 8px;
    background: #fff;
}
.next-qtos-search svg { width: 17px; color: #777; }
.next-qtos-search input { width: 100%; border: 0; outline: 0; background: transparent; }

.next-qtos-filter-row { padding: 10px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--next-border, #deddd8); background: #faf9f6; }
.next-qtos-filter-row button { padding: 9px 14px; display: flex; gap: 8px; border: 0; border-radius: 7px; background: transparent; color: #5a5a55; font-weight: 700; cursor: pointer; }
.next-qtos-filter-row button.is-active { background: #fff; color: #5c4500; box-shadow: 0 1px 5px #00000016; }
.next-qtos-filter-row button span { padding: 1px 6px; border-radius: 999px; background: #ebeae5; font-size: .72rem; }

.next-qtos-list-row {
    min-height: 110px;
    padding: 17px 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--next-border, #deddd8);
}
.next-qtos-list-row:last-child { border-bottom: 0; }
.next-qtos-date-tile { padding: 8px; display: flex; flex-direction: column; align-items: center; border-radius: 8px; background: #f3f2ed; }
.next-qtos-date-tile strong { font-size: 1.45rem; }
.next-qtos-date-tile span { font-size: .72rem; text-transform: uppercase; }
.next-qtos-list-main { min-width: 0; }
.next-qtos-list-main p { margin: 6px 0; color: #66665f; }
.next-qtos-list-title { display: flex; align-items: center; gap: 12px; }
.next-qtos-list-title > strong { font-size: 1.03rem; }
.next-qtos-row-meta { display: flex; gap: 18px; color: #74746d; font-size: .78rem; }
.next-qtos-row-meta span { display: inline-flex; align-items: center; gap: 5px; }
.next-qtos-row-meta svg { width: 15px; height: 15px; }
.next-qtos-list-actions { min-width: 0; display: grid; justify-items: end; gap: 8px; }
.next-qtos-report-actions, .next-qtos-visit-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.next-qtos-report-actions { column-gap: 14px; }
.next-qtos-report-actions .next-text-button { padding: 2px 0; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.next-qtos-state.is-complete { background: #e8eee7; color: #496249; }
.next-qtos-state.is-progress { background: #dff3e9; color: #176447; }

.next-qtos-table-wrap { overflow-x: auto; }
.next-qtos-table { width: 100%; border-collapse: collapse; }
.next-qtos-table th { padding: 11px 16px; background: #faf9f6; color: #4c4c46; font-size: .72rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.next-qtos-table td { padding: 15px 16px; border-top: 1px solid var(--next-border, #deddd8); vertical-align: middle; }
.next-qtos-table td strong,
.next-qtos-table td small { display: block; }
.next-qtos-table td small { margin-top: 4px; color: #71716b; }
.next-qtos-table td.is-overdue { color: #a32d20; font-weight: 700; }
.next-defect-state { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: .73rem; font-weight: 800; }
.next-defect-state.is-open { background: #fee7e2; color: #a52b20; }
.next-defect-state.is-commissioned { background: #fff0bf; color: #6c5100; }
.next-defect-state.is-resolved { background: #ddf2e7; color: #176447; }

.next-defect-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.next-defect-row-actions .next-text-button { padding: 0; display: inline-flex; align-items: center; }
.next-qtos-table .next-defect-detail-row > td { padding: 0; background: #faf9f6; }
.next-defect-detail { padding: 20px 24px; display: grid; gap: 20px; }
.next-defect-detail h3 { margin: 0 0 10px; font-size: .9375rem; }
.next-defect-finding { white-space: pre-wrap; overflow-wrap: anywhere; }
.next-defect-tracking { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.next-defect-tracking-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.next-defect-tracking-card > h3 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.next-defect-tracking fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.next-defect-resolution-photos { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.next-defect-tracking .next-form-field { min-width: 0; }
.next-defect-tracking select { width: 100%; }
.next-defect-save-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.next-photo-gallery { width: 100%; display: grid; gap: 12px; font-size: .8125rem; }
.next-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.next-camera-dialog { width: min(96vw, 1000px); max-height: 94dvh; display: flex; flex-direction: column; overflow: hidden; }
.next-camera-content { min-height: 0; flex: 1; padding: 12px; overflow: hidden; }
.next-camera-content video { display: block; width: 100%; max-height: 65dvh; object-fit: contain; background: #222; }
.next-camera-dialog footer { flex: 0 0 auto; flex-wrap: wrap; }
.next-defect-photo-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.next-defect-photo { width: min(100%, 220px); display: grid; gap: 6px; }
.next-defect-photo > span { color: var(--muted); font-size: .8125rem; }
.next-defect-photo-preview { padding: 0; height: 150px; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: zoom-in; }
.next-defect-photo-preview img { width: 100%; height: 100%; object-fit: contain; }
.next-defect-photo-dialog { width: min(96vw, 1500px); height: 94dvh; max-height: 94dvh; display: flex; flex-direction: column; overflow: hidden; }
.next-defect-photo-dialog > header { flex: 0 0 auto; }
.next-defect-photo-dialog > div { flex: 1; min-height: 0; min-width: 0; display: flex; overflow: hidden; padding: 12px; }
.next-defect-photo-dialog > div img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 56.25rem) { .next-defect-detail, .next-defect-tracking-card { padding: 16px; } }

.next-contact-grid { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next-contact-grid > .next-property-empty { grid-column: 1 / -1; }
.next-contact-card { min-height: 116px; padding: 17px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; border: 1px solid var(--next-border, #deddd8); border-radius: 9px; }
.next-contact-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff1bd; color: #685000; font-weight: 800; }
.next-contact-card strong,
.next-contact-card span,
.next-contact-card small { display: block; }
.next-contact-card span { margin: 3px 0; color: #705600; font-size: .8rem; font-weight: 700; }
.next-contact-card p,
.next-contact-card small { margin: 3px 0 0; color: #70706a; }
.next-contact-actions { display: flex; align-items: flex-start; gap: 3px; }
.next-contact-actions button,
.next-contact-actions a { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 6px; color: inherit; background: transparent; cursor: pointer; }
.next-contact-actions button:hover,
.next-contact-actions a:hover { background: #f2f1ec; }
.next-contact-actions button.is-danger { color: #ad2e22; }
.next-contact-actions svg { width: 17px; }

.next-contact-workspace { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; border: 1px solid var(--next-border, #deddd8); border-radius: 11px; background: #fff; overflow: hidden; }
.next-contact-workspace-toolbar { min-height: 60px; padding: 8px 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .45fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--next-border, #deddd8); }
.next-contact-scope-tabs { align-self: stretch; display: flex; align-items: stretch; gap: 8px; }
.next-contact-scope-tabs button { padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 3px solid transparent; color: #55554f; background: transparent; font-weight: 800; }
.next-contact-scope-tabs button.is-active { border-bottom-color: var(--querort-orange); color: #262622; }
.next-contact-scope-tabs span { min-width: 25px; padding: 3px 7px; border-radius: 999px; background: #efeee9; font-size: .73rem; }
.next-contact-list-search { min-height: 43px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--next-border, #deddd8); border-radius: 8px; }
.next-contact-list-search svg { width: 18px; color: #75756f; }
.next-contact-list-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.next-contact-workspace-toolbar > select { min-height: 43px; padding: 0 12px; border: 1px solid var(--next-border, #deddd8); border-radius: 8px; background: #fff; }
.next-contact-master-detail { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: 57.5% 42.5%; overflow: hidden; }
.next-contact-master { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.next-contact-table-head,
.next-contact-table-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .65fr) minmax(0, .72fr) minmax(0, 1fr); align-items: center; gap: 14px; }
.next-contact-table-head { min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--next-border, #deddd8); color: #55554f; background: #faf9f6; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.next-contact-table-body { flex: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.next-contact-table-row { width: 100%; min-height: 68px; padding: 8px 16px; border: 0; border-bottom: 1px solid #e8e7e2; color: #30302c; background: #fff; text-align: left; }
.next-contact-table-row:hover { background: #faf9f5; }
.next-contact-table-row.is-selected { background: #fff6d8; box-shadow: inset 3px 0 var(--querort-orange); }
.next-contact-table-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-contact-table-row > span > em { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #efeee9; font-size: .75rem; font-style: normal; }
.next-contact-role small { display: block; margin-top: 4px; overflow: hidden; color: #73736c; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.next-contact-table-person { display: flex; align-items: center; gap: 11px; }
.next-contact-table-person > i,
.next-contact-detail-identity > i,
.next-contact-picker-results button > i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: #725700; background: #fff0ba; font-size: .78rem; font-style: normal; font-weight: 850; }
.next-contact-table-person strong,
.next-contact-table-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-contact-table-person small { margin-top: 3px; color: #73736c; font-size: .75rem; }
.next-contact-detail { position: relative; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border-left: 1px solid var(--next-border, #deddd8); background: #fff; }
.next-contact-detail-head { min-height: 104px; padding: 18px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--next-border, #deddd8); }
.next-contact-detail-head h2 { margin: 3px 0; font-size: 1.25rem; }
.next-contact-detail-head p { margin: 2px 0 0; color: #74746d; }
.next-contact-detail-identity { display: flex; align-items: center; gap: 13px; }
.next-contact-detail-identity > i { width: 52px; height: 52px; flex-basis: 52px; font-size: 1rem; }
.next-contact-detail-content { padding: 18px 20px; display: grid; gap: 16px; }
.next-contact-inline-head { min-height: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.next-contact-inline-head h3 { margin: 0; }
.next-contact-inline-head p { margin: 3px 0 0; }
.next-contact-detail-card,
.next-central-contact-inline,
.next-contact-assignment-fields-section,
.next-contact-picker-inline { padding: 17px; border: 1px solid var(--next-border, #deddd8); border-radius: 9px; }
.next-contact-detail-card h3,
.next-central-contact-inline h3,
.next-contact-assignment-fields-section h3 { margin: 0 0 12px; font-size: 1rem; }
.next-contact-detail-card .next-central-contact-details { padding: 0; }
.next-contact-detail-card > .next-secondary { margin-top: 17px; }
.next-central-contact-details .span-two { grid-column: 1 / -1; }
.next-contact-detail-empty { min-height: 100%; padding: 28px; display: grid; place-content: center; justify-items: center; color: #777770; text-align: center; }
.next-contact-detail-empty svg { width: 42px; height: 42px; color: #b19a4e; }
.next-contact-detail-empty h2 { margin: 13px 0 5px; color: #343430; font-size: 1.1rem; }
.next-contact-detail-empty p { margin: 0; }
.next-contact-picker-inline { display: grid; gap: 10px; }
.next-contact-step-head { min-height: 45px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 12px; }
.next-contact-step-head > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #6d5200; background: #fff0b8; font-size: .78rem; font-weight: 850; }
.next-contact-step-head > div { min-width: 0; flex: 1; }
.next-contact-step-head h3 { margin: 2px 0 4px; }
.next-contact-step-head p { margin: 0; color: #6f6f68; font-size: .78rem; line-height: 1.45; }
.next-contact-step-head > .next-text-button { margin-left: auto; }
.next-contact-picker-inline .next-contact-picker-results { position: static; width: 100%; max-height: none; overflow: visible; box-shadow: none; }
.next-contact-picker-inline .next-contact-picker-results button { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.next-contact-picker-inline .next-contact-picker-results button.is-selected { background: #fff3c5; }
.next-contact-more-hint { margin: 0; padding: 8px 10px; border-radius: 6px; color: #625b44; background: #faf7ea; font-size: .75rem; line-height: 1.45; }
.next-central-contact-inline > header { margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.next-central-contact-inline > header p { margin: 3px 0 0; color: #74746d; font-size: .78rem; }
.next-contact-detail-content .next-central-contact-fields { padding: 0 !important; }
.next-contact-assignment-fields-section > .next-autosave-state { margin: -7px 0 13px; }
.next-contact-assignment-footer { padding-top: 2px; display: flex; justify-content: flex-end; }
.next-contact-create-footer { margin-top: 16px; padding-top: 14px; display: flex; justify-content: flex-end; border-top: 1px solid var(--next-border, #deddd8); }
.next-contact-save-state { position: sticky; right: 14px; bottom: 12px; width: max-content; margin: 0 14px 12px auto; padding: 7px 10px; border-radius: 999px; color: #5e4b06; background: #fff0b5; font-size: .76rem; box-shadow: 0 4px 15px #0002; }

.next-qtos-editor { padding-bottom: 18px; box-shadow: 0 9px 24px #00000010; }
.next-qtos-editor .next-form-grid { padding: 20px 24px 8px; }
.next-qtos-editor > footer { padding: 12px 24px 0; display: flex; justify-content: flex-end; }
.next-check-row { display: flex; align-items: center; gap: 8px; }
.next-editor-head-actions { display: flex; align-items: center; gap: 14px; }
.next-autosave-state { color: #5d625b; font-size: .8rem; }
.next-contact-editor-body { padding: 20px 24px 6px; display: grid; gap: 18px; }
.next-contact-picker { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.next-contact-picker-results { position: absolute; z-index: 5; top: 100%; left: 0; width: 100%; max-height: 38dvh; overflow: auto; padding: 6px; border: 1px solid var(--next-border, #deddd8); border-radius: 8px; box-shadow: 0 14px 30px #0002; background: #fff; }
.next-contact-picker-results button { width: 100%; padding: 10px 12px; display: grid; gap: 3px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.next-contact-picker-results button:hover { background: #fff6d8; }
.next-contact-picker-results strong,
.next-contact-picker-results small { display: block; }
.next-contact-picker-results small { color: #70706a; }
.next-contact-picker-results > p { margin: 8px; }
.next-new-contact { min-height: 42px; }
.next-central-contact-editor { border: 1px solid var(--next-border, #deddd8); border-radius: 9px; overflow: hidden; }
.next-central-contact-editor > header { min-height: 76px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--next-border, #deddd8); background: #faf9f6; }
.next-central-contact-editor h3 { margin: 2px 0; }
.next-central-contact-editor > header p { margin: 3px 0 0; }
.next-central-contact-fields { padding: 16px !important; }
.next-central-contact-details { margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 24px; }
.next-central-contact-details > div { min-width: 0; }
.next-central-contact-details dt { color: #74746d; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.next-central-contact-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.next-contact-assignment-fields { padding: 0 !important; }
.next-modal.next-contact-mail-dialog { width: 96vw; height: 94dvh; max-height: none; }
.next-contact-mail-body { min-height: 0; flex: 1 1 auto; overflow: hidden; padding: 18px 22px; display: grid; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); gap: 18px; }
.next-contact-mail-compose { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.next-contact-mail-compose > .next-rich-text-editor { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.next-contact-mail-dialog .next-rich-text-editor textarea { min-height: 45dvh; }
.next-contact-mail-dialog .next-rich-text-editor .cke,
.next-contact-mail-dialog .next-rich-text-editor .cke_inner { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.next-contact-mail-dialog .cke_contents { min-height: 35dvh; height: auto !important; flex: 1 1 auto; }
.next-contact-mail-dialog > footer { padding: 14px 24px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.next-mail-attachments { min-width: 0; min-inline-size: 0; min-height: 0; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.next-mail-attachments legend { padding: 0 5px; font-size: .78rem; font-weight: 800; }
.next-mail-attachment-toolbar { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.next-mail-attachment-toolbar > span { margin-right: auto; color: var(--muted); font-size: .6875rem; }
.next-mail-attachment-toolbar button { padding: 5px 7px; border: 0; border-radius: 5px; color: #66500b; background: #f4f3ee; font-size: .6875rem; font-weight: 750; }
.next-mail-attachment-list { min-width: 0; min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; display: grid; align-content: start; gap: 10px; padding-right: 3px; }
.next-mail-attachment-list > p { margin: 10px 4px; color: var(--muted); }
.next-mail-attachment-group { display: grid; gap: 5px; }
.next-mail-attachment-group > header { position: sticky; z-index: 1; top: 0; min-height: 32px; padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #dfded7; background: #f7f6f2; }
.next-mail-attachment-group > header strong { min-width: 0; font-size: .75rem; }
.next-mail-attachment-group > header strong span { margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: #676760; background: #e8e7e1; font-size: .625rem; }
.next-mail-attachment-group > header button { padding: 3px 5px; border: 0; color: #66500b; background: transparent; font-size: .625rem; font-weight: 750; }
.next-mail-attachment-list label { width: 100%; min-width: 0; min-height: 48px; padding: 8px 9px; display: flex; align-items: center; gap: 9px; border: 1px solid #e3e2dd; border-radius: 7px; }
.next-mail-attachment-list label:has(input:checked) { border-color: #d4b339; background: #fff9e5; }
.next-mail-attachment-list label span,
.next-mail-attachment-list label strong,
.next-mail-attachment-list label small { display: block; }
.next-mail-attachment-list label span { min-width: 0; flex: 1 1 auto; }
.next-mail-attachment-list label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-mail-attachment-list label small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .6875rem; text-overflow: ellipsis; white-space: nowrap; }

.next-qtos-upload { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) auto; align-items: end; gap: 22px; }
.next-qtos-upload .next-photo-input label { min-height: 43px; }
.next-attachment-grid { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next-attachment-workspace { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; margin-bottom: 0; }
.next-attachment-workspace > .next-qtos-section-head,
.next-attachment-workspace > .next-attachment-toolbar,
.next-attachment-workspace > .next-qtos-filter-row { flex: 0 0 auto; }
.next-attachment-toolbar { min-height: 60px; padding: 8px 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--next-border, #deddd8); }
.next-attachment-toolbar .next-qtos-search { width: 100%; }
.next-attachment-toolbar .next-photo-input { grid-column: 3; }
.next-attachment-secondary-filters { flex: 0 1 46%; min-width: 36%; margin-left: auto; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 8px; }
.next-attachment-secondary-filters.is-single { grid-template-columns: minmax(0, 1fr); flex-basis: 24%; min-width: 18%; }
.next-attachment-category-filter,
.next-attachment-type-filter,
.next-attachment-target-filter { min-width: 0; }
.next-attachment-category-filter select,
.next-attachment-type-filter select,
.next-attachment-target-filter select { width: 100%; min-height: 36px; padding: 6px 30px 6px 10px; border: 1px solid var(--next-border, #deddd8); border-radius: 7px; background: #fff; }
.next-attachment-toolbar .next-photo-input label { min-height: 43px; white-space: nowrap; }
.next-attachment-list-scroll { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.next-attachment-card { border: 1px solid var(--next-border, #deddd8); border-radius: 9px; overflow: hidden; }
.next-attachment-card.is-archived { opacity: .72; background: repeating-linear-gradient(135deg, #fff, #fff 8px, #f6f5f0 8px, #f6f5f0 16px); }
.next-attachment-download { width: 100%; min-height: 88px; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.next-attachment-download > svg:first-child { width: 29px; height: 29px; color: #7a5c00; }
.next-attachment-download span strong,
.next-attachment-download span small { display: block; }
.next-attachment-download span small { margin-top: 4px; color: #72726c; }
.next-attachment-card footer { padding: 8px 12px; display: flex; justify-content: flex-end; gap: 5px; border-top: 1px solid var(--next-border, #deddd8); background: #faf9f6; }
.next-attachment-card footer button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; font-size: .75rem; cursor: pointer; }
.next-attachment-card footer button.is-danger { color: #a72d21; }
.next-attachment-card footer svg { width: 15px; }
.next-attachment-card footer.next-attachment-protected { justify-content: flex-start; color: #777770; }
.next-attachment-protected span { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; }
.next-attachment-edit-dialog { width: 72vw; height: 78dvh; }
.next-attachment-edit-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 20px 24px; display: grid; align-content: start; gap: 18px; }
.next-attachment-edit-dialog > footer { padding: 14px 24px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.next-attachment-unit-picker { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.next-attachment-unit-picker > p { margin: 0 0 12px; color: var(--muted); font-size: .78rem; }
.next-attachment-unit-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next-attachment-unit-picker section { padding: 11px; display: grid; align-content: start; gap: 7px; border-radius: 7px; background: #f7f6f2; }
.next-attachment-unit-picker section > strong { margin-bottom: 3px; }
.next-attachment-unit-picker label { display: flex; align-items: center; gap: 7px; font-size: .78rem; }

.next-qtos-dashboard-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next-qtos-dashboard-wide { grid-column: 1 / -1; margin: 0; }
.next-qtos-dashboard-list > a { min-height: 65px; padding: 12px 22px; display: grid; grid-template-columns: 9% 9% minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--next-border, #deddd8); color: inherit; text-decoration: none; }
.next-qtos-dashboard-list > a:first-child { border-top: 0; }
.next-qtos-dashboard-list > a small { color: #6e6e68; }
.next-qtos-dashboard-card { min-height: 130px; padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--next-border, #deddd8); border-radius: 11px; background: #fff; color: inherit; text-decoration: none; }
.next-qtos-dashboard-card > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: #fff1bd; color: #725500; }
.next-qtos-dashboard-card strong,
.next-qtos-dashboard-card small { display: block; }
.next-qtos-dashboard-card strong { margin: 4px 0; font-size: 1.05rem; }
.next-qtos-dashboard-card small { color: #6f6f69; }
.next-visit-readonly { padding: 12px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid #d8dfd6; border-radius: 8px; background: #f0f5ef; color: #435442; }
.next-visit-readonly svg { width: 18px; }
.next-mode-selection > label:has(input:disabled) { cursor: not-allowed; }
.next-mode-selection > label:has(input:disabled) > span { opacity: .56; background: #f2f2ef; }

@media (max-width: 56.25rem) {
    .next-qtos-module-nav { grid-template-columns: 1fr; }
    .next-qtos-module-nav a { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--next-border, #deddd8); }
    .next-qtos-module-nav a:last-child { border-bottom: 0; }
    .next-qtos-section-head { align-items: flex-start; flex-direction: column; }
    .next-qtos-search { width: 100%; }
    .next-qtos-list-row { grid-template-columns: auto minmax(0, 1fr); }
    .next-qtos-list-actions { grid-column: 1 / -1; justify-items: start; }
    .next-qtos-report-actions, .next-qtos-visit-actions { justify-content: flex-start; }
    .next-contact-grid,
    .next-attachment-grid,
    .next-qtos-dashboard-grid { grid-template-columns: 1fr; }
    .next-qtos-dashboard-wide { grid-column: auto; }
    .next-qtos-upload { grid-template-columns: 1fr; }
    .next-qtos-dashboard-list > a { grid-template-columns: 1fr; }
    .next-contact-picker { grid-template-columns: 1fr; }
    .next-modal.next-contact-mail-dialog { width: 96vw; height: 96dvh; }
    .next-contact-mail-body { overflow-y: auto; grid-template-columns: 1fr; }
    .next-contact-mail-compose { overflow: visible; }
    .next-contact-mail-dialog .cke_contents { min-height: 42dvh; }
    .next-mail-attachments { min-height: 36dvh; }
    .next-mail-attachment-list { max-height: 42dvh; }
    .next-contact-workspace-toolbar { grid-template-columns: 1fr; }
    .next-attachment-toolbar { grid-template-columns: 1fr; }
    .next-attachment-toolbar .next-photo-input { grid-column: auto; }
    .next-qtos-filter-row { flex-wrap: wrap; }
    .next-attachment-secondary-filters { width: 100%; min-width: 100%; margin-left: 0; grid-template-columns: 1fr; }
    .next-attachment-secondary-filters.is-single { flex-basis: 100%; min-width: 100%; }
    .next-attachment-edit-dialog { width: 96vw; height: 92dvh; }
    .next-attachment-unit-picker > div { grid-template-columns: 1fr; }
    .next-contact-page { height: auto; overflow: visible; }
    .next-contact-workspace { overflow: visible; }
    .next-contact-master-detail { height: auto; grid-template-columns: 1fr; }
    .next-contact-master { max-height: 58dvh; }
    .next-contact-detail { min-height: 58dvh; border-top: 1px solid var(--next-border, #deddd8); border-left: 0; }
    .next-contact-table-head,
    .next-contact-table-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
    .next-contact-table-head > :nth-child(n+3),
    .next-contact-table-row > :nth-child(n+3) { display: none; }
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; min-height: 0; margin: 0; overflow: hidden; }
body { background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }

.next-app { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-columns: 264px minmax(0, 1fr); overflow: hidden; background: var(--canvas); transition: grid-template-columns .18s ease; }
.next-app.nav-collapsed { grid-template-columns: 74px minmax(0, 1fr); }
.next-sidebar { position: sticky; top: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; color: #f7f7f5; background: var(--sidebar); transition: width .18s ease; }
.next-sidebar-brand { height: var(--next-header-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 18px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.next-sidebar-brand img { width: 52%; height: auto; object-fit: contain; object-position: left center; }
.next-sidebar-toggle { width: 35px; height: 35px; display: grid; flex: 0 0 35px; place-items: center; border: 1px solid rgba(255,255,255,.19); border-radius: 6px; color: #f4f4ef; background: transparent; }
.next-sidebar-toggle:hover { border-color: rgba(255,201,14,.7); color: var(--querort-orange); background: rgba(255,255,255,.06); }
.material-icons { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; vertical-align: -.125em; fill: currentColor; color: inherit; }
.next-navigation { flex: 1; overflow-y: auto; padding: 18px 12px; scrollbar-width: thin; scrollbar-color: #72726c #242422; scrollbar-gutter: stable; }
.next-navigation::-webkit-scrollbar { width: 9px; }
.next-navigation::-webkit-scrollbar-track { background: #242422; }
.next-navigation::-webkit-scrollbar-thumb { border: 2px solid #242422; border-radius: 999px; background: #72726c; }
.next-navigation::-webkit-scrollbar-thumb:hover { background: #92928a; }
.next-nav-heading { display: block; padding: 11px 10px 7px; color: #aaa9a3; font-size: .625rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.next-nav-link, .next-nav-group summary, .next-sidebar-action { width: 100%; min-height: 40px; display: flex; gap: 11px; align-items: center; padding: 9px 10px; border: 0; border-radius: 7px; color: #e9e9e6; background: transparent; font-size: .875rem; font-weight: 560; text-align: left; }
.next-nav-icon { width: 20px; flex: 0 0 20px; color: var(--querort-orange); font-size: 1.1875rem; text-align: center; }
.next-nav-link:hover, .next-nav-group summary:hover, .next-sidebar-action:hover { background: var(--sidebar-hover); }
.next-nav-link.active { color: #fff; background: rgba(255,201,14,.16); box-shadow: inset 3px 0 0 var(--querort-orange); }
.next-nav-group { margin: 2px 0; }
.next-nav-group summary { list-style: none; }
.next-nav-group summary::-webkit-details-marker { display: none; }
.next-chevron { width: 18px; margin-left: auto; color: #aeaea8; font-size: 1.125rem; transition: transform .15s ease; }
.next-nav-group[open] .next-chevron { transform: rotate(180deg); }
.next-nav-children { display: grid; gap: 2px; margin: 1px 0 5px 37px; padding-left: 10px; border-left: 1px solid #555550; }
.next-nav-children a { padding: 7px 8px; border-radius: 5px; color: #d5d5d1; font-size: .8125rem; }
.next-nav-children a:hover, .next-nav-children a.active { color: #fff; background: var(--sidebar-hover); }
.next-sidebar-footer { padding: 10px 12px 16px; border-top: 1px solid rgba(255,255,255,.12); }
.next-sidebar-footer .next-sidebar-action { color: #d7d7d3; }
.next-sidebar.is-collapsed .next-sidebar-brand { padding: 18px 20px; justify-content: center; }
.next-sidebar.is-collapsed .next-sidebar-brand img, .next-sidebar.is-collapsed .next-nav-heading, .next-sidebar.is-collapsed .next-nav-link > span:not(:first-child), .next-sidebar.is-collapsed .next-nav-group > summary > span:not(:first-child), .next-sidebar.is-collapsed .next-nav-children, .next-sidebar.is-collapsed .next-sidebar-action > span:not(:first-child) { display: none; }
.next-sidebar.is-collapsed .next-nav-link, .next-sidebar.is-collapsed .next-nav-group summary, .next-sidebar.is-collapsed .next-sidebar-action { justify-content: center; padding-inline: 8px; }

.next-workspace { min-width: 0; min-height: 0; display: grid; grid-template-rows: var(--next-header-height) minmax(0, 1fr); }
.next-toolbar { min-height: 0; height: var(--next-header-height); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); }
.next-toolbar-start, .next-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.next-toolbar-divider { width: 1px; height: 26px; background: var(--line); }
.next-toolbar-label { color: #92928d; font-size: .6875rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.next-toolbar-context { color: var(--muted); font-size: .875rem; font-weight: 650; }
.next-icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; color: #474744; background: transparent; font-size: 1.25rem; }
.next-icon-button:hover { border-color: var(--line); background: #f8f8f6; }
.next-sync-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.next-sync-status span { color: var(--success); font-size: .6875rem; }
.next-sync-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid transparent; border-radius: 7px; color: #4b6e5d; background: transparent; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.next-sync-button:hover:not(:disabled) { border-color: #d8e5dc; background: #f1f8f3; }
.next-sync-button .material-icons { font-size: 1.125rem; }
.next-sync-button.has-changes { color: #806000; background: #fff7d9; }
.next-sync-button:disabled { color: var(--muted); background: transparent; }
.next-snapshot-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid transparent; border-radius: 7px; color: #605780; background: transparent; font-size: .75rem; font-weight: 700; white-space: nowrap; }.next-snapshot-button:hover:not(:disabled) { border-color: #dfd9ec; background: #f5f2fa; }.next-snapshot-button.has-snapshots { color: #5a477d; background: #f1edfa; }.next-snapshot-button .material-icons { font-size: 1.125rem; }
.is-spinning { animation: next-spin .9s linear infinite; }
@keyframes next-spin { to { transform: rotate(360deg); } }
.next-zoom { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.next-zoom button { width: 31px; height: 31px; border: 0; color: #4e4e49; background: transparent; font-size: 1.1875rem; line-height: 1; }
.next-zoom button:hover:not(:disabled) { background: #f4f4f1; }
.next-zoom span { width: 44px; color: #454541; font-size: .75rem; font-weight: 700; text-align: center; }
.next-user-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #deded9; border-radius: 6px; padding: 5px 9px 5px 7px; color: #4b4b47; background: #fff; cursor: default; user-select: none; }
.next-user-avatar { width: 20px; height: 20px; color: #777772; background: transparent; font-size: 1.25rem; }
.next-user-label { font-size: .8125rem; font-weight: 650; letter-spacing: .01em; }
.next-help-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 9px; border: 1px solid #deded9; border-radius: 6px; color: #4b4b47; background: #fff; font-size: .8125rem; font-weight: 650; }
.next-help-button svg { width: 19px; height: 19px; color: var(--querort-orange); }
.next-help-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 8px; background: rgba(28, 28, 27, .48); }
.next-help-panel { width: 99%; height: 98%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #deded9; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.next-help-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.next-help-kicker { margin: 0 0 4px; color: #8d6e00; font-size: .6875rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }.next-help-panel h2 { margin: 0; font-size: 1.375rem; }
.next-help-tools { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 12px 12px; border-bottom: 1px solid var(--line); }
.next-help-all-topics { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #454541; font-size: .8125rem; white-space: nowrap; cursor: pointer; }
.next-help-all-topics input { appearance: none; position: relative; flex: 0 0 36px; width: 36px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 1px solid #a8a8a0; border-radius: 20px; background: #e5e5df; cursor: pointer; }
.next-help-all-topics input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.next-help-all-topics input:checked { border-color: #bc9500; background: var(--querort-orange); }
.next-help-all-topics input:checked::before { transform: translateX(16px); }
.next-help-all-topics input:focus-visible { outline: 2px solid #8d6e00; outline-offset: 3px; }
.next-help-search { flex: 1 1 60%; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 11px; border: 1px solid #deded9; border-radius: 7px; color: var(--muted); }.next-help-search input { width: 100%; min-height: 38px; border: 0; outline: 0; background: transparent; }
.next-help-body { min-height: 0; height: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 31fr) minmax(0, 100fr); }.next-help-sidebar { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line); background: #fafaf8; }.next-help-topics { min-width: 0; min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 12px; }.next-help-topics button { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 10px; border: 0; border-radius: 7px; color: #454541; background: transparent; text-align: left; }.next-help-topics button:hover, .next-help-topics button.is-selected { background: #fff1b8; }.next-help-topics span { font-size: .8125rem; font-weight: 650; line-height: 1.35; }.next-help-topics small { flex: 0 0 auto; color: var(--muted); font-size: .6875rem; }
.next-help-topic { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 72fr) minmax(0, 28fr); gap: 24px; overflow: hidden; padding: 22px 26px 28px; }.next-help-topic-content { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }.next-help-topic h3 { flex: 0 0 auto; margin: 0 0 14px; font-size: 1.125rem; }.next-help-steps { min-height: 0; flex: 1 1 auto; overflow-y: auto; scrollbar-gutter: stable; margin-top: 20px; }.next-help-steps ol { display: grid; gap: 11px; margin: 0; padding-left: 25px; }.next-help-steps li { padding-left: 3px; font-size: .8125rem; }.next-help-step { width: 100%; padding: 3px 5px; border: 0; border-radius: 6px; color: inherit; background: transparent; text-align: left; }.next-help-step:hover, .next-help-step:focus-visible { background: #fff1b8; outline: none; }.next-help-step strong, .next-help-step span { display: block; }.next-help-step span { margin-top: 3px; color: var(--muted); line-height: 1.45; }.next-help-message { margin: 30px 26px; color: var(--muted); }.next-help-topics-empty { margin: 12px 8px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.next-ai-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2e1db; border-radius: 9px; background: #fafaf8; }.next-ai-chat > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; border-bottom: 1px solid #e2e1db; }.next-ai-chat h3 { margin: 0; font-size: .9375rem; }.next-ai-status { color: var(--muted); font-size: .6875rem; white-space: nowrap; }.next-ai-error { margin: 10px 12px 0; padding: 8px; border-radius: 6px; color: #7b2119; background: #fce9e6; font-size: .75rem; }.next-ai-mcp { margin: 10px 12px 0; padding: 9px; border: 1px solid #e0ded5; border-radius: 6px; background: #fff; font-size: .6875rem; }.next-ai-mcp summary { cursor: pointer; color: #5f4b08; font-weight: 750; }.next-ai-mcp p { margin: 7px 0; color: var(--muted); line-height: 1.4; }.next-ai-mcp label { display: grid; gap: 3px; margin-top: 7px; color: #5c5c56; font-weight: 700; }.next-ai-mcp input { min-width: 0; width: 100%; box-sizing: border-box; padding: 5px; border: 1px solid #deded9; border-radius: 4px; color: #4d4d47; background: #f7f7f4; font: .625rem ui-monospace, SFMono-Regular, Menlo, monospace; }.next-ai-messages { min-height: 0; flex: 1 1 auto; overflow-y: auto; display: grid; align-content: start; gap: 9px; padding: 12px; }.next-ai-messages > p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }.next-ai-message { padding: 9px; border-radius: 7px; background: #fff; }.next-ai-message.is-user { margin-left: 22px; background: #fff1b8; }.next-ai-message p { margin: 0; white-space: pre-wrap; font-size: .75rem; line-height: 1.5; }.next-ai-message footer { display: flex; justify-content: flex-end; gap: 3px; margin-top: 5px; }.next-ai-message footer button { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; color: #73736d; background: transparent; }.next-ai-message footer button:hover, .next-ai-message footer button.is-rated { color: #705500; background: #fff0b8; }.next-ai-message footer .material-icons { font-size: 1rem; }.next-ai-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid #e2e1db; background: #fff; }.next-ai-form textarea { min-width: 0; min-height: 38px; max-height: 112px; resize: vertical; padding: 8px; border: 1px solid #d7d7d2; border-radius: 6px; color: var(--ink); background: #fff; font: .75rem inherit; }.next-ai-form textarea:focus { border-color: var(--querort-orange-dark); outline: 2px solid rgba(255,201,14,.23); }.next-ai-form button { align-self: end; }
.next-ai-change-summary { padding: 9px; border: 1px solid #e0ded5; border-radius: 7px; background: #fffdf3; font-size: .75rem; }.next-ai-change-summary strong { display: block; color: #5f4b08; }.next-ai-change-summary p { margin: 5px 0 0; color: var(--muted); }.next-ai-change-summary ul { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 18px; }.next-ai-change-summary li { display: grid; gap: 1px; }.next-ai-change-summary small { color: var(--muted); }.next-ai-attachments { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }.next-ai-attachment-picker { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 25px; padding: 4px 7px; border: 1px solid #deded9; border-radius: 5px; color: #5f4b08; background: #fffdf3; cursor: pointer; font-size: .6875rem; font-weight: 700; }.next-ai-attachment-picker:hover { background: #fff1b8; }.next-ai-attachment-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }.next-ai-attachment-picker .material-icons, .next-ai-attachment .material-icons { font-size: .9375rem; }.next-ai-attachment { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 4px 6px; border-radius: 5px; color: #5c5c56; background: #f1f1ed; font-size: .6875rem; overflow-wrap: anywhere; }
.next-help-workspace { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 72fr) minmax(0, 24fr); gap: 12px; overflow: hidden; padding: 12px; }.next-help-workspace.is-ai-workspace { grid-template-columns: minmax(0, 1fr); }.next-help-workspace.is-ai-workspace .next-help-topic-content { display: none; }.next-help-workspace.is-ai-workspace .next-ai-chat { grid-column: 1; }.next-help-workspace.is-ai-workspace .next-ai-messages { gap: 12px; padding: 18px 22px; }.next-help-workspace.is-ai-workspace .next-ai-message { padding: 13px 15px; }.next-help-workspace.is-ai-workspace .next-ai-message p { font-size: .875rem; line-height: 1.6; }.next-help-workspace.is-guide-workspace .next-ai-form textarea { min-height: 58px; }.next-ai-header-actions { display: inline-flex; align-items: center; gap: 8px; }.next-ai-mode-button { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 4px 7px; border: 1px solid #deded9; border-radius: 5px; color: #5f4b08; background: #fff; font-size: .6875rem; font-weight: 750; }.next-ai-mode-button:hover { border-color: #d4b339; background: #fff8df; }.next-ai-mode-button .material-icons { font-size: .9375rem; }.next-ai-tool-activity { display: grid; gap: 7px; padding: 9px 10px; border: 1px solid #e5d79b; border-radius: 7px; color: #5f4b08; background: #fff9e8; font-size: .6875rem; }.next-ai-tool-activity strong { font-size: .6875rem; }.next-ai-form { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; }.next-ai-form textarea { min-height: 92px; max-height: 190px; padding: 11px; font-size: .875rem; line-height: 1.45; }.next-ai-attachment-limit { color: var(--muted); font-size: .6875rem; }.next-ai-attachment-list { grid-column: 1 / -1; display: grid; gap: 6px; max-height: 180px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }.next-ai-attachment-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #e2e1db; border-radius: 6px; background: #fafaf8; }.next-ai-attachment-list li > .material-icons { color: #73736d; font-size: 1.125rem; }.next-ai-attachment-list li > div { min-width: 0; display: grid; gap: 2px; }.next-ai-attachment-list strong, .next-ai-attachment-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.next-ai-attachment-list strong { color: #4a4a45; font-size: .75rem; }.next-ai-attachment-list span { color: var(--muted); font-size: .6875rem; }.next-ai-attachment-list progress { width: 100%; height: 5px; accent-color: var(--querort-orange-dark); }.next-ai-attachment-list button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #73736d; background: transparent; }.next-ai-attachment-list button:hover:not(:disabled) { color: #8b2f24; background: #f9e5e2; }.next-ai-attachment-list button:disabled { opacity: .45; }.next-ai-attachment-list button .material-icons { font-size: 1.0625rem; }.next-ai-attachment-list .is-uploading { border-color: #dec35b; background: #fffdf3; }.next-ai-attachment-list .is-removing { opacity: .65; }.next-ai-attachment-list .is-failed { border-color: #e4bdb7; background: #fff6f5; }
.next-help-workspace.is-help-only { grid-template-columns: minmax(0, 1fr); }
.next-ai-message.is-streaming { min-height: 34px; }
.next-ai-tool-progress { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; color: #5c5c56; font-size: .6875rem; line-height: 1.35; }.next-ai-tool-progress li { display: flex; align-items: center; gap: 5px; }.next-ai-tool-progress .material-icons { font-size: .9375rem; }.next-ai-tool-progress .is-active { color: #705500; font-weight: 700; }.next-ai-tool-progress .is-active .material-icons { animation: next-ai-tool-progress-pulse 1s ease-in-out infinite; }.next-ai-tool-progress .is-completed { color: #51723f; }.next-ai-tool-progress .is-failed { color: #9b3024; }
@keyframes next-ai-tool-progress-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.next-ai-stream-cursor { display: inline-block; width: 6px; height: 14px; margin-left: 2px; vertical-align: -2px; border-radius: 1px; background: var(--querort-orange-dark); animation: next-ai-stream-cursor 1s steps(2, jump-none) infinite; }
@keyframes next-ai-stream-cursor { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
.next-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px; }
@media (min-width: 56.251rem) {
    .next-content:has(.next-contact-page),
    .next-content:has(.next-attachments-page) { overflow: hidden; }
}

.next-login-page { height: 100%; min-height: 0; overflow-y: auto; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top right, #ffe8a1 0, transparent 32%), linear-gradient(130deg, #282828 0%, #41413e 100%); }
.next-login-help { position: fixed; z-index: 2; top: 20px; right: 20px; }
.next-login-card { width: min(90%, 28vw); padding: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; box-shadow: 0 24px 65px rgba(0,0,0,.3); background: rgba(255,255,255,.98); }
.next-customer-setup-page { height: 100%; min-height: 0; overflow-y: auto; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top right, #ffe8a1 0, transparent 32%), linear-gradient(130deg, #282828 0%, #41413e 100%); }
.next-customer-setup-card { width: min(92%, 46vw); max-height: 92dvh; overflow-y: auto; padding: 36px 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; box-shadow: 0 24px 65px rgba(0,0,0,.3); background: rgba(255,255,255,.98); }.next-customer-setup-card > h1 { margin: 8px 0 5px; }.next-customer-setup-card > p { color: var(--muted); }.next-customer-setup-section { margin-top: 20px; }.next-customer-setup-section h2 { margin: 0 0 5px; }.next-customer-setup-section > p { margin: 0 0 18px; color: var(--muted); }.next-customer-setup-section form { display: grid; gap: 9px; }.next-customer-setup-section input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #d9d8d2; border-radius: 7px; background: #fff; }.next-customer-setup-section .next-form-grid { margin: 4px 0; }.next-customer-join ol { display: grid; gap: 12px; margin: 18px 0 22px; padding-left: 24px; line-height: 1.55; }.next-customer-setup-logout { margin-top: 18px; }
.next-login-logo { width: 40%; height: auto; display: block; object-fit: contain; object-position: left center; margin-bottom: 31px; }
.next-login-card h1 { margin: 23px 0 5px; font-size: 1.75rem; letter-spacing: -.03em; }
.next-login-card > p:not(.next-legal-link) { margin: 0 0 25px; color: var(--muted); font-size: .875rem; }
.next-login-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: #eeeeeb; }
.next-login-tabs button { flex: 1; padding: 8px; border: 0; border-radius: 5px; color: #686863; background: transparent; font-size: .8125rem; font-weight: 700; }
.next-login-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.13); }
.next-login-card form { display: grid; gap: 7px; }
.next-login-card label { margin-top: 8px; color: #3f3f3b; font-size: .8125rem; font-weight: 700; }
.next-login-card input { width: 100%; height: 43px; padding: 10px 12px; border: 1px solid #d7d7d2; border-radius: 7px; color: var(--ink); background: #fff; outline: none; }
.next-login-card input:focus { border-color: var(--querort-orange-dark); box-shadow: 0 0 0 3px rgba(255,201,14,.23); }
.validation-message { color: var(--danger); font-size: .75rem; }
.next-primary { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--querort-orange-dark); border-radius: 7px; padding: 9px 16px; color: #2d2612; background: var(--querort-orange); font-size: .875rem; font-weight: 800; }
.next-primary:hover:not(:disabled) { background: #ffda4c; }
.next-login-card .next-primary { width: 100%; margin-top: 11px; }
.next-text-button, .next-back-button { border: 0; padding: 10px 0 0; color: #66500b; background: transparent; font-size: .8125rem; font-weight: 700; text-align: left; }
.next-text-button:hover, .next-back-button:hover { text-decoration: underline; }
.next-legal-link { margin: 27px 0 0; color: #74746f; font-size: .75rem; line-height: 1.5; }
.next-legal-link button { border: 0; padding: 0; color: #5f4b08; background: transparent; font: inherit; font-weight: 750; text-decoration: underline; }

.next-page { width: 100%; max-width: none; margin: 0 auto; }
.next-page-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 14px; }
.next-page-head > div:first-child { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; row-gap: 2px; }
.next-page-head .next-kicker { display: none; }
.next-kicker { margin: 0 0 6px; color: #8b6c00; font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.next-page h1, .next-placeholder h1 { margin: 0; font-size: clamp(1.5625rem, 2.4vw, 2rem); letter-spacing: -.035em; }
.next-page-head h1 { grid-column: 1; }
.next-page-head h1 + p { grid-column: 2; }
.next-page-head p:not(.next-kicker) { min-width: 0; margin: 0; overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.next-search { width: 50%; max-width: none; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; color: #93938e; background: #fff; font-size: .875rem; }
.next-search span:first-child { color: #5d5d58; font-size: 1.25rem; }
.next-search input { min-width: 0; flex: 1; border: 0; color: var(--ink); background: transparent; font: inherit; outline: none; }.next-search:focus-within { border-color: var(--querort-orange-dark); box-shadow: 0 0 0 3px rgba(255,201,14,.18); }
.next-property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22vw), 1fr)); gap: 18px; }
.next-property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 5px rgba(32,32,25,.03); background: var(--surface); }
.next-property-image { height: 115px; display: flex; align-items: center; justify-content: center; gap: 9px; color: rgba(255,255,255,.9); font-size: 1.9375rem; font-weight: 300; }
.next-property-image span { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.image-one { background: linear-gradient(130deg, #72786f, #444c43); }.image-two { background: linear-gradient(130deg, #a77a4c, #69583d); }.image-three { background: linear-gradient(130deg, #87969b, #576e73); }
.next-property-body { padding: 18px; }
.next-property-title { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.next-property-title h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }.next-property-title p { margin: 5px 0 15px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.next-chip { flex: 0 0 auto; padding: 4px 6px; border-radius: 5px; font-size: .6875rem; font-weight: 750; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; }.next-chip.danger { color: #812c24; background: #f8e2df; }.next-chip.good { color: #28684b; background: #e2f1e8; }.next-chip.warn { color: #775a04; background: #fff1be; }
.next-status-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-top: 11px; border-top: 1px solid #ededeb; }.next-status-row + .next-status-row { margin-top: 11px; }.next-status-row b { color: #666660; font-size: .6875rem; }.next-status-row strong, .next-status-row small { display: block; font-size: .75rem; }.next-status-row small { margin-top: 3px; color: var(--muted); }
.next-property-card footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .6875rem; }.next-property-card footer span:last-child { color: #6b5300; font-weight: 800; }
.next-chip.neutral { color: #5d5d58; background: #efefeb; }.next-property-empty { padding: 28px; border: 1px dashed #d4d3ca; border-radius: 10px; color: var(--muted); background: #fff; }.next-property-empty.is-error { border-color: #e0b5b0; color: #7b2119; background: #fce9e6; }
.next-primary, .next-secondary { display: inline-flex; align-items: center; gap: 6px; }.next-property-card { display: block; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }.next-property-card:hover { transform: translateY(-2px); border-color: #c9b35b; box-shadow: 0 7px 17px rgba(32,32,25,.1); }.next-property-card:focus-visible { outline: 3px solid rgba(255,201,14,.45); outline-offset: 3px; }
.next-property-form-modal { width: min(94%, 55vw); }.next-modal > header p { margin: 5px 0 0; color: var(--muted); font-size: .8125rem; }.next-property-form { overflow: auto; padding: 24px; }.next-form-section + .next-form-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }.next-form-section h3 { margin: 0 0 14px; font-size: .9375rem; }.next-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.next-form-field { display: grid; gap: 6px; color: #55554f; font-size: .75rem; font-weight: 750; }.next-form-field.span-two { grid-column: span 2; }.next-form-field input, .next-form-field select { width: 100%; min-height: 42px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d7d7d2; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-weight: 500; }.next-form-field input:focus, .next-form-field select:focus { border-color: var(--querort-orange-dark); outline: 2px solid rgba(255,201,14,.23); }
.next-detail-page-head { margin-bottom: 12px; }.next-back-link { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; width: max-content; margin: 0 0 2px; color: #66500b; font-size: .75rem; font-weight: 750; }.next-detail-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 2px 5px rgba(32,32,25,.03); }.next-detail-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 22px 24px; border-bottom: 1px solid var(--line); }.next-detail-card-head h2 { margin: 0; font-size: 1.1875rem; }.next-detail-card-head p { margin: 6px 0 0; color: var(--muted); font-size: .8125rem; }.next-detail-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }.next-detail-values > div { min-height: 82px; padding: 17px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.next-detail-values dt { color: var(--muted); font-size: .6875rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }.next-detail-values dd { margin: 8px 0 0; color: var(--ink); font-size: .875rem; }.next-auto-save-note { margin: 0 0 20px; color: #66500b; font-size: .8125rem; }
.next-new-visit-card { margin-top: 18px; }.next-new-visit-form { padding: 22px 24px; }.next-new-visit-form .next-setup-readiness { margin-bottom: 0; }.next-new-visit-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.next-property-modules { margin-top: 24px; }.next-property-modules-head { margin-bottom: 12px; }.next-property-modules-head h2 { margin: 3px 0 0; font-size: 1.25rem; }.next-module-grid { display: grid; grid-template-columns: minmax(0, 28%); gap: 14px; }.next-module-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 2px 5px rgba(32,32,25,.03); }.next-module-card-mark { min-height: 86px; display: grid; place-items: center; color: #fff; background: #50564e; }.next-module-card-mark .material-icons { font-size: 2.25rem; }.next-module-card-body { display: grid; gap: 17px; padding: 20px; }.next-module-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.next-module-code { color: #745800; font-size: .6875rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.next-module-card h3 { margin: 4px 0 0; font-size: 1.125rem; }.next-module-card p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.55; }.next-module-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #65500e; background: #fff2bf; font-size: .625rem; font-weight: 800; }.next-module-card .next-primary { justify-self: start; }
.next-module-status.is-progress, .next-qtos-state.is-progress { color: #1e5a40; background: #dff4e8; }.next-module-status.is-queued, .next-qtos-state.is-queued { color: #654d08; background: #fff2bf; }.next-module-status.is-archived, .next-qtos-state.is-archived { color: #5f5f5a; background: #ecece8; }.next-qtos-state { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; font-size: .6875rem; font-weight: 850; }.next-setup-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 3px 9px rgba(32,32,25,.04); }.next-setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-bottom: 1px solid var(--line); background: #f6f6f2; list-style: none; }.next-setup-steps li { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #76766f; font-size: .75rem; font-weight: 750; }.next-setup-steps li + li { border-left: 1px solid var(--line); }.next-setup-steps li span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #cfcfc8; border-radius: 50%; background: #fff; font-size: .6875rem; }.next-setup-steps li.is-active { color: #564207; background: #fffaf0; }.next-setup-steps li.is-active span { border-color: #d0a800; color: #332700; background: var(--querort-orange); }.next-setup-content { min-height: 60dvh; padding: 28px; }.next-setup-content > header { margin-bottom: 24px; }.next-setup-content > header h2 { margin: 4px 0 6px; font-size: 1.375rem; }.next-setup-content > header p:last-child { margin: 0; color: var(--muted); font-size: .8125rem; }.next-setup-property { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; padding: 15px; border: 1px solid #deddd5; border-radius: 8px; background: #fafaf7; }.next-setup-property > .material-icons { color: #715700; font-size: 1.75rem; }.next-setup-property strong, .next-setup-property span { display: block; }.next-setup-property span { margin-top: 3px; color: var(--muted); font-size: .75rem; }.next-setup-readiness { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 13px; border-left: 3px solid #d4b22b; color: #504617; background: #fff9e7; }.next-setup-readiness > .material-icons { color: #806000; }.next-setup-readiness strong, .next-setup-readiness span { display: block; }.next-setup-readiness strong { font-size: .8125rem; }.next-setup-readiness span { margin-top: 3px; font-size: .75rem; }.next-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }.next-choice-card { min-height: 118px; position: relative; display: grid; align-content: center; gap: 4px; padding: 16px; border: 1px solid #d9d8d0; border-radius: 8px; cursor: pointer; background: #fff; }.next-choice-card:hover, .next-choice-card.is-selected { border-color: #c6a21c; background: #fffaf0; }.next-choice-card input { position: absolute; top: 12px; right: 12px; }.next-choice-card > .material-icons { margin-bottom: 5px; color: #745800; }.next-choice-card strong { font-size: .875rem; }.next-choice-card span { color: var(--muted); font-size: .6875rem; }.next-setup-template-summary { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; color: #65500e; font-size: .75rem; }.next-setup-template-summary .material-icons { font-size: 1.125rem; }.next-floor-selection, .next-mode-selection { margin: 20px 0 0; padding: 0; border: 0; }.next-floor-selection legend, .next-mode-selection legend { margin-bottom: 9px; color: #4c4c47; font-size: .75rem; font-weight: 800; }.next-floor-selection legend span { color: var(--muted); font-weight: 500; }.next-floor-selection > div { display: flex; flex-wrap: wrap; gap: 7px; }.next-floor-selection label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #dddcd5; border-radius: 6px; font-size: .75rem; background: #fff; }.next-mode-selection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.next-mode-selection legend { grid-column: 1 / -1; }.next-mode-selection > label { position: relative; cursor: pointer; }.next-mode-selection > label > input { position: absolute; top: 14px; right: 14px; }.next-mode-selection > label > span { min-height: 90px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; padding: 15px; border: 1px solid #d9d8d0; border-radius: 8px; }.next-mode-selection > label:has(input:checked) > span { border-color: #c6a21c; background: #fffaf0; }.next-mode-selection .material-icons { grid-row: span 2; color: #745800; }.next-mode-selection strong, .next-mode-selection small { display: block; }.next-mode-selection strong { font-size: .8125rem; }.next-mode-selection small { margin-top: 3px; color: var(--muted); font-size: .6875rem; }.next-setup-actions { min-height: 70px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--line); background: #fafaf7; }.next-setup-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 8px; }.next-setup-review > div { min-height: 75px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.next-setup-review dt { color: var(--muted); font-size: .625rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.next-setup-review dd { margin: 7px 0 0; font-size: .8125rem; }
.next-scaffold-note { margin: 26px 0 0; color: var(--muted); font-size: .75rem; }

.next-placeholder { width: 50%; max-width: none; margin: 11vh auto; padding: 46px; border: 1px solid var(--line); border-radius: 12px; text-align: center; background: #fff; }.next-placeholder-mark { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 11px; color: #302b1c; background: var(--querort-orange); font-size: 1.6875rem; font-weight: 850; }.next-placeholder p:last-of-type { max-width: 80%; margin: 13px auto 25px; color: var(--muted); line-height: 1.6; }.next-link-button { display: inline-flex; }

.next-modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(25,25,24,.56); }.next-modal { width: min(94%, 60vw); max-height: 90dvh; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; box-shadow: 0 20px 55px rgba(0,0,0,.32); background: #fff; }.next-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 24px; border-bottom: 1px solid var(--line); }.next-modal h2 { margin: 0; font-size: 1.1875rem; }.next-modal > header button { width: 32px; height: 32px; border: 0; border-radius: 6px; color: #51514c; background: transparent; font-size: 1.5625rem; }.next-modal > header button:hover { background: #f3f3f0; }.next-modal-tabs { display: flex; gap: 5px; padding: 12px 24px; border-bottom: 1px solid var(--line); }.next-modal-tabs button { padding: 7px 10px; border: 0; border-radius: 5px; color: #5c5c56; background: transparent; font-size: .8125rem; font-weight: 750; }.next-modal-tabs button.is-active { color: #2b281b; background: #fff0b8; }.next-legal-content { overflow: auto; padding: 24px; color: #3f3f3b; font-size: .875rem; line-height: 1.65; }.next-legal-content h1, .next-legal-content h2, .next-legal-content h3 { color: #242424; }.next-login-error { color: var(--danger); }
.next-sync-lock-scope { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.next-sync-lock-scope.is-syncing { pointer-events: none; user-select: none; }
.next-account-startup { width: 100%; height: 100%; background: #292927; }
.next-account-startup-dialog { position: relative; width: min(94vw, 65vw); max-height: 92dvh; }
.next-account-startup-dialog .next-legal-content { min-height: 0; }
.next-consent-options { display: grid; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: .875rem; }
.next-consent-options label { display: flex; align-items: center; gap: 10px; }
.next-consent-options input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--querort-orange-dark); }
.next-startup-error { margin: 0; padding: 12px 24px; color: var(--muted); font-size: .8125rem; }
.next-startup-loading { position: absolute; inset: 0; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 24px; border-radius: inherit; background: rgba(255,255,255,.94); font-size: .875rem; }
.next-version-note + .next-version-note { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.next-global-sync-lock { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; cursor: wait; background: rgba(28, 28, 27, .42); backdrop-filter: blur(1px); }
.next-global-sync-lock-card { width: min(92%, 32vw); display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; align-items: center; padding: 22px 24px; border: 1px solid #e2d8af; border-radius: 12px; box-shadow: 0 18px 55px rgba(0, 0, 0, .28); color: #2b281b; background: #fffdf5; }
.next-global-sync-lock-card .material-icons { grid-row: 1 / span 2; color: #9a7200; font-size: 1.75rem; }
.next-global-sync-lock-card strong { font-size: 1rem; }
.next-global-sync-lock-card span { color: #68645a; font-size: .8125rem; line-height: 1.4; }
.next-sync-recovery-backdrop { z-index: 130; }
.next-sync-dialog { width: 50vw; max-width: none; }.next-confirmation-dialog { width: min(94%, 38vw); max-height: 96dvh; }.next-confirmation-dialog > header { align-items: flex-start; }.next-confirmation-dialog > header p { max-width: 85%; line-height: 1.55; }.next-confirmation-dialog .next-dialog-actions { padding-top: 14px; padding-bottom: 14px; }.next-dialog-warning { padding: 12px; border-left: 3px solid var(--querort-orange-dark); color: #62501a; background: #fff8df; }.next-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 17px 24px; border-top: 1px solid var(--line); }.next-secondary { min-height: 42px; padding: 9px 15px; border: 1px solid #d2d2cc; border-radius: 7px; color: #464640; background: #fff; font-size: .875rem; font-weight: 750; }.next-secondary:hover { background: #f5f5f1; }.next-secondary.is-danger { border-color: #e8c9c5; color: #8c3025; background: #fff6f5; }.next-dialog-actions .next-text-button { padding: 9px 4px; }

.next-snapshot-dialog { width: min(94%, 78vw); }.next-snapshot-create { display: grid; gap: 7px; padding: 18px 24px; border-bottom: 1px solid var(--line); }.next-snapshot-create > label { color: #55554f; font-size: .75rem; font-weight: 750; }.next-snapshot-create > label span { color: var(--muted); font-weight: 500; }.next-snapshot-create > div { display: flex; gap: 10px; }.next-snapshot-create input { min-width: 0; flex: 1; min-height: 42px; padding: 8px 10px; border: 1px solid #d7d7d2; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }.next-snapshot-create input:focus { border-color: var(--querort-orange-dark); outline: 2px solid rgba(255,201,14,.23); }
.next-snapshot-content { min-height: 42dvh; overflow: auto; padding: 20px 24px; }.next-snapshot-empty { margin: 0; padding: 22px; border: 1px dashed #d4d3ca; border-radius: 8px; color: var(--muted); background: #fafaf8; }.next-snapshot-layout { display: grid; grid-template-columns: minmax(0, 33fr) minmax(0, 67fr); gap: 24px; }.next-snapshot-list, .next-snapshot-change-list { list-style: none; padding: 0; margin: 0; }.next-snapshot-list { display: grid; gap: 7px; }.next-snapshot-list button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: #3e3e3a; background: #fff; text-align: left; }.next-snapshot-list button:hover, .next-snapshot-list button.is-selected { border-color: #b8a6da; background: #f6f3fb; }.next-snapshot-list button > .material-icons { color: #675089; font-size: 1.1875rem; }.next-snapshot-list strong, .next-snapshot-list small { display: block; }.next-snapshot-list strong { font-size: .8125rem; }.next-snapshot-list small { margin-top: 3px; color: var(--muted); font-size: .6875rem; }.next-snapshot-list em { color: #676762; font-size: .6875rem; font-style: normal; white-space: nowrap; }
.next-snapshot-details { min-width: 0; padding: 4px 0 0 24px; border-left: 1px solid var(--line); }.next-snapshot-details > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.next-snapshot-details h3 { margin: 0; font-size: 1rem; }.next-snapshot-details > p { color: var(--muted); font-size: .8125rem; }.next-snapshot-change-list { display: grid; gap: 10px; margin-top: 18px; }.next-snapshot-change-list li { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border-radius: 7px; background: #f8f8f6; }.next-snapshot-change-list .material-icons { margin-top: 1px; color: #66500b; font-size: 1.125rem; }.next-snapshot-change-list strong, .next-snapshot-change-list span { display: block; }.next-snapshot-change-list strong { font-size: .75rem; }.next-snapshot-change-list span { margin-top: 3px; color: #5f5f59; font-size: .75rem; }.next-snapshot-change-list del { color: #8c4b45; text-decoration-thickness: 1px; }.next-snapshot-change-list ins { color: #28684b; text-decoration: none; }.next-snapshot-change-list b { margin: 0 3px; color: #777770; }.next-snapshot-details footer { margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }.next-snapshot-details footer p { margin: 0 0 11px; color: #70500a; font-size: .75rem; line-height: 1.5; }.next-snapshot-details footer > div { display: flex; justify-content: flex-end; gap: 10px; }.next-snapshot-hint { padding: 13px 24px; border-top: 1px solid var(--line); color: var(--muted); background: #fafaf8; font-size: .6875rem; line-height: 1.5; }

.next-snackbar-region { position: fixed; z-index: 14000; right: 22px; bottom: 22px; width: min(94vw, 32vw); max-height: 45vh; overflow-y: auto; display: grid; pointer-events: none; }
.next-snackbar { min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #d4d3cc; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.2); color: #2e2e2a; background: #fff; pointer-events: auto; }
.next-snackbar > .material-icons { color: #4f6258; font-size: 1.375rem; }.next-snackbar > span { min-width: 0; overflow-wrap: anywhere; font-size: .8125rem; line-height: 1.45; }.next-snackbar.is-success { border-color: #b9ddc8; background: #f1faf5; }.next-snackbar.is-success > .material-icons { color: #26734f; }.next-snackbar.is-warning { border-color: #e5cf82; background: #fff9e5; }.next-snackbar.is-warning > .material-icons { color: #7a5b00; }.next-snackbar.is-error { border-color: #e5aaa4; background: #fff3f1; }.next-snackbar.is-error > .material-icons { color: #a12d24; }
.next-snackbar-dismiss { grid-column: 4; }
.next-snackbar button:focus-visible { outline: 2px solid var(--querort-orange-dark); outline-offset: 2px; }
@media (max-width: 47.5rem) { .next-snackbar-region { width: auto; left: 12px; right: 12px; bottom: 12px; }.next-snackbar { gap: 8px; padding: 10px; }.next-snackbar .next-snackbar-action { white-space: normal; } }
.next-snackbar-action { min-height: 34px; padding: 7px 10px; border: 1px solid #b33c32; border-radius: 6px; color: #7f211b; background: #fff; font-size: .75rem; font-weight: 800; white-space: nowrap; }.next-snackbar-dismiss { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #686862; background: transparent; }.next-snackbar-dismiss .material-icons { font-size: 1.1875rem; }
.next-page-error { width: 60%; max-width: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 9vh auto; padding: 22px 24px; border: 1px solid #e4b1ab; border-radius: 10px; background: #fff7f5; }.next-page-error > .material-icons { color: #a12d24; font-size: 1.875rem; }.next-page-error h2 { margin: 0 0 4px; font-size: 1.125rem; }.next-page-error p { margin: 0; color: #645a57; font-size: .8125rem; line-height: 1.5; }
html.next-fatal-error-active, body.next-fatal-error-active { overflow: hidden; }
#blazor-error-ui { display: none; position: fixed; z-index: 2147483647; inset: 0; width: auto; padding: 24px; color: #3f2522; background: rgba(24,20,19,.68); }
#blazor-error-ui .next-fatal-error-card { width: min(94%, 45vw); position: absolute; top: 50%; left: 50%; padding: 22px; border: 1px solid #d88f87; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.38); transform: translate(-50%, -50%); background: #fff3f1; }
#blazor-error-ui strong, #blazor-error-ui span { display: block; } #blazor-error-ui strong { margin-bottom: 7px; font-size: 1.125rem; } #blazor-error-ui span { margin-bottom: 18px; font-size: .8125rem; line-height: 1.55; } #blazor-error-ui .reload { display: inline-flex; padding: 9px 12px; border: 1px solid #b33c32; border-radius: 6px; color: #7f211b; background: #fff; font-size: .75rem; font-weight: 800; text-decoration: none; }
.loading-progress { position: absolute; inset: 35vh 0 auto; width: 70px; height: 70px; margin: auto; }.loading-progress circle { fill: none; stroke: #ddd; stroke-width: 10px; }.loading-progress circle:last-child { stroke: var(--querort-orange); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%; }.loading-progress-text { position: absolute; inset: calc(35vh + 29px) 0 auto; text-align: center; font-size: .75rem; }.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Lädt"); }

@media (max-width: 53.125rem) { .next-app, .next-app.nav-collapsed { grid-template-columns: 74px minmax(0, 1fr); }.next-sidebar-brand { padding: 18px 20px; justify-content: center; }.next-sidebar-brand img, .next-nav-heading, .next-nav-link > span:not(:first-child), .next-nav-group > summary > span:not(:first-child), .next-nav-children, .next-sidebar-action > span:not(:first-child) { display: none; }.next-nav-link, .next-nav-group summary, .next-sidebar-action { justify-content: center; padding-inline: 8px; }.next-toolbar { padding-inline: 18px; }.next-sync-status, .next-user-label { display: none; }.next-content { padding: 18px; } }
@media (max-width: 43.75rem) { .next-help-backdrop { padding: 0; }.next-help-panel { height: 100%; max-height: none; border-radius: 0; }.next-help-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: none; }.next-help-sidebar { max-height: 28dvh; border-right: 0; border-bottom: 1px solid var(--line); }.next-help-topic { grid-template-columns: 1fr; overflow-y: auto; max-height: none; }.next-help-topic-content { min-height: 60dvh; }.next-ai-chat { min-height: 50dvh; }.next-help-panel > header { padding: 18px; }.next-help-tools { padding: 12px 18px; } }
@media (max-width: 43.75rem) { .next-help-workspace { grid-template-columns: 1fr; gap: 16px; overflow-y: auto; padding: 18px; }.next-help-workspace.is-ai-workspace { overflow: hidden; }.next-help-workspace.is-guide-workspace .next-ai-chat { min-height: 50dvh; }.next-help-workspace.is-ai-workspace .next-ai-chat { min-width: 0; min-height: 0; }.next-help-workspace.is-ai-workspace .next-ai-messages { padding: 14px; }.next-ai-form { padding: 12px; }.next-ai-form textarea { min-height: 80px; }.next-ai-mode-button { padding: 4px; }.next-ai-mode-button .material-icons { margin: 0; }.next-ai-mode-button { font-size: 0; }.next-ai-mode-button .material-icons { font-size: 1.0625rem; } }
@media (max-width: 35rem) { .next-login-page, .next-customer-setup-page { padding: 16px; }.next-login-card, .next-customer-setup-card, .next-modal { width: 100%; }.next-login-card, .next-customer-setup-card { padding: 28px 22px; }.next-customer-setup-card { max-height: 96dvh; }.next-page-head { display: grid; }.next-page-head .next-primary { width: 100%; }.next-content { padding: 18px; }.next-toolbar { padding-inline: 12px; }.next-toolbar-actions { gap: 5px; }.next-help-button span, .next-user-button { padding-right: 3px; }.next-help-button span { display: none; }.next-placeholder { margin: 5vh auto; padding: 30px 21px; }.next-modal-backdrop { padding: 12px; }.next-modal > header, .next-modal-tabs, .next-legal-content { padding-inline: 16px; }.next-form-grid, .next-detail-values { grid-template-columns: 1fr; }.next-form-field.span-two { grid-column: span 1; }.next-detail-values > div { border-right: 0; }.next-detail-card-head { padding: 20px; }.next-module-grid { grid-template-columns: 1fr; }.next-module-card-title { display: grid; }.next-module-status { justify-self: start; }.next-module-card .next-primary { width: 100%; }.next-setup-steps li { min-height: 52px; font-size: 0; }.next-setup-steps li span { font-size: .6875rem; }.next-setup-content { min-height: 0; padding: 20px; }.next-choice-grid, .next-mode-selection, .next-setup-review { grid-template-columns: 1fr; }.next-setup-review > div { border-right: 0; }.next-setup-actions { padding-inline: 20px; }.next-setup-actions .next-primary { width: auto; } }
/* Zahlen bleiben auch in kompakten Kennzeichnungen eindeutig unterscheidbar. */
.next-detail-values dd { font-variant-numeric: tabular-nums lining-nums; }

/* Arbeitsstände nutzen bewusst die bestehende Querort-Orange-Familie. */
.next-snapshot-button { color: #806000; }
.next-snapshot-button:hover:not(:disabled) { border-color: #e4c35d; background: #fff8e5; }
.next-snapshot-button.has-snapshots { color: #705500; background: #fff5cd; }
.next-snapshot-list button:hover, .next-snapshot-list button.is-selected { border-color: #dfb91c; background: #fff8df; }
.next-snapshot-list button > .material-icons { color: #806000; }

.next-page-actions, .next-structure-header-actions, .next-structure-toolbar, .next-structure-units-head, .next-structure-rooms-head, .next-import-actions { display: flex; align-items: center; gap: 9px; }
.next-page-actions { flex-wrap: wrap; justify-content: flex-end; }.next-compact-button { min-height: 34px; flex: 0 0 auto; padding: 6px 10px; font-size: .75rem; white-space: nowrap; }.next-compact-button .material-icons { font-size: 1.0625rem; }
.next-modal > header .next-compact-button { width: auto; height: auto; font-size: .75rem; }
.next-modal > header .next-secondary.next-compact-button { border: 1px solid #d2d2cc; color: #464640; background: #fff; }
.next-cadastral-picker { position: relative; }.next-cadastral-picker > input { width: 100%; padding-right: 34px; }.next-cadastral-clear { position: absolute; z-index: 1; top: 50%; right: 6px; width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 4px; transform: translateY(-50%); color: #6b6b64; background: transparent; }.next-cadastral-clear .material-icons { font-size: 1rem; }.next-cadastral-clear:hover:not(:disabled) { color: #594300; background: #fff0b8; }.next-cadastral-clear:disabled { opacity: .35; }.next-cadastral-results { position: absolute; z-index: 12; top: calc(100% + 4px); right: 0; left: 0; max-height: 36dvh; overflow: auto; padding: 5px; border: 1px solid #d4d1c7; border-radius: 7px; box-shadow: 0 10px 24px rgba(0,0,0,.16); background: #fff; }.next-cadastral-results > span { display: block; padding: 10px; color: var(--muted); font-size: .75rem; }.next-cadastral-results button { width: 100%; display: grid; grid-template-columns: 10% 90%; gap: 2px 8px; padding: 8px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; }.next-cadastral-results button:hover { background: #fff5cd; }.next-cadastral-results button strong { color: #705500; font-size: .75rem; }.next-cadastral-results button span { font-size: .75rem; }.next-cadastral-results button small { grid-column: 2; color: var(--muted); font-size: .6875rem; }
.next-structure-backdrop { padding: 8px; }.next-structure-modal { width: 99vw; max-height: 98dvh; }.next-structure-content, .next-import-content { min-height: 0; overflow: auto; padding: 20px 24px 28px; }
.next-structure-toolbar { justify-content: space-between; margin-bottom: 16px; color: var(--muted); font-size: .8125rem; }.next-structure-buildings { display: grid; gap: 11px; }.next-structure-building { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.next-structure-building.is-open { border-color: #d5bd62; }
.next-structure-building-head { min-height: 57px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 9px 12px; background: #fcfcfa; }.next-structure-expand, .next-row-actions button { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 5px; color: #5d5d56; background: transparent; }.next-structure-expand:hover, .next-row-actions button:hover:not(:disabled) { color: #67500a; background: #fff2c5; }.next-structure-expand .material-icons, .next-row-actions .material-icons { font-size: 1.125rem; }.next-structure-icon { color: #8b6b08; font-size: 1.3125rem; }
.next-structure-building-name { width: 100%; min-height: 36px; border: 1px solid transparent; border-radius: 5px; padding: 6px 8px; color: var(--ink); background: transparent; font: inherit; font-weight: 750; }.next-structure-building-name:hover, .next-structure-building-name:focus { border-color: var(--line); background: #fff; outline: none; }.next-structure-summary { color: var(--muted); font-size: .75rem; white-space: nowrap; }.next-row-actions { display: inline-flex; justify-content: flex-end; gap: 4px; white-space: nowrap; }.next-row-actions button { border: 1px solid #e2e1db; color: #5f5f58; background: #fff; }.next-row-actions button:hover:not(:disabled) { border-color: #d5bd62; color: #67500a; background: #fff8df; }.next-row-actions button.next-row-action-danger { color: #935044; }.next-row-actions button.next-row-action-danger:hover:not(:disabled) { border-color: #e2bbb5; color: #8b3025; background: #fff4f2; }.next-row-actions button:disabled { opacity: .35; }
.next-structure-building-content { padding: 18px; border-top: 1px solid var(--line); }.next-structure-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }.next-structure-label-section { min-width: 0; padding: 13px; border: 1px solid #e1dfd6; border-radius: 8px; background: #f9f9f6; }.next-structure-label-section > header { margin: 0 0 11px; }.next-structure-label-section > header h3 { margin: 0; color: #34342f; font-size: .875rem; }.next-structure-label-section > header p { margin: 4px 0 0; color: var(--muted); font-size: .6875rem; line-height: 1.35; }.next-structure-label-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }.next-structure-label-entry.is-unit-name { grid-template-columns: minmax(0, 1fr) 32% auto; }.next-structure-label-entry label { display: grid; gap: 5px; color: #55554f; font-size: .6875rem; font-weight: 750; }.next-structure-label-list { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e5e3dc; }.next-structure-label-list-title { color: #66665f; font-size: .625rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.next-structure-label-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 23px; }.next-structure-label-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 7px; border: 1px solid #e0ded5; border-radius: 12px; color: #4a4a44; background: #fff; font-size: .6875rem; }.next-structure-label-tag small { color: #806000; font-size: .625rem; font-weight: 750; }.next-structure-label-tag button { width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #76766e; background: transparent; }.next-structure-label-tag button:hover:not(:disabled) { color: #6b4e00; background: #ffe998; }.next-structure-label-tag button .material-icons { font-size: .875rem; }.next-structure-label-tag button:disabled { opacity: .35; }
.next-structure-labels input, .next-structure-labels select, .next-structure-table input, .next-structure-table select, .next-structure-table textarea, .next-import-actions select { width: 100%; min-height: 34px; border: 1px solid #d7d7d2; border-radius: 5px; padding: 6px 7px; color: var(--ink); background: #fff; font: inherit; font-size: .75rem; }.next-structure-table textarea { min-width: 10vw; min-height: 49px; resize: vertical; }
.next-structure-units-head, .next-structure-rooms-head { justify-content: space-between; margin: 0 0 9px; }.next-structure-units-head h3, .next-structure-rooms-head h4 { margin: 0; color: #34342f; font-size: .9375rem; }.next-structure-rooms-head > div { min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; }.next-structure-rooms-head > div > select { flex: 0 1 32%; }.next-structure-rooms-head > div > .next-compact-button { flex: 0 0 auto; }.next-structure-rooms-head select { min-height: 34px; border: 1px solid #d7d7d2; border-radius: 5px; padding: 5px 7px; background: #fff; font: inherit; font-size: .75rem; }
.next-structure-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }.next-structure-table { width: 100%; min-width: 72vw; border-collapse: collapse; background: #fff; font-size: .75rem; }.next-structure-table th { padding: 9px 8px; color: #66665f; background: #f6f6f3; font-size: .625rem; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }.next-structure-table td { padding: 6px 7px; border-top: 1px solid #ecece8; vertical-align: middle; }.next-structure-table tbody tr.is-open > td { background: #fffdf5; }.next-structure-table td:nth-child(2) { width: 11%; }.next-structure-table td:nth-child(3) { width: 14%; }.next-structure-table td:nth-child(4) { width: 10%; }.next-structure-table td:nth-child(5) { width: 7%; }.next-structure-table td:nth-child(6) { width: 9%; }.next-structure-table td:nth-child(9) { width: 100%; }
.next-structure-rooms-row > td { padding: 0 !important; background: #fafaf7; }.next-structure-rooms { padding: 15px; border-top: 1px solid #e7e2ce; }.next-room-table { min-width: 48vw; }.next-room-table td:nth-child(2) { width: 100%; }.next-room-table td:nth-child(3), .next-room-table td:nth-child(4), .next-room-table td:nth-child(5) { width: 18%; }.next-structure-empty, .next-import-hint { margin: 8px 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.next-small-modal { width: min(94%, 40vw); }.next-import-modal { width: 98vw; height: 96dvh; max-height: 96dvh; }.next-import-modal .next-import-content { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; }.next-submodal-backdrop { z-index: 60; }.next-import-actions { flex: 0 0 auto; justify-content: space-between; margin-bottom: 14px; }.next-import-actions > label { display: flex; align-items: center; gap: 7px; color: #55554f; font-size: .75rem; font-weight: 700; }.next-import-actions select { width: auto; }.next-import-file { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 10px; }.next-import-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }.next-import-file label { cursor: pointer; }.next-import-file label[aria-disabled="true"] { pointer-events: none; opacity: .55; }.next-import-file > span { min-width: 0; overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }.next-import-preview { min-height: 0; flex: 1 1 auto; max-height: none; overflow: auto; }.next-import-preview .next-structure-table { min-width: 60vw; }.next-import-preview th { vertical-align: top; }.next-import-preview th select { min-width: 9vw; }.next-import-preview td input:not([type="checkbox"]):not([type="radio"]) { min-width: 7vw; }.next-import-preview .next-import-choice { width: 22px; min-width: 22px; height: 22px; min-height: 22px; display: inline-grid; place-content: center; margin: 0 auto; padding: 0; appearance: none; border: 1px solid #aaa99f; border-radius: 5px; color: #fff; background: #fff; cursor: pointer; }.next-import-preview .next-import-choice:hover:not(:disabled) { border-color: #9a7200; background: #fff9e8; }.next-import-preview input[type="checkbox"].next-import-choice:checked { border-color: #9a7200; background: var(--querort-orange); }.next-import-preview input[type="checkbox"].next-import-choice:checked::after { width: 11px; height: 6px; content: ""; border-bottom: 2px solid #332800; border-left: 2px solid #332800; transform: translateY(-1px) rotate(-45deg); }.next-import-preview input[type="radio"].next-import-choice { border-radius: 50%; }.next-import-preview input[type="radio"].next-import-choice:checked { border-color: #9a7200; background: var(--querort-orange); box-shadow: inset 0 0 0 5px #fff; }.next-import-preview .next-import-choice:focus-visible { outline: 3px solid rgba(255,201,14,.35); outline-offset: 2px; }.next-import-preview .next-import-choice:disabled { border-color: #d9d8d2; background: #f1f1ee; cursor: not-allowed; opacity: .75; }
@media (max-width: 60rem) { .next-structure-labels { grid-template-columns: 1fr; }.next-structure-label-entry.is-unit-name { grid-template-columns: minmax(0, 1fr) 32% auto; } }
@media (max-width: 35rem) { .next-structure-label-entry, .next-structure-label-entry.is-unit-name { grid-template-columns: 1fr; }.next-structure-label-entry .next-compact-button { justify-content: center; }.next-structure-rooms-head { display: grid; grid-template-columns: 1fr; gap: 8px; }.next-structure-rooms-head > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.next-structure-rooms-head > div > select { grid-column: 1 / -1; width: 100%; }.next-structure-rooms-head > div > .next-compact-button { width: 100%; justify-content: center; padding-inline: 7px; }.next-structure-backdrop { padding: 4px; }.next-structure-modal { width: min(100%, calc(100vw - 8px)); max-height: calc(100dvh - 8px); } }
@media (max-width: 22.5rem) { .next-structure-rooms-head > div { grid-template-columns: 1fr; }.next-structure-rooms-head > div > select { grid-column: auto; } }

/* QTos-Begehung: touchfähige Arbeitsliste mit genau einem geöffneten Prüfpunkt. */
.next-visit-page { width: 100%; max-width: none; }.next-visit-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32%) auto; align-items: end; gap: 28px; margin-bottom: 20px; }.next-visit-heading h1 { margin: 0; font-size: clamp(1.6875rem, 3vw, 2.375rem); }.next-visit-heading p { margin: 7px 0 0; color: var(--muted); font-size: .8125rem; }.next-visit-heading .next-back-link { margin-bottom: 10px; }.next-visit-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding-bottom: 3px; font-size: .75rem; font-variant-numeric: tabular-nums; }.next-visit-progress > div { height: 9px; overflow: hidden; border-radius: 999px; background: #e6e5df; }.next-visit-progress i { height: 100%; display: block; border-radius: inherit; background: #a88609; }.next-visit-progress strong { font-size: .75rem; }.next-visit-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }.next-mode-tabs { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d4d3cc; border-radius: 8px; background: #f7f7f4; }.next-mode-tabs button { min-height: 42px; padding: 8px 16px; border: 0; color: #55554f; background: transparent; font: inherit; font-size: .75rem; font-weight: 750; }.next-mode-tabs button + button { border-left: 1px solid #d4d3cc; }.next-mode-tabs button.is-active { color: #332700; background: var(--querort-orange); }.next-mode-tabs button:disabled { color: #92928c; cursor: not-allowed; }.next-local-save-state { display: inline-flex; align-items: center; gap: 6px; color: #2d694d; font-size: .6875rem; font-weight: 750; white-space: nowrap; }.next-local-save-state.is-pending { color: #735800; }.next-local-save-state.is-error { color: #a3382c; }.next-local-save-state .material-icons { width: 17px; height: 17px; }
.next-visit-meta { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .5fr)); margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.next-visit-meta > label, .next-visit-meta > div { min-height: 67px; display: grid; align-content: center; gap: 5px; padding: 10px 16px; border-right: 1px solid var(--line); }.next-visit-meta > :last-child { border-right: 0; }.next-visit-meta span { color: var(--muted); font-size: .5625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.next-visit-meta strong { font-size: .875rem; }.next-visit-meta input { width: 100%; min-height: 33px; border: 1px solid transparent; border-radius: 5px; padding: 5px 7px; color: var(--ink); background: transparent; font: inherit; font-size: .8125rem; }.next-visit-meta input:hover, .next-visit-meta input:focus { border-color: #d5d3c9; background: #fff; outline: none; }
.next-visit-view-tabs { display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px; overflow-x: auto; }.next-visit-view-group { display: flex; align-items: stretch; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #f1f1ed; }.next-visit-view-group-subsets { margin-left: auto; }.next-visit-view-group-label { display: inline-flex; align-items: center; padding: 0 10px; border-right: 1px solid #d2d1ca; border-radius: 5px 0 0 5px; color: #41413c; background: #e5e4de; font-size: .625rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }.next-visit-view-group-subsets .next-visit-view-group-label { border-right: 0; border-left: 1px solid #d2d1ca; border-radius: 0 5px 5px 0; }.next-visit-view-tabs button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 6px; color: #5a5a54; background: transparent; font: inherit; font-size: .6875rem; font-weight: 750; white-space: nowrap; cursor: pointer; }.next-visit-view-tabs button:hover:not(:disabled), .next-visit-view-tabs button.is-active { color: #493800; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.07); }.next-visit-view-tabs button:disabled { color: #a0a09a; cursor: not-allowed; }.next-visit-view-tabs button span { min-width: 22px; padding: 2px 6px; border-radius: 10px; color: #66645d; background: #e8e7e1; font-size: .625rem; }
.next-visit-workspace { min-height: 0; display: grid; grid-template-columns: clamp(16rem, 22%, 20rem) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.next-visit-workspace.without-area-nav { grid-template-columns: 1fr; }.next-area-nav { border-right: 1px solid var(--line); background: #fbfbf8; }.next-area-nav > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line); }.next-area-nav h2 { margin: 1px 0 0; font-size: 1.0625rem; }.next-area-nav > header button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dddcd5; border-radius: 6px; color: #6d5409; background: #fff; cursor: pointer; }.next-area-nav > header button:hover { border-color: #d4b644; background: #fff7da; }.next-area-nav > header .material-icons { width: 18px; height: 18px; }.next-area-add, .next-checkpoint-add { display: grid; gap: 7px; padding: 12px; border-bottom: 1px solid var(--line); background: #fff9e7; }.next-area-add input, .next-checkpoint-add input { width: 100%; min-height: 38px; box-sizing: border-box; border: 1px solid #d4d2c8; border-radius: 6px; padding: 7px 9px; font: inherit; font-size: .75rem; }.next-area-list { display: grid; }.next-area-list > button { min-height: 70px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 12px; border: 0; border-bottom: 1px solid #e7e6e0; color: #44443f; background: transparent; text-align: left; cursor: pointer; }.next-area-list > button:hover, .next-area-list > button.is-active { color: #392c00; background: #fff9e7; }.next-area-list > button.is-active { box-shadow: inset 3px 0 0 var(--querort-orange); }.next-area-list strong, .next-area-list small { display: block; }.next-area-list strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; }.next-area-list small { margin-top: 4px; color: var(--muted); font-size: .625rem; }.next-area-list .material-icons { width: 18px; height: 18px; color: #77766f; }.next-area-ring { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#b49319 var(--area-progress), #e4e3dc 0); position: relative; }.next-area-ring::after { position: absolute; inset: 4px; content: ""; border-radius: inherit; background: #fff; }
.next-checkpoint-panel { min-width: 0; }.next-checkpoint-panel-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }.next-checkpoint-panel-head h2 { margin: 1px 0 0; font-size: 1.125rem; }.next-checkpoint-panel-head > div:first-child > span { display: block; margin-top: 4px; color: var(--muted); font-size: .625rem; }.next-section-name { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 5px; padding: 4px 6px; color: var(--ink); background: transparent; font: inherit; font-size: 1.125rem; font-weight: 800; }.next-section-name:hover, .next-section-name:focus { border-color: #d7d5ca; background: #fff; outline: none; }.next-checkpoint-panel-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.next-checkpoint-search { min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-bottom: 1px solid var(--line); }.next-checkpoint-search .material-icons { width: 18px; height: 18px; color: #77766f; }.next-checkpoint-search input { width: 100%; min-height: 34px; border: 0; background: transparent; font: inherit; font-size: .75rem; outline: none; }.next-checkpoint-add { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.next-checkpoint-list { display: grid; }.next-checkpoint { border-bottom: 1px solid #e5e4de; background: #fff; }.next-checkpoint.is-open { box-shadow: inset 0 0 0 1px #d4ae1b; background: #fffdf6; }.next-checkpoint-summary { width: 100%; min-height: 58px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) repeat(4, minmax(0, .35fr)) minmax(0, .5fr); align-items: center; gap: 9px; padding: 8px 13px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }.next-checkpoint-summary:hover { background: #fffaf0; }.next-checkpoint-summary > .material-icons { width: 18px; height: 18px; color: #6b6b65; }.next-checkpoint-summary > span:not(.next-checkpoint-title) { font-size: .6875rem; }.next-checkpoint-summary small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .5rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }.next-checkpoint-title { min-width: 0; }.next-checkpoint-title strong { display: block; overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }.next-checkpoint-title small { margin: 3px 0 0; text-transform: none; }.next-checkpoint-number { color: #65655f; font-variant-numeric: tabular-nums; }.next-checkpoint-status { justify-self: end; min-width: 88px; padding: 6px 8px; border-radius: 7px; color: #60605a; background: #eeeeea; font-size: .625rem; font-style: normal; font-weight: 800; text-align: center; }.next-checkpoint.is-ok .next-checkpoint-status { color: #236044; background: #dff2e6; }.next-checkpoint.is-defect .next-checkpoint-status { color: #a02d25; background: #fee5e1; }.next-checkpoint.is-excluded .next-checkpoint-status { color: #465563; background: #e3eaf0; box-shadow: inset 0 0 0 1px #c5d0d9; }.next-checkpoint.is-prior .next-checkpoint-status { color: #625d50; background: #f2eee2; box-shadow: inset 0 0 0 1px #ddd4ba; }
.next-checkpoint-editor { border-top: 1px solid #e9dfb9; }.next-checkpoint-fields, .next-defect-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; padding: 15px 16px; }.next-checkpoint-fields label, .next-defect-fields label { display: grid; align-content: start; gap: 5px; color: #55554f; font-size: .625rem; font-weight: 800; }.next-checkpoint-fields label > span:first-child, .next-defect-fields label > span:first-child { text-transform: uppercase; letter-spacing: .04em; }.next-checkpoint-fields .span-two, .next-defect-fields .span-two { grid-column: span 2; }.next-checkpoint-fields input, .next-checkpoint-fields select, .next-defect-fields input, .next-defect-fields select, .next-defect-fields textarea { width: 100%; min-height: 39px; box-sizing: border-box; border: 1px solid #d6d4ca; border-radius: 6px; padding: 7px 8px; color: var(--ink); background: #fff; font: inherit; font-size: .75rem; font-weight: 500; }.next-checkpoint-fields input:focus, .next-checkpoint-fields select:focus, .next-defect-fields input:focus, .next-defect-fields select:focus, .next-defect-fields textarea:focus { border-color: #b9940e; outline: 2px solid rgba(255,201,14,.2); }.next-checkpoint-fields input[readonly] { color: #6f6f68; background: #f3f3ef; }.next-interval-input { display: grid; grid-template-columns: 28% 72%; gap: 5px; }.next-checkpoint-status-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 15px; }.next-checkpoint-status-actions button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d9d8d1; border-radius: 7px; color: #4f4f49; background: #f8f8f5; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }.next-checkpoint-status-actions .material-icons { width: 19px; height: 19px; }.next-checkpoint-status-actions button:hover { border-color: #bfbdb4; background: #fff; }.next-checkpoint-status-actions button.is-ok.is-selected { border-color: #71ae8d; color: #1f603f; background: #e5f4ea; }.next-checkpoint-status-actions button.is-defect.is-selected { border-color: #e17b70; color: #a12620; background: #ffebe8; }.next-checkpoint-status-actions button.is-excluded.is-selected { border-color: #a4a49e; color: #555550; background: #ecece8; }.next-defect-fields { border-top: 1px solid #f0d3ce; background: #fff8f7; }.next-defect-fields textarea { min-height: 76px; resize: vertical; }.next-photo-input { position: relative; display: inline-flex; }.next-photo-input input[type="file"] { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }.next-photo-input label { cursor: pointer; }.next-checkpoint-images { min-height: 54px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 16px; border-top: 1px solid #ebe9e0; color: var(--muted); background: #fff; font-size: .625rem; }.next-image-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 4px 3px 9px; border: 1px solid #deddd6; border-radius: 14px; color: #4d4d47; background: #f8f8f5; }.next-image-tag button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #77766f; background: transparent; cursor: pointer; }.next-image-tag button:hover { color: #9c3027; background: #ffebe8; }.next-image-tag .material-icons { width: 14px; height: 14px; }.next-checkpoint-editor-actions { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid #ebe9e0; background: #fafaf7; }.next-checkpoint-editor-actions > div { display: flex; align-items: center; gap: 7px; }.next-checkpoint-empty { padding: 55px 20px; color: var(--muted); font-size: .75rem; text-align: center; }.next-qtos-progress-value { font-variant-numeric: tabular-nums; }
.next-qtos-date-input { width: min(100%, 14vw); min-height: 38px; box-sizing: border-box; padding: 7px 10px; border: 1px solid #d6d5ce; border-radius: 6px; color: var(--ink); background: #f9f9f6; font: inherit; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }.next-qtos-date-input:hover, .next-qtos-date-input:focus { border-color: #b9940e; background: #fff; outline: 2px solid rgba(255,201,14,.18); }.next-qtos-date-input:disabled { color: var(--muted); background: #efefeb; }
@media (max-width: 73.75rem) { .next-visit-head { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }.next-visit-head-actions { grid-column: 1 / -1; justify-content: space-between; }.next-checkpoint-summary { grid-template-columns: auto auto minmax(0, 1fr) repeat(2, minmax(0, .3fr)) minmax(0, .5fr); }.next-checkpoint-summary > span:nth-of-type(4), .next-checkpoint-summary > span:nth-of-type(5) { display: none; }.next-checkpoint-fields, .next-defect-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 53.125rem) { .next-visit-meta { grid-template-columns: repeat(3, 1fr); }.next-visit-meta > label { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }.next-checkpoint-summary { grid-template-columns: auto auto minmax(0, 1fr) minmax(0, .5fr); }.next-checkpoint-summary > span:not(.next-checkpoint-title):not(.next-checkpoint-number) { display: none; }.next-checkpoint-panel-head { align-items: flex-start; }.next-checkpoint-panel-actions { max-width: 45%; } }
@media (max-width: 40.625rem) { .next-visit-head { grid-template-columns: 1fr; gap: 15px; }.next-visit-head-actions { grid-column: auto; align-items: stretch; }.next-mode-tabs { width: 100%; }.next-local-save-state { width: 100%; justify-content: center; }.next-visit-workspace { display: block; }.next-area-nav { border-right: 0; border-bottom: 1px solid var(--line); }.next-area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 30dvh; overflow: auto; }.next-checkpoint-panel-head { display: grid; }.next-checkpoint-panel-actions { max-width: none; justify-content: flex-start; }.next-checkpoint-add { grid-template-columns: 1fr; }.next-checkpoint-fields, .next-defect-fields { grid-template-columns: 1fr; }.next-checkpoint-fields .span-two, .next-defect-fields .span-two { grid-column: auto; }.next-checkpoint-status-actions { grid-template-columns: 1fr; }.next-checkpoint-editor-actions { align-items: stretch; flex-direction: column; }.next-checkpoint-editor-actions > div { display: grid; grid-template-columns: repeat(2, 1fr); }.next-checkpoint-summary { grid-template-columns: auto auto minmax(0, 1fr) minmax(0, .5fr); }.next-checkpoint-status { min-width: 75px; }.next-section-name { width: 100%; min-width: 0; }.next-visit-meta { grid-template-columns: 1fr; }.next-visit-meta > label { grid-column: auto; }.next-visit-meta > label, .next-visit-meta > div { border-right: 0; border-bottom: 1px solid var(--line); } }

.next-checkpoint-panel-content { min-width: 0; }
@media (min-width: 40.6875rem) {
    .next-visit-page { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
    .next-visit-head, .next-visit-meta, .next-visit-view-tabs, .next-visit-readonly { flex: 0 0 auto; }
    .next-visit-workspace { min-height: 12rem; flex: 1 1 auto; }
    .next-area-nav, .next-checkpoint-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
    .next-area-nav > header, .next-area-add, .next-checkpoint-panel-head { flex: 0 0 auto; }
    .next-area-list, .next-checkpoint-panel-content { min-height: 0; flex: 1 1 auto; align-content: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
}

/* Begehungsaufteilung richtet sich nach dem verfügbaren Arbeitsbereich, auch bei ausgeklappter Navigation und Zoom. */
.next-visit-page { min-width: 0; container-name: qtos-visit; container-type: inline-size; }
.next-visit-workspace { min-width: 0; }
.next-area-nav, .next-area-nav > header > div, .next-area-list > button > span:nth-child(2) { min-width: 0; }
.next-area-nav > header button { flex: 0 0 auto; }
.next-area-list strong { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.next-checkpoint-panel-head { flex-wrap: wrap; }
.next-checkpoint-panel-head > div:first-child { min-width: 0; flex: 1 1 15rem; }
.next-checkpoint-panel-actions { min-width: 0; max-width: 100%; }
.next-section-name { width: 100%; min-width: 0; }
.next-area-list .next-section-progress, .next-checkpoint-panel-head .next-section-progress { display: table; width: max-content; max-width: 100%; padding: 3px 7px; border-radius: 5px; font-weight: 750; white-space: nowrap; }
.next-area-list .next-section-progress.is-ok, .next-checkpoint-panel-head .next-section-progress.is-ok { color: #236044; background: #dff2e6; }
.next-area-list .next-section-progress.is-defect, .next-checkpoint-panel-head .next-section-progress.is-defect { color: #a02d25; background: #fee5e1; }
.next-area-list .next-section-progress.is-pending, .next-checkpoint-panel-head .next-section-progress.is-pending { color: #735800; background: #fff1bc; }
.next-area-list .next-section-progress.is-excluded, .next-checkpoint-panel-head .next-section-progress.is-excluded { color: #465563; background: #e3eaf0; }
.next-visit-meta > label, .next-visit-meta > div, .next-visit-meta input { min-width: 0; }
.next-visit-view-group { flex: 0 0 auto; }

@container qtos-visit (max-width: 58rem) {
    .next-visit-head { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 16px; }
    .next-visit-head-actions { grid-column: 1 / -1; justify-content: space-between; }
    .next-visit-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .next-visit-meta > label { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
    .next-checkpoint-panel-actions { justify-content: flex-start; }
    .next-checkpoint-summary { grid-template-columns: auto auto minmax(0, 1fr) auto; }
    .next-checkpoint-summary > span:not(.next-checkpoint-title):not(.next-checkpoint-number) { display: none; }
    .next-checkpoint-fields, .next-defect-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container qtos-visit (max-width: 43rem) {
    .next-visit-workspace { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(14rem, 1fr); min-height: 26rem; }
    .next-visit-workspace.without-area-nav { grid-template-rows: minmax(14rem, 1fr); min-height: 18rem; }
    .next-area-nav { display: flex; flex-direction: column; max-height: 12rem; border-right: 0; border-bottom: 1px solid var(--line); }
    .next-area-nav > header { flex: 0 0 auto; min-height: 64px; padding-block: 10px; }
    .next-area-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); max-height: 9rem; overflow-y: auto; }
    .next-checkpoint-panel { min-height: 14rem; }
    .next-checkpoint-panel-head { display: flex; gap: 10px; }
    .next-checkpoint-panel-actions { flex-basis: 100%; }
    .next-checkpoint-fields, .next-defect-fields { grid-template-columns: minmax(0, 1fr); }
    .next-checkpoint-fields .span-two, .next-defect-fields .span-two { grid-column: auto; }
    .next-checkpoint-add { grid-template-columns: minmax(0, 1fr); }
}

@container qtos-visit (max-width: 30rem) {
    .next-visit-head { grid-template-columns: minmax(0, 1fr); }
    .next-visit-meta { grid-template-columns: minmax(0, 1fr); }
    .next-visit-meta > label, .next-visit-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* In Arbeitsständen scrollen Ausgangspunkte und Änderungen unabhängig voneinander. */
.next-snapshot-dialog { height: 90dvh; }
.next-snapshot-content { min-height: 0; flex: 1 1 auto; overflow: hidden; }
.next-snapshot-layout { min-height: 0; height: 100%; overflow: hidden; }
.next-snapshot-list { min-height: 0; align-content: start; overflow-y: auto; padding-right: 8px; }
.next-snapshot-details { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.next-snapshot-change-list { min-height: 0; flex: 1 1 auto; align-content: start; overflow-y: auto; padding-right: 8px; }
.next-setup-feedback { margin: 0 28px 14px; }
.next-form-field textarea { width: 100%; min-height: 96px; box-sizing: border-box; padding: 10px; resize: vertical; border: 1px solid #d7d7d2; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-weight: 500; }
.next-form-field textarea:focus { border-color: var(--querort-orange-dark); outline: 2px solid rgba(255,201,14,.23); }
.next-property-module-list { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.next-property-module { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 8px; border-radius: 6px; color: #5f5f5a; background: #ecece8; font-size: .625rem; line-height: 1.2; }
.next-property-module .material-icons { width: 15px; height: 15px; }
.next-property-module strong { font-size: .625rem; font-weight: 850; }
.next-property-module > span { font-weight: 650; }
.next-property-module.is-progress { color: #1e5a40; background: #dff4e8; }
.next-property-module.is-queued { color: #654d08; background: #fff2bf; }
.next-property-module.is-archived { color: #5f5f5a; background: #ecece8; }
.next-pagination { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 0; font-size: .8125rem; }
.next-pagination > div, .next-pagination label { display: flex; align-items: center; gap: 8px; }
.next-pagination input { width: 4.5rem; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; font: inherit; text-align: center; }
.next-contact-master > .next-pagination { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); }
.next-property-card { display: flex; flex-direction: column; }
.next-property-card > .next-property-image, .next-property-card > footer { flex: 0 0 auto; }
.next-property-card > .next-property-body { flex: 1 1 auto; }
.next-contact-registry-card { width: 100%; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.next-contact-registry-card .next-status-row > span { overflow-wrap: anywhere; }
.next-overview-note { margin: 12px 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.next-contact-registry-dialog { width: min(720px, 94vw); max-height: 90dvh; display: flex; flex-direction: column; }
.next-contact-registry-dialog > .next-contact-detail { min-height: 0; border-left: 0; }
.next-property-tools { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 14px; margin-bottom: 24px; }
.next-property-tools .next-search { max-width: none; margin-bottom: 0; }
.next-property-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; align-items: end; gap: 9px; }
.next-property-filters label { display: grid; gap: 5px; color: #666660; font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.next-property-filters select { min-width: 0; width: 100%; min-height: 46px; box-sizing: border-box; padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: .75rem; font-weight: 600; text-transform: none; letter-spacing: normal; }
.next-property-filters select:focus { border-color: var(--querort-orange-dark); outline: 2px solid rgba(255,201,14,.23); }
.next-property-filters select:disabled { color: #969690; background: #f1f1ed; }
.next-filter-reset { min-height: 46px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #66500b; background: #fff; font: inherit; font-size: .6875rem; font-weight: 750; cursor: pointer; }
.next-filter-reset:disabled { color: #9b9b96; cursor: default; background: #f5f5f2; }
.next-filter-count { align-self: center; min-width: 52px; color: var(--muted); font-size: .6875rem; white-space: nowrap; }
@media (max-width: 65.625rem) { .next-property-tools { grid-template-columns: 1fr; }.next-property-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38.75rem) { .next-property-filters { grid-template-columns: 1fr 1fr; }.next-filter-reset { width: 100%; }.next-filter-count { justify-self: end; } }
.next-detail-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.next-detail-card-actions a { min-height: 36px; box-sizing: border-box; text-decoration: none; }
.next-template-page { width: 100%; max-width: none; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.next-template-page .next-detail-page-head { align-items: end; }
.next-template-workspace { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: 19% 81%; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.next-template-sidebar { min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line); background: #fbfbf8; }
.next-template-sidebar > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.next-template-sidebar h2 { margin: 2px 0 0; font-size: 1.125rem; }
.next-template-sidebar > header button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dddcd5; border-radius: 6px; color: #6d5409; background: #fff; cursor: pointer; }
.next-template-sidebar > header button:hover { border-color: #d4b644; background: #fff7da; }
.next-template-list { min-height: 0; flex: 1 1 auto; display: grid; align-content: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.next-template-list > button { min-height: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 14px; border: 0; border-bottom: 1px solid #e7e6e0; color: #454540; background: transparent; text-align: left; cursor: pointer; }
.next-template-list > button:hover, .next-template-list > button.is-active { color: #392c00; background: #fff9e7; }
.next-template-list > button.is-active { box-shadow: inset 3px 0 0 var(--querort-orange); }
.next-template-list strong, .next-template-list small { display: block; }
.next-template-list strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; }
.next-template-list small { margin-top: 4px; color: var(--muted); font-size: .625rem; }
.next-template-list em { padding: 3px 6px; border-radius: 999px; color: #654d08; background: #fff0b7; font-size: .5625rem; font-style: normal; font-weight: 800; }
.next-template-editor { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.next-template-editor-head { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.next-template-editor-head h2 { margin: 2px 0 5px; font-size: 1.25rem; }
.next-template-editor-head > div:first-child > span { color: var(--muted); font-size: .6875rem; }
.next-template-editor-head label { display: grid; gap: 5px; }
.next-template-editor-head label > span, .next-template-checkpoint label > span:first-child { color: var(--muted); font-size: .5625rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.next-template-editor-head input { width: min(100%, 32vw); min-height: 38px; box-sizing: border-box; border: 1px solid #d7d7d2; border-radius: 6px; padding: 7px 9px; font: inherit; font-weight: 750; }
.next-template-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.next-template-head-actions .is-danger, .next-template-row-actions .is-danger { color: #9b342b; }
.next-template-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fbfbf8; }
.next-template-toolbar > label { min-width: 0; max-width: 42%; flex: 1 1 auto; display: flex; align-items: center; gap: 7px; }
.next-template-toolbar input { width: 100%; min-height: 36px; box-sizing: border-box; border: 1px solid #d8d7d0; border-radius: 6px; padding: 6px 9px; font: inherit; font-size: .75rem; }
.next-template-sections { display: grid; align-content: start; }
.next-template-section { border-bottom: 1px solid var(--line); }
.next-template-section > header { min-height: 56px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; }
.next-template-section > header > strong, .next-template-section > header > input { min-width: 0; }
.next-template-section > header > input { min-height: 35px; box-sizing: border-box; border: 1px solid #d8d7d0; border-radius: 5px; padding: 6px 8px; font: inherit; font-size: .75rem; font-weight: 750; }
.next-template-section > header > span:not(.next-template-section-number) { color: var(--muted); font-size: .625rem; white-space: nowrap; }
.next-template-expand, .next-template-row-actions button { display: grid; place-items: center; border: 0; color: #696962; background: transparent; cursor: pointer; }
.next-template-expand { width: 28px; height: 28px; }
.next-template-expand .material-icons, .next-template-row-actions .material-icons { width: 17px; height: 17px; }
.next-template-section-number, .next-template-checkpoint-number { color: #8a6d0d; font-size: .625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.next-template-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.next-template-row-actions button { width: 29px; height: 29px; border-radius: 5px; }
.next-template-row-actions button:hover:not(:disabled) { color: #5b4708; background: #fff3c6; }
.next-template-row-actions button:disabled { color: #c5c4bf; cursor: default; }
.next-template-checkpoints { border-top: 1px solid #ecebe5; background: #fbfbf9; }
.next-template-checkpoint { min-height: 73px; display: grid; grid-template-columns: auto minmax(0, 1.8fr) minmax(0, .45fr) minmax(0, .65fr) minmax(0, .85fr) auto; align-items: start; gap: 10px; padding: 10px 14px 10px 43px; border-bottom: 1px solid #ecebe5; }
.next-template-checkpoint:last-child { border-bottom: 0; }
.next-template-checkpoint-number { align-self: center; }
.next-template-checkpoint label { display: grid; gap: 4px; }
.next-template-checkpoint > .next-template-row-actions { align-self: start; margin-top: 14px; }
.next-template-checkpoint input, .next-template-checkpoint select, .next-template-checkpoint textarea { width: 100%; min-height: 36px; box-sizing: border-box; border: 1px solid #d8d7d0; border-radius: 5px; padding: 6px 8px; color: var(--ink); background: #fff; font: inherit; font-size: .6875rem; }
.next-template-checkpoint textarea { min-height: 50px; resize: vertical; }
.next-template-readonly-value { grid-column: 2 / -1; display: grid; gap: 4px; align-self: center; }
.next-template-readonly-value strong { font-size: .75rem; }
.next-template-readonly-value span { color: var(--muted); font-size: .625rem; }
.next-interval-input { display: grid; grid-template-columns: 28% 72%; gap: 5px; }
.next-template-empty { padding: 24px; color: var(--muted); font-size: .75rem; text-align: center; }
@media (max-width: 71.875rem) { .next-template-checkpoint { grid-template-columns: auto minmax(0, 1fr) minmax(0, .35fr) minmax(0, .55fr) auto; }.next-template-checkpoint > label:nth-of-type(3) { display: none; } }
@media (max-width: 53.125rem) { .next-template-workspace { grid-template-columns: 25% 75%; }.next-template-editor-head { align-items: flex-start; flex-direction: column; }.next-template-head-actions { justify-content: flex-start; }.next-template-checkpoint { grid-template-columns: auto minmax(0, 1fr) minmax(0, .65fr); padding-left: 20px; }.next-template-checkpoint > label:nth-of-type(2) { display: none; }.next-template-checkpoint .next-template-row-actions { grid-column: 2 / -1; justify-content: flex-start; margin-top: 0; } }
@media (max-width: 40.625rem) { .next-template-page .next-detail-page-head { align-items: start; }.next-template-workspace { display: block; }.next-template-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }.next-template-list { max-height: 30dvh; overflow-y: auto; }.next-template-editor-head { padding: 15px; }.next-template-toolbar { align-items: stretch; flex-direction: column; padding: 12px 15px; }.next-template-toolbar > label { min-width: 0; }.next-template-section > header { grid-template-columns: auto auto minmax(0, 1fr) auto; }.next-template-section > header > span:not(.next-template-section-number) { display: none; }.next-template-section > header .next-template-row-actions { grid-column: 3 / -1; justify-content: flex-start; }.next-template-checkpoint { grid-template-columns: auto minmax(0, 1fr); padding: 11px 15px; }.next-template-checkpoint > label { grid-column: 2; }.next-template-checkpoint > label:nth-of-type(2), .next-template-checkpoint > label:nth-of-type(3) { display: grid; }.next-template-checkpoint .next-template-row-actions { grid-column: 2; }.next-template-readonly-value { grid-column: 2; }.next-detail-card-actions { justify-content: flex-start; } }

.next-template-management-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 9px; }
.next-template-management-actions a, .next-template-management-actions button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; color: #765b07; background: transparent; font: inherit; font-size: .6875rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.next-template-management-actions .material-icons { width: 16px; height: 16px; }
.next-settings-page { width: 100%; max-width: none; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.next-settings-layout { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: 18% 82%; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.next-settings-navigation { min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 13px 10px; border-right: 1px solid var(--line); background: #f8f8f5; }
.next-settings-navigation p { margin: 15px 11px 6px; color: #77766f; font-size: .5625rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.next-settings-navigation p:first-child { margin-top: 3px; }
.next-settings-navigation button { min-height: 42px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 6px; padding: 8px 11px; color: #4f4f49; background: transparent; font: inherit; font-size: .75rem; font-weight: 700; text-align: left; cursor: pointer; }
.next-settings-navigation button:hover, .next-settings-navigation button.is-active { color: #3d3005; background: #fff2c2; }
.next-settings-navigation .material-icons { width: 18px; height: 18px; }
.next-settings-content { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 26px 30px 40px; }
.next-settings-content > header { margin-bottom: 22px; }
.next-settings-content > header h2 { margin: 2px 0 6px; font-size: 1.4375rem; }
.next-settings-content > header p:last-child { margin: 0; color: var(--muted); font-size: .75rem; }
.next-settings-callout { min-height: 92px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 20px; border: 1px solid #e1dfd4; border-radius: 8px; background: #fbfbf7; }
.next-settings-callout > .material-icons { width: 29px; height: 29px; color: #826509; }
.next-settings-callout strong, .next-settings-callout span { display: block; }
.next-settings-callout span { margin-top: 4px; color: var(--muted); font-size: .6875rem; }
.next-settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin: -7px 0 14px; }.next-settings-actions .next-stamp-help { margin-right: auto; }
.next-settings-items { display: grid; gap: 14px; }
.next-settings-item { overflow: hidden; border: 1px solid #dfded7; border-radius: 8px; }
.next-settings-item > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid #e8e7e1; background: #fbfbf8; }
.next-settings-item > header h3 { margin: 0; font-size: .8125rem; }
.next-settings-item > header button, .next-page-setting > button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #9a382d; background: transparent; cursor: pointer; }
.next-stamp-editor { display: grid; grid-template-columns: minmax(0, 25fr) minmax(0, 75fr); gap: 20px; padding: 16px; }
.next-stamp-preview { display: grid; align-content: start; gap: 9px; color: var(--muted); font-size: .625rem; }
.next-stamp-image-canvas { min-height: 92px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d1d0c9; border-radius: 7px; background: repeating-conic-gradient(#fff 0 25%, #dedede 0 50%) 0 / 16px 16px; }
.next-stamp-image-canvas img { max-width: 45%; max-height: 12dvh; object-fit: contain; }
.next-stamp-preview-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.next-stamp-preview label { position: relative; cursor: pointer; }
.next-stamp-preview input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.next-stamp-size-fields { align-self: start; align-content: start; grid-auto-rows: max-content; }
.next-stamp-information-dialog { width: min(94%, 50vw); }.next-stamp-information-content { display: grid; gap: 14px; overflow: auto; padding: 22px 24px; color: #41413c; font-size: .8125rem; line-height: 1.55; }.next-stamp-information-content p { margin: 0; }.next-transparency-example { height: 72px; border: 1px solid #d1d0c9; background: repeating-conic-gradient(#fff 0 25%, #dedede 0 50%) 0 / 16px 16px; }
.next-link-button { border: 0; color: #7b5f06; background: transparent; font: inherit; font-size: .625rem; font-weight: 750; cursor: pointer; }
.next-page-settings { padding: 0 16px 16px; }
.next-page-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-top: 12px; border-top: 1px solid #ecebe5; font-size: .6875rem; }
.next-page-setting { display: grid; grid-template-columns: minmax(0, .5fr) repeat(2, minmax(0, 1fr)) auto; align-items: start; gap: 10px; padding: 10px 0; border-top: 1px solid #efeee8; }
.next-page-setting small { color: var(--muted); font-size: .5625rem; font-weight: 500; }
.next-settings-empty { margin: 0; padding: 24px; border: 1px dashed #dad9d2; border-radius: 7px; color: var(--muted); font-size: .6875rem; text-align: center; }
.next-settings-readonly { display: flex; align-items: center; gap: 7px; padding: 11px 13px; border-left: 3px solid #c8a117; color: #614b09; background: #fff8dc; font-size: .6875rem; }
.next-settings-readonly .material-icons { width: 17px; height: 17px; }
.next-settings-fieldset { margin: 18px 0 0; padding: 17px; border: 1px solid #dfded7; border-radius: 8px; }
.next-settings-fieldset legend { padding: 0 6px; font-size: .6875rem; font-weight: 800; }
.next-settings-fieldset:disabled { opacity: .67; }
.next-general-settings-form, .next-company-settings-form { display: grid; gap: 5px; }
.next-fieldset-description { margin: 0 0 15px; color: var(--muted); font-size: .6875rem; }
.next-branding-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 24px; }
.next-logo-editor { display: grid; gap: 10px; }
.next-logo-editor small, .next-inline-actions small { color: var(--muted); font-size: .625rem; }
.next-logo-preview { min-height: 20dvh; display: grid; place-items: center; overflow: hidden; border: 1px dashed #d4d2c8; border-radius: 7px; color: var(--muted); background: repeating-conic-gradient(#fff 0 25%, #eee 0 50%) 0 / 20px 20px; font-size: .6875rem; }
.next-logo-preview img { max-width: 90%; max-height: 18dvh; object-fit: contain; }
.next-inline-actions { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.next-inline-actions label.next-secondary { cursor: pointer; }
.next-inline-actions input[type=file] { display: none; }
.next-checkbox-field { display: flex; grid-column: span 2; grid-template-columns: auto 1fr; align-items: center; }
.next-checkbox-field input { width: auto; min-height: 0; }
.next-settings-submit { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 13px; }
.next-user-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) auto; align-items: end; gap: 16px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.next-user-invite strong, .next-user-invite span { display: block; }
.next-user-invite span { margin-top: 4px; color: var(--muted); font-size: .6875rem; }
.next-user-list { display: grid; gap: 9px; }
.next-user-entry { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.next-user-entry-head { width: 100%; min-height: 66px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 52px 12px 15px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.next-user-entry-head:hover { background: #fbfaf5; }
.next-user-entry-head > span strong, .next-user-entry-head > span small { display: block; }
.next-user-entry-head small { margin-top: 3px; color: var(--muted); font-size: .625rem; font-weight: 500; }
.next-user-entry-head em, .next-user-roles em { padding: 3px 7px; border-radius: 12px; color: #41613f; background: #e8f5e8; font-size: .5625rem; font-style: normal; font-weight: 750; }
.next-user-remove { position: absolute; top: 18px; right: 13px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #9a382d; background: transparent; cursor: pointer; }
.next-user-roles { display: grid; padding: 5px 16px 14px; border-top: 1px solid #ecebe5; }
.next-user-roles-head { display: grid; grid-template-columns: 16% minmax(0, 1fr) auto; gap: 10px; margin: -5px -16px 0; padding: 11px 16px 10px; border-bottom: 1px solid #deddd6; color: #4f4f49; background: #f7f7f3; font-size: .625rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.next-user-roles-head span:first-child { text-align: center; white-space: nowrap; }
.next-user-roles > label { display: grid; grid-template-columns: 16% minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #efeee8; }
.next-user-roles > label > input { justify-self: center; }
.next-user-roles > label:last-child { border-bottom: 0; }
.next-user-roles strong, .next-user-roles small { display: block; }
.next-user-roles small { margin-top: 3px; color: var(--muted); font-size: .5625rem; font-weight: 500; }
.next-user-roles .next-role-status { min-width: 45px; box-sizing: border-box; text-align: center; }
.next-user-roles .next-role-status.is-active { color: #286a4d; background: #e4f3e9; }
.next-user-roles .next-role-status.is-inactive { color: #74746e; background: #eeeeea; }
/* QTos text: the editor owns scrolling, not the page. */
.next-content:has(.next-qtos-text-page) { overflow: hidden; }
.next-qtos-text-page { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.next-qtos-text-page > .next-page-head,
.next-qtos-text-page > .next-qtos-module-nav { flex: 0 0 auto; }
.next-qtos-text-workspace { flex: 1 1 0; min-height: 0; margin-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.next-qtos-text-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.next-qtos-text-template { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 700; }
.next-qtos-text-template span { flex: 0 0 auto; }
.next-qtos-text-template select { flex: 1 1 auto; min-width: 0; min-height: 40px; }
.next-qtos-text-toolbar > button { flex: 0 0 auto; min-height: 40px; }
.next-qtos-text-delete { padding: 8px 10px; }
.next-qtos-text-delete svg { width: 20px; height: 20px; }
.next-qtos-text-editor { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px; overflow: hidden; }
.next-qtos-text-editor > .next-rich-text-editor,
.next-qtos-text-editor .cke,
.next-qtos-text-editor .cke_inner { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.next-qtos-text-editor .next-rich-text-editor-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.next-qtos-text-editor textarea { min-height: 0; height: 100%; flex: 1 1 0; }
.next-qtos-text-editor .cke_top { flex: 0 0 auto; max-height: 45%; overflow-y: auto; }
.next-qtos-text-editor .cke_contents { flex: 1 1 0; min-height: 0; height: 0 !important; }
.next-qtos-text-editor .cke_contents iframe { height: 100% !important; }
.next-qtos-text-retry { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; font-size: .8125rem; }
.next-qtos-text-dialog { width: min(92%, 42vw); }
.next-qtos-text-dialog-body { min-height: 0; overflow-y: auto; padding: 16px 22px; font-size: .875rem; line-height: 1.5; }
.next-qtos-text-dialog-body p { margin: 12px 0 0; }
.next-qtos-text-dialog-body p:first-child { margin-top: 0; }
@media (max-width: 56.25rem) {
    .next-qtos-text-page > .next-qtos-module-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .next-qtos-text-page > .next-qtos-module-nav a { justify-content: center; padding: 8px; font-size: .8125rem; }
    .next-qtos-text-toolbar { flex-wrap: wrap; }
    .next-qtos-text-template { flex-basis: 100%; }
    .next-qtos-text-dialog { width: 94%; }
}
.next-rich-text-editor { position: relative; }
.next-rich-text-print-progress, .next-shop-progress { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(255,255,255,.9); color: var(--ink); font-size: .875rem; font-weight: 700; cursor: wait; }
.next-rich-text-editor-label { display: block; margin-bottom: 7px; font-size: .75rem; font-weight: 800; }
.next-rich-text-editor textarea { min-height: 52dvh; width: 100%; }
.next-rich-text-editor .cke { border: 1px solid #d7d7d2; border-radius: 7px; box-shadow: none; overflow: hidden; }
.next-rich-text-editor .cke_top { border-bottom-color: #d7d7d2; background: #f2f1ed; }
.next-rich-text-editor .cke_bottom { display: none; }
.next-cover-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }.next-cover-actions > div { display: grid; gap: 3px; }.next-cover-actions strong { color: #286a4d; font-size: .75rem; }.next-cover-actions span { color: var(--muted); font-size: .6875rem; }.next-cover-actions button { flex: 0 0 auto; }
@media (max-width: 47.5rem) { .next-settings-layout { display: block; }.next-settings-navigation { border-right: 0; border-bottom: 1px solid var(--line); }.next-settings-content { padding: 20px 16px 30px; }.next-settings-callout { grid-template-columns: auto minmax(0, 1fr); }.next-settings-callout .next-primary { grid-column: 1 / -1; }.next-stamp-editor, .next-branding-grid { grid-template-columns: 1fr; }.next-page-setting { grid-template-columns: 1fr 1fr; }.next-page-setting > button { grid-column: 2; justify-self: end; }.next-user-invite { grid-template-columns: 1fr; align-items: stretch; }.next-user-roles { padding-left: 16px; } }

/* Bebilderte Anleitungen: Bild und Navigation bleiben sichtbar, nur der Textbereich scrollt. */
.next-help-step-image { flex: 0 1 65%; min-height: 0; width: 100%; max-height: 65%; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #f4f4f1; overflow: hidden; cursor: zoom-in; }
.next-help-step-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.next-help-step-controls { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.next-help-step-controls span { font-size: .8125rem; color: var(--muted); }
.next-help-step-controls button { padding: 8px 14px; }
.next-help-step-controls button:disabled { opacity: .45; cursor: default; }
.next-help-topic-content .next-help-steps { margin-top: 0; }
.next-help-step-details h4 { margin: 0 0 7px; font-size: 1rem; }
.next-help-step-instruction { margin: 0 0 10px; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.next-help-step-description { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.next-help-step-list { margin-top: 14px; font-size: .8125rem; }
.next-help-step-list summary { cursor: pointer; font-weight: 600; padding: 5px 0; }
.next-help-step-list ol { margin-top: 7px; gap: 4px; }
.next-help-step.is-selected { background: #fff1b8; }
.next-help-image-backdrop { position: fixed; inset: 0; z-index: 13000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.65); }
.next-help-image-viewer { width: 94%; height: 94%; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; }
.next-help-image-viewer > header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.next-help-image-viewer > div { min-width: 0; min-height: 0; flex: 1 1 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.next-help-image-viewer img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 43.75rem) { .next-help-step-image { flex-basis: 40%; max-height: 40%; } }

/* Report review and shop use the available workspace; only their content panes scroll. */
.next-report-dialog { width: 58%; max-height: 94%; }
.next-report-dialog.is-review { width: 96%; height: 94%; }
.next-report-dialog > header, .next-report-dialog > footer, .next-report-steps, .next-report-progress { flex: 0 0 auto; }
.next-report-progress { padding: 8px 18px; color: #6b5308; background: #fff8dc; font-size: .8125rem; }
.next-report-retry { flex: 0 0 auto; padding: 8px 12px; }
.next-report-options { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; font-size: .875rem; }
.next-report-options h3, .next-report-options p { margin: 0; }
.next-report-options > button { justify-content: flex-start; }
.next-report-options > button span { flex: 1; text-align: left; }
.next-report-options small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 500; }
.next-report-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.next-report-steps button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 0; border-bottom: 3px solid transparent; background: #fafaf7; color: var(--ink); font: inherit; font-size: .8125rem; }
.next-report-steps button.is-active { border-bottom-color: var(--querort-orange); background: #fff5cc; font-weight: 750; }
.next-report-steps button span { display: grid; place-items: center; padding: 4px 8px; border-radius: 50%; background: #eeede6; font-size: .75rem; }
.next-report-editor { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 25%) minmax(0, 1fr); overflow: hidden; }
.next-report-tools { min-height: 0; overflow: auto; padding: 16px; border-right: 1px solid var(--line); font-size: .8125rem; }
.next-report-tools h3 { margin: 0; font-size: .9375rem; }
.next-report-tools p { margin: 8px 0 12px; color: var(--muted); line-height: 1.4; }
.next-report-add-tools { display: grid; gap: 8px; }
.next-report-item-list { display: grid; gap: 5px; margin-top: 12px; }
.next-report-item-list button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; text-align: left; font: inherit; font-size: .75rem; background: #fff; }
.next-report-item-list button.is-active { border-color: #d5ad23; background: #fff6d6; }
.next-report-item-settings { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.next-report-item-settings label { display: grid; gap: 4px; }
.next-report-item-settings input { min-width: 0; width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.next-report-stamp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.next-report-stamp-choices button { padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.next-report-stamp-choices img { display: block; width: 100%; max-height: 12vh; object-fit: contain; }
.next-report-document { min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #e6e5e1; }
.next-report-page-toolbar { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.next-report-page-navigation, .next-report-zoom { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.next-report-zoom { margin-left: auto; }
.next-report-page-toolbar label { display: flex; align-items: center; gap: 6px; margin: 0; }
.next-report-page-toolbar input { width: 4rem; min-height: 40px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: center; }
.next-report-page-toolbar button { min-width: 40px; min-height: 40px; }
.next-report-zoom > span { min-width: 3.25rem; text-align: center; font-variant-numeric: tabular-nums; }
.next-report-paper-scroll { flex: 1 1 0; min-height: 0; overflow: auto; padding: 16px; }
.next-report-paper { position: relative; aspect-ratio: 210 / 297; margin-inline: auto; background: #fff; box-shadow: 0 2px 10px #0002; }
.next-report-paper > canvas { display: block; width: 100%; height: 100%; }
.next-report-item { position: absolute; border: 1px dashed #a77d15; }
.next-report-item.is-selected { border: 2px solid #bf9100; }
.next-report-item > img, .next-report-item > canvas { display: block; width: 100%; height: 100%; object-fit: fill; }
.next-report-item > canvas { touch-action: none; }
.next-report-move { position: absolute; bottom: 100%; right: 0; display: grid; place-items: center; padding: 3px; border: 1px solid #b9922c; background: #fff6cf; cursor: move; touch-action: none; }
.next-report-move .material-icons { width: 18px; height: 18px; }
.next-report-dialog .next-dialog-actions p { margin: 0 auto 0 0; color: var(--muted); font-size: .75rem; }
.next-content:has(.next-shop-page) { overflow: hidden; }
.next-shop-page { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.next-shop-page > header, .next-shop-page > p { flex: 0 0 auto; }
.next-shop-head-actions { display: flex; align-items: center; gap: 8px; }
.next-shop-workspace { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 68%) minmax(0, 1fr); gap: 16px; overflow: hidden; }
.next-shop-products, .next-shop-billing { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.next-shop-code { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.next-shop-code label { flex: 1; }
.next-shop-product { margin-bottom: 16px; }
.next-shop-product h2, .next-shop-billing h2 { margin: 0 0 12px; font-size: 1rem; }
.next-shop-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next-shop-price { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .8125rem; overflow-wrap: anywhere; }
.next-shop-price > header { display: flex; align-items: center; gap: 8px; }
.next-shop-price h3 { margin: 0; font-size: .9375rem; }
.next-shop-price-content { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.next-shop-price-info { line-height: 1.5; }
.next-shop-price details summary { cursor: pointer; color: #725700; }
.next-shop-price details > div { padding-top: 8px; color: var(--muted); line-height: 1.5; }
.next-shop-price-state { padding: 12px; border-radius: 7px; background: #f7f7f3; }
.next-shop-price-state > strong { display: block; margin-bottom: 7px; }
.next-shop-price-state > div { white-space: pre-line; line-height: 1.5; }
.next-shop-price-state details { margin-top: 8px; }
.next-shop-price > footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.next-shop-billing { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .8125rem; }
.next-shop-billing > p { color: var(--muted); line-height: 1.5; }
.next-shop-billing fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.next-shop-billing fieldset > button { margin-top: 14px; }
.next-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 56.25rem) {
    .next-report-dialog { width: 94%; }
    .next-report-editor { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); }
    .next-shop-workspace { grid-template-columns: minmax(0, 58%) minmax(0, 1fr); }
    .next-shop-prices { grid-template-columns: minmax(0, 1fr); }
    .next-shop-billing .next-form-grid { grid-template-columns: minmax(0, 1fr); }
    .next-shop-billing .span-two { grid-column: auto; }
}
@media (max-width: 35rem) {
    .next-report-editor { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
    .next-report-steps button { font-size: .6875rem; padding: 8px 4px; gap: 4px; }
    .next-report-dialog .next-dialog-actions p { display: none; }
    .next-shop-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 60%) minmax(0, 1fr); }
}

/* Personal work texts, per-visit effort and organization-wide QCash. */
.next-work-control { white-space: nowrap; font-size: .8125rem; gap: 6px; }
.next-work-panel { position: fixed; z-index: 42; top: var(--next-header-height); right: 0; bottom: 0; width: clamp(340px, 32vw, 620px); display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 24px #0002; }
.next-work-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.next-work-panel-head h2 { margin: 0; font-size: 1.125rem; }
.next-work-panel-controls { padding: 12px 20px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.next-work-panel-controls p, .next-form-hint { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.next-work-panel-controls p { margin: 4px 0 0; }
.next-work-editor { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; overflow: hidden; }
.next-work-editor > small { flex-shrink: 0; color: var(--muted); }
.next-work-editor .next-rich-text-editor { flex: 1; min-height: 0; }
.next-work-editor .next-rich-text-editor, .next-work-editor .cke, .next-work-editor .cke_inner,
.next-cash-mail-body .next-rich-text-editor, .next-cash-mail-body .cke, .next-cash-mail-body .cke_inner { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
.next-work-editor textarea, .next-cash-mail-body textarea { min-height: 0; height: 100%; flex: 1 1 0; }
.next-work-editor .cke_top, .next-cash-mail-body .cke_top { flex: 0 0 auto; max-height: 45%; overflow-y: auto; }
.next-work-editor .cke_contents, .next-cash-mail-body .cke_contents { flex: 1 1 0; min-height: 0; height: 0 !important; }
.next-work-editor .cke_contents iframe, .next-cash-mail-body .cke_contents iframe { height: 100% !important; }
.next-work-panel-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--canvas); }
.next-work-panel-footer > span { font-size: .75rem; color: var(--muted); }
.next-work-loading { padding: 20px; }
.next-effort-dialog { width: min(94%, 72vw); }
.next-effort-body { padding: 20px; overflow-y: auto; min-height: 0; }
.next-effort-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.next-effort-summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px; background: #fff5cb; border-radius: 8px; }
.next-effort-summary > span { font-size: .8125rem; }
.next-effort-list { display: grid; gap: 8px; margin-block: 16px; }
.next-effort-row { display: grid; grid-template-columns: minmax(0, 24%) minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.next-effort-row > div { display: grid; gap: 4px; }
.next-effort-row span, .next-effort-row p { font-size: .8125rem; }
.next-effort-row p { overflow-wrap: anywhere; margin: 0; }
.next-effort-end { display: flex; gap: 8px; }
.next-effort-end input { flex: 1; min-width: 0; }
.next-effort-actions, .next-effort-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; }
.next-effort-footer { border-top: 1px solid var(--line); padding: 12px 20px; }
.next-content:has(.next-cash-page) { overflow: hidden; }
.next-cash-page { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.next-cash-page .next-page-head { flex-shrink: 0; margin-bottom: 0; }
.next-cash-page .next-page-head p { margin: 4px 0 0; }
.next-cash-workspace { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.next-cash-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; align-items: center; border-bottom: 1px solid var(--line); background: #fafaf8; }
.next-cash-filters > input, .next-cash-filters > select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; min-width: 0; font-size: .8125rem; }
.next-cash-filters > input { flex: 1 1 25%; }
.next-cash-filters > select { flex: 0 1 17%; }
.next-cash-filters .next-mode-tabs span { padding: 2px 6px; border-radius: 10px; background: #eeeeea; font-size: .6875rem; }
.next-cash-columns { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
.next-cash-list { min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); overscroll-behavior: contain; }
.next-cash-row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; background: #fff; padding: 16px; display: grid; gap: 7px; color: var(--ink); }
.next-cash-row.is-selected { background: #fff6d4; border-left-color: var(--querort-orange); }
.next-cash-row:hover { background: #faf9f2; }
.next-cash-row > div { display: flex; justify-content: space-between; gap: 8px; }
.next-cash-row p { margin: 0; font-size: .875rem; }
.next-cash-row small { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.next-cash-status { border-radius: 14px; padding: 3px 9px; font-size: .6875rem; background: #f0f0eb; white-space: nowrap; }
.next-cash-detail { overflow-y: auto; min-width: 0; overscroll-behavior: contain; }
.next-cash-empty { padding: 24px; color: var(--muted); }
.next-cash-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.next-cash-detail-head > div { flex: 1; min-width: 0; }
.next-cash-detail-head h2 { margin: 0; font-size: 1.125rem; }
.next-cash-detail-head p { color: var(--muted); font-size: .75rem; margin: 5px 0 0; }
.next-cash-form { padding: 20px; }
.next-cash-recovery { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.next-cash-recovery p { flex: 1; margin: 0; }
.next-cash-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.next-cash-form h3 { font-size: 1rem; margin-block: 20px 10px; }
.next-cash-form .next-form-field, .next-effort-form .next-form-field { min-width: 0; }
.next-cash-form textarea, .next-effort-form textarea { resize: vertical; }
.next-cash-form textarea, .next-cash-form input, .next-cash-form select, .next-effort-form input, .next-effort-form textarea, .next-cash-mail input, .next-cash-mail select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .875rem; }
.next-cash-check { display: flex; align-items: center; gap: 8px; font-size: .8125rem; margin-block: 12px; }
.next-cash-check input { width: auto; }
.next-cash-entries { display: grid; gap: 12px; }
.next-cash-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20%) minmax(0, 15%) auto; align-items: end; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.next-cash-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; padding: 16px 0; font-size: .875rem; }
.next-cash-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.next-cash-final-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.next-cash-final-entry > span { white-space: pre-line; }
.next-cash-final-entry > small { grid-column: 1; color: var(--muted); font-size: .75rem; }
.next-cash-final-entry > strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.next-cash-payment { border-top: 1px solid var(--line); margin-top: 20px; }
.next-cash-loading { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; background: #fffffff0; font-weight: 700; }
.next-cash-mail { position: relative; width: min(94%, 66vw); height: 82vh; }
.next-cash-mail-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.next-cash-mail-body > .next-rich-text-editor { flex: 1; min-height: 0; }
.next-cash-mail > footer { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); }

/* Customer-wide contacts and personal QTos ownership use the same workspace geometry. */
.next-contact-registry .next-registry-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 12%) minmax(0, 20%) auto; }
.next-registry-status { flex: 0 0 auto; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.next-registry-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.next-registry-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.next-registry-row > span { min-width: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
.next-registry-row small, .next-registry-row em { color: var(--muted); font-size: .75rem; font-style: normal; }
.next-registry-row.is-selected { background: #fff7d6; box-shadow: inset 3px 0 var(--querort-orange); }
.next-contact-registry fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.next-contact-registry .next-contact-detail-card dl { display: grid; grid-template-columns: 25% minmax(0, 1fr); gap: 12px; font-size: .875rem; }
.next-contact-registry .next-contact-detail-card dd { margin: 0; overflow-wrap: anywhere; }
.next-contact-registry .next-contact-detail-card p { font-size: .8125rem; line-height: 1.5; }
.next-registry-delete-body { padding: 20px 24px; overflow: auto; }
.next-registry-delete-body > strong { display: block; margin-bottom: 16px; overflow-wrap: anywhere; }
.next-ownership-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.next-ownership-entry p { margin: 6px 0 0; color: var(--muted); font-size: .8125rem; }
.next-ownership-entry > button { flex: 0 0 auto; }
.next-ownership-dialog { width: min(94%, 65vw); }
.next-ownership-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; }
.next-ownership-body fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.next-ownership-body .next-form-grid { margin-bottom: 16px; }
.next-ownership-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 0; font-size: .8125rem; }
.next-ownership-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.next-ownership-row > span { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.next-ownership-row small { color: var(--muted); font-size: .75rem; }
.next-ownership-dialog > footer { flex: 0 0 auto; padding: 14px 24px; border-top: 1px solid var(--line); }
.next-ownership-result { padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; }
@media (max-width: 50rem) {
    .next-contact-registry .next-registry-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .next-contact-registry .next-registry-toolbar > label { grid-column: 1 / -1; }
    .next-ownership-entry { flex-direction: column; align-items: stretch; }
    .next-ownership-dialog { width: 96%; }
}
@media (max-width: 80rem) {
    .next-work-control > span { display: none; }
    .next-toolbar-start { gap: 6px; }
    .next-cash-columns { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); }
    .next-cash-filters > select { flex-basis: 22%; }
}
@media (max-width: 50rem) {
    .next-work-panel { width: 55vw; min-width: 310px; }
    .next-effort-dialog, .next-cash-mail { width: 96%; }
    .next-cash-columns { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 30%) minmax(0, 1fr); }
    .next-cash-list { border-right: 0; border-bottom: 1px solid var(--line); }
    .next-cash-filters > input { flex-basis: 50%; }
    .next-cash-filters > select { flex: 1 1 28%; }
    .next-effort-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
    .next-effort-row > p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 35rem) {
    .next-work-panel { width: calc(100% - 74px); min-width: 0; }
    .next-cash-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .next-cash-entry > label:first-child { grid-column: 1 / -1; }
}

.next-modal.next-qtos-management-dialog { width: min(58rem, 100%); }
.next-module-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.next-module-grid:has(.next-qtos-module-card) { grid-template-columns: minmax(0, 1fr); }
.next-qtos-module-card { width: 100%; max-width: 48rem; }
.next-module-status.is-multiple { color: #55554f; background: #eeeee9; }
.next-module-case { min-width: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.next-module-case > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.next-module-case h4 { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 650; }
.next-module-visit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #eeeee9; }
.next-module-visit > div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.next-module-visit strong { font-size: .875rem; }
.next-module-visit span { font-size: .8125rem; }
.next-module-visit small { color: var(--muted); font-size: .75rem; }
.next-module-visit .next-primary { flex: 0 0 auto; text-decoration: none; }
.next-module-case .next-module-card-actions { padding-top: 8px; }
.next-module-case .next-secondary { min-height: 34px; padding: 6px 10px; font-size: .75rem; }
.next-module-archive { border-top: 1px solid var(--line); padding-top: 14px; }
.next-module-archive > summary { cursor: pointer; color: #55554f; font-size: .8125rem; font-weight: 750; }
.next-module-archive .next-module-case { margin-top: 14px; }
.next-qtos-current-visits { padding: 18px 24px; }
.next-qtos-current-visits > h3 { margin: 0 0 14px; font-size: 1rem; }
.next-qtos-current-visit + .next-qtos-current-visit { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.next-qtos-current-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next-qtos-current-meta > * { display: grid; align-content: start; gap: 8px; min-width: 0; }
.next-qtos-current-meta span { color: var(--muted); font-size: .625rem; font-weight: 750; text-transform: uppercase; }
.next-qtos-current-meta strong { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.next-qtos-current-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.next-qtos-completed > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; cursor: pointer; list-style: none; }
.next-qtos-completed > summary::-webkit-details-marker { display: none; }
.next-qtos-completed h2 { margin: 0; font-size: 1rem; }
.next-qtos-completed h2 span { margin-left: 8px; color: var(--muted); font-size: .75rem; }
.next-qtos-completed[open] > summary > .material-icons { transform: rotate(180deg); }
.next-qtos-completed > footer { padding: 10px 22px; border-top: 1px solid var(--line); }
@media (max-width: 40.625rem) {
    .next-module-visit { flex-wrap: wrap; }
    .next-module-case > header { flex-wrap: wrap; }
    .next-module-visit .next-primary { width: auto; margin-left: auto; }
    .next-qtos-current-meta { grid-template-columns: 1fr; gap: 12px; }
    .next-qtos-current-visits { padding: 16px; }
    .next-qtos-current-actions { justify-content: flex-start; }
}
.next-qtos-management-dialog > header p { margin: .35rem 0 0; color: var(--muted); font-size: .875rem; }
.next-qtos-case-list { min-height: 0; overflow-y: auto; padding: 0 1.5rem 1.5rem; }
.next-qtos-case-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.next-qtos-case-row > div { flex: 1 1 20rem; min-width: 0; }
.next-qtos-case-row > div > strong, .next-qtos-case-row > div > span { display: block; }
.next-qtos-case-row > div > span, .next-qtos-case-note { margin-top: .35rem; color: var(--muted); font-size: .85rem; }
.next-qtos-general-info { flex: 1 1 100%; min-width: 0; }
.next-qtos-general-info fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.next-qtos-general-info p { margin: .5rem 0 0; color: var(--muted); font-size: .8125rem; }
