:root {
  --next-bg: #f5f6f7;
  --next-surface: #ffffff;
  --next-soft: #f8f9fa;
  --next-ink: #282b2f;
  --next-muted: #5f646a;
  --next-line: #dfe2e5;
  --next-red: #d82831;
  --next-red-dark: #a91f27;
  --next-blue: #426b91;
  --next-green: #48765c;
  --next-amber: #b27124;
  --next-page-gutter: clamp(16px, 1.5vw, 24px);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--next-ink);
  background: var(--next-bg);
}

/* Security administration */
.next-security-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-security-header > div:first-child { min-width: 0; }
.next-security-header h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-security-header p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-security-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.next-security-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-security-kpis > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 0 18px; border-right: 1px solid var(--next-line); }
.next-security-kpis > div:first-child { padding-left: 0; }
.next-security-kpis > div:last-child { border-right: 0; }
.next-security-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-security-kpis small { color: var(--next-muted); font-size: 9px; }
.next-security-kpis strong { font-size: 18px; }
.next-security-message { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 37px; margin-top: 14px; padding: 7px 10px; border: 1px solid; border-radius: 4px; font-size: 9px; }
.next-security-message svg { width: 15px; height: 15px; }
.next-security-message.success { color: #315f43; border-color: #b8d3c2; background: #f1f7f3; }
.next-security-message.error { color: #8e242b; border-color: #e1b5b8; background: #fff5f6; }
.next-security-duty { margin-top: 14px; border: 1px solid #dfb6b9; border-left: 3px solid #b3261e; border-radius: 6px; background: #fff; overflow: hidden; }
.next-security-duty.ready { border-color: #b9d4c3; border-left-color: #28754a; }
.next-security-duty > header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 66px; padding: 10px 13px; border-bottom: 1px solid var(--next-line); }
.next-security-duty > header > span { display: grid; place-items: center; width: 34px; height: 34px; color: #a0272c; border-radius: 50%; background: #fae8e9; }
.next-security-duty.ready > header > span { color: #28754a; background: #e8f3ec; }
.next-security-duty > header > span svg { width: 17px; height: 17px; }
.next-security-duty > header > div { display: grid; min-width: 0; }
.next-security-duty > header small { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-security-duty > header h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-security-duty > header p { margin: 3px 0 0; color: var(--next-muted); font-size: 8px; line-height: 1.35; }
.next-security-duty > header em { padding: 5px 7px; color: #8e242b; border-radius: 4px; background: #f8e4e5; font-size: 7px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-security-duty.ready > header em { color: #315f43; background: #e4f0e8; }
.next-security-duty > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-security-duty > div > span { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 7px; min-width: 0; min-height: 44px; padding: 7px 11px; border-right: 1px solid var(--next-line); }
.next-security-duty > div > span:last-child { border-right: 0; }
.next-security-duty > div small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.next-security-duty > div strong { font-size: 14px; }
.next-security-duty > div svg { width: 14px; height: 14px; color: #65727c; }
.next-security-duty > div > span.warning { color: #8a5a0d; background: #fff8ed; }
.next-security-duty > div > span.warning svg { color: #a66b0e; }
.next-security-duty > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 11px; border-top: 1px solid var(--next-line); background: #f8f9fa; }
.next-security-duty > footer > span { display: flex; align-items: center; gap: 6px; color: #646a6f; font-size: 8px; }
.next-security-duty > footer > span svg { flex: 0 0 auto; width: 13px; height: 13px; color: #427058; }
.next-security-duty > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.next-security-duty > footer .next-secondary-command { min-height: 30px; }
.next-security-modes { display: flex; align-items: center; gap: 4px; margin-top: 18px; padding: 4px; border: 1px solid var(--next-line); border-radius: 6px; background: #f4f5f6; }
.next-security-modes button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 34px; padding: 0 11px; color: #656a70; border: 0; border-radius: 4px; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.next-security-modes button:hover { color: var(--next-red-dark); }
.next-security-modes button.active { color: var(--next-red-dark); background: #fff; box-shadow: 0 1px 3px rgba(24, 29, 34, .08); }
.next-security-modes button svg { width: 14px; height: 14px; }
.next-security-modes button b { min-width: 19px; padding: 2px 5px; border-radius: 3px; background: #e2e5e7; font-size: 7px; text-align: center; }
.next-security-modes button.active b { background: #f7dfe1; }
.next-security-user-layout { display: grid; grid-template-columns: minmax(240px, 310px) minmax(0, 1fr); min-width: 0; margin-top: 12px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-security-user-list { min-width: 0; border-right: 1px solid var(--next-line); background: #f8f9fa; }
.next-security-user-list > header { display: flex; align-items: center; gap: 8px; min-height: 55px; padding: 9px 10px; border-bottom: 1px solid var(--next-line); }
.next-security-user-list > header label { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 5px; min-width: 0; flex: 1; height: 34px; padding: 0 8px; border: 1px solid #d3d6d9; border-radius: 4px; background: #fff; }
.next-security-user-list > header label:focus-within { border-color: #ae7479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-security-user-list > header svg { width: 14px; height: 14px; color: #777c81; }
.next-security-user-list > header input { min-width: 0; border: 0; outline: 0; font-size: 10px; }
.next-security-user-list > header small { color: var(--next-muted); font-size: 8px; white-space: nowrap; }
.next-security-user-list > div { max-height: 760px; overflow-y: auto; }
.next-security-user-list > div > button { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 15px; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 8px 10px; color: var(--next-ink); border: 0; border-bottom: 1px solid var(--next-line); background: transparent; text-align: left; cursor: pointer; }
.next-security-user-list > div > button:hover { background: #f1f3f4; }
.next-security-user-list > div > button.selected { background: #f9e9ea; }
.next-security-user-list > div > button > span:nth-child(2) { display: grid; min-width: 0; }
.next-security-user-list > div > button strong, .next-security-user-list > div > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-security-user-list > div > button strong { font-size: 9px; }
.next-security-user-list > div > button small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-security-user-list > div > button em { padding: 3px 5px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-security-user-list > div > button em.active { color: #315f43; background: #e4f0e8; }
.next-security-user-list > div > button em.inactive { color: #7a4c14; background: #f5ead9; }
.next-security-user-list > div > button > svg { width: 14px; height: 14px; color: #9ba0a5; }
.next-security-avatar { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; border-radius: 50%; background: #696e73; font-size: 9px; font-weight: 800; }
.next-security-editor { min-width: 0; }
.next-security-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 11px 16px; border-bottom: 1px solid var(--next-line); }
.next-security-editor > header > div { display: grid; min-width: 0; }
.next-security-editor > header span, .next-security-section-heading span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-security-editor > header h2 { overflow: hidden; margin: 3px 0 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.next-security-switch { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; font-size: 8px; font-weight: 800; cursor: pointer; }
.next-security-switch input, .next-security-all input, .next-security-options input, .next-security-directory footer input { accent-color: var(--next-red); }
.next-security-switch span { color: var(--next-ink) !important; font-size: 8px !important; text-transform: none !important; }
.next-security-editor > section { min-width: 0; padding: 15px 16px; border-bottom: 1px solid var(--next-line); }
.next-security-section-heading { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; margin-bottom: 12px; }
.next-security-section-heading > svg { width: 16px; height: 16px; color: var(--next-red-dark); }
.next-security-section-heading > div { display: grid; min-width: 0; }
.next-security-section-heading h3 { margin: 2px 0 0; font-size: 12px; letter-spacing: 0; }
.next-security-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.next-security-source { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 45px; margin-top: 10px; padding: 7px 9px; border: 1px solid #dfe2e4; border-radius: 4px; background: #f8f9fa; }
.next-security-source > svg { width: 15px; height: 15px; color: #65727c; }
.next-security-source > span { display: grid; min-width: 0; }
.next-security-source strong { font-size: 8px; }
.next-security-source small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-security-oidc-binding { display: grid; gap: 10px; margin-top: 10px; padding: 10px; border: 1px solid #dfe2e4; border-radius: 4px; background: #fff; }
.next-security-oidc-binding > .next-security-switch { justify-self: start; }
.next-security-oidc-binding > small { color: var(--next-muted); font-size: 8px; }
.next-security-impact { display: flex; align-items: flex-start; gap: 9px; margin: 10px 12px 0; padding: 9px 10px; color: #8e242b; border: 1px solid #dfb6b9; border-radius: 5px; background: #fff5f6; }
.next-security-impact > svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; }
.next-security-impact > span { display: grid; min-width: 0; gap: 2px; }
.next-security-impact strong { font-size: 9px; }
.next-security-impact small { color: #77575a; font-size: 8px; line-height: 1.4; }
.next-security-all { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 9px; border: 1px solid #d8dcdf; border-radius: 4px; background: #f8f9fa; cursor: pointer; }
.next-security-all > span { display: grid; min-width: 0; }
.next-security-all strong { font-size: 9px; }
.next-security-all small { margin-top: 2px; color: var(--next-muted); font-size: 8px; }
.next-security-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.next-security-options > label { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; min-height: 43px; padding: 7px 8px; border: 1px solid #e0e3e5; border-radius: 4px; cursor: pointer; }
.next-security-options > label:hover { border-color: #ceb1b4; background: #fdf9f9; }
.next-security-options > label > span { display: grid; min-width: 0; }
.next-security-options strong, .next-security-options small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-security-options strong { font-size: 8px; }
.next-security-options small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-security-options b { color: #666b70; font-size: 7px; }
.next-security-options.modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-security-options.modules > label { grid-template-columns: 16px 16px minmax(0, 1fr); min-height: 37px; }
.next-security-options.modules svg { width: 13px; height: 13px; color: #6e747a; }
.next-security-options[data-security-organization-scopes] > label { grid-template-columns: 16px 16px minmax(0, 1fr); }
.next-security-options[data-security-organization-scopes] svg { width: 13px; height: 13px; color: #6e747a; }
.next-security-scope-note { display: flex; align-items: flex-start; gap: 6px; margin: 8px 1px 0; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-security-scope-note svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; }
.next-security-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 10px 16px; background: #f8f9fa; }
.next-security-editor > footer > span { color: var(--next-muted); font-size: 8px; }
.next-security-editor > footer > div { display: flex; gap: 7px; }
.next-security-role-view, .next-security-directory { min-width: 0; margin-top: 12px; }
.next-security-role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-security-role-cards > button { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; min-height: 91px; padding: 10px; color: var(--next-ink); border: 0; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: transparent; text-align: left; cursor: pointer; }
.next-security-role-cards > button:hover { background: #f5f6f7; }
.next-security-role-cards > button.selected { background: #f9e9ea; box-shadow: inset 0 -2px 0 var(--next-red); }
.next-security-role-cards > button > span:nth-child(2) { display: grid; min-width: 0; }
.next-security-role-cards small { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-security-role-cards strong, .next-security-role-cards em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-security-role-cards strong { margin-top: 3px; font-size: 11px; }
.next-security-role-cards em { margin-top: 4px; color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-security-role-cards b { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 3px; background: #e7e9eb; font-size: 8px; }
.next-security-role-cards footer { grid-column: 2 / -1; color: #656a70; font-size: 7px; font-weight: 800; }
.next-security-role-editor { margin-top: 12px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-security-role-editor > header > strong { color: #5f656a; font-size: 8px; }
.next-security-options.permissions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-security-options.permissions > label { grid-template-columns: 16px minmax(0, 1fr); }
.next-danger-command { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 10px; color: #9d252c; border: 1px solid #dbb7ba; border-radius: 4px; background: #fff7f7; font-size: 9px; font-weight: 750; cursor: pointer; }
.next-danger-command:hover { border-color: #b7666b; background: #f9e7e8; }
.next-danger-command svg { width: 14px; height: 14px; }
.next-danger-command:disabled { opacity: .55; cursor: wait; }
.next-security-matrix { margin-top: 12px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-security-matrix > div { min-width: 0; overflow-x: auto; }
.next-security-matrix table { width: 100%; min-width: 720px; border-collapse: collapse; }
.next-security-matrix th, .next-security-matrix td { padding: 8px 10px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); font-size: 8px; text-align: center; }
.next-security-matrix th:first-child, .next-security-matrix td:first-child { width: 42%; text-align: left; }
.next-security-matrix th:last-child, .next-security-matrix td:last-child { border-right: 0; }
.next-security-matrix tbody tr:last-child td { border-bottom: 0; }
.next-security-matrix td:first-child { display: grid; }
.next-security-matrix td:first-child strong { font-size: 8px; }
.next-security-matrix td:first-child small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-security-matrix td svg { width: 14px; height: 14px; color: #b7bbc0; }
.next-security-matrix td svg.granted { color: #3f7756; }
.next-security-directory > section { margin-top: 12px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-security-directory > section:first-child { margin-top: 0; }
.next-security-directory > section > header:not(.next-section-heading) { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 66px; padding: 10px 13px; border-bottom: 1px solid var(--next-line); }
.next-security-directory > section > header > div { display: grid; min-width: 0; }
.next-security-directory > section > header small { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-security-directory > section > header h2 { margin: 2px 0 0; font-size: 14px; letter-spacing: 0; }
.next-security-directory > section > header em { padding: 5px 7px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; }
.next-security-directory > section > header em.ready { color: #315f43; background: #e9f2ed; }
.next-security-directory > section > header em.warning { color: #755018; background: #f8efe1; }
.next-security-directory dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.next-security-directory dl > div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--next-line); }
.next-security-directory dl > div:last-child { border-right: 0; }
.next-security-directory dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-security-directory dd { margin: 4px 0 0; font-size: 9px; font-weight: 800; }
.next-security-directory > section > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--next-line); background: #f8f9fa; }
.next-security-directory > section > footer > label { display: flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 700; }
.next-security-directory > section > footer > div { display: flex; gap: 7px; }
.next-security-directory-result { margin-top: 12px; }
.next-security-directory-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-security-directory-kpis > div { display: grid; min-width: 0; padding: 10px 12px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-security-directory-kpis > div:last-child { border-right: 0; }
.next-security-directory-kpis small { color: var(--next-muted); font-size: 7px; }
.next-security-directory-kpis strong { margin-top: 3px; font-size: 14px; }
.next-security-directory-result ul { max-height: 260px; margin: 0; padding: 9px 12px 9px 28px; overflow-y: auto; font-size: 8px; line-height: 1.5; }
.next-api-token-workspace { display:grid; grid-template-columns:minmax(300px,.85fr) minmax(520px,1.4fr); gap:12px; min-width:0; margin-top:12px; }
.next-api-token-overview, .next-api-token-editor { min-width:0; border:1px solid var(--next-line); border-radius:6px; background:#fff; overflow:hidden; }
.next-api-token-list { display:grid; max-height:720px; overflow-y:auto; }
.next-api-token-list article { min-width:0; padding:12px; border-bottom:1px solid var(--next-line); }
.next-api-token-list article:last-child { border-bottom:0; }
.next-api-token-list article > header, .next-api-token-list article > footer { display:flex; align-items:center; justify-content:space-between; gap:9px; }
.next-api-token-list article > header > span { display:grid; min-width:0; }
.next-api-token-list article > header strong { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.next-api-token-list article > header small, .next-api-token-list article > footer > span { margin-top:2px; color:var(--next-muted); font-size:7px; }
.next-api-token-list article > header em { padding:4px 6px; border-radius:3px; font-size:7px; font-style:normal; font-weight:800; }
.next-api-token-list article > header em.ready { color:#315f43; background:#e9f2ed; }
.next-api-token-list article > header em.warning { color:#755018; background:#f8efe1; }
.next-api-token-list article > header em.inactive { color:#74797e; background:#eceeef; }
.next-api-token-list article dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:9px 0; border:1px solid #e2e5e7; border-radius:4px; }
.next-api-token-list article dl > div { min-width:0; padding:6px; border-right:1px solid #e2e5e7; }
.next-api-token-list article dl > div:last-child { border-right:0; }
.next-api-token-list article dt { color:var(--next-muted); font-size:6px; text-transform:uppercase; }
.next-api-token-list article dd { overflow:hidden; margin:2px 0 0; font-size:8px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.next-api-token-list article > footer button { min-height:29px; }
.next-api-token-empty { display:grid; justify-items:center; gap:5px; padding:38px 18px; color:var(--next-muted); text-align:center; }
.next-api-token-empty svg { width:26px; height:26px; }
.next-api-token-empty strong { color:var(--next-ink); font-size:10px; }
.next-api-token-empty span { max-width:260px; font-size:8px; line-height:1.5; }
.next-api-token-secret { background:#fff8e9; }
.next-api-token-secret p { margin:8px 0; color:#6c5731; font-size:8px; line-height:1.5; }
.next-api-token-secret textarea { width:100%; resize:none; padding:8px; border:1px solid #d8c79e; border-radius:4px; background:#fff; font:9px/1.45 Consolas,monospace; overflow-wrap:anywhere; }
.next-api-token-secret button { margin-top:8px; }
.next-api-integration-modes { display:flex; align-items:center; gap:4px; margin-top:12px; padding:4px; border:1px solid var(--next-line); border-radius:6px; background:#f4f5f6; }
.next-api-integration-modes button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:0 13px; border:0; border-radius:4px; color:#5c6268; background:transparent; font-size:9px; font-weight:780; cursor:pointer; }
.next-api-integration-modes button.active { color:var(--next-red-dark); background:#fff; box-shadow:0 1px 3px rgba(24,29,34,.08); }
.next-api-integration-modes button svg { width:14px; height:14px; }
.next-api-integration-modes button b { min-width:20px; padding:2px 5px; border-radius:3px; background:#e2e5e7; font-size:7px; text-align:center; }
.next-api-integration-modes button.active b { background:#f7dfe1; }
.next-api-webhook-workspace { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(520px,1.35fr); gap:12px; min-width:0; margin-top:12px; }
.next-api-webhook-overview, .next-api-webhook-editor, .next-api-delivery-workspace { min-width:0; border:1px solid var(--next-line); border-radius:6px; background:#fff; overflow:hidden; }
.next-api-webhook-list { display:grid; max-height:760px; overflow-y:auto; }
.next-api-webhook-list article { display:grid; gap:8px; min-width:0; padding:12px; border-bottom:1px solid var(--next-line); }
.next-api-webhook-list article:last-child { border-bottom:0; }
.next-api-webhook-list article > header, .next-api-webhook-list article > footer { display:flex; align-items:center; justify-content:space-between; gap:9px; }
.next-api-webhook-list article > header > span { display:grid; min-width:0; }
.next-api-webhook-list article > header strong { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.next-api-webhook-list article > header small, .next-api-webhook-list article > footer > span { color:var(--next-muted); font-size:7px; }
.next-api-webhook-list article > header em { padding:4px 6px; border-radius:3px; font-size:7px; font-style:normal; font-weight:800; }
.next-api-webhook-list article > header em.ready { color:#315f43; background:#e9f2ed; }
.next-api-webhook-list article > header em.warning { color:#755018; background:#f8efe1; }
.next-api-webhook-list article > header em.inactive { color:#74797e; background:#eceeef; }
.next-api-webhook-list article > p { overflow:hidden; margin:0; color:#485159; font:8px/1.4 Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.next-api-webhook-events { display:flex; flex-wrap:wrap; gap:4px; }
.next-api-webhook-events span { padding:3px 5px; border:1px solid #d8dde1; border-radius:3px; color:#4f5961; background:#f6f7f8; font:6px/1.2 Consolas,monospace; }
.next-api-webhook-list article dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; border:1px solid #e2e5e7; border-radius:4px; }
.next-api-webhook-list article dl > div { min-width:0; padding:6px; border-right:1px solid #e2e5e7; }
.next-api-webhook-list article dl > div:last-child { border-right:0; }
.next-api-webhook-list article dt { color:var(--next-muted); font-size:6px; text-transform:uppercase; }
.next-api-webhook-list article dd { overflow:hidden; margin:2px 0 0; font-size:8px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.next-api-webhook-list article > footer > div { display:flex; gap:5px; }
.next-api-webhook-warning { display:flex; align-items:flex-start; gap:6px; padding:7px; border-left:3px solid #d89a2b; color:#755018; background:#fff8e9; font-size:7px; line-height:1.4; }
.next-api-webhook-warning svg { flex:0 0 auto; width:13px; height:13px; }
.next-api-webhook-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:8px; }
.next-api-webhook-catalog label { display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:center; gap:8px; min-height:46px; padding:8px; border:1px solid #dfe3e6; border-radius:4px; cursor:pointer; }
.next-api-webhook-catalog label:has(input:checked) { border-color:#e9a6aa; background:#fff6f6; }
.next-api-webhook-catalog label > svg { width:15px; height:15px; color:var(--next-red); }
.next-api-webhook-catalog label > span { display:grid; min-width:0; }
.next-api-webhook-catalog label strong { font-size:8px; }
.next-api-webhook-catalog label small { overflow:hidden; margin-top:2px; color:var(--next-muted); font:6px/1.2 Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.next-api-delivery-workspace { margin-top:12px; }
.next-api-delivery-workspace > .next-section-heading > div:last-child { display:flex; }
.next-api-delivery-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--next-line); }
.next-api-delivery-kpis > div { display:grid; gap:3px; padding:12px; border-right:1px solid var(--next-line); }
.next-api-delivery-kpis > div:last-child { border-right:0; }
.next-api-delivery-kpis small { color:var(--next-muted); font-size:7px; text-transform:uppercase; }
.next-api-delivery-kpis strong { font-size:17px; }
.next-api-delivery-kpis .warning { color:#8b2e35; background:#fff5f5; }
.next-api-delivery-table { width:100%; overflow:auto; }
.next-api-delivery-table table { width:100%; min-width:920px; border-collapse:collapse; }
.next-api-delivery-table th { padding:8px; color:var(--next-muted); background:#f5f6f7; font-size:7px; text-align:left; text-transform:uppercase; }
.next-api-delivery-table td { padding:9px 8px; border-top:1px solid #e5e8ea; font-size:8px; vertical-align:top; }
.next-api-delivery-table td:nth-child(2) { display:grid; max-width:360px; gap:2px; }
.next-api-delivery-table td:nth-child(2) strong { font:7px/1.3 Consolas,monospace; }
.next-api-delivery-table td:nth-child(2) small { overflow:hidden; color:#4f565c; text-overflow:ellipsis; white-space:nowrap; }
.next-api-delivery-table td:nth-child(2) em { color:#9e2630; font-size:7px; font-style:normal; }
.next-api-delivery-table td:first-child span { display:inline-block; padding:4px 6px; border-radius:3px; font-size:7px; font-weight:800; white-space:nowrap; }
.next-api-delivery-table td:first-child span.ready { color:#315f43; background:#e9f2ed; }
.next-api-delivery-table td:first-child span.error { color:#952a34; background:#fbe7e8; }
.next-api-delivery-table td:first-child span.working { color:#285f80; background:#e7f1f7; }
.next-api-delivery-table td:first-child span.pending { color:#755018; background:#f8efe1; }
.next-api-delivery-table td:last-child button { display:grid; place-items:center; width:28px; height:28px; border:1px solid #d8dde1; border-radius:4px; background:#fff; cursor:pointer; }
.next-api-delivery-table td:last-child svg { width:13px; height:13px; }

@media (max-width: 1120px) {
  .next-function-kpis.next-reservation-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-reservation-evidence-review > .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-security-options.modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-security-role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-security-role-cards > button:nth-child(2n) { border-right: 0; }
  .next-api-token-workspace { grid-template-columns:1fr; }
  .next-api-token-list { max-height:420px; }
  .next-api-webhook-workspace { grid-template-columns:1fr; }
  .next-api-webhook-list { max-height:460px; }
}

@media (max-width: 760px) {
  .next-security-header { align-items: flex-start; }
  .next-security-header h1 { font-size: 23px; }
  .next-security-actions .next-secondary-command { width: 34px; min-width: 34px; padding: 0; }
  .next-security-actions .next-secondary-command span { display: none; }
  .next-security-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-security-kpis > div { min-height: 58px; padding: 0 10px; }
  .next-security-kpis > div:nth-child(2) { border-right: 0; }
  .next-security-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-security-duty > footer { align-items: flex-start; flex-direction: column; }
  .next-security-duty > footer > div { width: 100%; justify-content: flex-start; }
  .next-security-modes { overflow-x: auto; overscroll-behavior-inline: contain; }
  .next-security-modes button { min-width: max-content; }
  .next-api-integration-modes { overflow-x:auto; overscroll-behavior-inline:contain; }
  .next-api-integration-modes button { min-width:max-content; }
  .next-security-user-layout { grid-template-columns: 1fr; }
  .next-api-token-list article dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .next-api-token-list article dl > div:nth-child(2) { border-right:0; }
  .next-api-token-list article dl > div:nth-child(-n+2) { border-bottom:1px solid #e2e5e7; }
  .next-api-webhook-catalog { grid-template-columns:1fr; }
  .next-api-delivery-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .next-api-delivery-kpis > div:nth-child(2) { border-right:0; }
  .next-api-delivery-kpis > div:nth-child(-n+2) { border-bottom:1px solid var(--next-line); }
  .next-security-user-list { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-security-user-list > div { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .next-security-user-list > div > button { flex: 0 0 245px; border-right: 1px solid var(--next-line); border-bottom: 0; }
  .next-security-form-grid, .next-security-options, .next-security-options.permissions { grid-template-columns: 1fr; }
  .next-security-directory dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-security-directory dl > div:nth-child(2) { border-right: 0; }
  .next-security-directory dl > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
}

@media (max-width: 520px) {
  .next-security-actions .next-command { width: 34px; min-width: 34px; padding: 0; font-size: 0; }
  .next-security-actions .next-command svg { width: 15px; height: 15px; }
  .next-security-duty > header { grid-template-columns: 34px minmax(0, 1fr); }
  .next-security-duty > header em { grid-column: 2; justify-self: start; }
  .next-security-duty > div { grid-template-columns: 1fr; }
  .next-security-duty > div > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-security-duty > div > span:last-child { border-bottom: 0; }
  .next-security-duty > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-security-duty > footer button { width: 100%; }
  .next-security-options.modules, .next-security-role-cards { grid-template-columns: 1fr; }
  .next-security-role-cards > button { border-right: 0; }
  .next-security-editor > footer, .next-security-directory > section > footer { align-items: stretch; flex-direction: column; }
  .next-security-editor > footer > div, .next-security-directory > section > footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-security-editor > footer button, .next-security-directory > section > footer button { width: 100%; }
  .next-security-directory dl, .next-security-directory-kpis { grid-template-columns: 1fr; }
  .next-security-directory dl > div, .next-security-directory-kpis > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-security-directory dl > div:last-child, .next-security-directory-kpis > div:last-child { border-bottom: 0; }
}

/* System administration */
.next-system-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-system-header > div:first-child { min-width: 0; }
.next-system-header h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-system-header p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-system-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.next-system-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-system-kpis > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 0 18px; border-right: 1px solid var(--next-line); }
.next-system-kpis > div:first-child { padding-left: 0; }
.next-system-kpis > div:last-child { border-right: 0; }
.next-system-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-system-kpis small { color: var(--next-muted); font-size: 9px; }
.next-system-kpis strong { font-size: 18px; }
.next-system-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-system-summary { min-width: 0; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-system-summary:nth-child(2n) { border-right: 0; }
.next-system-summary:nth-last-child(-n+2) { border-bottom: 0; }
.next-system-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 11px 14px; border-bottom: 1px solid var(--next-line); }
.next-system-summary > header > div { display: grid; min-width: 0; }
.next-system-summary > header span, .next-system-services header small { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-system-summary h2, .next-system-services h2 { margin: 2px 0 0; font-size: 14px; letter-spacing: 0; }
.next-system-summary > header em { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-system-summary > header em svg { width: 12px; height: 12px; }
.next-system-summary > header em.ok { color: #315f43; background: #e9f2ed; }
.next-system-summary > header em.warning { color: #755018; background: #f8efe1; }
.next-system-summary > header em.error { color: #8e242b; background: #fae9eb; }
.next-system-summary dl, .next-system-services dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.next-system-summary dl > div, .next-system-services dl > div { min-width: 0; min-height: 52px; padding: 9px 12px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-system-summary dl > div:nth-child(2n), .next-system-services dl > div:nth-child(2n) { border-right: 0; }
.next-system-summary dt, .next-system-services dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-system-summary dd, .next-system-services dd { overflow: hidden; margin: 4px 0 0; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-system-summary > footer { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 35px; padding: 8px 12px; color: var(--next-muted); font-size: 8px; }
.next-system-summary > footer svg { width: 14px; height: 14px; }
.next-system-summary > footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-customer-configuration { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-left: 4px solid #b17b25; border-radius: 6px; background: #fff; overflow: hidden; }
.next-customer-configuration.ok { border-left-color: #47715a; }
.next-customer-configuration.error { border-left-color: #aa343c; }
.next-customer-configuration-state { display: flex; align-items: center; gap: 7px; }
.next-customer-configuration-state em { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 8px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-customer-configuration-state em svg { width: 13px; height: 13px; }
.next-customer-configuration-state em.ok { color: #315f43; background: #e9f2ed; }
.next-customer-configuration-state em.warning { color: #755018; background: #f8efe1; }
.next-customer-configuration-state em.error { color: #8e242b; background: #fae9eb; }
.next-customer-configuration-state a { display: grid; place-items: center; width: 27px; height: 27px; color: #4f5962; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-customer-configuration-state a:hover { color: var(--next-red-dark); border-color: #c8a1a4; }
.next-customer-configuration-state a svg { width: 13px; height: 13px; }
.next-customer-configuration-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--next-line); }
.next-customer-configuration-metrics > div { min-width: 0; min-height: 54px; padding: 9px 12px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-customer-configuration-metrics > div:nth-child(4n) { border-right: 0; }
.next-customer-configuration-metrics > div:nth-last-child(-n+4) { border-bottom: 0; }
.next-customer-configuration-metrics dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-customer-configuration-metrics dd { overflow: hidden; margin: 4px 0 0; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-customer-configuration-note { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 7px; padding: 9px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #fafafa; font-size: 8px; line-height: 1.45; }
.next-customer-configuration-note svg { width: 14px; height: 14px; }
.next-customer-configuration-drift { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--next-line); }
.next-customer-configuration-drift span { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 7px; color: #8e242b; border: 1px solid #ecc7ca; border-radius: 4px; background: #fff6f7; font-size: 8px; font-weight: 700; }
.next-customer-configuration-drift svg { width: 12px; height: 12px; }
.next-production-security { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-left: 4px solid #aa343c; border-radius: 6px; background: #fff; overflow: hidden; }
.next-production-security.ready { border-left-color: #47715a; }
.next-production-security-state { display: flex; align-items: center; gap: 7px; }
.next-production-security-state em { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 8px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-production-security-state em svg { width: 13px; height: 13px; }
.next-production-security-state em.ok { color: #315f43; background: #e9f2ed; }
.next-production-security-state em.error { color: #8e242b; background: #fae9eb; }
.next-production-security-state > a { display: grid; place-items: center; width: 27px; height: 27px; color: #4f5962; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-production-security-state > a:hover { color: var(--next-red-dark); border-color: #c8a1a4; }
.next-production-security-state > a svg { width: 13px; height: 13px; }
.next-production-security-intro { display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: center; gap: 11px; padding: 11px 14px; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-production-security-intro > span { display: grid; place-items: center; width: 37px; height: 37px; color: #8e242b; border-radius: 50%; background: #fae9eb; }
.next-production-security.ready .next-production-security-intro > span { color: #315f43; background: #e9f2ed; }
.next-production-security-intro > span svg { width: 17px; height: 17px; }
.next-production-security-intro > div { display: grid; min-width: 0; }
.next-production-security-intro strong { font-size: 10px; }
.next-production-security-intro p { margin: 3px 0 0; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-production-security-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-production-security-gates article { display: grid; grid-template-columns: 20px 32px minmax(0, 1fr) 26px; align-items: start; gap: 8px; min-width: 0; min-height: 105px; padding: 11px 12px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-production-security-gates article:nth-child(2n) { border-right: 0; }
.next-production-security-gates article:nth-last-child(-n+2) { border-bottom: 0; }
.next-production-security-index { padding-top: 8px; color: #8a9299; font-size: 8px; font-weight: 800; text-align: center; }
.next-production-security-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #315f43; border-radius: 50%; background: #e9f2ed; }
.next-production-security-gates article.blocked .next-production-security-icon { color: #8e242b; background: #fae9eb; }
.next-production-security-icon svg { width: 15px; height: 15px; }
.next-production-security-copy { display: grid; min-width: 0; }
.next-production-security-copy > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.next-production-security-copy strong { font-size: 9px; }
.next-production-security-copy em { color: #315f43; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-production-security-gates article.blocked em { color: #8e242b; }
.next-production-security-copy p { margin: 3px 0 0; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-production-security-copy small { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 4px; margin-top: 5px; color: #4a5057; font-size: 8px; line-height: 1.4; }
.next-production-security-copy small svg { width: 12px; height: 12px; margin-top: 1px; color: var(--next-red-dark); }
.next-production-security-keys { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: 4px !important; margin-top: 7px; }
.next-production-security-keys code { max-width: 100%; padding: 3px 5px; overflow-wrap: anywhere; color: #3f4b55; border: 1px solid #dce1e4; border-radius: 3px; background: #f5f7f8; font-size: 7px; }
.next-production-security-gates article > a { display: grid; place-items: center; width: 26px; height: 26px; color: var(--next-muted); border: 1px solid var(--next-line); border-radius: 4px; text-decoration: none; }
.next-production-security-gates article > a:hover { color: var(--next-red-dark); border-color: #c8a1a4; }
.next-production-security-gates article > a svg { width: 12px; height: 12px; }
.next-system-health { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-system-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-system-checks article { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 62px; padding: 9px 13px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-system-checks article:nth-child(2n) { border-right: 0; }
.next-system-checks article > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; }
.next-system-checks article > span svg { width: 15px; height: 15px; }
.next-system-checks article.ok > span { color: #315f43; background: #e9f2ed; }
.next-system-checks article.warning > span { color: #755018; background: #f8efe1; }
.next-system-checks article.error > span { color: #8e242b; background: #fae9eb; }
.next-system-checks article > div { display: grid; min-width: 0; }
.next-system-checks article strong { font-size: 9px; }
.next-system-checks article small { overflow: hidden; margin-top: 3px; color: var(--next-muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.next-system-checks article em { min-width: 45px; color: var(--next-muted); font-size: 7px; font-style: normal; font-weight: 800; text-align: right; text-transform: uppercase; }
.next-system-capacity { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-system-capacity > header > em { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-system-capacity > header > em svg { width: 12px; height: 12px; }
.next-system-capacity > header > em.ok { color: #315f43; background: #e9f2ed; }
.next-system-capacity > header > em.warning { color: #755018; background: #f8efe1; }
.next-system-capacity > header > em.error { color: #8e242b; background: #fae9eb; }
.next-capacity-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--next-line); }
.next-capacity-metrics > div { display: grid; grid-template-columns: 27px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 8px; min-width: 0; min-height: 63px; padding: 9px 11px; border-right: 1px solid var(--next-line); }
.next-capacity-metrics > div:last-child { border-right: 0; }
.next-capacity-metrics span { display: grid; grid-row: 1 / 3; place-items: center; width: 27px; height: 27px; color: #3b4650; border-radius: 50%; background: #eef1f3; }
.next-capacity-metrics span svg { width: 13px; height: 13px; }
.next-capacity-metrics small { overflow: hidden; align-self: end; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.next-capacity-metrics strong { overflow: hidden; align-self: start; margin-top: 3px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-capacity-note { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 7px; padding: 9px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; line-height: 1.45; }
.next-capacity-note svg { width: 14px; height: 14px; }
.next-capacity-table-wrap { overflow-x: auto; border-top: 1px solid var(--next-line); }
.next-capacity-table { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: fixed; }
.next-capacity-table th, .next-capacity-table td { height: 34px; padding: 0 11px; border-bottom: 1px solid var(--next-line); font-size: 8px; text-align: right; }
.next-capacity-table th { color: var(--next-muted); background: #fafafa; font-size: 7px; text-transform: uppercase; }
.next-capacity-table th:first-child, .next-capacity-table td:first-child { width: 52%; text-align: left; }
.next-capacity-table td:first-child { overflow: hidden; font-family: Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.next-capacity-table tbody tr:last-child td { border-bottom: 0; }
.next-capacity-table td.error { color: #9e2e35; font-weight: 800; }
.next-system-search-index { margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-search-index-actions { display: flex; align-items: center; gap: 9px; }
.next-search-index-actions em { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; font-size: 8px; font-style: normal; font-weight: 800; }
.next-search-index-actions em svg { width: 12px; height: 12px; }
.next-search-index-actions em.ok { color: #247248; background: #eaf5ee; }
.next-search-index-actions em.warning { color: #875d13; background: #fff4dc; }
.next-search-index-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--next-line); }
.next-search-index-metrics > div { min-width: 0; min-height: 57px; padding: 11px 12px; border-right: 1px solid var(--next-line); }
.next-search-index-metrics > div:last-child { border-right: 0; }
.next-search-index-metrics small { display: block; color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-search-index-metrics strong { display: block; overflow: hidden; margin-top: 6px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-system-search-index > footer { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 37px; padding: 7px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; }
.next-system-search-index > footer svg { width: 14px; height: 14px; }
.next-system-search-index > footer code { overflow: hidden; max-width: 320px; color: #3b4650; text-overflow: ellipsis; white-space: nowrap; }
.next-system-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-system-services > section { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--next-line); }
.next-system-services > section:last-child { border-right: 0; }
.next-system-services header { display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 61px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); }
.next-system-services .next-metric-icon { width: 37px; height: 37px; }
.next-system-services .next-metric-icon svg { width: 16px; height: 16px; }
.next-system-services > section > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-top: auto; padding: 0 11px; color: var(--next-red-dark); border-top: 1px solid var(--next-line); font-size: 8px; font-weight: 800; text-decoration: none; }
.next-system-services > section > a svg { width: 13px; height: 13px; }
.next-system-denied { display: grid; justify-items: start; gap: 8px; max-width: 560px; margin: 42px auto; padding: 24px; border: 1px solid #e1b5b8; border-radius: 6px; background: #fff; }
.next-system-denied > svg { width: 28px; height: 28px; color: var(--next-red-dark); }
.next-system-denied strong { font-size: 15px; }
.next-system-denied span { color: var(--next-muted); font-size: 10px; line-height: 1.5; }
.next-system-denied a { color: var(--next-red-dark); font-size: 9px; font-weight: 800; }

@media (max-width: 1120px) {
  .next-capacity-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-capacity-metrics > div:nth-child(3) { border-right: 0; }
  .next-capacity-metrics > div:nth-child(-n+3) { border-bottom: 1px solid var(--next-line); }
  .next-search-index-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-search-index-metrics > div:nth-child(3) { border-right: 0; }
  .next-search-index-metrics > div:nth-child(-n+3) { border-bottom: 1px solid var(--next-line); }
  .next-system-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-system-services > section:nth-child(2) { border-right: 0; }
  .next-system-services > section:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
}

@media (max-width: 760px) {
  .next-system-header { align-items: flex-start; }
  .next-system-header h1 { font-size: 23px; }
  .next-system-actions .next-secondary-command { width: 34px; min-width: 34px; padding: 0; }
  .next-system-actions .next-secondary-command span { display: none; }
  .next-system-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-system-kpis > div { min-height: 58px; padding: 0 10px; }
  .next-system-kpis > div:nth-child(2) { border-right: 0; }
  .next-system-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-system-overview, .next-system-checks, .next-production-security-gates { grid-template-columns: 1fr; }
  .next-customer-configuration-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-customer-configuration-metrics > div:nth-child(4n) { border-right: 1px solid var(--next-line); }
  .next-customer-configuration-metrics > div:nth-child(2n) { border-right: 0; }
  .next-customer-configuration-metrics > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--next-line); }
  .next-customer-configuration-metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
  .next-system-summary { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-system-summary:nth-last-child(2) { border-bottom: 1px solid var(--next-line); }
  .next-system-checks article { border-right: 0; }
  .next-production-security-gates article { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-production-security-gates article:nth-last-child(2) { border-bottom: 1px solid var(--next-line); }
  .next-capacity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-capacity-metrics > div:nth-child(3) { border-right: 1px solid var(--next-line); }
  .next-capacity-metrics > div:nth-child(2n) { border-right: 0; }
  .next-capacity-metrics > div:nth-child(-n+4) { border-bottom: 1px solid var(--next-line); }
  .next-search-index-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-search-index-metrics > div:nth-child(3) { border-right: 1px solid var(--next-line); }
  .next-search-index-metrics > div:nth-child(2n) { border-right: 0; }
  .next-search-index-metrics > div:nth-child(-n+4) { border-bottom: 1px solid var(--next-line); }
  .next-system-search-index > footer { grid-template-columns: 15px minmax(0, 1fr); }
  .next-system-search-index > footer code { grid-column: 2; max-width: 100%; }
}

@media (max-width: 460px) {
  .next-system-header { gap: 10px; }
  .next-system-actions .next-command { width: 34px; min-width: 34px; padding: 0; font-size: 0; }
  .next-system-actions .next-command svg { width: 15px; height: 15px; }
  .next-system-kpis, .next-system-services { grid-template-columns: 1fr; }
  .next-system-kpis > div { padding: 0; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-system-kpis > div:last-child { border-bottom: 0; }
  .next-system-services > section { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-system-services > section:last-child { border-bottom: 0; }
  .next-system-summary dl, .next-system-services dl { grid-template-columns: 1fr; }
  .next-system-summary dl > div, .next-system-services dl > div { border-right: 0; }
  .next-system-checks article { grid-template-columns: 31px minmax(0, 1fr); }
  .next-system-checks article em { grid-column: 2; text-align: left; }
  .next-production-security-gates article { grid-template-columns: 20px 32px minmax(0, 1fr); }
  .next-production-security-gates article > a { grid-column: 3; }
  .next-production-security-copy > div:first-child { display: grid; }
  .next-customer-configuration-state { align-self: flex-start; }
  .next-customer-configuration-metrics { grid-template-columns: 1fr; }
  .next-customer-configuration-metrics > div { border-right: 0 !important; border-bottom: 1px solid var(--next-line) !important; }
  .next-customer-configuration-metrics > div:last-child { border-bottom: 0 !important; }
  .next-capacity-metrics { grid-template-columns: 1fr; }
  .next-capacity-metrics > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-capacity-metrics > div:last-child { border-bottom: 0; }
  .next-search-index-actions { align-items: flex-end; flex-direction: column; }
  .next-search-index-metrics { grid-template-columns: 1fr; }
  .next-search-index-metrics > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-search-index-metrics > div:last-child { border-bottom: 0; }
}

/* Deployment readiness */
.next-readiness-header .next-system-actions { align-items: center; }
.next-readiness-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 142px; height: 34px; border: 1px solid var(--next-line-strong); border-radius: 5px; background: #fff; overflow: hidden; }
.next-readiness-profile button { min-width: 0; padding: 0 10px; color: var(--next-muted); border: 0; border-right: 1px solid var(--next-line); background: transparent; font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.next-readiness-profile button:last-child { border-right: 0; }
.next-readiness-profile button.active { color: #fff; background: #33383f; }
.next-readiness-profile button:disabled { cursor: wait; opacity: .68; }
.next-icon-command { display: grid; place-items: center; width: 34px; height: 34px; color: #33383f; border: 1px solid var(--next-line-strong); border-radius: 5px; background: #fff; text-decoration: none; }
.next-icon-command:hover { color: var(--next-red-dark); border-color: #c8a1a4; }
.next-icon-command svg { width: 15px; height: 15px; }
.next-readiness-banner { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 86px; margin-top: 18px; padding: 14px 17px; border: 1px solid var(--next-line); border-left-width: 4px; border-radius: 6px; background: #fff; }
.next-readiness-banner > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; }
.next-readiness-banner > span svg { width: 21px; height: 21px; }
.next-readiness-banner > div:nth-child(2) { display: grid; min-width: 0; }
.next-readiness-banner small { color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-readiness-banner > div > strong { margin-top: 2px; font-size: 15px; }
.next-readiness-banner p { margin: 3px 0 0; color: var(--next-muted); font-size: 9px; line-height: 1.45; }
.next-readiness-banner.ready { border-left-color: #47715a; }
.next-readiness-banner.ready > span { color: #315f43; background: #e9f2ed; }
.next-readiness-banner.conditional { border-left-color: #b2843c; }
.next-readiness-banner.conditional > span { color: #755018; background: #f8efe1; }
.next-readiness-banner.blocked { border-left-color: #aa343c; }
.next-readiness-banner.blocked > span { color: #8e242b; background: #fae9eb; }
.next-readiness-score { display: grid; justify-items: end; min-width: 94px; padding-left: 17px; border-left: 1px solid var(--next-line); }
.next-readiness-score strong { font-size: 21px !important; }
.next-readiness-score span { color: var(--next-muted); font-size: 8px; text-transform: uppercase; }
.next-readiness-roadmap { margin-top: 14px; border: 1px solid var(--next-line-strong); border-radius: 6px; background: #fff; overflow: hidden; }
.next-readiness-roadmap > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 53px; padding: 9px 13px; color: #fff; background: #343a40; }
.next-readiness-roadmap > header > div { display: grid; min-width: 0; }
.next-readiness-roadmap > header span { color: #d7dce0; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-roadmap > header h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-readiness-roadmap > header > strong { flex: 0 0 auto; padding: 4px 7px; border-radius: 4px; background: #59616a; font-size: 8px; }
.next-readiness-roadmap > div { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); min-height: 137px; }
.next-readiness-current-step { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 11px; min-width: 0; padding: 14px 15px; color: var(--next-text); border-right: 1px solid var(--next-line); box-shadow: inset 4px 0 #aa343c; text-decoration: none; }
.next-readiness-current-step.warning { box-shadow: inset 4px 0 #b2843c; }
.next-readiness-current-step:hover { background: #fafafa; }
.next-readiness-step-number { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; border-radius: 50%; background: #aa343c; font-size: 11px; font-weight: 800; }
.next-readiness-current-step.warning .next-readiness-step-number { background: #9a6c25; }
.next-readiness-current-step > span:nth-child(2) { display: grid; min-width: 0; }
.next-readiness-current-step small { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-current-step strong { margin-top: 3px; font-size: 13px; }
.next-readiness-current-step em { margin-top: 5px; color: var(--next-muted); font-size: 8px; font-style: normal; line-height: 1.45; }
.next-readiness-current-step > svg { width: 18px; height: 18px; color: var(--next-red-dark); }
.next-readiness-roadmap ol { display: grid; align-content: start; margin: 0; padding: 0; list-style: none; }
.next-readiness-roadmap li { min-width: 0; border-bottom: 1px solid var(--next-line); }
.next-readiness-roadmap li:last-child { border-bottom: 0; }
.next-readiness-roadmap li a { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; color: var(--next-text); text-decoration: none; }
.next-readiness-roadmap li a:hover { background: #fafafa; }
.next-readiness-roadmap li a > span:first-child { display: grid; place-items: center; width: 22px; height: 22px; color: #4d5660; border: 1px solid #d5dade; border-radius: 50%; background: #f3f5f6; font-size: 7px; font-weight: 800; }
.next-readiness-roadmap li a > span:nth-child(2) { display: grid; min-width: 0; }
.next-readiness-roadmap li small { overflow: hidden; color: var(--next-muted); font-size: 6px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.next-readiness-roadmap li strong { overflow: hidden; margin-top: 1px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-roadmap li em { padding: 3px 5px; color: #8e242b; border-radius: 3px; background: #fae9eb; font-size: 6px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-readiness-roadmap li em.warning { color: #755018; background: #f8efe1; }
.next-readiness-roadmap > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 39px; padding: 7px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #fafafa; font-size: 7px; }
.next-readiness-roadmap > footer > span { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
.next-readiness-roadmap > footer svg { width: 13px; height: 13px; color: #59636c; }
.next-readiness-roadmap > footer strong { flex: 0 0 auto; color: #4d5660; font-size: 7px; }
.next-readiness-editor { margin-top: 14px; border: 1px solid var(--next-line-strong); border-radius: 6px; background: #fff; overflow: hidden; }
.next-readiness-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 12px 16px; color: #fff; background: #343a40; }
.next-readiness-editor > header > div { display: grid; min-width: 0; }
.next-readiness-editor > header span, .next-readiness-editor-heading span { font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-editor > header h2 { margin: 2px 0 0; font-size: 15px; letter-spacing: 0; }
.next-readiness-editor > header p { margin: 3px 0 0; color: #d7dce0; font-size: 8px; }
.next-readiness-editor > header small { flex: 0 0 auto; max-width: 260px; color: #d7dce0; font-size: 8px; text-align: right; }
.next-readiness-editor > section { padding: 14px 16px 16px; border-bottom: 1px solid var(--next-line); }
.next-readiness-editor-heading { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 9px; margin-bottom: 12px; }
.next-readiness-editor-heading > svg { width: 17px; height: 17px; color: var(--next-red-dark); }
.next-readiness-editor-heading > div { display: grid; }
.next-readiness-editor-heading span { color: var(--next-muted); }
.next-readiness-editor-heading h3 { margin: 1px 0 0; font-size: 11px; letter-spacing: 0; }
.next-readiness-editor .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-readiness-editor textarea { width: 100%; min-height: 68px; resize: vertical; }
.next-readiness-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.next-readiness-scope label { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 8px; min-height: 55px; padding: 10px; border: 1px solid var(--next-line); border-radius: 5px; background: #fafafa; cursor: pointer; }
.next-readiness-scope input { margin-top: 2px; accent-color: var(--next-red-dark); }
.next-readiness-scope span { display: grid; }
.next-readiness-scope strong { font-size: 9px; }
.next-readiness-scope small { margin-top: 3px; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-readiness-module-scope { margin-top: 10px; border: 1px solid var(--next-line); border-radius: 5px; background: #fff; overflow: hidden; }
.next-readiness-module-scope > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 7px 10px; border-bottom: 1px solid var(--next-line); background: #f6f7f8; }
.next-readiness-module-scope > header > div { display: grid; min-width: 0; }
.next-readiness-module-scope > header span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-module-scope > header strong { margin-top: 1px; font-size: 10px; }
.next-readiness-module-scope > header em { flex: 0 0 auto; padding: 4px 7px; color: #3f4a53; border-radius: 4px; background: #e7eaed; font-size: 8px; font-style: normal; font-weight: 800; }
.next-readiness-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 252px; overflow: auto; }
.next-readiness-module-grid label { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 7px; min-width: 0; min-height: 52px; padding: 8px 9px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fff; cursor: pointer; }
.next-readiness-module-grid label:nth-child(3n) { border-right: 0; }
.next-readiness-module-grid label.selected { background: #f8fbf9; box-shadow: inset 3px 0 #47715a; }
.next-readiness-module-grid input { margin-top: 2px; accent-color: #47715a; }
.next-readiness-module-grid span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 6px; min-width: 0; }
.next-readiness-module-grid b { color: var(--next-red-dark); font-size: 7px; }
.next-readiness-module-grid strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-module-grid small { grid-column: 1 / -1; color: var(--next-muted); font-size: 7px; }
.next-backup-validation { margin: 0 0 2px; border: 1px solid var(--next-line); border-radius: 5px; background: #fafafa; overflow: hidden; }
.next-backup-validation-command { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 10px 12px; }
.next-backup-validation-command > div:first-child { display: grid; min-width: 0; }
.next-backup-validation-command > div:first-child strong { font-size: 9px; }
.next-backup-validation-command > div:first-child span { margin-top: 3px; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-backup-validation-command > div:last-child { display: flex; flex: 0 0 auto; gap: 7px; }
.next-backup-validation .next-file-command { position: relative; }
.next-backup-validation .next-file-command.disabled { opacity: .55; cursor: wait; }
.next-backup-validation .next-file-command.disabled input { cursor: wait; }
.next-backup-validation-result { border-top: 1px solid var(--next-line); background: #fff; }
.next-backup-validation-result > header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 57px; padding: 9px 11px; }
.next-backup-validation-result > header > svg { width: 18px; height: 18px; }
.next-backup-validation-result.valid > header > svg { color: #315f43; }
.next-backup-validation-result.invalid > header > svg { color: #8e242b; }
.next-backup-validation-result > header > div { display: grid; min-width: 0; }
.next-backup-validation-result > header strong { font-size: 9px; }
.next-backup-validation-result > header span { margin-top: 2px; color: var(--next-muted); font-size: 8px; }
.next-backup-validation-result > header em { color: var(--next-muted); font-size: 7px; font-style: normal; white-space: nowrap; }
.next-backup-validation-result dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--next-line); border-left: 0; }
.next-backup-validation-result dl > div { display: grid; min-width: 0; min-height: 52px; align-content: center; padding: 7px 10px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-backup-validation-result dl > div:nth-child(3n) { border-right: 0; }
.next-backup-validation-result dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-backup-validation-result dd { overflow: hidden; margin: 3px 0 0; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.next-backup-validation-result dl small { overflow: hidden; margin-top: 2px; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-backup-validation-result ul { display: grid; gap: 5px; margin: 0; padding: 9px 11px; border-bottom: 1px solid var(--next-line); list-style: none; }
.next-backup-validation-result li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 5px; font-size: 8px; line-height: 1.4; }
.next-backup-validation-result li svg { width: 12px; height: 12px; margin-top: 1px; }
.next-backup-validation-result li.error { color: #8e242b; }
.next-backup-validation-result li.warning { color: #755018; }
.next-backup-validation-result > footer { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 6px; padding: 9px 11px; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-backup-validation-result > footer svg { width: 13px; height: 13px; color: #315f43; }
.next-readiness-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 16px; background: #fafafa; }
.next-readiness-editor > footer > span { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 6px; color: var(--next-muted); font-size: 8px; }
.next-readiness-editor > footer > span svg { width: 14px; height: 14px; color: #315f43; }
.next-readiness-editor > footer > div { display: flex; gap: 7px; }
.next-readiness-context { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-readiness-context > div { display: grid; min-width: 0; min-height: 57px; align-content: center; padding: 9px 12px; border-right: 1px solid var(--next-line); }
.next-readiness-context > div:last-child { border-right: 0; }
.next-readiness-context small, .next-readiness-facts small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-readiness-context strong { overflow: hidden; margin-top: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-context span { overflow: hidden; margin-top: 2px; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--next-line); border-left: 1px solid var(--next-line); background: #fff; }
.next-readiness-facts > div { display: grid; min-width: 0; min-height: 47px; align-content: center; padding: 7px 11px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-readiness-facts strong { overflow: hidden; margin-top: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-facts > div[data-readiness-fact="subject-duty"] { padding-left: 13px; box-shadow: inset 3px 0 #b3261e; }
.next-readiness-facts > div[data-readiness-fact="subject-duty"].passed { box-shadow: inset 3px 0 #28754a; }
.next-readiness-facts > div[data-readiness-fact="subject-duty"].warning { box-shadow: inset 3px 0 #b47718; }
.next-readiness-facts > div[data-readiness-fact="subject-duty"] span { overflow: hidden; margin-top: 2px; color: #9c241d; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-module-matrix { margin-top: 14px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-readiness-module-matrix > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); align-items: center; gap: 18px; min-height: 61px; padding: 10px 13px; border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-readiness-module-matrix > header > div { display: grid; min-width: 0; }
.next-readiness-module-matrix > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-module-matrix h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-readiness-module-matrix > header p { margin: 0; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-readiness-module-matrix > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-readiness-module-matrix a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 5px 8px; min-width: 0; min-height: 58px; padding: 8px 10px 8px 13px; color: var(--next-text); border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); box-shadow: inset 3px 0 #b3261e; text-decoration: none; }
.next-readiness-module-matrix a:nth-child(3n) { border-right: 0; }
.next-readiness-module-matrix a.passed { box-shadow: inset 3px 0 #28754a; }
.next-readiness-module-matrix a > span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px; min-width: 0; }
.next-readiness-module-matrix a b { color: var(--next-red-dark); font-size: 7px; }
.next-readiness-module-matrix a strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-module-matrix a em { color: #8e242b; font-size: 9px; font-style: normal; font-weight: 800; }
.next-readiness-module-matrix a.passed em { color: #315f43; }
.next-readiness-module-matrix a small { grid-column: 1 / 2; color: var(--next-muted); font-size: 7px; }
.next-readiness-module-matrix a > svg { grid-column: 3; grid-row: 1 / span 2; width: 14px; height: 14px; color: #8e242b; }
.next-readiness-module-matrix a.passed > svg { color: #315f43; }
.next-readiness-action-overview { margin-top: 14px; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fff; }
.next-readiness-action-overview > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); align-items: center; gap: 20px; padding: 11px 13px; border-bottom: 1px solid var(--next-line); }
.next-readiness-action-overview > header > div { display: grid; }
.next-readiness-action-overview > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-action-overview h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-readiness-action-overview h2 b { display: inline-grid; place-items: center; min-width: 21px; height: 19px; margin-left: 4px; padding: 0 5px; color: #fff; border-radius: 4px; background: #48515a; font-size: 8px; vertical-align: middle; }
.next-readiness-action-overview p { margin: 0; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-readiness-action-overview > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-readiness-action-overview > div > span { display: grid; min-height: 48px; align-content: center; padding: 7px 13px; border-right: 1px solid var(--next-line); }
.next-readiness-action-overview > div > span:last-child { border-right: 0; }
.next-readiness-action-overview > div small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-readiness-action-overview > div strong { margin-top: 2px; font-size: 14px; }
.next-readiness-action-overview > div .warning strong { color: #755018; }
.next-readiness-action-overview > div .critical strong { color: #8e242b; }
.next-readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.next-readiness-category { min-width: 0; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-readiness-category > header { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 61px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-readiness-category > header > span { display: grid; place-items: center; width: 36px; height: 36px; color: #3f5366; border: 1px solid #d6dde3; border-radius: 5px; background: #edf2f5; }
.next-readiness-category > header > span svg { width: 17px; height: 17px; }
.next-readiness-category > header > div:nth-child(2) { display: grid; min-width: 0; }
.next-readiness-category > header small { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-category h2 { overflow: hidden; margin: 2px 0 0; font-size: 12px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-category-counts { display: flex; gap: 4px; }
.next-readiness-category-counts em { display: grid; place-items: center; min-width: 23px; height: 22px; padding: 0 5px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; }
.next-readiness-category-counts .passed { color: #315f43; background: #e9f2ed; }
.next-readiness-category-counts .warning { color: #755018; background: #f8efe1; }
.next-readiness-category-counts .blocked { color: #8e242b; background: #fae9eb; }
.next-readiness-checks { display: grid; }
.next-readiness-checks article { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: start; gap: 9px; min-width: 0; padding: 10px 11px; border-bottom: 1px solid var(--next-line); }
.next-readiness-checks article:last-child { border-bottom: 0; }
.next-readiness-check-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; }
.next-readiness-check-icon svg { width: 14px; height: 14px; }
.next-readiness-checks article.passed .next-readiness-check-icon { color: #315f43; background: #e9f2ed; }
.next-readiness-checks article.warning .next-readiness-check-icon { color: #755018; background: #f8efe1; }
.next-readiness-checks article.blocked .next-readiness-check-icon { color: #8e242b; background: #fae9eb; }
.next-readiness-checks article.not-applicable .next-readiness-check-icon { color: #5a6670; background: #edf0f2; }
.next-readiness-check-copy { display: grid; min-width: 0; }
.next-readiness-check-copy > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.next-readiness-check-copy strong { font-size: 9px; }
.next-readiness-check-copy em { flex: 0 0 auto; color: var(--next-muted); font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-readiness-checks article.blocked .next-readiness-check-copy em { color: #8e242b; }
.next-readiness-checks article.warning .next-readiness-check-copy em { color: #755018; }
.next-readiness-check-copy p { margin: 3px 0 0; color: var(--next-muted); font-size: 8px; line-height: 1.42; }
.next-readiness-check-copy small { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 4px; margin-top: 5px; color: #4a5057; font-size: 8px; line-height: 1.42; }
.next-readiness-check-copy small svg { width: 12px; height: 12px; margin-top: 1px; color: var(--next-red-dark); }
.next-readiness-action-state { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 6px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--next-line); }
.next-readiness-action-state > svg { width: 14px; height: 14px; color: #59636c; }
.next-readiness-action-state > span { display: grid; }
.next-readiness-action-state strong { font-size: 8px; }
.next-readiness-action-state small { display: block; margin: 1px 0 0; color: var(--next-muted); font-size: 7px; }
.next-readiness-action-state.evidence-submitted > svg, .next-readiness-action-state.verified > svg { color: #315f43; }
.next-readiness-action-state.accepted-risk > svg { color: #755018; }
.next-readiness-check-actions { display: flex; gap: 4px; }
.next-readiness-check-actions > a, .next-readiness-check-actions > button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: var(--next-muted); border: 1px solid var(--next-line); border-radius: 4px; background: #fff; text-decoration: none; cursor: pointer; }
.next-readiness-check-actions > a:hover, .next-readiness-check-actions > button:hover { color: var(--next-red-dark); border-color: #c8a1a4; }
.next-readiness-check-actions svg { width: 12px; height: 12px; }
.next-readiness-action-editor { grid-column: 2 / -1; min-width: 0; margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--next-line); }
.next-readiness-action-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.next-readiness-action-editor > header > div { display: grid; min-width: 0; }
.next-readiness-action-editor > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-readiness-action-editor h3 { overflow: hidden; margin: 1px 0 0; font-size: 10px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-readiness-action-editor > header button { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; color: var(--next-muted); border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-readiness-action-editor > header button svg { width: 12px; height: 12px; }
.next-readiness-action-editor .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.next-readiness-action-editor textarea { width: 100%; min-height: 48px; resize: vertical; }
.next-readiness-action-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--next-line); }
.next-readiness-action-editor > footer > span { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 5px; color: var(--next-muted); font-size: 7px; }
.next-readiness-action-editor > footer > span svg { width: 13px; height: 13px; color: #315f43; }
.next-readiness-action-editor > footer > div { display: flex; gap: 6px; }
.next-readiness-disclaimer { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 8px; margin-top: 15px; padding: 11px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; line-height: 1.45; }
.next-readiness-disclaimer svg { width: 15px; height: 15px; color: #3f5366; }

@media (max-width: 1080px) {
  .next-readiness-roadmap > div { grid-template-columns: 1fr; }
  .next-readiness-current-step { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-readiness-grid { grid-template-columns: 1fr; }
  .next-readiness-editor .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-readiness-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-readiness-module-grid label:nth-child(3n) { border-right: 1px solid var(--next-line); }
  .next-readiness-module-grid label:nth-child(2n) { border-right: 0; }
  .next-readiness-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-readiness-context > div:nth-child(2) { border-right: 0; }
  .next-readiness-context > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-readiness-action-overview > header { grid-template-columns: 1fr; gap: 5px; }
  .next-readiness-module-matrix > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-readiness-module-matrix a:nth-child(3n) { border-right: 1px solid var(--next-line); }
  .next-readiness-module-matrix a:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  .next-readiness-header { display: grid; }
  .next-readiness-header .next-system-actions { width: 100%; }
  .next-readiness-profile { margin-right: auto; }
  .next-readiness-banner { grid-template-columns: 42px minmax(0, 1fr); }
  .next-readiness-banner > span { width: 39px; height: 39px; }
  .next-readiness-score { grid-column: 2; justify-items: start; min-width: 0; padding: 7px 0 0; border-top: 1px solid var(--next-line); border-left: 0; }
  .next-readiness-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-readiness-editor > header, .next-readiness-editor > footer { align-items: flex-start; flex-direction: column; }
  .next-readiness-editor > header small { max-width: none; text-align: left; }
  .next-readiness-editor > footer > div { width: 100%; justify-content: flex-end; }
  .next-readiness-action-editor .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-backup-validation-command { align-items: flex-start; flex-direction: column; }
  .next-backup-validation-command > div:last-child { width: 100%; justify-content: flex-end; }
  .next-readiness-module-matrix > header { grid-template-columns: 1fr; gap: 5px; }
}

/* A3 service-provider portal */
.next-contractor-kpis { margin-bottom: 18px; }
.next-contractor-workspace { padding: 0; overflow: hidden; }
.next-contractor-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-bottom: 1px solid #dce3e8; }
.next-contractor-heading > div > span,
.next-contractor-order-header span,
.next-contractor-scope > header > span,
.next-contractor-report > header span,
.next-contractor-submissions > header > span,
.next-contractor-evidence > header span,
.next-contractor-thread > header span { color: #c8102e; font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.next-contractor-heading h2 { margin: 2px 0; font-size: 1.35rem; }
.next-contractor-heading p { margin: 0; color: #66727b; }
.next-contractor-identity { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #22313b; font-weight: 700; }
.next-contractor-identity svg { width: 18px; height: 18px; color: #c8102e; }
.next-contractor-layout { display: grid; grid-template-columns: minmax(300px, 35%) minmax(0, 1fr); min-height: 680px; }
.next-contractor-list-pane { min-width: 0; border-right: 1px solid #dce3e8; background: #f7f9fa; }
.next-contractor-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 150px; padding: 14px; border-bottom: 1px solid #dce3e8; }
.next-contractor-list { display: grid; max-height: 720px; overflow: auto; }
.next-contractor-list > button { display: grid; gap: 7px; width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid #dce3e8; border-left: 3px solid transparent; background: transparent; color: #182630; text-align: left; cursor: pointer; }
.next-contractor-list > button:hover { background: #fff; }
.next-contractor-list > button.active { border-left-color: #c8102e; background: #fff; box-shadow: inset 0 0 0 1px rgba(200,16,46,.08); }
.next-contractor-list button header,
.next-contractor-list button footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-contractor-list button h3 { margin: 0; font-size: .98rem; }
.next-contractor-list button > span,
.next-contractor-list button small { color: #68757e; font-size: .78rem; }
.next-contractor-list button small { display: inline-flex; align-items: center; gap: 5px; }
.next-contractor-list button svg { width: 14px; height: 14px; }
.next-contractor-list em,
.next-contractor-order-header > em { display: inline-flex; padding: 4px 7px; border-radius: 4px; font-size: .7rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-contractor-detail { min-width: 0; padding: 24px; background: #fff; }
.next-contractor-order-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.next-contractor-order-header h3 { margin: 3px 0; font-size: 1.35rem; }
.next-contractor-order-header p { margin: 0; color: #66727b; }
.next-contractor-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; padding: 0; list-style: none; }
.next-contractor-progress li { position: relative; display: grid; justify-items: center; gap: 6px; color: #8a959d; font-size: .73rem; text-align: center; }
.next-contractor-progress li::before { position: absolute; top: 14px; right: 50%; left: -50%; height: 2px; background: #dce3e8; content: ""; }
.next-contractor-progress li:first-child::before { display: none; }
.next-contractor-progress li span { z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #cbd4da; border-radius: 50%; background: #fff; font-weight: 800; }
.next-contractor-progress li.done::before,
.next-contractor-progress li.done span,
.next-contractor-progress li.active::before { border-color: #17804b; background: #17804b; color: #fff; }
.next-contractor-progress li.active span { border-color: #c8102e; background: #c8102e; color: #fff; }
.next-contractor-progress li.done strong,
.next-contractor-progress li.active strong { color: #22313b; }
.next-contractor-scope,
.next-contractor-decision,
.next-contractor-report,
.next-contractor-submissions,
.next-contractor-evidence,
.next-contractor-thread,
.next-contractor-waiting { margin-top: 18px; border: 1px solid #dce3e8; border-radius: 6px; }
.next-contractor-scope { padding: 18px; }
.next-contractor-scope > header,
.next-contractor-submissions > header,
.next-contractor-evidence > header,
.next-contractor-thread > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.next-contractor-scope > header a { display: inline-flex; align-items: center; gap: 6px; color: #344b59; font-size: .78rem; font-weight: 700; text-decoration: none; }
.next-contractor-scope > header svg { width: 15px; height: 15px; }
.next-contractor-scope dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.next-contractor-scope dl div { min-width: 0; padding: 10px 12px; background: #f4f7f8; }
.next-contractor-scope dt { color: #68757e; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.next-contractor-scope dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.next-contractor-scope p { margin: 14px 0 0; line-height: 1.55; }
.next-contractor-decision h4 { margin: 0; padding: 16px 18px 0; }
.next-contractor-decision .next-form-grid { padding: 16px 18px; }
.next-contractor-decision footer,
.next-contractor-report footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid #dce3e8; background: #f7f9fa; }
.next-contractor-report > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid #dce3e8; }
.next-contractor-report h4 { margin: 2px 0 0; }
.next-contractor-report > .next-form-grid { padding: 18px; }
.next-contractor-report footer { justify-content: space-between; }
.next-contractor-report footer > span { max-width: 55%; color: #68757e; font-size: .76rem; }
.next-contractor-report footer > div { display: flex; gap: 8px; }
.next-contractor-waiting { display: flex; align-items: center; gap: 14px; padding: 18px; border-color: #b8d8c7; background: #eef8f2; }
.next-contractor-waiting > svg { width: 28px; height: 28px; color: #17804b; }
.next-contractor-waiting span { display: block; margin-top: 2px; color: #52635a; }
.next-contractor-submissions,
.next-contractor-evidence,
.next-contractor-thread { padding: 18px; }
.next-contractor-submissions > p { margin: 0; color: #68757e; }
.next-contractor-submissions > div { display: grid; gap: 9px; }
.next-contractor-submissions article { padding: 12px 14px; border: 1px solid #e0e6ea; border-left: 3px solid #c8102e; border-radius: 4px; background: #f9fafb; }
.next-contractor-submissions article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.next-contractor-submissions article > header > div { display: grid; gap: 2px; }
.next-contractor-submissions article header small,
.next-contractor-submissions article > small { color: #6c7880; font-size: .72rem; }
.next-contractor-submissions article em { padding: 4px 7px; border-radius: 4px; font-size: .68rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-contractor-submissions article dl { display: flex; gap: 18px; margin: 10px 0 0; }
.next-contractor-submissions article dl div { display: grid; gap: 1px; }
.next-contractor-submissions article dt { color: #71808a; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.next-contractor-submissions article dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; }
.next-contractor-submissions article p { margin: 9px 0; line-height: 1.45; }
.next-contractor-evidence > p { margin: 0; color: #68757e; }
.next-contractor-evidence > div { display: grid; gap: 8px; }
.next-contractor-evidence > div > a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e0e6ea; border-radius: 4px; color: #263943; text-decoration: none; }
.next-contractor-evidence > div > a:hover { border-color: #c8102e; }
.next-contractor-evidence a svg { width: 18px; height: 18px; color: #c8102e; }
.next-contractor-evidence a span { display: grid; min-width: 0; }
.next-contractor-evidence a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-contractor-evidence a small { color: #6c7880; }
.next-contractor-thread > div { display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.next-contractor-thread article { padding: 12px 14px; border-left: 3px solid #c8102e; background: #f7f9fa; }
.next-contractor-thread article header { display: flex; justify-content: space-between; gap: 12px; }
.next-contractor-thread article header span { color: #71808a; font-size: .72rem; }
.next-contractor-thread article p { margin: 7px 0 0; line-height: 1.5; white-space: pre-wrap; }
.next-contractor-thread > footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #dce3e8; }
.next-contractor-thread > footer label { display: grid; gap: 5px; }
.next-contractor-thread > footer label > span { font-size: .74rem; font-weight: 700; }
.next-contractor-thread textarea { width: 100%; }

@media (max-width: 1050px) {
    .next-contractor-layout { grid-template-columns: minmax(260px, 38%) minmax(0, 1fr); }
    .next-contractor-scope dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .next-contractor-report footer { align-items: flex-start; flex-direction: column; }
    .next-contractor-report footer > span { max-width: none; }
}

@media (max-width: 760px) {
    .next-contractor-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
    .next-contractor-layout { display: block; min-height: 0; }
    .next-contractor-list-pane { border-right: 0; border-bottom: 1px solid #dce3e8; }
    .next-contractor-list { max-height: 340px; }
    .next-contractor-detail { padding: 18px 14px; }
    .next-contractor-toolbar { grid-template-columns: 1fr; }
    .next-contractor-order-header { align-items: flex-start; flex-direction: column; }
    .next-contractor-progress li strong { font-size: .66rem; }
    .next-contractor-scope dl { grid-template-columns: 1fr; }
    .next-contractor-decision footer,
    .next-contractor-report > header,
    .next-contractor-report footer > div { align-items: stretch; flex-direction: column; }
    .next-contractor-decision footer button,
    .next-contractor-report footer button { width: 100%; justify-content: center; }
    .next-contractor-submissions article > header { flex-direction: column; }
    .next-contractor-submissions article dl { display: grid; grid-template-columns: 1fr 1fr; }
    .next-contractor-thread > footer { grid-template-columns: 1fr; }
}

/* Persönliches A13-Meldeportal */
.next-service-request-workspace { overflow: visible; }
.next-service-request-workspace > .next-work-section-header { position: sticky; top: 0; z-index: 3; background: #fff; }
.next-service-request-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-service-request-create { margin: 0; border-block: 1px solid var(--next-line); background: #f8fafc; }
.next-service-request-create > header,
.next-service-request-create > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 17px; }
.next-service-request-create > header { border-bottom: 1px solid var(--next-line); }
.next-service-request-create > header h3 { margin: 2px 0 0; font-size: 17px; }
.next-service-request-create > header span,
.next-service-request-thread > header span,
.next-service-request-description > span,
.next-service-request-solution span { color: var(--next-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.next-service-request-create > header button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; background: transparent; cursor: pointer; }
.next-service-request-create > header svg { width: 18px; }
.next-service-request-create > .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 17px 19px; }
.next-service-request-create .next-field.wide { grid-column: span 2; }
.next-service-request-create .next-field.full { grid-column: 1 / -1; }
.next-service-request-create > footer { border-top: 1px solid var(--next-line); color: var(--next-muted); font-size: 12px; }
.next-service-request-create > footer > div { display: flex; gap: 8px; }
.next-service-request-layout { display: grid; grid-template-columns: minmax(300px, 36%) minmax(0, 1fr); min-height: 620px; }
.next-service-request-list-pane { min-width: 0; border-right: 1px solid var(--next-line); background: #fbfcfd; }
.next-service-request-toolbar { grid-template-columns: minmax(0, 1fr) minmax(140px, 190px); padding: 11px 12px; border-bottom: 1px solid var(--next-line); }
.next-service-request-list { display: grid; max-height: 720px; overflow-y: auto; }
.next-service-request-list > button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 78px; padding: 12px 13px; border: 0; border-bottom: 1px solid var(--next-line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.next-service-request-list > button:hover { background: #f3f6f8; }
.next-service-request-list > button.active { box-shadow: inset 3px 0 var(--next-red); background: #fff; }
.next-ticket-public-thread { border-top: 1px solid var(--next-line); }
.next-service-request-list > button span { display: grid; gap: 4px; min-width: 0; }
.next-service-request-list > button span:last-child { justify-items: end; text-align: right; }
.next-service-request-list strong,
.next-service-request-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-service-request-list small { color: var(--next-muted); font-size: 11px; }
.next-service-request-list em,
.next-service-request-detail > header > em { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 700; }
.next-service-request-detail { min-width: 0; background: #fff; }
.next-service-request-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 19px 20px 15px; border-bottom: 1px solid var(--next-line); }
.next-service-request-detail > header h3 { margin: 3px 0 5px; font-size: 21px; }
.next-service-request-detail > header span,
.next-service-request-detail > header p { color: var(--next-muted); font-size: 12px; }
.next-service-request-detail > header p { margin: 0; }
.next-service-request-chain { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #bed6e5; background: #f2f8fc; }
.next-service-request-chain > svg { width: 20px; color: #28749c; }
.next-service-request-chain > span { display: grid; gap: 2px; }
.next-service-request-chain > span strong { font-size: 12px; }
.next-service-request-chain > span small { color: var(--next-muted); font-size: 11px; }
.next-service-request-chain > div { display: flex; gap: 7px; }
.next-service-request-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--next-line); list-style: none; }
.next-service-request-progress li { position: relative; display: flex; align-items: center; gap: 9px; color: #9aa3ad; }
.next-service-request-progress li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 37px; right: 8px; height: 2px; background: #dfe4e8; }
.next-service-request-progress li.done,
.next-service-request-progress li.active { color: #26333d; }
.next-service-request-progress li.done::after { background: #d30d24; }
.next-service-request-progress li > svg { position: relative; z-index: 1; box-sizing: content-box; width: 16px; height: 16px; padding: 7px; border: 1px solid #dfe4e8; border-radius: 50%; background: #fff; }
.next-service-request-progress li.done > svg { border-color: #d30d24; color: #d30d24; }
.next-service-request-progress li span { display: grid; gap: 2px; min-width: 0; }
.next-service-request-progress li strong { font-size: 12px; }
.next-service-request-progress li small { color: var(--next-muted); font-size: 10px; }
.next-service-request-description { padding: 17px 20px; border-bottom: 1px solid var(--next-line); }
.next-service-request-description p,
.next-service-request-solution p,
.next-service-request-thread article p { margin: 7px 0 0; line-height: 1.5; white-space: pre-line; }
.next-service-request-description small { display: block; margin-top: 10px; color: var(--next-muted); }
.next-service-request-file-picker small { color: var(--next-muted); font-weight: 400; }
.next-service-request-attachments { padding: 15px 20px 17px; border-bottom: 1px solid var(--next-line); background: #fbfcfd; }
.next-service-request-attachments > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.next-service-request-attachments > header span { color: var(--next-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.next-service-request-attachments > header h4 { margin: 3px 0 0; font-size: 16px; }
.next-service-request-attachments > header .next-secondary-command span { color: inherit; font-size: inherit; text-transform: none; }
.next-service-request-attachments > p { margin: 0; color: var(--next-muted); font-size: 12px; }
.next-service-request-attachments > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.next-service-request-attachments > div > a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: 9px; min-width: 0; padding: 10px 11px; border: 1px solid #dfe5e9; border-radius: 4px; background: #fff; color: var(--next-ink); text-decoration: none; }
.next-service-request-attachments > div > a:hover { border-color: var(--next-red); }
.next-service-request-attachments a > svg { width: 17px; height: 17px; color: var(--next-red); }
.next-service-request-attachments a > span { display: grid; min-width: 0; }
.next-service-request-attachments a strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.next-service-request-attachments a small { overflow: hidden; color: var(--next-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-ticket-public-attachments { border-top: 1px solid var(--next-line); }
.next-service-request-solution { display: flex; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #bfe4cd; background: #f1faf4; }
.next-service-request-solution > svg { width: 21px; color: #18864b; }
.next-service-request-follow-up { padding: 16px 20px; border-bottom: 1px solid #efc3c9; background: #fff7f8; }
.next-service-request-follow-up > header { display: flex; align-items: center; gap: 10px; }
.next-service-request-follow-up > header > svg { width: 20px; color: var(--next-red); }
.next-service-request-follow-up > header span { color: var(--next-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.next-service-request-follow-up > header h4 { margin: 2px 0 0; font-size: 16px; }
.next-service-request-follow-up > p { margin: 10px 0 13px; color: var(--next-muted); font-size: 12px; line-height: 1.5; }
.next-service-request-follow-up > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.next-service-request-thread > header { padding: 14px 20px 8px; }
.next-service-request-thread > header h4 { margin: 3px 0 0; font-size: 16px; }
.next-service-request-thread > div { display: grid; gap: 9px; max-height: 360px; padding: 5px 20px 16px; overflow-y: auto; }
.next-service-request-thread article { max-width: 82%; padding: 11px 12px; border: 1px solid var(--next-line); border-radius: 6px; background: #f7f8fa; }
.next-service-request-thread article.service { justify-self: end; border-color: #efc3c9; background: #fff5f6; }
.next-service-request-thread article header { display: flex; justify-content: space-between; gap: 12px; }
.next-service-request-thread article header span { color: var(--next-muted); font-size: 10px; }
.next-service-request-thread article p { font-size: 13px; }
.next-service-request-thread > footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--next-line); background: #fbfcfd; }
.next-service-request-thread > footer label { display: grid; gap: 6px; color: var(--next-muted); font-size: 11px; font-weight: 700; }
.next-service-request-thread textarea { min-height: 72px; resize: vertical; }
.next-service-request-thread-locked { display: flex !important; align-items: center; gap: 9px !important; max-height: none !important; padding: 12px 20px !important; border-top: 1px solid var(--next-line); background: #f7f8fa; color: var(--next-muted); font-size: 12px; }
.next-service-request-thread-locked > svg { width: 16px; }
.next-service-request-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 20px; border-top: 1px solid var(--next-line); color: var(--next-muted); font-size: 12px; }
.next-service-request-detail-actions > div { display: flex; gap: 8px; }

@media (max-width: 1100px) {
  .next-service-request-create > .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-service-request-layout { grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); }
  .next-service-request-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .next-service-request-progress li:nth-child(2)::after { display: none; }
}

@media (max-width: 760px) {
  .next-service-request-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-service-request-create > .next-form-grid { grid-template-columns: 1fr; }
  .next-service-request-create .next-field.wide,
  .next-service-request-create .next-field.full { grid-column: auto; }
  .next-service-request-create > footer,
  .next-service-request-detail-actions { align-items: stretch; flex-direction: column; }
  .next-service-request-create > footer > div,
  .next-service-request-detail-actions > div { display: grid; grid-template-columns: 1fr; }
  .next-service-request-layout { grid-template-columns: 1fr; }
  .next-service-request-list-pane { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-service-request-list { max-height: 330px; }
  .next-service-request-toolbar { grid-template-columns: 1fr; }
  .next-service-request-progress { grid-template-columns: 1fr; }
  .next-service-request-progress li::after { display: none; }
  .next-service-request-chain { grid-template-columns: 24px minmax(0, 1fr); }
  .next-service-request-chain > div { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .next-service-request-follow-up > footer { align-items: stretch; flex-direction: column; }
  .next-service-request-thread article { max-width: 94%; }
  .next-service-request-thread > footer { grid-template-columns: 1fr; }
  .next-service-request-attachments > header { align-items: stretch; flex-direction: column; }
  .next-service-request-attachments > header .next-secondary-command { justify-content: center; width: 100%; }
  .next-service-request-attachments > div { grid-template-columns: 1fr; }
}

.next-document-disposition {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d9dee4;
}

.next-document-disposition > header,
.next-document-disposition-case > header,
.next-document-disposition-case > footer,
.next-document-disposition-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.next-document-disposition > header {
  justify-content: flex-start;
}

.next-document-disposition > header > i {
  width: 20px;
  height: 20px;
  color: #9d2f33;
}

.next-document-disposition > header span,
.next-document-disposition-hint span,
.next-document-disposition-warning span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.next-document-disposition > header small,
.next-document-disposition-hint small,
.next-document-disposition-warning small {
  color: #69737d;
  line-height: 1.35;
}

.next-document-disposition-case,
.next-document-disposition-form {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid #d9dee4;
  border-left: 3px solid #6d7780;
  border-radius: 6px;
  background: #fff;
}

.next-document-disposition-case.status-eingereicht,
.next-document-disposition-case.status-freigegeben {
  border-left-color: #b47a13;
}

.next-document-disposition-case.status-nacharbeit {
  border-left-color: #bd3038;
}

.next-document-disposition-case > header span,
.next-document-disposition-case > label,
.next-document-disposition-form > label {
  display: grid;
  gap: 5px;
}

.next-document-disposition-case > header small,
.next-document-disposition-evidence,
.next-document-disposition-history small {
  color: #69737d;
}

.next-document-disposition-case > header em,
.next-document-disposition-history em {
  padding: 3px 7px;
  border-radius: 4px;
  background: #edf0f2;
  color: #3f474e;
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.next-document-disposition-case dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.next-document-disposition-case dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.next-document-disposition-case dt {
  color: #69737d;
  font-size: 12px;
}

.next-document-disposition-case dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.next-document-disposition-case p,
.next-document-disposition-case blockquote {
  margin: 0;
  line-height: 1.45;
}

.next-document-disposition-case blockquote {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-left: 3px solid #c5ccd2;
  background: #f5f7f8;
}

.next-document-disposition-evidence,
.next-document-disposition-result,
.next-document-disposition-errors,
.next-document-disposition-hint,
.next-document-disposition-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.next-document-disposition-result,
.next-document-disposition-errors,
.next-document-disposition-hint,
.next-document-disposition-warning {
  padding: 9px 10px;
  border-radius: 5px;
  background: #f2f5f3;
}

.next-document-disposition-errors {
  display: grid;
  background: #fff0f0;
  color: #8f282d;
}

.next-document-disposition-warning {
  background: #fff7e7;
  color: #74520e;
}

.next-document-disposition-result > i,
.next-document-disposition-hint > i,
.next-document-disposition-warning > i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.next-document-disposition-history summary {
  cursor: pointer;
  color: #4f5962;
}

.next-document-disposition-history > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e6e9;
}

.next-document-disposition-history > div span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

@media (max-width: 720px) {
  .next-document-disposition-case dl {
    grid-template-columns: 1fr;
  }

  .next-document-disposition-case > footer,
  .next-document-disposition-form > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .next-document-disposition-case > footer > button,
  .next-document-disposition-form > footer > button {
    width: 100%;
  }
}

/* A9 rental handover and return protocols */
.next-rental-handover { display:grid; gap:16px; min-width:0; padding:18px 0; border-top:1px solid #d9dde3; border-bottom:1px solid #d9dde3; }
.next-rental-handover-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.next-rental-handover-header > div:first-child { min-width:0; }
.next-rental-handover-header > div:last-child { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.next-rental-handover-header span, .next-rental-handover-register > header span, .next-rental-handover-evidence-grid section > header span { color:#69717b; font-size:.76rem; }
.next-rental-handover-header h3, .next-rental-handover-register h4, .next-rental-handover-evidence-grid h4 { margin:3px 0 0; letter-spacing:0; }
.next-rental-handover-layout { display:grid; grid-template-columns:minmax(230px, 280px) minmax(0, 1fr); gap:16px; align-items:start; min-width:0; }
.next-rental-handover-list { border-right:1px solid #d9dde3; padding-right:14px; display:grid; gap:6px; max-height:780px; overflow:auto; }
.next-rental-handover-list > header { display:flex; align-items:center; justify-content:space-between; padding:4px 4px 8px; }
.next-rental-handover-list > header span { min-width:25px; height:25px; display:grid; place-items:center; background:#edf0f3; border-radius:50%; font-size:.75rem; }
.next-rental-handover-list > button { appearance:none; border:1px solid transparent; border-radius:6px; background:transparent; color:inherit; text-align:left; padding:10px; display:grid; gap:5px; cursor:pointer; min-width:0; }
.next-rental-handover-list > button:hover { background:#f4f6f7; }
.next-rental-handover-list > button.active { background:#f1f6f4; border-color:#94b4a7; box-shadow:inset 3px 0 #276a51; }
.next-rental-handover-list > button > span { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.next-rental-handover-list > button > strong, .next-rental-handover-list > button > small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-handover-workspace { min-width:0; display:grid; gap:14px; }
.next-rental-handover-editor { border:1px solid #d5dadf; border-radius:7px; background:#fff; overflow:hidden; min-width:0; }
.next-rental-handover-editor > header { padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#f7f8f8; border-bottom:1px solid #dde1e4; }
.next-rental-handover-editor > header span { color:#276a51; font-size:.72rem; font-weight:700; }
.next-rental-handover-editor > header h4 { margin:2px 0 0; letter-spacing:0; }
.next-rental-handover-editor > fieldset { margin:0; padding:16px; border:0; border-bottom:1px solid #e1e4e7; min-width:0; }
.next-rental-handover-editor > fieldset > legend { padding:0 0 10px; font-weight:700; }
.next-rental-handover-editor > fieldset > legend b, .next-rental-handover-register h4 b, .next-rental-handover-evidence-grid h4 b { display:inline-grid; place-items:center; min-width:23px; height:23px; margin-left:4px; border-radius:50%; background:#e8edef; color:#3e4b53; font-size:.7rem; }
.next-rental-handover-editor > fieldset > .next-secondary-command { margin-top:10px; }
.next-rental-handover-editor > footer { padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; background:#f7f8f8; }
.next-rental-handover-editor > footer > span { color:#626b74; font-size:.76rem; max-width:65ch; }
.next-rental-handover-editor > footer > div { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.next-rental-handover-items { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; min-width:0; }
.next-rental-handover-items.compact { grid-template-columns:1fr; }
.next-rental-handover-item { border:1px solid #d9dee2; border-radius:6px; padding:12px; min-width:0; background:#fff; }
.next-rental-handover-item > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:9px; margin-bottom:10px; border-bottom:1px solid #edf0f1; }
.next-rental-handover-item > header > strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-handover-summary { border:1px solid #d5dadf; border-radius:7px; background:#fff; overflow:hidden; }
.next-rental-handover-summary > header { padding:16px 18px; display:flex; justify-content:space-between; align-items:flex-start; gap:14px; background:#f7f8f8; border-bottom:1px solid #dde1e4; }
.next-rental-handover-summary > header > div:first-child { min-width:0; display:grid; gap:2px; }
.next-rental-handover-summary > header > div:first-child > span { color:#276a51; font-size:.72rem; font-weight:700; }
.next-rental-handover-summary > header > div:last-child { display:flex; align-items:center; gap:8px; }
.next-rental-handover-summary h4 { margin:0; letter-spacing:0; }
.next-rental-handover-summary header small { color:#66707a; }
.next-rental-handover-facts { display:grid; grid-template-columns:repeat(6, minmax(85px, 1fr)); border-bottom:1px solid #dde1e4; }
.next-rental-handover-facts > span { display:grid; gap:3px; padding:13px 14px; border-right:1px solid #e3e6e8; min-width:0; }
.next-rental-handover-facts > span:last-child { border-right:0; }
.next-rental-handover-facts small { color:#6a727b; font-size:.7rem; }
.next-rental-handover-facts strong { font-size:.94rem; overflow-wrap:anywhere; }
.next-rental-handover-summary dl { margin:0; padding:14px 18px; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 20px; }
.next-rental-handover-summary dt { color:#707780; font-size:.7rem; text-transform:uppercase; }
.next-rental-handover-summary dd { margin:3px 0 0; overflow-wrap:anywhere; }
.next-rental-handover-register { display:grid; gap:8px; min-width:0; }
.next-rental-handover-register > header, .next-rental-handover-evidence-grid section > header { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.next-rental-handover-register > article { display:grid; grid-template-columns:minmax(180px, 1.2fr) minmax(180px, 1.5fr) minmax(130px, .7fr) auto; gap:12px; align-items:center; padding:11px 12px; border:1px solid #dde1e4; border-radius:6px; background:#fff; min-width:0; }
.next-rental-handover-register > article.defect { border-left:4px solid #bd4a3f; background:#fff9f8; }
.next-rental-handover-register > article > span { min-width:0; display:grid; gap:3px; }
.next-rental-handover-register > article small { color:#6b737c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-handover-register .actions { display:flex; justify-content:flex-end; }
.next-rental-handover-evidence-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; min-width:0; }
.next-rental-handover-evidence-grid > section { min-width:0; display:grid; gap:8px; align-content:start; }
.next-rental-handover-evidence-grid article { display:flex; gap:10px; align-items:center; border-bottom:1px solid #e4e7e9; padding:9px 2px; min-width:0; }
.next-rental-handover-evidence-grid article > i { width:18px; height:18px; flex:0 0 auto; color:#276a51; }
.next-rental-handover-evidence-grid article > span { display:grid; gap:2px; min-width:0; }
.next-rental-handover-evidence-grid article strong, .next-rental-handover-evidence-grid article small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-handover-evidence-grid article small { color:#69717b; }
.next-rental-handover-workflow { border-top:1px solid #d9dde1; padding-top:14px; display:grid; gap:12px; }
.next-rental-handover-workflow > footer { display:flex; justify-content:space-between; gap:14px; align-items:center; }
.next-rental-handover-workflow > footer > span { color:#626b74; max-width:68ch; font-size:.78rem; }
.next-rental-handover-workflow > footer > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.next-rental-handover-workflow code { overflow-wrap:anywhere; font-size:.72rem; }

@media (max-width:1100px) {
    .next-rental-handover-facts { grid-template-columns:repeat(3, minmax(85px, 1fr)); }
    .next-rental-handover-facts > span:nth-child(3) { border-right:0; }
    .next-rental-handover-facts > span:nth-child(-n+3) { border-bottom:1px solid #e3e6e8; }
    .next-rental-handover-register > article { grid-template-columns:minmax(160px, 1fr) minmax(180px, 1.3fr) minmax(120px, .7fr); }
    .next-rental-handover-register .actions { grid-column:1 / -1; border-top:1px solid #edf0f1; padding-top:8px; }
}

@media (max-width:820px) {
    .next-rental-handover-header { align-items:flex-start; }
    .next-rental-handover-layout { grid-template-columns:1fr; }
    .next-rental-handover-list { border-right:0; border-bottom:1px solid #d9dde3; padding:0 0 12px; max-height:230px; }
    .next-rental-handover-items { grid-template-columns:1fr; }
    .next-rental-handover-summary dl, .next-rental-handover-evidence-grid { grid-template-columns:1fr; }
    .next-rental-handover-editor > footer, .next-rental-handover-workflow > footer { align-items:flex-start; flex-direction:column; }
    .next-rental-handover-editor > footer > div, .next-rental-handover-workflow > footer > div { width:100%; justify-content:flex-start; }
}

@media (max-width:560px) {
    .next-rental-handover-header { flex-direction:column; }
    .next-rental-handover-header > div:last-child { width:100%; justify-content:flex-start; }
    .next-rental-handover-facts { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .next-rental-handover-facts > span { border-bottom:1px solid #e3e6e8; }
    .next-rental-handover-facts > span:nth-child(2n) { border-right:0; }
    .next-rental-handover-facts > span:nth-child(n+5) { border-bottom:0; }
    .next-rental-handover-register > article { grid-template-columns:1fr; }
    .next-rental-handover-register .actions { grid-column:1; justify-content:flex-start; }
    .next-rental-handover-editor > fieldset, .next-rental-handover-editor > header, .next-rental-handover-editor > footer { padding-left:12px; padding-right:12px; }
}

/* A9 governed lease termination and close-out */
.next-rental-termination { display:grid; gap:16px; min-width:0; padding:18px 0; border-top:1px solid #d9dde3; border-bottom:1px solid #d9dde3; }
.next-rental-termination-layout { display:grid; grid-template-columns:minmax(230px, 280px) minmax(0, 1fr); gap:16px; align-items:start; min-width:0; }
.next-rental-termination-list { border-right:1px solid #d9dde3; padding-right:14px; display:grid; gap:6px; max-height:780px; overflow:auto; }
.next-rental-termination-list > header { display:flex; align-items:center; justify-content:space-between; padding:4px 4px 8px; }
.next-rental-termination-list > header span { min-width:25px; height:25px; display:grid; place-items:center; background:#edf0f3; border-radius:50%; font-size:.75rem; }
.next-rental-termination-list > button { appearance:none; border:1px solid transparent; border-radius:6px; background:transparent; color:inherit; text-align:left; padding:10px; display:grid; gap:5px; cursor:pointer; min-width:0; }
.next-rental-termination-list > button:hover { background:#f4f6f7; }
.next-rental-termination-list > button.active { background:#f1f6f4; border-color:#94b4a7; box-shadow:inset 3px 0 #276a51; }
.next-rental-termination-list > button > span { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.next-rental-termination-list > button > strong, .next-rental-termination-list > button > small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-termination-workspace { min-width:0; display:grid; gap:14px; }
.next-rental-termination-editor { border:1px solid #d5dadf; border-radius:7px; background:#fff; overflow:hidden; min-width:0; }
.next-rental-termination-editor > header { padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#f7f8f8; border-bottom:1px solid #dde1e4; }
.next-rental-termination-editor > header span { color:#276a51; font-size:.72rem; font-weight:700; }
.next-rental-termination-editor > header h4 { margin:2px 0 0; letter-spacing:0; }
.next-rental-termination-editor > fieldset { margin:0; padding:16px; border:0; border-bottom:1px solid #e1e4e7; min-width:0; }
.next-rental-termination-editor > fieldset > legend { padding:0 0 10px; font-weight:700; }
.next-rental-termination-editor > footer { padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; background:#f7f8f8; }
.next-rental-termination-editor > footer > span { color:#626b74; font-size:.76rem; max-width:70ch; }
.next-rental-termination-editor > footer > div { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.next-rental-termination-summary { border:1px solid #d5dadf; border-radius:7px; background:#fff; overflow:hidden; }
.next-rental-termination-summary > header { padding:16px 18px; display:flex; justify-content:space-between; align-items:flex-start; gap:14px; background:#f7f8f8; border-bottom:1px solid #dde1e4; }
.next-rental-termination-summary > header > div:first-child { min-width:0; display:grid; gap:2px; }
.next-rental-termination-summary > header > div:first-child > span { color:#276a51; font-size:.72rem; font-weight:700; }
.next-rental-termination-summary > header > div:last-child { display:flex; align-items:center; gap:8px; }
.next-rental-termination-summary h4 { margin:0; letter-spacing:0; }
.next-rental-termination-summary header small { color:#66707a; }
.next-rental-termination-summary dl { margin:0; padding:14px 18px; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 20px; }
.next-rental-termination-summary dt { color:#707780; font-size:.7rem; text-transform:uppercase; }
.next-rental-termination-summary dd { margin:3px 0 0; overflow-wrap:anywhere; }
.next-rental-termination-tasks { display:grid; gap:8px; min-width:0; }
.next-rental-termination-tasks > header { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.next-rental-termination-tasks > header span { color:#69717b; font-size:.76rem; }
.next-rental-termination-tasks h4 { margin:3px 0 0; letter-spacing:0; }
.next-rental-termination-tasks h4 b { display:inline-grid; place-items:center; min-width:23px; height:23px; margin-left:4px; border-radius:50%; background:#e8edef; color:#3e4b53; font-size:.7rem; }
.next-rental-termination-tasks > article { display:grid; grid-template-columns:32px minmax(160px, 1.1fr) minmax(120px, .55fr) minmax(180px, 1fr) 34px; gap:10px; align-items:end; padding:10px 12px; border:1px solid #dde1e4; border-radius:6px; background:#fff; min-width:0; }
.next-rental-termination-tasks .icon { width:30px; height:30px; display:grid; place-items:center; align-self:center; color:#276a51; background:#edf4f1; border-radius:50%; }
.next-rental-termination-tasks .icon i { width:16px; height:16px; }
.next-rental-termination-tasks article > span:nth-child(2) { display:grid; gap:3px; min-width:0; }
.next-rental-termination-tasks article > span:nth-child(2) small { color:#6b737c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-termination-tasks article > label { display:grid; gap:4px; min-width:0; }
.next-rental-termination-tasks article > label > span { color:#69717b; font-size:.68rem; }
.next-rental-termination-tasks select, .next-rental-termination-tasks input { width:100%; min-width:0; height:34px; border:1px solid #cfd5da; border-radius:5px; background:#fff; padding:5px 8px; }
.next-rental-termination-workflow { border-top:1px solid #d9dde1; padding-top:14px; display:grid; gap:12px; }
.next-rental-termination-workflow > footer { display:flex; justify-content:space-between; gap:14px; align-items:center; }
.next-rental-termination-workflow > footer > span { color:#626b74; max-width:72ch; font-size:.78rem; }
.next-rental-termination-workflow > footer > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.next-rental-termination-workflow code { overflow-wrap:anywhere; font-size:.72rem; }
.next-rental-amendment-comparison > article { grid-template-columns:32px minmax(160px, 1fr) minmax(160px, 1fr); align-items:center; }
.next-rental-amendment-comparison article > span:nth-child(3) { display:grid; gap:3px; min-width:0; }
.next-rental-amendment-comparison article > span:nth-child(3) strong { overflow-wrap:anywhere; }
.next-rental-amendment-comparison article > span:nth-child(3) small { color:#6b737c; }

@media (max-width:1100px) {
    .next-rental-termination-tasks > article { grid-template-columns:32px minmax(160px, 1fr) minmax(120px, .7fr) 34px; }
    .next-rental-termination-tasks article > label:nth-of-type(2) { grid-column:2 / 4; }
    .next-rental-amendment-comparison > article { grid-template-columns:32px minmax(150px, 1fr) minmax(150px, 1fr); }
}

@media (max-width:820px) {
    .next-rental-termination-layout { grid-template-columns:1fr; }
    .next-rental-termination-list { border-right:0; border-bottom:1px solid #d9dde3; padding:0 0 12px; max-height:230px; }
    .next-rental-termination-summary dl { grid-template-columns:1fr; }
    .next-rental-termination-editor > footer, .next-rental-termination-workflow > footer { align-items:flex-start; flex-direction:column; }
    .next-rental-termination-editor > footer > div, .next-rental-termination-workflow > footer > div { width:100%; justify-content:flex-start; }
}

@media (max-width:560px) {
    .next-rental-termination-tasks > article { grid-template-columns:32px minmax(0, 1fr) 34px; align-items:center; }
    .next-rental-termination-tasks article > label { grid-column:1 / -1; }
    .next-rental-termination-tasks article > label:nth-of-type(2) { grid-column:1 / -1; }
    .next-rental-termination-editor > fieldset, .next-rental-termination-editor > header, .next-rental-termination-editor > footer { padding-left:12px; padding-right:12px; }
    .next-rental-amendment-comparison > article { grid-template-columns:32px minmax(0, 1fr); align-items:start; }
    .next-rental-amendment-comparison article > span:nth-child(3) { grid-column:2; }
}

/* Bauausfuehrung, Abnahme und Gewaehrleistung */
.next-construction-workflow { margin-top: 28px; }
.next-construction-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-construction-kpis > span { min-width: 0; padding: 11px 16px; border-right: 1px solid var(--next-line); display: grid; gap: 2px; }
.next-construction-kpis > span:last-child { border-right: 0; }
.next-construction-kpis small { color: var(--next-muted); font-size: 8px; text-transform: uppercase; }
.next-construction-kpis strong { font-size: 18px; }
.next-construction-kpis .warning strong { color: #a56d17; }
.next-construction-editor { margin: 16px; }
.next-construction-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; margin-bottom: 10px; }
.next-construction-editor > header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-construction-editor > header > div:first-child > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-construction-editor > header h3 { margin: 0; overflow-wrap: anywhere; font-size: 16px; }
.next-construction-editor > header small { color: var(--next-muted); font-size: 9px; overflow-wrap: anywhere; }
.next-construction-editor > header > button, .next-construction-editor > header > .next-construction-actions button { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 1px solid #d4d7d9; border-radius: 4px; display: grid; place-items: center; color: #596067; background: #fff; }
.next-construction-editor > header > .next-construction-actions { display: flex; gap: 5px; }
.next-construction-editor > header svg { width: 14px; height: 14px; }
.next-construction-editor > .next-form-grid { padding: 16px; }
.next-construction-case { margin: 16px; }
.next-construction-case > header > div:last-child { display: flex; gap: 5px; }
.next-construction-case > header > div:last-child button { width: 32px; height: 32px; padding: 0; border: 1px solid #d4d7d9; border-radius: 4px; display: grid; place-items: center; color: #596067; background: #fff; }
.next-construction-case > header > div:last-child svg { width: 14px; height: 14px; }
.next-construction-summary { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-construction-summary > span { min-width: 0; padding: 10px 13px; border-right: 1px solid var(--next-line); display: grid; gap: 3px; }
.next-construction-summary > span:last-child { border-right: 0; }
.next-construction-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-construction-summary strong { overflow-wrap: anywhere; font-size: 10px; }
.next-construction-tabs { display: flex; min-width: 0; padding: 7px 9px; border-bottom: 1px solid var(--next-line); gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.next-construction-tabs button { flex: 0 0 auto; min-height: 32px; padding: 6px 9px; border: 1px solid transparent; border-radius: 4px; display: flex; align-items: center; gap: 6px; color: #646b70; background: transparent; font: inherit; font-size: 9px; cursor: pointer; }
.next-construction-tabs button:hover, .next-construction-tabs button.active { border-color: #d4b2b5; color: #922a31; background: #fff8f8; }
.next-construction-tabs svg { width: 14px; height: 14px; }
.next-construction-tabs b { min-width: 17px; height: 17px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: #aa3037; font-size: 7px; }
.next-construction-panel { min-width: 0; padding: 14px; }
.next-construction-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--next-line); border-radius: 5px; overflow: hidden; }
.next-construction-detail-grid > span { min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); display: grid; gap: 3px; }
.next-construction-detail-grid > span:nth-child(3n) { border-right: 0; }
.next-construction-detail-grid > span:nth-last-child(-n+3) { border-bottom: 0; }
.next-construction-detail-grid small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-construction-detail-grid strong { overflow-wrap: anywhere; font-size: 10px; }
.next-construction-panel > p { margin: 13px 1px; color: #52595f; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.next-construction-action { padding: 12px; border-top: 1px solid var(--next-line); display: grid; grid-template-columns: 150px minmax(180px, 1fr) minmax(180px, 1fr); align-items: end; gap: 9px; background: #f7f8f8; }
.next-construction-action > div { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 7px; }
.next-construction-capture { margin-bottom: 14px; padding: 13px; border: 1px solid #d9dcde; border-radius: 6px; background: #f8f9f9; }
.next-construction-capture h4 { margin: 0 0 10px; font-size: 12px; }
.next-construction-capture > .next-form-grid { padding: 0; }
.next-construction-capture > button { margin-top: 10px; margin-left: auto; }
.next-construction-timeline { display: grid; }
.next-construction-timeline > article { padding: 10px 4px; border-bottom: 1px solid var(--next-line); display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.next-construction-timeline > article:last-child { border-bottom: 0; }
.next-construction-timeline svg { width: 15px; height: 15px; color: #747b80; }
.next-construction-timeline div { min-width: 0; }
.next-construction-timeline strong { font-size: 10px; }
.next-construction-timeline p { margin: 4px 0; overflow-wrap: anywhere; font-size: 10px; white-space: pre-wrap; }
.next-construction-timeline small { color: var(--next-muted); font-size: 8px; }
.next-construction-register { display: grid; border: 1px solid var(--next-line); border-radius: 5px; overflow: hidden; }
.next-construction-register > article { min-width: 0; padding: 11px; border-bottom: 1px solid var(--next-line); }
.next-construction-register > article:last-child { border-bottom: 0; }
.next-construction-register > article.due { border-left: 3px solid #b52f37; background: #fffafa; }
.next-construction-register article > header { min-height: 0; padding: 0; border: 0; background: transparent; }
.next-construction-register article > header > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.next-construction-register article strong { overflow-wrap: anywhere; font-size: 10px; }
.next-construction-register article small { color: var(--next-muted); font-size: 8px; }
.next-construction-register article p { margin: 7px 0; overflow-wrap: anywhere; font-size: 9px; }
.next-construction-register > article.next-land-right-obligation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 13px; }
.next-land-right-obligation > div:first-child { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 8px; }
.next-land-right-obligation > div:first-child > strong { font-size: 11px; }
.next-land-right-obligation > div:first-child > small { grid-column: 1 / -1; font-size: 9px; line-height: 1.4; }
.next-land-right-obligation-status { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; font-size: 8px; font-weight: 800; }
.next-land-right-obligation-status.complete { color: #21613c; background: #dff3e7; }
.next-land-right-obligation-status.warning { color: #78500f; background: #fff0c9; }
.next-land-right-obligation-status.critical { color: #8c282e; background: #fae3e4; }
.next-land-right-obligation-status.open { color: #4e555b; background: #e9ecee; }
.next-land-right-obligation > .next-construction-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.next-land-right-obligation > .next-construction-actions button { width: 30px; height: 30px; padding: 0; border: 1px solid #d1d5d7; border-radius: 4px; display: grid; place-items: center; color: #596067; background: #fff; }
.next-land-right-obligation > .next-construction-actions svg { width: 14px; height: 14px; }
.next-land-right-parcels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 7px 14px; }
[data-property-levy-editor] .next-construction-register > article.next-land-right-obligation > div:first-child { grid-template-columns: minmax(140px, .7fr) minmax(120px, .5fr) minmax(220px, 1.4fr); align-items: end; }
[data-property-levy-editor] .next-construction-register > article.next-land-right-obligation .next-field { margin: 0; }
[data-property-levy-case] .next-construction-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 12px 0; border-block: 1px solid var(--next-line); background: var(--next-line); }
[data-property-levy-case] .next-construction-facts > span { min-width: 0; padding: 10px 12px; display: grid; align-content: center; gap: 3px; background: #fff; }
[data-property-levy-case] .next-construction-facts small { color: #737a80; font-size: 9px; line-height: 1.25; }
[data-property-levy-case] .next-construction-facts strong { color: #31363a; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.next-construction-inline { display: grid; grid-template-columns: minmax(145px, .8fr) 130px minmax(170px, 1fr) minmax(170px, 1fr) 32px; gap: 7px; }
.next-construction-inline input, .next-construction-inline select, .next-construction-checklist input, .next-construction-checklist select { box-sizing: border-box; width: 100%; min-width: 0; height: 32px; padding: 5px 7px; border: 1px solid #cfd3d5; border-radius: 4px; background: #fff; font: inherit; font-size: 9px; }
.next-construction-inline button, .next-construction-checklist button { width: 32px; height: 32px; padding: 0; border: 1px solid #cfd3d5; border-radius: 4px; display: grid; place-items: center; color: #596067; background: #fff; }
.next-construction-inline button svg, .next-construction-checklist button svg { width: 14px; height: 14px; }
.next-construction-checklist { display: grid; border: 1px solid var(--next-line); border-radius: 5px; overflow: hidden; }
.next-construction-checklist article { min-width: 0; min-height: 54px; padding: 8px 10px; border-bottom: 1px solid var(--next-line); display: grid; grid-template-columns: 22px minmax(210px, 1fr) minmax(140px, .55fr) minmax(180px, .8fr) 32px; align-items: center; gap: 8px; }
.next-construction-checklist article:last-child { border-bottom: 0; }
.next-construction-checklist article > svg { width: 16px; height: 16px; color: #418064; }
.next-construction-checklist article > div { min-width: 0; display: grid; gap: 2px; }
.next-construction-checklist strong { overflow-wrap: anywhere; font-size: 9px; }
.next-construction-checklist small { color: var(--next-muted); font-size: 7px; }
.next-construction-list { margin-top: 16px; border: 1px solid var(--next-line); border-radius: 6px; overflow: hidden; }
.next-construction-list-head, .next-construction-row { display: grid; grid-template-columns: minmax(210px, 1.25fr) 140px minmax(180px, 1fr) 130px 130px 32px; align-items: center; gap: 10px; }
.next-construction-list-head { min-height: 36px; padding: 0 11px; color: var(--next-muted); background: #f4f5f6; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-construction-row { position: relative; min-height: 62px; padding: 8px 11px; border-top: 1px solid var(--next-line); background: #fff; }
.next-construction-row.attention::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #c08724; content: ""; }
.next-construction-row > span { min-width: 0; display: grid; gap: 3px; }
.next-construction-row strong, .next-construction-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-construction-row strong { font-size: 10px; }
.next-construction-row small { color: var(--next-muted); font-size: 8px; }
.next-construction-row button { width: 30px; height: 30px; padding: 0; border: 1px solid #d1d5d7; border-radius: 4px; display: grid; place-items: center; color: #596067; background: #fff; }
.next-construction-row button svg { width: 14px; height: 14px; }
.next-construction-finance { padding: 0; }
.next-construction-finance > .next-message { margin: 12px; }
.next-construction-finance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-construction-finance-summary > span { min-width: 0; padding: 11px 13px; border-right: 1px solid var(--next-line); display: grid; gap: 3px; }
.next-construction-finance-summary > span:last-child { border-right: 0; }
.next-construction-finance-summary small, .next-construction-money-grid small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-construction-finance-summary strong { overflow-wrap: anywhere; font-size: 12px; }
.next-construction-finance > .next-construction-capture { margin: 14px; }
.next-construction-capture > header { min-height: 0; margin: 0 0 10px; padding: 0; border: 0; display: flex; align-items: center; justify-content: space-between; background: transparent; }
.next-construction-capture > header > div { display: grid; gap: 2px; }
.next-construction-capture > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-construction-capture > header h4 { margin: 0; }
.next-construction-capture > header button { width: 28px; height: 28px; padding: 0; border: 1px solid #d1d5d7; border-radius: 4px; display: grid; place-items: center; color: #596067; background: #fff; }
.next-construction-capture > header button svg { width: 13px; height: 13px; }
.next-construction-finance-register { margin: 14px; }
.next-construction-finance-register article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.next-construction-finance-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.next-construction-finance-actions > a, .next-construction-finance-actions > button { width: 30px; height: 30px; padding: 0; border: 1px solid #d1d5d7; border-radius: 4px; display: grid; place-items: center; color: #596067; background: #fff; text-decoration: none; }
.next-construction-finance-actions svg { width: 13px; height: 13px; }
.next-construction-money-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0; border: 1px solid var(--next-line); border-radius: 4px; overflow: hidden; }
.next-construction-money-grid > span { min-width: 0; padding: 8px 9px; border-right: 1px solid var(--next-line); display: grid; gap: 2px; }
.next-construction-money-grid > span:last-child { border-right: 0; }
.next-construction-money-grid strong { font-size: 9px; }
.next-construction-finance-transition { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr); gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--next-line); }
.next-construction-finance-transition > input { box-sizing: border-box; width: 100%; min-width: 0; height: 32px; padding: 5px 7px; border: 1px solid #cfd3d5; border-radius: 4px; background: #fff; font: inherit; font-size: 9px; }
.next-construction-finance-transition > div { grid-column: 1 / -1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1080px) {
  .next-construction-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-construction-list-head { display: none; }
  .next-construction-row { grid-template-columns: repeat(2, minmax(0, 1fr)) 32px; align-items: start; }
  .next-construction-row > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
  .next-construction-row > span:last-child { grid-column: 3; grid-row: 1 / span 2; }
  .next-construction-inline { grid-template-columns: repeat(2, minmax(0, 1fr)) 32px; }
  .next-construction-inline button { grid-column: 3; grid-row: 1; }
  .next-construction-checklist article { grid-template-columns: 22px minmax(0, 1fr) minmax(130px, .5fr) 32px; }
  .next-construction-checklist article > input { grid-column: 2 / span 2; }
  .next-construction-finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-construction-finance-summary > span:nth-child(2n) { border-right: 0; }
  .next-construction-finance-summary > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
}

@media (max-width: 720px) {
  .next-construction-workflow > header, .next-construction-editor > header, .next-construction-case > header { align-items: stretch; flex-direction: column; }
  .next-construction-editor > header > button, .next-construction-editor > header > .next-construction-actions { align-self: flex-end; }
  .next-construction-workflow > header > button { width: 100%; }
  .next-construction-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-construction-kpis > span:nth-child(2n) { border-right: 0; }
  .next-construction-kpis > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-construction-editor, .next-construction-case { margin: 12px; }
  .next-construction-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-construction-summary > span:nth-child(2n) { border-right: 0; }
  .next-construction-summary > span { border-bottom: 1px solid var(--next-line); }
  .next-construction-summary > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .next-construction-panel { padding: 11px; }
  .next-construction-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .next-construction-detail-grid > span, .next-construction-detail-grid > span:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-construction-detail-grid > span:last-child { border-bottom: 0; }
  .next-construction-action { grid-template-columns: minmax(0, 1fr); }
  .next-construction-action > div { grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
  .next-construction-action button { width: 100%; }
  .next-construction-inline { grid-template-columns: minmax(0, 1fr) 32px; }
  .next-construction-inline > :not(button) { grid-column: 1 / -1; }
  .next-construction-inline button { grid-column: 2; grid-row: auto; justify-self: end; }
  .next-construction-checklist article { grid-template-columns: 20px minmax(0, 1fr) 32px; align-items: start; }
  .next-construction-checklist article > select, .next-construction-checklist article > input { grid-column: 2; }
  .next-construction-checklist article > button { grid-column: 3; grid-row: 1; }
  .next-construction-row { grid-template-columns: minmax(0, 1fr) 32px; }
  .next-construction-row > span { grid-column: 1; }
  .next-construction-row > button { grid-column: 2; grid-row: 1; }
  .next-construction-money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-construction-money-grid > span:nth-child(2n) { border-right: 0; }
  .next-construction-money-grid > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-construction-finance-transition { grid-template-columns: minmax(0, 1fr); }
  .next-construction-finance-transition > div { grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
  .next-construction-finance-transition button { width: 100%; }
  .next-construction-finance-register { margin: 11px; }
  .next-construction-register > article.next-land-right-obligation { grid-template-columns: minmax(0, 1fr); }
  .next-land-right-obligation > .next-construction-actions { justify-content: flex-start; }
  [data-property-levy-editor] .next-construction-register > article.next-land-right-obligation > div:first-child { grid-template-columns: minmax(0, 1fr); }
  [data-property-levy-case] .next-construction-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Denkmalrechtliche Genehmigungsakte */
.next-monument-permits { margin-top: 20px; border-top: 1px solid var(--next-line); }
.next-monument-permits > header { align-items: center; gap: 18px; }
.next-monument-permit-kpis { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-monument-permit-kpis > span { min-width: 0; min-height: 72px; padding: 13px 16px; border-right: 1px solid var(--next-line); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-monument-permit-kpis > span:last-child { border-right: 0; }
.next-monument-permit-kpis > span.warning { box-shadow: inset 0 3px #c68118; background: #fffaf0; }
.next-monument-permit-kpis small { color: #70757b; font-size: 10px; font-weight: 700; }
.next-monument-permit-kpis strong { color: #30343a; font-size: 20px; }
.next-monument-permit-editor { margin: 18px 20px; }
.next-monument-permit-summary { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); border-bottom: 1px solid #dfe2e4; background: #f7f8f9; }
.next-monument-permit-summary > span { min-width: 0; min-height: 65px; padding: 11px 13px; border-right: 1px solid #e0e3e5; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-monument-permit-summary > span:last-child { border-right: 0; }
.next-monument-permit-summary small { color: #74797f; font-size: 9px; font-weight: 700; }
.next-monument-permit-summary strong { overflow-wrap: anywhere; color: #353a3f; font-size: 11px; }
.next-monument-permit-summary strong[class],
.next-monument-permit-condition-register article > div:first-child > span,
.next-monument-permit-register article > div:first-child > span { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; }
.next-monument-permit-summary .draft,
.next-monument-permit-condition-register .draft,
.next-monument-permit-register .draft { color: #555c62; background: #e9ecee; }
.next-monument-permit-summary .review,
.next-monument-permit-condition-register .review,
.next-monument-permit-register .review { color: #78500f; background: #fff0c9; }
.next-monument-permit-summary .released,
.next-monument-permit-condition-register .released,
.next-monument-permit-register .released { color: #21613c; background: #dff3e7; }
.next-monument-permit-summary .due,
.next-monument-permit-condition-register .due,
.next-monument-permit-register .due { color: #8c282e; background: #fae3e4; }
.next-monument-permit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.next-monument-permit-form fieldset,
.next-monument-permit-stage { min-width: 0; margin: 0; padding: 14px; border: 1px solid #d8dcdf; border-radius: 6px; }
.next-monument-permit-form fieldset:last-child { grid-column: 1 / -1; }
.next-monument-permit-form legend,
.next-monument-permit-stage legend { padding: 0 7px; color: #42484d; font-size: 12px; font-weight: 800; }
.next-monument-permit-save { padding: 0 16px 16px; display: flex; justify-content: flex-end; }
.next-monument-permit-stage { margin: 0 16px 16px; }
.next-monument-permit-stage > p { margin: 0 0 13px; color: #5e646a; font-size: 11px; line-height: 1.55; }
.next-monument-permit-stage > footer { box-sizing: border-box; margin: 14px -14px -14px; }
.next-monument-permit-callout { margin-bottom: 14px; padding: 11px 12px; border-left: 3px solid #c68118; display: flex; gap: 10px; background: #fff8e9; }
.next-monument-permit-callout svg { flex: 0 0 auto; width: 17px; height: 17px; color: #9b6614; }
.next-monument-permit-callout span { min-width: 0; display: flex; flex-direction: column; gap: 3px; white-space: pre-wrap; }
.next-monument-permit-callout strong { font-size: 11px; }
.next-monument-permit-callout span { font-size: 10px; }
.next-monument-permit-conditions { margin-top: 14px; border: 1px solid #dadddf; border-radius: 6px; overflow: hidden; }
.next-monument-permit-conditions > header { min-height: 54px; padding: 9px 12px; border-bottom: 1px solid #dde0e2; background: #f7f8f9; }
.next-monument-permit-conditions h4 { margin: 2px 0 0; font-size: 13px; }
.next-monument-permit-conditions > article { position: relative; padding: 12px 48px 12px 12px; border-bottom: 1px solid #e3e5e7; }
.next-monument-permit-conditions > article:last-child { border-bottom: 0; }
.next-monument-permit-conditions > article > button { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0; border: 1px solid #d4d7da; border-radius: 4px; display: grid; place-items: center; color: #8c282e; background: #fff; }
.next-monument-permit-conditions > article > button svg { width: 14px; height: 14px; }
.next-monument-permit-condition-register,
.next-monument-permit-journal { margin: 0 16px 16px; border: 1px solid #d8dcdf; border-radius: 6px; overflow: hidden; }
.next-monument-permit-condition-register > header,
.next-monument-permit-journal > header { min-height: 54px; padding: 9px 13px; border-bottom: 1px solid #dfe2e4; background: #f7f8f9; }
.next-monument-permit-condition-register h4,
.next-monument-permit-journal h4 { margin: 2px 0 0; font-size: 13px; }
.next-monument-permit-condition-register > article { min-width: 0; padding: 12px 13px; border-bottom: 1px solid #e2e5e7; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr) max-content; align-items: center; gap: 12px; }
.next-monument-permit-condition-register > article:last-child { border-bottom: 0; }
.next-monument-permit-condition-register article > div:first-child { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.next-monument-permit-condition-register article strong,
.next-monument-permit-condition-register article small { overflow-wrap: anywhere; }
.next-monument-permit-condition-register article strong { font-size: 11px; }
.next-monument-permit-condition-register article small { color: #71767c; font-size: 9px; }
.next-monument-permit-condition-register article > .next-form-grid { padding: 0; }
.next-monument-permit-condition-register article > p { margin: 0; overflow-wrap: anywhere; color: #555b60; font-size: 10px; }
.next-monument-permit-journal > article { padding: 9px 12px; border-bottom: 1px solid #e3e5e7; display: flex; align-items: flex-start; gap: 9px; }
.next-monument-permit-journal > article:last-child { border-bottom: 0; }
.next-monument-permit-journal article > svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: #6b7177; }
.next-monument-permit-journal article > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-monument-permit-journal strong { font-size: 11px; }
.next-monument-permit-journal small,
.next-monument-permit-journal em { color: #747a80; font-size: 9px; font-style: normal; }
.next-monument-permit-journal p { margin: 3px 0; overflow-wrap: anywhere; font-size: 10px; white-space: pre-wrap; }
.next-monument-permit-register { padding: 20px; border-top: 1px solid var(--next-line); }
.next-monument-permit-register > header { min-height: 42px; }
.next-monument-permit-register h3 { margin: 0 0 9px; font-size: 15px; }
.next-monument-permit-register > article { min-width: 0; min-height: 72px; padding: 10px 11px; border-top: 1px solid #e2e5e7; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, .8fr) 34px; align-items: center; gap: 12px; }
.next-monument-permit-register > article:last-of-type { border-bottom: 1px solid #e2e5e7; }
.next-monument-permit-register article > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.next-monument-permit-register article strong { overflow-wrap: anywhere; font-size: 11px; }
.next-monument-permit-register article small { overflow-wrap: anywhere; color: #73797f; font-size: 9px; }
.next-monument-permit-register article > button { width: 34px; height: 34px; padding: 0; border: 1px solid #d2d6d9; border-radius: 5px; display: grid; place-items: center; color: #555c61; background: #fff; }
.next-monument-permit-register article > button svg { width: 16px; height: 16px; }

/* Bauantrags- und Genehmigungsmanagement */
.next-building-permits { margin-top: 28px; }
.next-building-permit-form { grid-template-columns: minmax(0, 1fr); }
.next-building-permit-form fieldset { grid-column: 1 / -1; }
.next-building-permit-table { margin-bottom: 11px; border: 1px solid #dadddf; border-radius: 6px; overflow: hidden; }
.next-building-permit-table-head,
.next-building-permit-table-row { display: grid; grid-template-columns: minmax(190px, 1.45fr) minmax(130px, .8fr) minmax(140px, 1fr) 128px minmax(150px, 1fr) 34px; align-items: center; gap: 8px; }
.next-building-permit-table-head { min-height: 38px; padding: 0 9px; color: #6b7176; background: #f4f5f6; font-size: 9px; font-weight: 800; }
.next-building-permit-table-row { min-height: 58px; padding: 8px 9px; border-top: 1px solid #e2e4e6; }
.next-building-permit-table-row > span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.next-building-permit-table-row > span > label { display: flex; align-items: center; gap: 5px; color: #687077; font-size: 9px; }
.next-building-permit-table-row input,
.next-building-permit-table-row select { box-sizing: border-box; width: 100%; min-width: 0; height: 34px; padding: 6px 8px; border: 1px solid #cfd3d6; border-radius: 4px; color: #343a3f; background: #fff; font: inherit; }
.next-building-permit-table-row > button,
.next-building-participation > button { width: 32px; height: 32px; padding: 0; border: 1px solid #d3d6d9; border-radius: 4px; display: grid; place-items: center; color: #8c282e; background: #fff; }
.next-building-permit-table-row > button svg,
.next-building-participation > button svg { width: 14px; height: 14px; }
.next-building-participation { position: relative; margin-bottom: 10px; padding: 12px 52px 12px 12px; border: 1px solid #dadddf; border-radius: 6px; }
.next-building-participation > .next-form-grid { padding: 0; }
.next-building-participation > button { position: absolute; top: 12px; right: 12px; }
.next-building-permit-register > article { grid-template-columns: minmax(0, 1.25fr) minmax(220px, 1fr) 34px; }

@media (max-width: 1180px) {
  .next-building-permit-table { overflow-x: auto; }
  .next-building-permit-table-head,
  .next-building-permit-table-row { min-width: 920px; }
}

@media (max-width: 1050px) {
  .next-monument-permit-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-monument-permit-summary > span:nth-child(3) { border-right: 0; }
  .next-monument-permit-summary > span:nth-child(-n+3) { border-bottom: 1px solid #e0e3e5; }
  .next-monument-permit-condition-register > article { grid-template-columns: minmax(160px, .7fr) minmax(0, 1.6fr); }
  .next-monument-permit-condition-register article > button { grid-column: 2; justify-self: end; }
}

@media (max-width: 720px) {
  .next-monument-permits > header { align-items: stretch; flex-direction: column; }
  .next-monument-permits > header button { width: 100%; }
  .next-monument-permit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-monument-permit-kpis > span:nth-child(2n) { border-right: 0; }
  .next-monument-permit-kpis > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-monument-permit-editor { margin: 12px; }
  .next-monument-permit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-monument-permit-summary > span:nth-child(3) { border-right: 1px solid #e0e3e5; }
  .next-monument-permit-summary > span:nth-child(2n) { border-right: 0; }
  .next-monument-permit-summary > span { border-bottom: 1px solid #e0e3e5; }
  .next-monument-permit-summary > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .next-monument-permit-form { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .next-monument-permit-form fieldset:last-child { grid-column: 1; }
  .next-monument-permit-stage,
  .next-monument-permit-condition-register,
  .next-monument-permit-journal { margin-left: 12px; margin-right: 12px; }
  .next-monument-permit-stage > footer { align-items: stretch; flex-direction: column; }
  .next-monument-permit-stage > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-monument-permit-stage > footer button,
  .next-monument-permit-condition-register article > button { width: 100%; }
  .next-monument-permit-condition-register > article { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .next-monument-permit-condition-register article > button { grid-column: 1; }
  .next-monument-permit-register { padding: 14px; }
  .next-monument-permit-register > article { grid-template-columns: minmax(0, 1fr) 34px; }
  .next-monument-permit-register article > div:nth-child(2) { grid-column: 1; }
  .next-monument-permit-register article > button { grid-column: 2; grid-row: 1 / span 2; }
  .next-building-permit-table { border-left: 0; border-right: 0; border-radius: 0; }
  .next-building-permit-table-head { display: none; }
  .next-building-permit-table-row { min-width: 0; padding: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; align-items: start; }
  .next-building-permit-table-row > span { grid-column: 1 / -1; }
  .next-building-permit-table-row > input:nth-of-type(1) { grid-column: 1; }
  .next-building-permit-table-row > input:nth-of-type(2) { grid-column: 2; }
  .next-building-permit-table-row > button { grid-column: 3; grid-row: 2; }
  .next-building-permit-register > article { grid-template-columns: minmax(0, 1fr) 34px; }
  .next-building-participation { padding-right: 12px; }
  .next-building-participation > button { position: static; margin-top: 10px; margin-left: auto; }
}

/* Portfolio-wide document and evidence register */
.next-work-kpis.next-document-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-document-portfolio-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) minmax(160px, 205px) minmax(150px, 210px); }
.next-document-categories { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; border-bottom: 1px solid var(--next-line); scrollbar-width: thin; }
.next-document-categories button { display: grid; grid-template-columns: minmax(145px, 1fr) 58px 50px; flex: 0 0 min(335px, 78vw); align-items: center; gap: 8px; min-height: 54px; padding: 8px 10px; border: 1px solid var(--next-line); border-radius: 5px; color: var(--next-ink); background: #fff; text-align: left; cursor: pointer; }
.next-document-categories button:hover, .next-document-categories button.active { border-color: #ba7379; background: #fff7f7; }
.next-document-categories button.critical { border-left: 3px solid #c43139; }
.next-document-categories button.review { border-left: 3px solid #c48a24; }
.next-document-categories button > span { display: grid; min-width: 0; }
.next-document-categories button > span:not(:first-child) { text-align: right; }
.next-document-categories strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-document-categories small { color: var(--next-muted); font-size: 8px; }
.next-quality-band.next-document-portfolio-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-document-portfolio-band > span { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 7px; min-width: 0; padding: 9px 11px; border-right: 1px solid var(--next-line); }
.next-document-portfolio-band > span:last-child { border-right: 0; }
.next-document-portfolio-band > span svg { grid-row: 1 / 3; width: 17px; height: 17px; color: #71777c; }
.next-document-portfolio-band > span strong, .next-document-portfolio-band > span small { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-document-portfolio-band > span strong { font-size: 11px; }
.next-document-portfolio-band > span small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-document-portfolio-list { min-width: 0; }
.next-document-portfolio-list > header, .next-document-portfolio-list > article { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(180px, 1fr) minmax(150px, .85fr) minmax(130px, .72fr) minmax(120px, .65fr) 126px; align-items: center; gap: 12px; min-width: 0; }
.next-document-portfolio-list > header { padding: 8px 12px; border-bottom: 1px solid var(--next-line); color: var(--next-muted); background: #f7f8f9; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.next-document-portfolio-list > article { position: relative; min-height: 63px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-document-portfolio-list > article::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #a8adb1; content: ""; }
.next-document-portfolio-list > article:hover, .next-document-portfolio-list > article.selected { background: #fffafa; }
.next-document-portfolio-list > article.open::before { background: #8a8f94; }
.next-document-portfolio-list > article.released::before { background: #438567; }
.next-document-portfolio-list > article.review::before { background: #c48a24; }
.next-document-portfolio-list > article.critical::before { background: #c43139; }
.next-document-portfolio-list article > span { display: grid; min-width: 0; }
.next-document-portfolio-list article strong, .next-document-portfolio-list article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-document-portfolio-list article strong { font-size: 10px; }
.next-document-portfolio-list article small { color: var(--next-muted); font-size: 8px; }
.next-document-portfolio-open { display: grid; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.next-document-portfolio-open:hover strong { color: var(--next-red); }
.next-document-portfolio-list .released { color: #2d7555; }
.next-document-portfolio-list .rejected, .next-document-portfolio-list .critical { color: #ae2931; }
.next-document-portfolio-list .review { color: #946718; }
.next-document-portfolio-list .archived { color: #676b70; }
.next-document-portfolio-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 3px; }
.next-document-portfolio-actions > a, .next-document-portfolio-actions > button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid transparent; border-radius: 3px; color: #676b70; background: transparent; cursor: pointer; }
.next-document-portfolio-actions > a:hover, .next-document-portfolio-actions > button:hover { border-color: var(--next-line); color: var(--next-red); background: #fff; }
.next-document-portfolio-actions svg { width: 13px; height: 13px; }
.next-document-portfolio-actions > i { width: 14px; height: 14px; color: #676b70; }
.next-document-portfolio-actions > i.warning { color: #a87115; }
.next-document-portfolio-actions > i.critical { color: #bd2932; }
.next-document-portfolio-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; color: var(--next-muted); background: #f7f8f9; font-size: 8px; }
.next-document-portfolio-foot span { display: flex; align-items: center; gap: 5px; }
.next-document-portfolio-foot svg { width: 12px; height: 12px; }
.next-document-portfolio-selection { margin-top: 20px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-document-portfolio-selection > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--next-line); }
.next-document-portfolio-selection > header > div:first-child { min-width: 0; }
.next-document-portfolio-selection > header > div:last-child { display: flex; align-items: center; gap: 6px; }
.next-document-portfolio-selection > header span { color: var(--next-red); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.next-document-portfolio-selection > header h2 { margin: 2px 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.next-document-portfolio-selection > header p { margin: 0; overflow: hidden; color: var(--next-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-document-portfolio-selection > .next-document-control { border: 0; border-radius: 0; }

@media (max-width: 1180px) {
  .next-document-portfolio-toolbar { grid-template-columns: minmax(240px, 1fr) 1fr 1fr; }
  .next-document-portfolio-toolbar label { grid-column: 1 / -1; }
  .next-document-portfolio-list > header, .next-document-portfolio-list > article { grid-template-columns: minmax(210px, 1.2fr) minmax(170px, 1fr) minmax(140px, .8fr) minmax(125px, .7fr) 118px; }
  .next-document-portfolio-list > header > span:nth-child(5), .next-document-portfolio-list > article > span:nth-child(5) { display: none; }
}

@media (max-width: 860px) {
  .next-work-kpis.next-document-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-document-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-quality-band.next-document-portfolio-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-document-portfolio-list > header { display: none; }
  .next-document-portfolio-list > article { grid-template-columns: minmax(0, 1fr) 104px; gap: 8px 12px; padding: 11px 12px 11px 15px; }
  .next-document-portfolio-list > article > span { display: grid !important; grid-column: 1; grid-template-columns: minmax(92px, 32%) minmax(0, 1fr); gap: 8px; }
  .next-document-portfolio-list > article > span::before { color: var(--next-muted); font-size: 8px; font-weight: 700; content: attr(data-label); }
  .next-document-portfolio-list > article > span > * { grid-column: 2; }
  .next-document-portfolio-list > article > span.next-document-portfolio-actions { grid-column: 2; grid-row: 1 / span 5; align-self: stretch; align-content: center; justify-content: flex-end; }
  .next-document-portfolio-list > article > span.next-document-portfolio-actions::before { display: none; }
}

@media (max-width: 560px) {
  .next-work-kpis.next-document-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-document-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-document-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-document-portfolio-toolbar label { grid-column: auto; }
  .next-quality-band.next-document-portfolio-band { grid-template-columns: 1fr; }
  .next-document-portfolio-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-document-portfolio-band > span:last-child { border-bottom: 0; }
  .next-document-categories button { grid-template-columns: minmax(132px, 1fr) 48px 42px; }
  .next-document-portfolio-list > article { grid-template-columns: minmax(0, 1fr); }
  .next-document-portfolio-list > article > span.next-document-portfolio-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; padding-top: 4px; }
  .next-document-portfolio-foot, .next-document-portfolio-selection > header { align-items: stretch; flex-direction: column; }
  .next-document-portfolio-selection > header > div:last-child { justify-content: space-between; }
}

/* Portfolio-wide church and monument conservation control. */
.next-work-kpis.next-protection-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-protection-portfolio-toolbar { grid-template-columns: minmax(300px, 1.6fr) repeat(4, minmax(140px, .68fr)); }
.next-protection-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-protection-object-register { border-bottom: 1px solid var(--next-line); }
.next-protection-object-register > header { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 12px; color: var(--next-muted); background: #eef1f2; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-protection-object-register > header strong { color: var(--next-ink); font-size: 9px; }
.next-protection-object-register > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-protection-object-register a { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(145px, .86fr) minmax(155px, .9fr) 84px; align-items: center; gap: 9px; min-width: 0; min-height: 61px; padding: 8px 11px; color: var(--next-ink); border-right: 1px solid #e5e8e9; border-bottom: 1px solid #e5e8e9; text-decoration: none; }
.next-protection-object-register a:nth-child(2n) { border-right: 0; }
.next-protection-object-register a:hover { background: #f7f8f8; }
.next-protection-object-register a.review { box-shadow: inset 3px 0 #d48316; }
.next-protection-object-register a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-protection-object-register a > span { display: grid; min-width: 0; gap: 3px; }
.next-protection-object-register strong, .next-protection-object-register small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-protection-object-register strong { font-size: 9px; }
.next-protection-object-register small { color: var(--next-muted); font-size: 7px; }
.next-protection-object-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #70787d; }
.next-protection-object-flags svg { width: 13px; height: 13px; }
.next-protection-portfolio-list { min-width: 0; }
.next-protection-portfolio-list > header, .next-protection-portfolio-list > a { display: grid; grid-template-columns: minmax(220px, 1.12fr) minmax(205px, 1.02fr) minmax(180px, .82fr) minmax(175px, .8fr) minmax(190px, .88fr) 126px; align-items: center; gap: 10px; min-width: 0; }
.next-protection-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-protection-portfolio-list > a { position: relative; min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-protection-portfolio-list > a:hover { background: #f7f8f8; }
.next-protection-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-protection-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-protection-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-protection-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-protection-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-protection-portfolio-list strong, .next-protection-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-protection-portfolio-list strong { font-size: 9px; }
.next-protection-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-protection-portfolio-list strong.released, .next-protection-portfolio-list small.released { color: var(--next-green); }
.next-protection-portfolio-list strong.review, .next-protection-portfolio-list small.review { color: var(--next-blue); }
.next-protection-portfolio-list strong.overdue, .next-protection-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-protection-portfolio-list strong.draft, .next-protection-portfolio-list small.draft { color: var(--next-muted); }
.next-protection-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #70787d; }
.next-protection-portfolio-flags svg { width: 13px; height: 13px; }
.next-protection-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-protection-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-protection-portfolio-foot svg { width: 12px; height: 12px; }

@media (max-width: 1180px) {
  .next-protection-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-protection-portfolio-toolbar label { grid-column: 1 / -1; }
  .next-protection-object-register > div { grid-template-columns: 1fr; }
  .next-protection-object-register a, .next-protection-object-register a:nth-child(2n) { border-right: 0; }
  .next-protection-portfolio-list > header { display: none; }
  .next-protection-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-protection-portfolio-list > a > span { padding: 2px; }
  .next-protection-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-protection-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
}

@media (max-width: 760px) {
  .next-work-kpis.next-protection-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-protection-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-protection-object-register a { grid-template-columns: minmax(0, 1fr) 50px; }
  .next-protection-object-register a > span { grid-column: 1; }
  .next-protection-object-flags { grid-column: 2 !important; grid-row: 1 / 4 !important; }
}

@media (max-width: 520px) {
  .next-work-kpis.next-protection-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-protection-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-protection-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-protection-portfolio-toolbar label { grid-column: auto; }
  .next-protection-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-protection-portfolio-list > a > span { grid-column: 1; }
  .next-protection-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-protection-portfolio-foot { display: grid; }
}

/* Multi-year preservation and investment program. */
.next-work-kpis.next-preservation-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-preservation-toolbar { grid-template-columns: minmax(310px, 1.6fr) repeat(4, minmax(145px, .68fr)); }
.next-preservation-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f4f5f6; }
.next-preservation-years button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 12px; min-height: 68px; padding: 9px 11px; color: var(--next-ink); border: 0; border-right: 1px solid #dde1e3; border-radius: 0; background: transparent; text-align: left; cursor: pointer; }
.next-preservation-years button:hover, .next-preservation-years button.active { background: #fff; }
.next-preservation-years button.active { box-shadow: inset 0 -3px var(--next-blue); }
.next-preservation-years button.gap:not(.active) { box-shadow: inset 0 -2px #d48316; }
.next-preservation-years button span { display: grid; min-width: 0; gap: 3px; }
.next-preservation-years button span:nth-child(2) { text-align: right; }
.next-preservation-years button strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-preservation-years button small { color: var(--next-muted); font-size: 7px; }
.next-preservation-years button em { grid-column: 1 / -1; color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-preservation-years button.gap em { color: #9b5a08; }
.next-preservation-band { margin: 0; border-right: 0; border-left: 0; }
.next-preservation-list { min-width: 0; }
.next-preservation-list > header, .next-preservation-list > article { display: grid; grid-template-columns: minmax(215px, 1.08fr) minmax(195px, .94fr) minmax(155px, .72fr) minmax(180px, .82fr) minmax(175px, .8fr) 112px; align-items: center; gap: 10px; min-width: 0; }
.next-preservation-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-preservation-list > article { position: relative; min-height: 70px; padding: 9px 12px; border-bottom: 1px solid #e9ecee; }
.next-preservation-list > article:hover { background: #f7f8f8; }
.next-preservation-list > article.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-preservation-list > article.review { box-shadow: inset 3px 0 #d48316; }
.next-preservation-list > article.released { box-shadow: inset 3px 0 var(--next-green); }
.next-preservation-list > article > span { display: grid; min-width: 0; gap: 3px; }
.next-preservation-list > article > span > a { display: grid; min-width: 0; gap: 3px; color: inherit; text-decoration: none; }
.next-preservation-list strong, .next-preservation-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-preservation-list strong { font-size: 9px; }
.next-preservation-list small { color: var(--next-muted); font-size: 7px; }
.next-preservation-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #70787d; }
.next-preservation-actions > a { display: grid; place-items: center; width: 27px; height: 27px; color: #4f585d; border: 1px solid #d8dddf; background: #fff; }
.next-preservation-actions > a:hover { color: var(--next-blue); border-color: var(--next-blue); }
.next-preservation-actions svg { width: 13px; height: 13px; }

@media (max-width: 1180px) {
  .next-preservation-toolbar { grid-template-columns: 1fr 1fr; }
  .next-preservation-toolbar label { grid-column: 1 / -1; }
  .next-preservation-list > header { display: none; }
  .next-preservation-list > article { grid-template-columns: repeat(2, minmax(0, 1fr)) 108px; padding: 10px; }
  .next-preservation-list > article > span:not(.next-preservation-actions)::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-preservation-actions { grid-column: 3; grid-row: 1 / 3; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .next-work-kpis.next-preservation-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-preservation-kpis > div:last-child { grid-column: 1 / -1; }
  .next-preservation-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .next-work-kpis.next-preservation-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-preservation-kpis > div:last-child { grid-column: auto; }
  .next-preservation-toolbar, .next-preservation-years { grid-template-columns: 1fr; }
  .next-preservation-toolbar label { grid-column: auto; }
  .next-preservation-list > article { grid-template-columns: minmax(0, 1fr) 76px; }
  .next-preservation-list > article > span:not(.next-preservation-actions) { grid-column: 1; }
  .next-preservation-actions { grid-column: 2; grid-row: 1 / 6; align-content: center; }
}

.next-work-kpis.next-compliance-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-compliance-toolbar { grid-template-columns: minmax(330px, 1.7fr) repeat(3, minmax(165px, .72fr)); }
.next-compliance-domains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f4f5f6; }
.next-compliance-domains button { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 64px; padding: 9px 12px; color: var(--next-ink); border: 0; border-right: 1px solid #dde1e3; border-radius: 0; background: transparent; text-align: left; cursor: pointer; }
.next-compliance-domains button:last-child { border-right: 0; }
.next-compliance-domains button:hover, .next-compliance-domains button.active { background: #fff; }
.next-compliance-domains button.active { box-shadow: inset 0 -3px var(--next-blue); }
.next-compliance-domains button.critical:not(.active) { box-shadow: inset 0 -2px var(--next-red); }
.next-compliance-domains button.review:not(.active) { box-shadow: inset 0 -2px #d48316; }
.next-compliance-domains button span { display: grid; min-width: 0; gap: 3px; }
.next-compliance-domains button span:not(:first-child) { text-align: right; }
.next-compliance-domains button strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-compliance-domains button small { color: var(--next-muted); font-size: 7px; }
.next-compliance-band { margin: 0; border-right: 0; border-left: 0; }
.next-compliance-list { min-width: 0; }
.next-compliance-list > header, .next-compliance-list > article { display: grid; grid-template-columns: minmax(220px, 1.05fr) minmax(190px, .88fr) minmax(205px, .95fr) minmax(155px, .7fr) minmax(155px, .7fr) 132px; align-items: center; gap: 10px; min-width: 0; }
.next-compliance-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-compliance-list > article { position: relative; min-height: 70px; padding: 9px 12px; border-bottom: 1px solid #e9ecee; }
.next-compliance-list > article:hover { background: #f7f8f8; }
.next-compliance-list > article.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-compliance-list > article.review { box-shadow: inset 3px 0 #d48316; }
.next-compliance-list > article.due { box-shadow: inset 3px 0 var(--next-blue); }
.next-compliance-list > article.released { box-shadow: inset 3px 0 var(--next-green); }
.next-compliance-list > article > span { display: grid; min-width: 0; gap: 3px; }
.next-compliance-list > article > span > a { display: grid; min-width: 0; gap: 3px; color: inherit; text-decoration: none; }
.next-compliance-list strong, .next-compliance-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-compliance-list strong { font-size: 9px; }
.next-compliance-list small { color: var(--next-muted); font-size: 7px; }
.next-compliance-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #70787d; }
.next-compliance-actions > a { display: grid; place-items: center; width: 27px; height: 27px; color: #4f585d; border: 1px solid #d8dddf; background: #fff; }
.next-compliance-actions > a:hover { color: var(--next-blue); border-color: var(--next-blue); }
.next-compliance-actions svg { width: 13px; height: 13px; }
.next-compliance-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 7px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-compliance-foot span { display: flex; align-items: center; gap: 6px; }
.next-compliance-foot svg { width: 12px; height: 12px; }

@media (max-width: 1180px) {
  .next-compliance-toolbar { grid-template-columns: 1fr 1fr; }
  .next-compliance-toolbar label { grid-column: 1 / -1; }
  .next-compliance-domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-compliance-list > header { display: none; }
  .next-compliance-list > article { grid-template-columns: repeat(2, minmax(0, 1fr)) 124px; padding: 10px; }
  .next-compliance-list > article > span:not(.next-compliance-actions)::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-compliance-actions { grid-column: 3; grid-row: 1 / 3; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .next-work-kpis.next-compliance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-compliance-kpis > div:last-child { grid-column: 1 / -1; }
  .next-compliance-domains { grid-template-columns: 1fr; }
  .next-compliance-domains button { border-right: 0; border-bottom: 1px solid #dde1e3; }
  .next-compliance-foot { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .next-work-kpis.next-compliance-kpis, .next-compliance-toolbar { grid-template-columns: 1fr; }
  .next-work-kpis.next-compliance-kpis > div:last-child, .next-compliance-toolbar label { grid-column: auto; }
  .next-compliance-list > article { grid-template-columns: minmax(0, 1fr) 76px; }
  .next-compliance-list > article > span:not(.next-compliance-actions) { grid-column: 1; }
  .next-compliance-actions { grid-column: 2; grid-row: 1 / 6; align-content: center; }
}

@media (max-width: 480px) {
  .next-readiness-header .next-system-actions { flex-wrap: wrap; }
  .next-readiness-profile { width: calc(100% - 42px); min-width: 0; }
  .next-readiness-header .next-secondary-command { display: grid; }
  .next-readiness-context, .next-readiness-facts { grid-template-columns: 1fr; }
  .next-readiness-current-step { grid-template-columns: 31px minmax(0, 1fr); padding: 12px; }
  .next-readiness-step-number { width: 31px; height: 31px; }
  .next-readiness-current-step > svg { grid-column: 2; }
  .next-readiness-roadmap li a { grid-template-columns: 23px minmax(0, 1fr); }
  .next-readiness-roadmap li em { grid-column: 2; justify-self: start; }
  .next-readiness-roadmap > footer { align-items: flex-start; flex-direction: column; }
  .next-readiness-editor .next-form-grid, .next-readiness-scope { grid-template-columns: 1fr; }
  .next-readiness-module-grid { grid-template-columns: 1fr; max-height: 320px; }
  .next-readiness-module-grid label, .next-readiness-module-grid label:nth-child(2n), .next-readiness-module-grid label:nth-child(3n) { border-right: 0; }
  .next-readiness-context > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-readiness-context > div:last-child { border-bottom: 0; }
  .next-readiness-category > header { grid-template-columns: 36px minmax(0, 1fr); }
  .next-readiness-category-counts { grid-column: 2; }
  .next-readiness-checks article { grid-template-columns: 31px minmax(0, 1fr); }
  .next-readiness-check-actions { grid-column: 2; }
  .next-readiness-check-copy > div { display: grid; }
  .next-readiness-action-overview > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-readiness-action-overview > div > span:nth-child(2) { border-right: 0; }
  .next-readiness-action-overview > div > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-readiness-action-editor { grid-column: 1 / -1; }
  .next-readiness-action-editor .next-form-grid { grid-template-columns: 1fr; }
  .next-readiness-action-editor > footer { align-items: flex-start; flex-direction: column; }
  .next-readiness-action-editor > footer > div { width: 100%; justify-content: flex-end; }
  .next-backup-validation-command > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .next-backup-validation-result > header { grid-template-columns: 28px minmax(0, 1fr); }
  .next-backup-validation-result > header em { grid-column: 2; }
  .next-backup-validation-result dl { grid-template-columns: 1fr; }
  .next-backup-validation-result dl > div { border-right: 0; }
  .next-readiness-module-matrix > div { grid-template-columns: 1fr; }
  .next-readiness-module-matrix a, .next-readiness-module-matrix a:nth-child(2n), .next-readiness-module-matrix a:nth-child(3n) { border-right: 0; }
}

/* Langzeitarchiv */
.next-archive-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-archive-header > div { min-width: 0; }
.next-archive-header h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-archive-header p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-archive-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-archive-kpis > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 0 18px; border-right: 1px solid var(--next-line); }
.next-archive-kpis > div:first-child { padding-left: 0; }
.next-archive-kpis > div:last-child { border-right: 0; }
.next-archive-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-archive-kpis small { color: var(--next-muted); font-size: 9px; }
.next-archive-kpis strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.next-archive-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr); margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-archive-config { min-width: 0; border-right: 1px solid var(--next-line); }
.next-archive-config > header, .next-archive-create > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 12px 15px; border-bottom: 1px solid var(--next-line); }
.next-archive-config > header > div, .next-archive-create > header > div { display: grid; min-width: 0; }
.next-archive-config > header span, .next-archive-create > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-archive-config h2, .next-archive-create h2 { overflow: hidden; margin: 2px 0 0; font-size: 14px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-archive-config > header em { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-archive-config > header em svg { width: 12px; height: 12px; }
.next-archive-config > header em.ready { color: #315f43; background: #e9f2ed; }
.next-archive-config > header em.warning { color: #755018; background: #f8efe1; }
.next-archive-config dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.next-archive-config dl > div { min-width: 0; min-height: 58px; padding: 10px 13px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-archive-config dl > div:nth-child(2n) { border-right: 0; }
.next-archive-config dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-archive-config dd { overflow: hidden; margin: 4px 0 0; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-archive-config > footer { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; padding: 11px 13px; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-archive-config > footer svg { width: 14px; height: 14px; }
.next-archive-create { min-width: 0; }
.next-archive-create .next-form-grid { grid-template-columns: 1fr 1fr; padding: 14px 15px; }
.next-archive-create > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 9px 15px; border-top: 1px solid var(--next-line); background: #f8f9fa; }
.next-archive-create > footer > span { max-width: 380px; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-archive-create > footer > div { display: flex; gap: 7px; flex: 0 0 auto; }
.next-archive-create .next-command { min-height: 32px; border: 0; font-size: 9px; cursor: pointer; }
.next-archive-create button:disabled { opacity: .5; cursor: not-allowed; }
.next-archive-acceptance { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-archive-acceptance > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding: 13px 16px; border-bottom: 1px solid var(--next-line); }
.next-archive-acceptance > header > div { display: grid; min-width: 0; }
.next-archive-acceptance > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-archive-acceptance > header h2 { margin: 3px 0 0; font-size: 16px; letter-spacing: 0; }
.next-archive-acceptance > header p { margin: 3px 0 0; color: var(--next-muted); font-size: 9px; }
.next-archive-acceptance > header em { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-archive-acceptance > header em svg { width: 13px; height: 13px; }
.next-archive-acceptance > header em.ready { color: #315f43; background: #e9f2ed; }
.next-archive-acceptance > header em.review { color: #496070; background: #eaf0f6; }
.next-archive-acceptance > header em.warning { color: #755018; background: #f8efe1; }
.next-archive-acceptance-body { display: grid; grid-template-columns: minmax(230px, .62fr) minmax(0, 2.38fr); }
.next-archive-acceptance-body > aside { min-width: 0; padding: 15px; border-right: 1px solid var(--next-line); background: #f8f9fa; }
.next-archive-acceptance-body > aside h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0; }
.next-archive-acceptance-body > aside dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; overflow: hidden; }
.next-archive-acceptance-body > aside dl > div { min-width: 0; padding: 8px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-archive-acceptance-body > aside dl > div:nth-child(2n) { border-right: 0; }
.next-archive-acceptance-body > aside dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.next-archive-acceptance-body > aside dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-archive-acceptance-body > aside dd { overflow: hidden; margin: 3px 0 0; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.next-archive-acceptance-body > aside ul { display: grid; gap: 6px; max-height: 250px; margin: 12px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.next-archive-acceptance-body > aside li, .next-archive-acceptance-ready { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; color: #755018; font-size: 8px; line-height: 1.4; }
.next-archive-acceptance-body > aside li svg, .next-archive-acceptance-ready svg { width: 12px; height: 12px; margin-top: 1px; }
.next-archive-acceptance-ready { margin-top: 12px; color: #315f43; }
.next-archive-acceptance-restricted > div { display: flex; align-items: center; gap: 12px; padding: 18px 22px; color: #52616b; font-size: 10px; line-height: 1.5; }
.next-archive-acceptance-restricted > div > svg { width: 18px; height: 18px; flex: 0 0 auto; color: #9a6a00; }
.next-archive-acceptance-editor { min-width: 0; }
.next-archive-acceptance-editor > .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px; }
.next-archive-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 12px 15px; border: 0; border-top: 1px solid var(--next-line); }
.next-archive-controls legend { float: left; width: 100%; margin: 0 0 7px; color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-archive-controls label, .next-check-line { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 31px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 8px; }
.next-archive-controls input, .next-check-line input { accent-color: var(--next-red); }
.next-archive-decision { margin: 12px 15px 0; }
.next-archive-acceptance-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 62px; padding: 10px 15px; border-top: 1px solid var(--next-line); background: #f8f9fa; }
.next-archive-acceptance-editor > footer > span { max-width: 480px; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-archive-acceptance-editor > footer > div { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.next-archive-acceptance-editor > footer button { min-height: 32px; font-size: 9px; }
.next-archive-register { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-archive-table-scroll { max-width: 100%; overflow-x: auto; }
.next-archive-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 9px; }
.next-archive-table th { height: 34px; padding: 0 11px; color: #666b71; border-bottom: 1px solid var(--next-line); background: #f4f5f6; text-align: left; white-space: nowrap; }
.next-archive-table td { max-width: 280px; padding: 9px 11px; border-bottom: 1px solid #eceef0; vertical-align: top; }
.next-archive-table tbody tr:last-child td { border-bottom: 0; }
.next-archive-table td > strong, .next-archive-table td > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-archive-table td > strong { font-size: 9px; }
.next-archive-table td > small { margin-top: 4px; color: var(--next-muted); font-size: 7px; }
.next-archive-table td > small.error { max-width: 210px; color: var(--next-red-dark); }
.next-archive-table td > em { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-archive-table td > em svg { width: 11px; height: 11px; }
.next-archive-table em.delivered { color: #315f43; background: #e9f2ed; }
.next-archive-table em.failed { color: #8e242b; background: #fae9eb; }
.next-archive-table em.retry { color: #755018; background: #f8efe1; }
.next-archive-table em.processing { color: #496070; background: #eaf0f6; }
.next-archive-table em.pending { color: #666b71; background: #eef0f2; }
.next-archive-action { width: 44px; text-align: right; }
.next-archive-action button { display: inline-grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #555a60; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-archive-action button:hover { color: var(--next-red-dark); border-color: #cfadb0; }
.next-archive-action button svg { width: 13px; height: 13px; }

@media (max-width: 1120px) {
  .next-archive-layout { grid-template-columns: 1fr; }
  .next-archive-config { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-archive-acceptance-body { grid-template-columns: 1fr; }
  .next-archive-acceptance-body > aside { border-right: 0; border-bottom: 1px solid var(--next-line); }
}

@media (max-width: 760px) {
  .next-system-nav { display: contents; }
  .next-archive-header { align-items: flex-start; }
  .next-archive-header h1 { font-size: 23px; }
  .next-archive-header .next-secondary-command { width: 34px; min-width: 34px; padding: 0; }
  .next-archive-header .next-secondary-command span { display: none; }
  .next-archive-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-archive-kpis > div { min-height: 58px; padding: 0 10px; }
  .next-archive-kpis > div:nth-child(2) { border-right: 0; }
  .next-archive-kpis > div:nth-child(-n+4) { border-bottom: 1px solid var(--next-line); }
  .next-archive-kpis > div:nth-child(4) { border-right: 0; }
  .next-archive-kpis > div:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .next-archive-create > footer { align-items: stretch; flex-direction: column; }
  .next-archive-create > footer > span { max-width: none; }
  .next-archive-create > footer > div { justify-content: flex-end; }
  .next-archive-acceptance-editor > footer { align-items: stretch; flex-direction: column; }
  .next-archive-acceptance-editor > footer > span { max-width: none; }
}

@media (max-width: 460px) {
  .next-archive-kpis { grid-template-columns: 1fr; }
  .next-archive-kpis > div { padding: 0; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-archive-kpis > div:last-child { border-bottom: 0; }
  .next-archive-config dl { grid-template-columns: 1fr; }
  .next-archive-config dl > div { border-right: 0; }
  .next-archive-create .next-form-grid { grid-template-columns: 1fr; }
  .next-archive-create > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .next-archive-create > footer .next-secondary-command, .next-archive-create > footer .next-command { width: 100%; }
  .next-archive-acceptance > header { align-items: flex-start; }
  .next-archive-acceptance-body > aside dl, .next-archive-acceptance-editor > .next-form-grid, .next-archive-controls { grid-template-columns: 1fr; }
  .next-archive-acceptance-body > aside dl > div { border-right: 0; }
  .next-archive-acceptance-body > aside dl > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-archive-acceptance-body > aside dl > div:last-child { border-bottom: 0; }
  .next-archive-acceptance-editor > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-archive-acceptance-editor > footer button { width: 100%; }
}

/* Benachrichtigungszustellung */
.next-notification-admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-notification-admin-header > div { min-width: 0; }
.next-notification-admin-header > div:last-child { display: flex; gap: 7px; flex: 0 0 auto; }
.next-notification-admin-header h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-notification-admin-header p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-notification-admin-header .next-command { min-height: 32px; border: 0; font-size: 9px; cursor: pointer; }
.next-notification-admin-header button:disabled { opacity: .5; cursor: not-allowed; }
.next-notification-admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-notification-admin-kpis > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 0 18px; border-right: 1px solid var(--next-line); }
.next-notification-admin-kpis > div:first-child { padding-left: 0; }
.next-notification-admin-kpis > div:last-child { border-right: 0; }
.next-notification-admin-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-notification-admin-kpis small { color: var(--next-muted); font-size: 9px; }
.next-notification-admin-kpis strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-notification-channels article { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-width: 0; min-height: 86px; padding: 13px 15px; border-right: 1px solid var(--next-line); }
.next-notification-channels article:last-child { border-right: 0; }
.next-notification-channels article > div { display: grid; min-width: 0; }
.next-notification-channels article small { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-notification-channels article h2 { margin: 2px 0 3px; font-size: 14px; letter-spacing: 0; }
.next-notification-channels article p { overflow: hidden; margin: 0; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-channels article > em { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-notification-channels article > em svg { width: 12px; height: 12px; }
.next-notification-channels article.ready > em { color: #315f43; background: #e9f2ed; }
.next-notification-channels article.warning > em { color: #755018; background: #f8efe1; }
.next-notification-acceptance { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-notification-acceptance > header { min-height: 72px; padding: 12px 15px; }
.next-notification-acceptance > header p { max-width: 720px; margin: 3px 0 0; color: var(--next-muted); font-size: 10px; }
.next-notification-channel-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--next-line); border-radius: 5px; background: #f4f6f7; }
.next-notification-channel-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 100px; min-height: 30px; padding: 0 9px; color: var(--next-muted); border: 0; border-radius: 3px; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.next-notification-channel-switch button.active { color: var(--next-ink); background: #fff; box-shadow: 0 1px 3px rgb(29 43 52 / 12%); }
.next-notification-channel-switch svg { width: 14px; height: 14px; }
.next-notification-acceptance-summary { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f8f9fa; }
.next-notification-acceptance-summary > div { display: grid; gap: 3px; min-width: 0; padding: 12px 15px; border-right: 1px solid var(--next-line); }
.next-notification-acceptance-summary > div:last-child { border-right: 0; }
.next-notification-acceptance-summary small { color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-notification-acceptance-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-acceptance-summary span { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-acceptance-summary strong.ready { color: #24613c; }
.next-notification-acceptance-summary strong.rejected { color: #a42a31; }
.next-notification-acceptance-summary strong.submitted { color: #355f8d; }
.next-notification-acceptance-summary strong.open { color: #7c591a; }
.next-notification-acceptance-issues { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin: 12px 15px 0; padding: 9px 11px; color: #755018; border: 1px solid #ead4ac; border-radius: 4px; background: #fffaf0; }
.next-notification-acceptance-issues > svg { width: 16px; height: 16px; }
.next-notification-acceptance-issues > div { display: grid; gap: 3px; }
.next-notification-acceptance-issues strong { font-size: 9px; }
.next-notification-acceptance-issues span { font-size: 8px; }
.next-notification-acceptance-workflow { display: grid; grid-template-columns: .85fr 1.3fr 1fr; gap: 0; margin-top: 12px; border-top: 1px solid var(--next-line); }
.next-notification-acceptance-workflow fieldset { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; padding: 15px; border: 0; border-right: 1px solid var(--next-line); }
.next-notification-acceptance-workflow fieldset:last-child { border-right: 0; }
.next-notification-acceptance-workflow legend { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; padding: 0; color: var(--next-ink); font-size: 11px; font-weight: 800; }
.next-notification-acceptance-workflow legend span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #fff; border-radius: 50%; background: var(--next-red); font-size: 9px; }
.next-notification-acceptance-workflow label { display: grid; gap: 4px; color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-notification-acceptance-workflow input, .next-notification-acceptance-workflow textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px 9px; color: var(--next-ink); border: 1px solid var(--next-line); border-radius: 4px; outline: 0; background: #fff; font: inherit; font-size: 9px; font-weight: 500; resize: vertical; }
.next-notification-acceptance-workflow input { min-height: 32px; }
.next-notification-acceptance-workflow input:focus, .next-notification-acceptance-workflow textarea:focus { border-color: #b9686e; box-shadow: 0 0 0 2px rgb(190 31 43 / 8%); }
.next-notification-acceptance-workflow input[readonly] { color: var(--next-muted); background: #f7f8f9; }
.next-notification-acceptance-workflow fieldset > small { margin-top: auto; color: var(--next-muted); font-size: 8px; line-height: 1.5; }
.next-notification-acceptance-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.next-notification-acceptance-actions button { flex: 1 1 auto; }
.next-notification-register { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-notification-register > header { min-height: 66px; padding: 10px 13px; }
.next-notification-register-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.next-notification-register-actions > label { display: grid; grid-template-columns: 15px minmax(120px, 210px); align-items: center; gap: 5px; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-notification-register-actions > label svg { width: 14px; height: 14px; color: var(--next-muted); }
.next-notification-register-actions input, .next-notification-register-actions select { min-width: 0; height: 32px; color: var(--next-ink); border: 1px solid var(--next-line); border-radius: 4px; outline: 0; background: #fff; font-size: 9px; }
.next-notification-register-actions input { height: 28px; padding: 0; border: 0; }
.next-notification-register-actions select { padding: 0 8px; }
.next-notification-register-actions .next-secondary-command { white-space: nowrap; }
.next-notification-table-scroll { max-width: 100%; overflow-x: auto; }
.next-notification-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 9px; }
.next-notification-table th { height: 34px; padding: 0 11px; color: #666b71; border-bottom: 1px solid var(--next-line); background: #f4f5f6; text-align: left; white-space: nowrap; }
.next-notification-table td { max-width: 270px; padding: 9px 11px; border-bottom: 1px solid #eceef0; vertical-align: top; }
.next-notification-table tbody tr:last-child td { border-bottom: 0; }
.next-notification-table td > strong, .next-notification-table td > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-table td > strong { font-size: 9px; }
.next-notification-table td > strong svg { width: 11px; height: 11px; margin-right: 5px; vertical-align: -2px; }
.next-notification-table td > small { margin-top: 4px; color: var(--next-muted); font-size: 7px; }
.next-notification-table td > small.error { max-width: 220px; color: var(--next-red-dark); }
.next-notification-table td > em { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-notification-table td > em svg { width: 11px; height: 11px; }
.next-notification-table em.delivered { color: #315f43; background: #e9f2ed; }
.next-notification-table em.failed { color: #8e242b; background: #fae9eb; }
.next-notification-table em.retry { color: #755018; background: #f8efe1; }
.next-notification-table em.processing { color: #496070; background: #eaf0f6; }
.next-notification-table em.pending, .next-notification-table em.suppressed { color: #666b71; background: #eef0f2; }
.next-notification-action { width: 44px; text-align: right; }
.next-notification-action button { display: inline-grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #555a60; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-notification-action button:hover { color: var(--next-red-dark); border-color: #cfadb0; }
.next-notification-action button svg { width: 13px; height: 13px; }
.next-notification-register > footer { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 39px; padding: 7px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #f8f9fa; font-size: 8px; }
.next-notification-register > footer svg { width: 14px; height: 14px; }
.next-notification-register > footer small { white-space: nowrap; }

@media (max-width: 1120px) {
  .next-notification-register > header { align-items: flex-start; flex-direction: column; }
  .next-notification-register-actions { width: 100%; justify-content: flex-start; }
  .next-notification-register-actions > label { flex: 1; }
}

@media (max-width: 760px) {
  .next-notification-admin-header { align-items: flex-start; }
  .next-notification-admin-header h1 { font-size: 23px; }
  .next-notification-admin-header .next-secondary-command { width: 34px; min-width: 34px; padding: 0; }
  .next-notification-admin-header .next-secondary-command span { display: none; }
  .next-notification-admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-notification-admin-kpis > div { min-height: 58px; padding: 0 10px; }
  .next-notification-admin-kpis > div:nth-child(2) { border-right: 0; }
  .next-notification-admin-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-notification-channels { grid-template-columns: 1fr; }
  .next-notification-channels article { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-notification-channels article:last-child { border-bottom: 0; }
  .next-notification-acceptance > header { align-items: flex-start; flex-direction: column; }
  .next-notification-acceptance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-notification-acceptance-summary > div:nth-child(2) { border-right: 0; }
  .next-notification-acceptance-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-notification-acceptance-workflow { grid-template-columns: 1fr; }
  .next-notification-acceptance-workflow fieldset { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-notification-acceptance-workflow fieldset:last-child { border-bottom: 0; }
  .next-notification-register-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .next-notification-register-actions > label { grid-column: 1 / -1; }
  .next-notification-register-actions .next-secondary-command { width: auto; grid-column: 1 / -1; }
  .next-notification-register-actions .next-secondary-command span { display: inline; }
}

@media (max-width: 460px) {
  .next-notification-admin-header > div:last-child .next-command { width: 34px; min-width: 34px; padding: 0; }
  .next-notification-admin-header > div:last-child .next-command span { display: none; }
  .next-notification-admin-kpis { grid-template-columns: 1fr; }
  .next-notification-admin-kpis > div { padding: 0; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-notification-admin-kpis > div:last-child { border-bottom: 0; }
  .next-notification-channels article { grid-template-columns: 38px minmax(0, 1fr); }
  .next-notification-channels article > em { grid-column: 2; justify-self: start; }
  .next-notification-channel-switch { width: 100%; }
  .next-notification-channel-switch button { flex: 1; min-width: 0; }
  .next-notification-acceptance-summary { grid-template-columns: 1fr; }
  .next-notification-acceptance-summary > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-notification-acceptance-summary > div:last-child { border-bottom: 0; }
  .next-notification-register-actions { grid-template-columns: 1fr; }
  .next-notification-register-actions > label, .next-notification-register-actions .next-secondary-command { grid-column: auto; width: 100%; }
  .next-notification-register > footer { grid-template-columns: 15px minmax(0, 1fr); }
  .next-notification-register > footer small { grid-column: 2; }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--next-bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.next-shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.next-sidebar { position: sticky; top: 0; display: grid; grid-template-rows: auto 1fr auto; height: 100vh; padding: 24px 18px 18px; border-right: 1px solid var(--next-line); background: #fff; }
.next-brand { display: flex; align-items: center; min-width: 0; padding: 0 0 21px; color: var(--next-ink); text-decoration: none; }
.next-brand-logo { display: block; width: 100%; height: auto; aspect-ratio: 2.906 / 1; object-fit: contain; }
.next-brand-icon { display: none; width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.next-nav { display: grid; align-content: start; gap: 4px; min-height: 0; overflow-y: auto; }
.next-nav a { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 42px; padding: 0 11px; color: #45494e; text-decoration: none; border-radius: 5px; }
.next-nav a:hover { background: #f3f4f5; }
.next-nav a.active { color: var(--next-red-dark); background: #faecee; font-weight: 700; }
.next-nav svg { width: 18px; height: 18px; }
.next-nav-section { margin: 5px 0; padding: 5px 0; border-block: 1px solid #eceef0; }
.next-nav-section > summary { display: grid; grid-template-columns: minmax(0, 1fr) 14px; align-items: center; gap: 6px; min-height: 30px; padding: 2px 10px; color: var(--next-muted); cursor: pointer; list-style: none; }
.next-nav-section > summary::-webkit-details-marker { display: none; }
.next-nav-section > summary span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-nav-section > summary svg { width: 13px; height: 13px; transition: transform .16s ease; }
.next-nav-section[open] > summary svg { transform: rotate(180deg); }
.next-nav-section-body { display: grid; gap: 3px; padding-top: 3px; }
.next-nav-section a { grid-template-columns: 25px minmax(0, 1fr); min-height: 38px; margin-left: 8px; padding-left: 8px; font-size: 11px; line-height: 1.25; }
.next-nav-section a b { display: grid; place-items: center; width: 25px; height: 22px; color: var(--next-blue); border-radius: 3px; background: #e8eef4; font-size: 9px; }
.next-nav-section a.active b { color: #fff; background: var(--next-red); }
.next-immoviewer-navigation { display: grid; min-width: 0; }
.next-immoviewer-navigation-header { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 2px; }
.next-immoviewer-navigation-toggle { display: grid; place-items: center; width: 32px; height: 34px; padding: 0; color: #747b81; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.next-immoviewer-navigation-toggle:hover { color: var(--next-ink); background: #f3f4f5; }
.next-immoviewer-navigation-toggle svg { width: 14px; height: 14px; transition: transform .16s ease; }
.next-immoviewer-navigation-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.next-property-workspaces { display: grid; gap: 2px; margin: -1px 0 5px 20px; padding: 7px 0 9px 7px; border-bottom: 1px solid #eceef0; border-left: 1px solid #dfe2e5; }
.next-property-workspaces > span { padding: 0 9px 4px; color: var(--next-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-property-workspaces > .next-workspace-scope-label { margin-top: 5px; padding-top: 8px; border-top: 1px solid #eceef0; }
.next-property-workspaces > .next-workspace-scope-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.next-property-nav-group { min-width: 0; }
.next-property-nav-group > summary { display: grid; grid-template-columns: 16px minmax(0, 1fr) 12px; align-items: center; gap: 7px; min-height: 31px; padding: 2px 8px; color: #555b61; border-radius: 4px; cursor: pointer; list-style: none; }
.next-property-nav-group > summary::-webkit-details-marker { display: none; }
.next-property-nav-group > summary:hover { background: #f3f4f5; }
.next-property-nav-group > summary svg { width: 14px; height: 14px; }
.next-property-nav-group > summary svg:last-child { width: 11px; height: 11px; color: #8b9095; transition: transform .16s ease; }
.next-property-nav-group[open] > summary { color: var(--next-ink); font-weight: 700; }
.next-property-nav-group[open] > summary svg:last-child { transform: rotate(180deg); }
.next-property-nav-group > summary strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-property-nav-group > div { display: grid; gap: 2px; padding: 2px 0 5px 8px; }
.next-property-nav-group > div > a { grid-template-columns: 15px minmax(0, 1fr) auto; gap: 7px; min-height: 32px; padding: 4px 7px; border-radius: 4px 0 0 4px; font-size: 10px; line-height: 1.2; }
.next-property-nav-group > div > a > svg { width: 13px; height: 13px; color: #7b8288; }
.next-property-nav-group > div > a > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-property-nav-group > div > a > small { color: #8a9095; font-size: 7px; font-weight: 800; white-space: nowrap; }
.next-property-nav-group > div > a.active > svg,
.next-property-nav-group > div > a.active > small { color: var(--next-red-dark); }
.next-sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 10px 2px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 11px; }
.next-sidebar-foot strong { color: var(--next-ink); font-size: 13px; }

.next-workspace { min-width: 0; }
.next-topbar { position: sticky; z-index: 500; top: 0; display: grid; grid-template-columns: minmax(130px, .65fr) minmax(0, 2.35fr) auto; align-items: center; gap: 16px; min-height: 72px; padding: 12px var(--next-page-gutter); border-bottom: 1px solid var(--next-line); background: rgba(255, 255, 255, .96); }
.next-topbar > div:first-child { display: grid; gap: 2px; min-width: 0; }
.next-topbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-context, .next-eyebrow { color: var(--next-red-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.next-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.next-top-tools { display: grid; grid-template-columns: minmax(210px, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.next-temporal-context { display: flex; align-items: center; gap: 5px; min-width: 0; }
.next-temporal-context > label { display: grid; grid-template-columns: 15px auto minmax(104px, auto); align-items: center; gap: 5px; min-width: 0; height: 40px; padding: 0 7px; border: 1px solid #d3d6d9; border-radius: 5px; background: #fff; }
.next-temporal-context > label:nth-child(2) { grid-template-columns: 15px auto minmax(128px, 170px); }
.next-temporal-context > label > svg { width: 14px; height: 14px; color: #73797e; }
.next-temporal-context > label > span { color: #73797e; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-temporal-context input, .next-temporal-context select { min-width: 0; height: 30px; padding: 0 3px; color: var(--next-ink); border: 0; outline: 0; background: transparent; font-size: 9px; font-weight: 700; }
.next-temporal-context.simulation > label:nth-child(2) { border-color: #d6a4a8; background: #fff5f5; }
.next-temporal-context.simulation > label:nth-child(2) svg, .next-temporal-context.simulation > label:nth-child(2) span { color: var(--next-red-dark); }
.next-global-search { position: relative; width: 100%; min-width: 0; }
.next-global-search > label { position: relative; display: grid; grid-template-columns: 19px minmax(0, 1fr) 26px; align-items: center; gap: 7px; height: 40px; padding: 0 6px 0 11px; border: 1px solid #d3d6d9; border-radius: 5px; background: #fff; }
.next-global-search > label:focus-within { border-color: #ae7479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-global-search > label > svg { width: 17px; height: 17px; color: #777d82; }
.next-global-search input { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.next-global-search label button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: #777d82; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.next-global-search label button:hover { color: var(--next-red-dark); background: #f2f3f4; }
.next-global-search label button svg { width: 14px; height: 14px; }
.next-search-spinner { animation: next-spin 1s linear infinite; }
.next-global-search-results { position: absolute; z-index: 1200; top: calc(100% + 8px); left: 50%; width: min(660px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 105px)); overflow-y: auto; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; box-shadow: 0 16px 42px rgba(18, 22, 26, .18); transform: translateX(-50%); }
.next-global-search-results > header { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-global-search-results > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-global-search-results > header strong { font-size: 9px; }
.next-search-list { display: grid; }
.next-search-group { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 29px; padding: 0 14px; color: #666c71; border-bottom: 1px solid #eceef0; background: #f6f7f8; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-search-group span { display: grid; place-items: center; min-width: 21px; height: 19px; border-radius: 3px; background: #e5e8ea; font-size: 8px; }
.next-search-result { display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; align-items: center; gap: 10px; min-height: 62px; padding: 9px 13px; color: var(--next-ink); border: 0; border-bottom: 1px solid #eceef0; background: #fff; text-align: left; cursor: pointer; }
.next-search-result:hover { background: #f8f9fa; }
.next-search-result > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.next-search-result strong, .next-search-result small, .next-search-result em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-search-result strong { font-size: 11px; }
.next-search-result small { color: #666c71; font-size: 9px; }
.next-search-result em { color: var(--next-muted); font-size: 8px; font-style: normal; }
.next-search-result .next-search-match { justify-self: start; width: max-content; padding: 2px 5px; color: #4e5961; border: 1px solid #d8dde1; border-radius: 3px; background: #f5f7f8; font-size: 7px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.next-search-result .next-search-match.fuzzy { color: #795000; border-color: #e4c66d; background: #fff8df; }
.next-search-result .next-search-match.phonetic { color: #0d5575; border-color: #9dc7db; background: #edf8fc; }
.next-search-result > svg { width: 14px; height: 14px; color: #a0a5aa; }
.next-search-kind { display: grid; place-items: center; width: 32px; height: 32px; color: var(--next-blue); border-radius: 4px; background: #e8eef4; }
.next-search-kind svg { width: 16px; height: 16px; }
.next-search-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; color: var(--next-muted); text-align: center; }
.next-search-empty svg { width: 24px; height: 24px; }
.next-search-empty strong { color: var(--next-ink); font-size: 11px; }
.next-search-empty span { font-size: 9px; }
.next-global-search-results > footer { display: flex; align-items: center; gap: 7px; padding: 9px 14px; color: var(--next-muted); background: #f8f9fa; font-size: 8px; }
.next-global-search-results > footer svg { width: 13px; height: 13px; color: var(--next-green); }
.next-icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #4a4d51; border: 1px solid var(--next-line); border-radius: 5px; background: #fff; cursor: pointer; text-decoration: none; }
.next-icon-button:hover { color: var(--next-red-dark); border-color: #cfadb0; }
.next-icon-button svg { width: 17px; height: 17px; }
.next-icon-button.compact { width: 30px; height: 30px; }
.next-icon-button.compact svg { width: 14px; height: 14px; }
.next-help-launcher[aria-expanded="true"] { color: #fff; border-color: var(--next-red); background: var(--next-red); }
.next-help-layer { position: fixed; z-index: 3000; inset: 0; display: grid; justify-items: end; padding: 14px; background: rgba(28, 31, 34, .42); }
.next-help-center { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1180px, calc(100vw - 28px)); height: calc(100vh - 28px); color: var(--next-ink); border: 1px solid #cfd3d6; border-radius: 6px; background: #fff; box-shadow: 0 18px 60px rgba(19, 23, 27, .24); overflow: hidden; }
.next-help-center > header { display: grid; grid-template-columns: 148px minmax(0, 1fr) repeat(4, auto); align-items: center; gap: 12px; min-height: 62px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); }
.next-help-brand-logo { display: block; width: 148px; height: 51px; object-fit: contain; }
.next-help-center > header > div { display: grid; min-width: 0; }
.next-help-center > header small { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-help-center > header h2 { margin: 2px 0 0; font-size: 17px; letter-spacing: 0; }
.next-help-body { display: grid; grid-template-columns: minmax(245px, 290px) minmax(0, 1fr); min-height: 0; }
.next-help-body > nav { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; padding: 10px 0; border-right: 1px solid var(--next-line); background: #f7f8f9; }
.next-help-search { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 38px; margin: 0 10px 9px; padding: 0 8px; border: 1px solid #d2d6d9; border-radius: 4px; background: #fff; }
.next-help-search:focus-within { border-color: #b27479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-help-search svg { width: 15px; height: 15px; color: #777d82; }
.next-help-search input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.next-help-search button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: #72777c; border: 0; background: transparent; cursor: pointer; }
.next-help-search button svg { width: 13px; height: 13px; }
.next-help-chapters { min-height: 0; overflow-y: auto; }
.next-help-chapters > button { display: grid; grid-template-columns: 24px 18px minmax(0, 1fr) 15px; align-items: center; gap: 7px; width: 100%; min-height: 46px; padding: 7px 10px; color: #41464b; border: 0; border-top: 1px solid #e5e8ea; background: transparent; text-align: left; cursor: pointer; }
.next-help-chapters > button:last-of-type { border-bottom: 1px solid #e5e8ea; }
.next-help-chapters > button:hover { background: #eef0f2; }
.next-help-chapters > button.selected { color: var(--next-red-dark); background: #fae9ea; box-shadow: inset 3px 0 0 var(--next-red); }
.next-help-chapters > button > span { color: #858a8f; font-size: 9px; font-weight: 800; }
.next-help-chapters > button > svg { width: 15px; height: 15px; }
.next-help-chapters > button > svg:last-child { color: #92979b; }
.next-help-chapters > button strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-help-chapters > p { margin: 18px 14px; color: var(--next-muted); font-size: 11px; line-height: 1.5; }
.next-help-body > article { min-width: 0; overflow-y: auto; padding: 24px clamp(20px, 4vw, 54px) 44px; scroll-behavior: smooth; }
.next-help-body > article > header { max-width: 820px; padding-bottom: 18px; border-bottom: 1px solid var(--next-line); }
.next-help-body > article > header span { color: var(--next-red-dark); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.next-help-body > article > header h3 { margin: 5px 0 6px; font-size: 25px; letter-spacing: 0; }
.next-help-body > article > header p { margin: 0; color: #646a70; font-size: 13px; line-height: 1.55; }
.next-help-chapter-purpose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 18px 0 2px; }
.next-help-chapter-purpose > div { padding: 13px 14px; border: 1px solid #dde1e4; border-left: 3px solid var(--next-red); background: #fafbfb; }
.next-help-chapter-purpose strong { display: block; margin-bottom: 5px; color: #3d4247; font-size: 10px; }
.next-help-chapter-purpose p { margin: 0; color: #5c6268; font-size: 11px; line-height: 1.58; }
.next-help-body figure { max-width: 900px; margin: 22px 0; border: 1px solid #d9dde0; border-radius: 4px; background: #eef0f2; overflow: hidden; }
.next-help-body figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.next-help-body figcaption { padding: 7px 10px; color: #6c7277; border-top: 1px solid #d9dde0; font-size: 9px; }
.next-help-body article > section { max-width: 860px; padding: 20px 0; border-bottom: 1px solid #e1e4e6; }
.next-help-body article > section h4 { margin: 0 0 7px; font-size: 16px; letter-spacing: 0; }
.next-help-body article > section > p { margin: 0; color: #50565c; font-size: 12px; line-height: 1.65; }
.next-help-detail-block { display: grid; gap: 7px; margin-top: 16px; }
.next-help-detail-block h5 { margin: 12px 0 0; color: var(--next-red-dark); font-size: 11px; letter-spacing: 0; }
.next-help-detail-block > p { margin: 0; color: #50565c; font-size: 12px; line-height: 1.68; }
.next-help-rationale-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.next-help-rationale-list > div { display: grid; gap: 4px; padding: 10px 11px; border: 1px solid #dde1e4; background: #f7f8f9; }
.next-help-rationale-list strong { color: #383d42; font-size: 10.5px; line-height: 1.4; }
.next-help-rationale-list span { color: #666c72; font-size: 10.5px; line-height: 1.5; }
.next-help-rationale-list.compact > div { border-left: 3px solid var(--next-green); background: #f4f8f5; }
.next-help-rationale-list.warning > div { border-left-color: #c38a2d; background: #fcf8ef; }
.next-help-procedure { display: grid; gap: 8px; }
.next-help-procedure > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; overflow: hidden; border: 1px solid #dce0e3; background: #f7f8f9; }
.next-help-procedure > div > span { display: grid; place-items: center; min-height: 100%; padding: 9px 4px; color: #fff; background: var(--next-red-dark); font-size: 11px; font-weight: 800; }
.next-help-procedure p { display: grid; gap: 3px; margin: 0; padding: 9px 11px; }
.next-help-procedure p strong { color: #383d42; font-size: 11px; }
.next-help-procedure p span { color: #555b61; font-size: 11px; line-height: 1.58; }
.next-help-body article ol { display: grid; gap: 7px; margin: 15px 0 0; padding-left: 24px; }
.next-help-body article li { padding-left: 4px; font-size: 12px; line-height: 1.5; }
.next-help-body article section > aside { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 7px; margin-top: 14px; padding: 10px 11px; color: #375544; border-left: 3px solid var(--next-green); background: #eff5f1; font-size: 11px; line-height: 1.5; }
.next-help-body article section > aside svg { width: 15px; height: 15px; margin-top: 1px; }
.next-user { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; font-weight: 700; }
.next-user svg { width: 18px; height: 18px; }
.next-account { position: relative; min-width: 0; }
.next-account-trigger { display: flex; align-items: center; gap: 8px; min-height: 40px; max-width: 250px; padding: 3px 7px 3px 4px; color: var(--next-ink); border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; }
.next-account-trigger:hover, .next-account-trigger[aria-expanded="true"] { border-color: var(--next-line); background: #f7f8f9; }
.next-account-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; color: var(--next-blue); border-radius: 50%; background: #e8eef4; }
.next-account-avatar svg { width: 17px; height: 17px; }
.next-account-name { overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.next-account-chevron { width: 14px; height: 14px; flex: 0 0 auto; color: var(--next-muted); }
.next-account-menu { position: absolute; z-index: 950; top: calc(100% + 8px); right: 0; display: grid; width: min(260px, calc(100vw - 28px)); padding: 6px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; box-shadow: 0 12px 32px rgba(20, 24, 28, .14); }
.next-account-menu header { display: grid; gap: 2px; margin: -6px -6px 5px; padding: 13px 14px 11px; border-bottom: 1px solid var(--next-line); }
.next-account-menu header strong, .next-account-menu header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-account-menu header strong { font-size: 12px; }
.next-account-menu header span { color: #565b60; font-size: 10px; }
.next-account-menu header small { margin-top: 3px; color: var(--next-muted); font-size: 8px; text-transform: uppercase; }
.next-account-menu-label { display: block; margin: 3px 4px 2px; padding: 6px 5px 3px; color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-account-menu-label.account { margin-top: 6px; border-top: 1px solid var(--next-line); }
.next-account-menu > button, .next-account-menu > a { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 38px; padding: 0 9px; color: #45494e; border: 0; border-radius: 4px; background: transparent; font-size: 10px; text-align: left; text-decoration: none; cursor: pointer; }
.next-account-menu > button:hover, .next-account-menu > a:hover { background: #f2f4f5; }
.next-account-menu > button.danger { color: var(--next-red-dark); }
.next-account-menu > button:disabled { cursor: wait; opacity: .65; }
.next-account-menu svg { width: 15px; height: 15px; }
.next-account-error { margin: 5px 7px 3px; color: var(--next-red-dark); font-size: 9px; line-height: 1.4; }
.next-dialog-backdrop { position: fixed; z-index: 1400; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(22, 25, 29, .48); }
.next-account-dialog { width: min(470px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid #cfd3d7; border-radius: 6px; background: #fff; box-shadow: 0 22px 60px rgba(8, 10, 12, .26); }
.next-account-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 20px 15px; border-bottom: 1px solid var(--next-line); }
.next-account-dialog > header > div { display: grid; gap: 3px; }
.next-account-dialog h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.next-account-form { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px 20px 20px; }
.next-account-feedback { margin: 0; padding: 9px 10px; border-radius: 4px; font-size: 10px; line-height: 1.45; }
.next-account-feedback.error { color: #8d2026; border: 1px solid #e2b8bb; background: #fff2f3; }
.next-account-feedback.success { color: #21613d; border: 1px solid #b9d7c5; background: #edf8f1; }
.next-account-form footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.next-main { width: 100%; margin: 0; padding: 28px var(--next-page-gutter) 42px; }
.next-main h1:focus { outline: none; }

.next-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--next-line); }
.next-welcome > div { min-width: 0; }
.next-welcome h1 { margin: 5px 0 4px; font-size: 34px; line-height: 1.15; letter-spacing: 0; }
.next-welcome p { margin: 0; color: var(--next-muted); font-size: 13px; }
.next-command { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; color: #fff; background: var(--next-red); border-radius: 5px; font-size: 12px; font-weight: 750; text-decoration: none; }
.next-command:hover { background: var(--next-red-dark); }
.next-command svg { width: 16px; height: 16px; }

.next-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 22px 0; border-bottom: 1px solid var(--next-line); }
.next-metrics > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; min-width: 0; padding: 0 20px; border-right: 1px solid var(--next-line); }
.next-metrics > div:first-child { padding-left: 0; }
.next-metrics > div:last-child { border-right: 0; }
.next-metrics > div > span:last-child { display: grid; min-width: 0; }
.next-metrics small { color: var(--next-muted); font-size: 10px; }
.next-metrics strong { overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.next-metric-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.next-metric-icon svg { width: 19px; height: 19px; }
.next-metric-icon.red { color: var(--next-red-dark); background: #fae9eb; }
.next-metric-icon.blue { color: var(--next-blue); background: #eaf0f6; }
.next-metric-icon.green { color: var(--next-green); background: #e9f2ed; }
.next-metric-icon.amber { color: var(--next-amber); background: #f8efe1; }

.next-overview-grid { display: grid; grid-template-columns: minmax(210px, 260px) minmax(420px, 1fr) minmax(230px, 300px); min-width: 0; margin-top: 24px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-site-panel, .next-tree-panel, .next-map-column { min-width: 0; }
.next-site-panel { border-right: 1px solid var(--next-line); }
.next-tree-panel { border-left: 1px solid var(--next-line); }
.next-site-panel > header, .next-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 13px 16px; border-bottom: 1px solid var(--next-line); }
.next-site-panel header > div, .next-section-heading > div { display: grid; min-width: 0; }
.next-site-panel header span, .next-section-heading span { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-site-panel h2, .next-section-heading h2 { margin: 2px 0 0; font-size: 16px; letter-spacing: 0; }
.next-section-heading small { color: var(--next-muted); font-size: 9px; text-align: right; }
.next-panel-actions { display: flex; align-items: center; gap: 6px; }
.next-site-list { display: grid; align-content: start; max-height: 562px; overflow-y: auto; overscroll-behavior: contain; }
.next-site-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 57px; padding: 9px 12px; color: var(--next-ink); border: 0; border-bottom: 1px solid #eceef0; background: #fff; text-align: left; cursor: pointer; }
.next-site-row:hover { background: #f8f9fa; }
.next-site-row.selected { background: #fbeced; box-shadow: inset 3px 0 var(--next-red); }
.next-site-row > span:nth-child(2) { display: grid; min-width: 0; }
.next-site-row strong, .next-site-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-site-row strong { font-size: 12px; }
.next-site-row small { margin-top: 2px; color: var(--next-muted); font-size: 9px; }
.next-site-dot { width: 8px; height: 8px; border: 1px solid #a8adb2; border-radius: 50%; background: #fff; }
.next-site-dot.located { border-color: var(--next-green); background: var(--next-green); }
.next-count { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; color: var(--next-muted); border-radius: 4px; background: #eef0f2; font-size: 9px; font-weight: 800; }

.next-map { width: 100%; height: 490px; background: #e9ecef; }
.next-map.next-map-without-basemap { background-color: #f4f5f6; background-image: linear-gradient(#e4e7e9 1px, transparent 1px), linear-gradient(90deg, #e4e7e9 1px, transparent 1px); background-size: 32px 32px; }
.next-map .leaflet-control-attribution { font-size: 8px; }
.next-map .leaflet-control-attribution a { text-decoration: underline; text-underline-offset: 1px; }
.next-leaflet-icon { background: transparent; border: 0; }
.next-map-pin { --next-pin-size: 18px; display: grid; place-items: center; width: var(--next-pin-size); height: var(--next-pin-size); color: #fff; border-radius: 50%; background: var(--next-red); transform: translate(4px, 4px); transition: width .15s ease, height .15s ease; }
.next-map-pin svg { width: 62%; height: 62%; stroke-width: 2.5; }
.next-map .leaflet-tooltip { display: grid; gap: 2px; padding: 7px 9px; border: 1px solid #d6dadd; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.next-map .leaflet-tooltip strong { font-size: 11px; }
.next-map .leaflet-tooltip span { color: var(--next-muted); font-size: 9px; }

.next-taxonomy { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--next-line); }
.next-taxonomy section { min-width: 0; padding: 14px 16px 16px; }
.next-taxonomy section + section { border-left: 1px solid var(--next-line); }
.next-taxonomy header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-size: 10px; }
.next-taxonomy header span { color: var(--next-muted); }
.next-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.next-tags span { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 8px; color: #555a60; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 9px; }
.next-tags b { color: var(--next-ink); }

.next-empty-state { display: grid; justify-items: center; gap: 7px; padding: 54px 24px; color: var(--next-muted); text-align: center; }
.next-empty-state svg { width: 27px; height: 27px; margin-bottom: 4px; color: #a6abb0; }
.next-empty-state strong { color: var(--next-ink); font-size: 12px; }
.next-empty-state span { max-width: 190px; font-size: 10px; line-height: 1.5; }
.next-tree-site { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 15px; background: #f8f9fa; border-bottom: 1px solid var(--next-line); }
.next-tree-site > span:nth-child(2) { display: grid; min-width: 0; }
.next-tree-site strong, .next-tree-site small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-tree-site strong { font-size: 12px; }
.next-tree-site small { margin-top: 2px; color: var(--next-muted); font-size: 9px; }
.next-tree-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; border-radius: 4px; background: var(--next-red); }
.next-tree-icon.building { color: var(--next-blue); background: #eaf0f6; }
.next-tree-icon svg { width: 17px; height: 17px; }
.next-property-list { display: grid; }
.next-property-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; min-width: 0; border-bottom: 1px solid #eceef0; }
.next-property-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 9px; min-height: 62px; padding: 10px 14px; color: var(--next-ink); border-bottom: 1px solid #eceef0; text-decoration: none; }
.next-property-row > a { border-bottom: 0; }
.next-property-list a:hover { background: #f8f9fa; }
.next-property-list a > span:nth-child(2) { display: grid; min-width: 0; }
.next-property-list strong, .next-property-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-property-list strong { font-size: 11px; }
.next-property-list small { margin-top: 2px; color: var(--next-muted); font-size: 9px; }
.next-property-list a > svg { width: 15px; height: 15px; color: #9ca1a6; }
.next-property-row > button { display: grid; place-items: center; width: 38px; padding: 0; color: #73797e; border: 0; border-left: 1px solid #eceef0; background: #fff; cursor: pointer; }
.next-property-row > button:hover { color: var(--next-red-dark); background: #faecee; }
.next-property-row > button svg { width: 14px; height: 14px; }
.next-empty-inline { padding: 24px 16px; color: var(--next-muted); font-size: 10px; text-align: center; }
.next-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 55vh; color: var(--next-muted); font-size: 12px; }
.next-loading svg { width: 18px; height: 18px; animation: next-spin 1s linear infinite; }
@keyframes next-spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .next-mobile-workspace-tabs { display: flex; }
  .next-shell { grid-template-columns: 82px minmax(0, 1fr); }
  .next-sidebar { padding-inline: 13px; }
  .next-brand { justify-content: center; padding-inline: 0; }
  .next-brand-logo { display: none; }
  .next-brand-icon { display: block; }
  .next-nav span, .next-sidebar-foot span { display: none; }
  .next-nav a { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .next-nav-section > summary { display: none; }
  .next-nav-section a { margin-left: 0; }
  .next-immoviewer-navigation-header { display: block; }
  .next-immoviewer-navigation-toggle { display: none; }
  .next-property-workspaces { display: none; }
  .next-sidebar-foot { justify-content: center; }
  .next-topbar { grid-template-columns: minmax(130px, .8fr) minmax(230px, 1.4fr) auto; }
  .next-overview-grid { grid-template-columns: 230px minmax(400px, 1fr); }
  .next-tree-panel { grid-column: 1 / -1; border-top: 1px solid var(--next-line); border-left: 0; }
  .next-property-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-property-row:nth-child(odd) { border-right: 1px solid var(--next-line); }
}

@media (max-width: 760px) {
  .next-help-layer { padding: 0; }
  .next-help-center { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .next-help-center > header { grid-template-columns: 72px minmax(0, 1fr) repeat(4, 30px); gap: 4px; min-height: 52px; padding-inline: 6px; }
  .next-help-brand-logo { width: 72px; height: 28px; }
  .next-help-center > header h2 { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .next-help-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .next-help-body > nav { grid-template-rows: auto auto; max-height: 190px; padding-bottom: 0; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-help-chapters { display: flex; gap: 4px; padding: 0 10px 9px; overflow-x: auto; overflow-y: hidden; }
  .next-help-chapters > button { flex: 0 0 auto; grid-template-columns: 18px minmax(0, auto); min-height: 35px; padding: 6px 9px; border: 1px solid #dfe2e4; border-radius: 4px; background: #fff; }
  .next-help-chapters > button.selected { border-color: #d8a8ac; box-shadow: inset 0 -2px 0 var(--next-red); }
  .next-help-chapters > button > span, .next-help-chapters > button > svg:last-child { display: none; }
  .next-help-chapters > button strong { max-width: 180px; font-size: 10px; }
  .next-help-body > article { padding: 18px 16px 34px; }
  .next-help-body > article > header h3 { font-size: 20px; }
  .next-help-body figure { margin: 17px 0; }
  .next-help-chapter-purpose, .next-help-rationale-list { grid-template-columns: 1fr; }
  .next-shell { display: block; }
  .next-sidebar { position: static; display: flex; align-items: center; height: auto; padding: 9px 12px; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-brand { justify-content: flex-start; margin-right: auto; padding: 0; }
  .next-brand-icon { width: 38px; height: 38px; }
  .next-nav { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .next-nav a { display: grid; flex: 0 0 38px; width: 38px; height: 38px; min-height: 38px; }
  .next-nav-section { display: contents; }
  .next-nav-section > summary { display: none; }
  .next-nav-section-body { display: contents; }
  .next-immoviewer-navigation, .next-immoviewer-navigation-header { display: contents; }
  .next-nav-section a b { color: var(--next-blue); background: transparent; }
  .next-nav-section a.active b { color: var(--next-red-dark); background: transparent; }
  .next-sidebar-foot { display: none; }
  .next-topbar { position: static; grid-template-columns: minmax(0, 1fr) auto; min-height: 58px; padding: 9px 14px; }
  .next-topbar > div:first-child { max-width: 56vw; }
  .next-top-tools { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .next-top-actions { grid-column: 2; grid-row: 1; }
  .next-global-search { grid-column: auto; grid-row: auto; }
  .next-temporal-context { overflow-x: auto; overscroll-behavior-inline: contain; }
  .next-global-search-results { position: fixed; top: 115px; right: 14px; bottom: 14px; left: 14px; width: auto; max-height: none; transform: none; }
  .next-user span, .next-account-name, .next-account-chevron { display: none; }
  .next-account-trigger { padding-right: 4px; }
  .next-main { padding: 20px 14px 30px; }
  .next-welcome { align-items: flex-start; }
  .next-welcome h1 { font-size: 25px; }
  .next-welcome p { max-width: 66vw; }
  .next-command { width: 38px; min-width: 38px; padding: 0; justify-content: center; }
  .next-command span { display: none; }
  .next-metrics { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .next-metrics > div { padding: 0 10px; }
  .next-metrics > div:nth-child(2) { border-right: 0; }
  .next-metrics > div:nth-child(3) { padding-left: 0; }
  .next-overview-grid { display: grid; grid-template-columns: 1fr; }
  .next-site-panel { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-site-list { max-height: 220px; }
  .next-map { height: 400px; }
  .next-tree-panel { grid-column: auto; }
  .next-property-list { grid-template-columns: 1fr; }
  .next-property-row:nth-child(odd) { border-right: 0; }
}

@media (max-width: 460px) {
  .next-context { display: none; }
  .next-topbar strong { font-size: 13px; }
  .next-top-actions { gap: 7px; }
  .next-global-search input { font-size: 10px; }
  .next-account-dialog > header { padding: 16px 15px 13px; }
  .next-account-form { padding: 15px; }
  .next-welcome p { max-width: none; }
  .next-metrics { grid-template-columns: 1fr; gap: 0; }
  .next-metrics > div { min-height: 65px; padding: 0; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-metrics > div:last-child { border-bottom: 0; }
  .next-taxonomy { grid-template-columns: 1fr; }
  .next-taxonomy section + section { border-top: 1px solid var(--next-line); border-left: 0; }
  .next-map { height: 360px; }
}

.next-breadcrumb { display: flex; align-items: center; gap: 7px; min-width: 0; margin-bottom: 16px; color: var(--next-muted); font-size: 10px; }
.next-breadcrumb a { color: var(--next-red-dark); text-decoration: none; }
.next-breadcrumb span, .next-breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-breadcrumb strong { color: var(--next-ink); }
.next-breadcrumb svg { width: 12px; height: 12px; flex: 0 0 auto; }
.next-property-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-property-title { display: flex; align-items: center; gap: 15px; min-width: 0; }
.next-property-title > div { min-width: 0; }
.next-property-title h1 { overflow: hidden; margin: 3px 0 3px; font-size: 30px; line-height: 1.15; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-property-title p { overflow: hidden; margin: 0; color: var(--next-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-property-symbol { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; color: #fff; border-radius: 5px; background: var(--next-red); }
.next-property-symbol svg { width: 25px; height: 25px; }
.next-property-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.next-property-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); padding: 17px 0; border-bottom: 1px solid var(--next-line); }
.next-property-facts div { display: grid; min-width: 0; gap: 3px; padding: 0 15px; border-right: 1px solid var(--next-line); }
.next-property-facts div:first-child { padding-left: 0; }
.next-property-facts div:last-child { border-right: 0; }
.next-property-facts small { color: var(--next-muted); font-size: 9px; }
.next-property-facts strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.next-property-switcher { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(270px, 360px) minmax(180px, .72fr); align-items: center; gap: 16px; min-width: 0; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--next-line); border-radius: 6px; background: var(--next-surface); }
.next-property-switcher-title { display: grid; min-width: 0; gap: 2px; }
.next-property-switcher-title strong { overflow: hidden; color: var(--next-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.next-property-switcher-title small { overflow: hidden; color: var(--next-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-property-switcher > label { display: grid; min-width: 0; gap: 4px; color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-property-switcher select { width: 100%; min-width: 0; height: 38px; padding: 0 34px 0 10px; color: var(--next-ink); border: 1px solid #cfd3d7; border-radius: 4px; outline: none; background: #fff; font-size: 11px; font-weight: 700; text-transform: none; }
.next-property-switcher select:focus { border-color: #ae7479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-property-switcher-context { display: grid; justify-items: end; min-width: 0; gap: 3px; text-align: right; }
.next-property-switcher-context span { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; color: #315e45; border-radius: 3px; background: #e7f1eb; font-size: 9px; font-weight: 800; }
.next-property-switcher-context span svg { width: 13px; height: 13px; }
.next-property-switcher-context small { overflow: hidden; max-width: 100%; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.next-viewer { display: grid; grid-template-columns: 182px minmax(0, 1fr); min-width: 0; margin-top: 20px; border: 1px solid var(--next-line); border-radius: 6px; background: var(--next-surface); overflow: hidden; }
.next-viewer.unified { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.next-tabs { min-width: 0; padding: 8px; border-right: 1px solid var(--next-line); background: #f8f9fa; }
.next-tabs button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 9px; color: #50545a; border: 0; border-radius: 4px; background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.next-tabs button:hover { background: #eef0f2; }
.next-tabs button.active { color: var(--next-red-dark); background: #f9e8ea; font-weight: 800; }
.next-tabs svg { width: 15px; height: 15px; }
.next-tabs button b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: #6b7076; border-radius: 3px; background: #e4e7e9; font-size: 9px; }
.next-section-workspace { min-width: 0; }
.next-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; padding: 13px 18px; border-bottom: 1px solid var(--next-line); }
.next-editor-header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-editor-header > div:first-child > span, .next-subsection header > div > span { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-editor-header h2 { overflow: hidden; margin: 0; font-size: 15px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-editor-meta { display: flex; align-items: center; gap: 10px; color: var(--next-muted); font-size: 9px; }
.next-editor-meta span { display: inline-flex; align-items: center; gap: 4px; color: var(--next-green); font-weight: 800; white-space: nowrap; }
.next-editor-meta svg { width: 13px; height: 13px; }
.next-message { display: flex; align-items: center; gap: 8px; margin: 14px 18px 0; padding: 10px 12px; border: 1px solid; border-radius: 4px; font-size: 10px; }
.next-message.success { color: #315e45; border-color: #b9d3c2; background: #edf5f0; }
.next-message.error { color: #8b252b; border-color: #e1b5b8; background: #fbeced; }
.next-message svg { width: 16px; height: 16px; flex: 0 0 auto; }
.next-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 15px; padding: 19px 18px 22px; }
.next-form-grid.compact { padding: 15px 0 0; }
.next-field { display: grid; align-content: start; gap: 5px; min-width: 0; color: #555a60; font-size: 9px; font-weight: 700; }
.next-field.wide { grid-column: span 2; }
.next-field.full { grid-column: 1 / -1; }
.next-field > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; min-height: 12px; }
.next-field small { color: var(--next-muted); font-size: 8px; font-weight: 500; }
.next-field input:not([type="checkbox"]), .next-field select, .next-field textarea { width: 100%; min-width: 0; color: var(--next-ink); border: 1px solid #cfd3d7; border-radius: 4px; outline: none; background: #fff; font-size: 11px; }
.next-field input:not([type="checkbox"]), .next-field select { height: 35px; padding: 0 9px; }
.next-field textarea { min-height: 74px; padding: 8px 9px; resize: vertical; }
.next-field input:focus, .next-field select:focus, .next-field textarea:focus { border-color: #ae7479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-check { display: flex; align-items: center; gap: 8px; height: 35px; padding: 0 9px; border: 1px solid #cfd3d7; border-radius: 4px; background: #fff; font-size: 10px; font-weight: 600; }
.next-check input { width: 15px; height: 15px; accent-color: var(--next-red); }
.next-subsection { min-width: 0; padding: 17px 18px 20px; border-top: 1px solid var(--next-line); }
.next-subsection > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.next-subsection header > div { display: grid; gap: 2px; min-width: 0; }
.next-subsection h3 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-subsection h3 b { margin-left: 5px; color: var(--next-muted); font-size: 10px; }
.next-secondary-command, .next-upload-command { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 10px; color: #4b5055; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 9px; font-weight: 750; text-decoration: none; cursor: pointer; overflow: hidden; }
.next-secondary-command:hover, .next-upload-command:hover { color: var(--next-red-dark); border-color: #cfadb0; }
.next-secondary-command svg, .next-upload-command svg { width: 14px; height: 14px; }
.next-upload-command input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.next-file-command input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.next-upload-command.disabled, .next-secondary-command:disabled { opacity: .55; cursor: wait; }
.next-upload-command.disabled input { cursor: wait; }
.next-resumable-upload { position: relative; display: inline-grid; justify-items: end; min-width: 0; }
.next-resumable-upload > label { position: relative; overflow: hidden; }
.next-resumable-upload > label input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.next-resumable-upload > label.disabled { opacity: .55; cursor: wait; }
.next-resumable-upload > label.disabled input { cursor: wait; }
.next-resumable-upload-status { position: absolute; z-index: 35; top: calc(100% + 7px); right: 0; box-sizing: border-box; width: min(360px, calc(100vw - 36px)); padding: 10px 11px; border: 1px solid #d6dadd; border-radius: 5px; background: #fff; box-shadow: 0 8px 24px rgba(31, 40, 47, .14); }
.next-resumable-upload-status > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.next-resumable-upload-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #b10f22; background: #f8e8ea; border-radius: 50%; }
.next-resumable-upload-icon svg { width: 14px; height: 14px; }
.next-resumable-upload-status > div > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.next-resumable-upload-status strong { overflow: hidden; color: #2f383f; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.next-resumable-upload-status small { overflow-wrap: anywhere; color: #747d84; font-size: 8px; line-height: 1.3; }
.next-resumable-upload-actions { display: inline-flex; align-items: center; gap: 2px; }
.next-resumable-upload-actions button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: #596269; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-resumable-upload-actions button:hover { color: #a90f21; background: #f4f5f6; }
.next-resumable-upload-actions svg { width: 14px; height: 14px; }
.next-resumable-upload-progress { display: block; width: 100%; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 3px; background: #e5e8ea; }
.next-resumable-upload-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #b81024; transition: width .2s ease; }
.next-resumable-upload[data-upload-status="completed"] .next-resumable-upload-icon { color: #277258; background: #e6f2ec; }
.next-resumable-upload[data-upload-status="completed"] .next-resumable-upload-progress i { background: #277258; }
.next-resumable-upload[data-upload-status="error"] .next-resumable-upload-icon { color: #b10f22; background: #f8e8ea; }
.next-table-scroll { max-width: 100%; border: 1px solid var(--next-line); border-radius: 4px; overflow-x: auto; }
.next-data-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 9px; }
.next-data-table th { height: 31px; padding: 0 7px; color: #666b71; border-right: 1px solid #e3e6e8; border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-weight: 750; text-align: left; white-space: nowrap; }
.next-data-table td { min-width: 128px; padding: 4px; border-right: 1px solid #eceef0; border-bottom: 1px solid #eceef0; }
.next-data-table tbody tr:last-child td { border-bottom: 0; }
.next-data-table input:not([type="checkbox"]) { width: 100%; min-width: 118px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; outline: none; background: transparent; font-size: 10px; }
.next-data-table input:not([type="checkbox"]):focus { border-color: #c7a0a4; background: #fff; }
.next-data-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--next-red); }
.next-data-table th.action, .next-data-table td.action { position: sticky; right: 0; min-width: 64px; width: 64px; border-right: 0; background: #fff; }
.next-data-table th.action { background: #f4f5f6; }
.next-table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.next-data-table td.action button, .next-data-table td.action a { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #858a90; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-data-table td.action button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-data-table td.action a:hover { color: #245f83; background: #e8f1f6; }
.next-data-table td.action svg { width: 14px; height: 14px; }
.next-empty-editor { display: grid; justify-items: center; gap: 5px; padding: 26px 15px; color: var(--next-muted); border: 1px dashed #d5d9dc; border-radius: 4px; text-align: center; }
.next-empty-editor.compact { display: flex; justify-content: flex-start; padding: 14px; text-align: left; }
.next-empty-editor svg { width: 20px; height: 20px; }
.next-empty-editor strong { color: var(--next-ink); font-size: 10px; }
.next-empty-editor span { font-size: 9px; }
.next-empty-editor [data-model-derivatives] { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 8px; }
.next-empty-editor [data-model-derivatives] .next-secondary-command { min-width: 120px; }
.next-cad2data-panel { display: grid; justify-items: stretch; gap: 9px; width: min(620px, 100%); margin-top: 10px; padding: 12px; color: var(--next-ink); border: 1px solid var(--next-line); border-radius: 5px; background: #fff; text-align: left; }
.next-cad2data-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-cad2data-panel > header > span, .next-cad2data-panel > header > a { display: inline-flex; align-items: center; gap: 6px; }
.next-cad2data-panel > header > a { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-decoration: none; }
.next-cad2data-panel > header svg { width: 14px; height: 14px; }
.next-cad2data-panel > p { margin: 0; color: var(--next-muted); font-size: 9px; line-height: 1.45; }
.next-cad2data-panel .next-inline-actions { display: flex; justify-content: flex-start; }
.next-file-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--next-line); border-radius: 4px; overflow: hidden; }
.next-file-list > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) 28px 28px; align-items: center; gap: 6px; min-height: 52px; padding: 8px 10px; border-bottom: 1px solid #eceef0; }
.next-file-list > div:nth-child(odd) { border-right: 1px solid #eceef0; }
.next-file-list > div > svg { width: 18px; height: 18px; color: var(--next-blue); }
.next-file-list > div > span { display: grid; min-width: 0; gap: 2px; }
.next-file-list > div > a, .next-file-list > div > button, .next-record-files a, .next-record-files button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #777c82; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-file-list > div > a:hover, .next-file-list > div > button:hover, .next-record-files a:hover, .next-record-files button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-file-list > div > a svg, .next-file-list > div > button svg, .next-record-files a svg, .next-record-files button svg { width: 14px; height: 14px; }
.next-file-list strong, .next-file-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-file-list strong { font-size: 10px; }
.next-file-list small { color: var(--next-muted); font-size: 8px; }
.next-editor-footer { position: sticky; z-index: 3; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 18px; border-top: 1px solid var(--next-line); background: rgba(255, 255, 255, .97); }
.next-editor-footer > span { color: var(--next-muted); font-size: 9px; }
.next-editor-footer .next-command { border: 0; cursor: pointer; }
.next-editor-footer .next-command:disabled { opacity: .55; cursor: wait; }
.next-editor-footer > div { display: flex; align-items: center; gap: 8px; }

#portfolio-masterdata-editor { scroll-margin-top: 84px; }
.next-masterdata-editor { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-page-message { margin: 14px 0 0; }
.next-geocoding-note { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; margin: 16px 18px 0; padding: 10px 12px; color: #755018; border: 1px solid #e1cda9; border-radius: 4px; background: #fff9ef; }
.next-geocoding-note.located { color: #315f43; border-color: #b8d3c2; background: #f1f7f3; }
.next-geocoding-note > svg { width: 20px; height: 20px; }
.next-geocoding-note > span { display: grid; min-width: 0; }
.next-geocoding-note strong { font-size: 9px; }
.next-geocoding-note small { margin-top: 3px; font-size: 8px; line-height: 1.45; }
.next-masterdata-editor .next-command { border: 0; cursor: pointer; }
.next-masterdata-editor .next-command:disabled { opacity: .55; cursor: wait; }

@media (max-width: 460px) {
  .next-geocoding-note { margin-inline: 13px; }
  .next-masterdata-editor .next-editor-footer > div { width: 100%; }
  .next-masterdata-editor .next-editor-footer > div > * { flex: 1; }
}
.next-not-found { display: grid; justify-items: center; gap: 9px; min-height: 55vh; align-content: center; text-align: center; }
.next-not-found > svg { width: 42px; height: 42px; color: #a5aab0; }
.next-not-found h1 { margin: 5px 0 0; font-size: 24px; letter-spacing: 0; }
.next-not-found p { max-width: 430px; margin: 0 0 10px; color: var(--next-muted); font-size: 11px; line-height: 1.5; }

.next-record { min-width: 0; }
.next-record .next-loading.compact { min-height: 420px; }
.next-record > .next-message { margin-bottom: 14px; }
.next-record-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 78px; padding: 14px 18px; border-bottom: 1px solid var(--next-line); }
.next-record-header > div { display: grid; min-width: 0; gap: 2px; }
.next-record-header > div > span { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-record-header strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.next-record-header small { color: var(--next-muted); font-size: 8px; }
.next-record-categories { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--next-line); background: #f8f9fa; overflow-x: auto; overscroll-behavior-inline: contain; }
.next-record-categories button { display: flex; align-items: center; gap: 6px; min-width: max-content; height: 34px; padding: 0 9px; color: #5b6066; border: 0; border-radius: 4px; background: transparent; font-size: 9px; cursor: pointer; }
.next-record-categories button:hover { background: #eceff1; }
.next-record-categories button.active { color: var(--next-red-dark); background: #f9e8ea; font-weight: 800; }
.next-record-categories svg { width: 14px; height: 14px; }
.next-record-categories b { color: var(--next-muted); font-size: 8px; }
.next-record-body { display: grid; grid-template-columns: minmax(205px, 255px) minmax(0, 1fr); min-width: 0; min-height: 480px; }
.next-record-folders { max-height: 620px; padding: 7px; border-right: 1px solid var(--next-line); background: #fafbfb; overflow-y: auto; }
.next-record-folders button { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; min-height: 38px; padding: 6px 8px; color: #555a60; border: 0; border-radius: 4px; background: transparent; font-size: 9px; text-align: left; cursor: pointer; }
.next-record-folders button:hover { background: #eef0f2; }
.next-record-folders button.active { color: var(--next-red-dark); background: #f9e8ea; font-weight: 800; }
.next-record-folders svg { width: 14px; height: 14px; }
.next-record-folders span { overflow: hidden; line-height: 1.25; text-overflow: ellipsis; }
.next-record-folders b { display: grid; place-items: center; min-width: 18px; height: 18px; color: var(--next-muted); border-radius: 3px; background: #e6e8ea; font-size: 8px; }
.next-record-content { min-width: 0; padding: 16px 17px 20px; }
.next-record-content > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.next-record-content > header > div { display: grid; min-width: 0; gap: 2px; }
.next-record-content > header span:first-child { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-record-content h3 { overflow: hidden; margin: 0; font-size: 13px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-record-path { display: flex; align-items: center; gap: 7px; min-width: 0; margin-bottom: 12px; padding: 8px 9px; color: var(--next-muted); border: 1px solid var(--next-line); border-radius: 4px; background: #f8f9fa; font-size: 8px; }
.next-record-path svg { width: 14px; height: 14px; flex: 0 0 auto; }
.next-record-path span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-record-files { border: 1px solid var(--next-line); border-radius: 4px; overflow: hidden; }
.next-record-files > div { display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px 28px; align-items: center; gap: 7px; min-height: 57px; padding: 8px 9px; border-bottom: 1px solid #eceef0; }
.next-record-files > div:last-child { border-bottom: 0; }
.next-file-symbol { display: grid; place-items: center; width: 32px; height: 32px; color: var(--next-blue); border-radius: 4px; background: #eaf0f6; }
.next-file-symbol svg { width: 16px; height: 16px; }
.next-record-files > div > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.next-record-files strong, .next-record-files small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-record-files strong { font-size: 10px; }
.next-record-files small { color: var(--next-muted); font-size: 8px; }
.next-document-control { min-width: 0; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; overflow: hidden; }
.next-document-control > .next-message { margin: 10px; }
.next-document-control-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 10px; border-bottom: 1px solid var(--next-line); background: #f8f9fa; }
.next-document-control-header > div:first-child { display: grid; min-width: max-content; gap: 2px; }
.next-document-control-header > div:first-child span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-document-control-header > div:first-child strong { font-size: 10px; }
.next-document-control-header > .next-document-filters { display: flex; align-items: center; gap: 3px; min-width: 0; overflow-x: auto; }
.next-document-filters button { display: inline-flex; align-items: center; gap: 5px; min-width: max-content; height: 29px; padding: 0 8px; color: #666b71; border: 1px solid transparent; border-radius: 3px; background: transparent; font-size: 8px; cursor: pointer; }
.next-document-filters button:hover { background: #eceef0; }
.next-document-filters button.active { color: var(--next-red-dark); border-color: #e1c3c6; background: #fae9eb; font-weight: 800; }
.next-document-filters b { display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 3px; background: rgba(70, 75, 80, .09); font-size: 7px; }
.next-document-layout { display: grid; min-width: 0; }
.next-document-layout.has-detail { grid-template-columns: minmax(360px, 1fr) minmax(310px, .75fr); }
.next-document-groups { min-width: 0; max-height: 620px; overflow-y: auto; }
.next-document-groups article { border-bottom: 1px solid var(--next-line); }
.next-document-groups article:last-child { border-bottom: 0; }
.next-document-groups article > header { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 51px; padding: 8px 9px; background: #fbfbfc; }
.next-document-groups article > header > span:last-child { display: grid; min-width: 0; gap: 2px; }
.next-document-groups article > header strong, .next-document-groups article > header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-document-groups article > header strong { font-size: 10px; }
.next-document-groups article > header small { color: var(--next-muted); font-size: 8px; }
.next-document-version { display: grid; grid-template-columns: minmax(0, 1fr) 28px 28px 28px; align-items: center; gap: 3px; min-height: 52px; padding: 3px 7px 3px 9px; border-top: 1px solid #eef0f1; }
.next-document-version:hover, .next-document-version.selected { background: #f7f9fa; }
.next-document-version.selected { box-shadow: inset 3px 0 0 var(--next-red); }
.next-document-open { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; min-height: 45px; padding: 0; color: var(--next-ink); border: 0; background: transparent; text-align: left; cursor: pointer; }
.next-document-open > b { display: grid; place-items: center; width: 29px; height: 25px; color: var(--next-blue); border-radius: 3px; background: #e8eef4; font-size: 8px; }
.next-document-open > span { display: grid; min-width: 0; gap: 2px; }
.next-document-open strong, .next-document-open small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-document-open strong { font-size: 9px; }
.next-document-open small { color: var(--next-muted); font-size: 8px; }
.next-document-open em { min-width: max-content; padding: 4px 6px; color: #565c61; border: 1px solid #d7dadd; border-radius: 3px; background: #f4f5f6; font-size: 7px; font-style: normal; font-weight: 800; }
.next-document-open em.status-zur-prufung { color: #75540e; border-color: #e0cd9e; background: #fff8e7; }
.next-document-open em.status-freigegeben { color: #315e45; border-color: #b9d3c2; background: #edf5f0; }
.next-document-open em.status-zuruckgewiesen { color: #8b252b; border-color: #e1b5b8; background: #fbeced; }
.next-document-open em.status-archiviert { color: #535b68; border-color: #cfd4dc; background: #eef1f4; }
.next-document-version > a, .next-document-version > button:not(.next-document-open), .next-document-detail > header button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #747a80; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-document-version > a:hover, .next-document-version > button:not(.next-document-open):hover, .next-document-detail > header button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-document-version > button:disabled { opacity: .35; cursor: not-allowed; }
.next-document-version svg, .next-document-detail > header button svg { width: 14px; height: 14px; }
.next-document-detail { min-width: 0; border-left: 1px solid var(--next-line); background: #fafbfb; }
.next-document-detail > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 51px; padding: 8px 10px; border-bottom: 1px solid var(--next-line); background: #f4f5f6; }
.next-document-detail > header > div { display: grid; min-width: 0; gap: 2px; }
.next-document-detail > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-document-detail > header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-document-preview { display: grid; place-items: center; aspect-ratio: 16 / 9; min-height: 190px; max-height: 360px; border-bottom: 1px solid var(--next-line); background: #e8eaec; overflow: hidden; }
.next-document-preview img, .next-document-preview iframe, .next-document-preview video { width: 100%; height: 100%; border: 0; object-fit: contain; background: #fff; }
.next-document-preview pre { align-self: stretch; justify-self: stretch; min-width: 0; min-height: 0; margin: 0; padding: 14px; color: #33383d; background: #fff; font-family: Consolas, "Courier New", monospace; font-size: 9px; line-height: 1.55; overflow: auto; white-space: pre-wrap; }
.next-document-preview > div { display: grid; justify-items: center; gap: 7px; max-width: 270px; padding: 20px; color: var(--next-muted); text-align: center; }
.next-document-preview > div > svg { width: 30px; height: 30px; }
.next-document-preview > div strong { color: var(--next-ink); font-size: 10px; }
.next-document-preview > div span { font-size: 8px; line-height: 1.45; }
.next-document-preview.preview-office { display: block; aspect-ratio: auto; min-height: 290px; max-height: 430px; background: #dfe3e6; overflow: auto; }
.next-document-preview > .next-office-preview { display: block; width: 100%; max-width: none; min-height: 100%; padding: 0; color: var(--next-ink); text-align: left; }
.next-office-preview > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 7px 10px; color: #fff; background: #3d444a; }
.next-office-preview > header span { color: inherit; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-office-preview > header em { padding: 2px 5px; border-radius: 3px; color: #31363a; background: #f4cb79; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-office-preview > div { display: grid; gap: 10px; padding: 10px; }
.next-office-preview section { min-width: 0; padding: 14px; border: 1px solid #d4d8db; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgb(20 26 31 / 8%); }
.next-office-preview section h4 { margin: 0 0 10px; color: #3b4146; font-size: 9px; }
.next-office-preview section pre { max-height: none; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size: 9px; line-height: 1.6; overflow: visible; white-space: pre-wrap; }
.next-office-preview.presentation section { aspect-ratio: 16 / 9; min-height: 170px; }
.next-office-table { max-width: 100%; overflow: auto; }
.next-office-table table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 8px; }
.next-office-table td { min-width: 70px; max-width: 240px; padding: 5px 7px; border: 1px solid #dfe2e4; color: #30363a; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.next-office-table tr:first-child td { font-weight: 700; background: #f2f4f5; }
.next-document-preview.preview-audio { min-height: 150px; max-height: 220px; }
.next-document-preview > .next-media-audio { width: min(100%, 360px); max-width: none; }
.next-media-audio audio { width: 100%; }
.next-document-preview-loading svg { animation: next-spin 1s linear infinite; }
.next-document-workflow { display: grid; gap: 10px; padding: 11px; }
.next-document-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.next-document-metadata span { display: grid; min-width: 0; gap: 2px; padding: 7px 8px; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; }
.next-document-metadata small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-document-metadata strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-document-index-note { display: flex; align-items: center; gap: 8px; padding: 8px; color: #40586a; border: 1px solid #c8d5de; border-radius: 3px; background: #f3f7f9; }
.next-document-index-note.error { color: #8b3838; border-color: #e5bcbc; background: #fff4f4; }
.next-document-index-note svg { flex: 0 0 auto; width: 17px; height: 17px; }
.next-document-index-note span { display: grid; min-width: 0; gap: 2px; }
.next-document-index-note strong { font-size: 8px; }
.next-document-index-note small { overflow-wrap: anywhere; font-size: 7px; line-height: 1.4; }
.next-document-read-only { display: flex; align-items: center; gap: 8px; padding: 8px; color: #45535d; border: 1px solid #ccd3d8; border-radius: 3px; background: #f5f7f8; }
.next-document-read-only svg { flex: 0 0 auto; width: 17px; height: 17px; }
.next-document-read-only span { display: grid; min-width: 0; gap: 2px; }
.next-document-read-only strong { font-size: 8px; }
.next-document-read-only small { color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-document-approval { display: flex; align-items: center; gap: 8px; padding: 8px; color: #315e45; border: 1px solid #b9d3c2; border-radius: 3px; background: #edf5f0; }
.next-document-approval svg { width: 17px; height: 17px; }
.next-document-approval span { display: grid; gap: 2px; }
.next-document-approval strong { font-size: 8px; }
.next-document-approval small { font-size: 7px; }
.next-document-archive { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px; color: #40586a; border: 1px solid #c8d5de; border-radius: 3px; background: #f3f7f9; }
.next-document-archive.verified { color: #315e45; border-color: #b9d3c2; background: #edf5f0; }
.next-document-archive.failed { color: #8b3838; border-color: #e5bcbc; background: #fff4f4; }
.next-document-archive.retry { color: #74540c; border-color: #e2cf9c; background: #fff9e9; }
.next-document-archive > svg { width: 18px; height: 18px; }
.next-document-archive > span { display: grid; min-width: 0; gap: 2px; }
.next-document-archive strong { font-size: 8px; }
.next-document-archive small { overflow-wrap: anywhere; font-size: 7px; line-height: 1.4; }
.next-document-archive button { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 0 8px; color: #fff; border: 0; border-radius: 3px; background: #334d5c; font-size: 7px; font-weight: 800; cursor: pointer; }
.next-document-archive button svg { width: 14px; height: 14px; }
.next-document-workflow > label { display: grid; gap: 4px; color: #555b60; font-size: 8px; font-weight: 750; }
.next-document-workflow select, .next-document-workflow textarea { width: 100%; color: var(--next-ink); border: 1px solid #ccd0d3; border-radius: 3px; outline: none; background: #fff; font: inherit; }
.next-document-workflow select { height: 33px; padding: 0 8px; }
.next-document-workflow textarea { min-height: 68px; padding: 7px 8px; resize: vertical; }
.next-document-workflow select:focus, .next-document-workflow textarea:focus { border-color: #ae7479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-document-workflow footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.next-document-workflow footer .next-command { min-height: 32px; border: 0; cursor: pointer; }
.next-document-workflow footer .next-command:disabled { opacity: .55; cursor: wait; }
.next-document-governance { display: grid; gap: 9px; margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--next-line); }
.next-document-governance > header { display: flex; align-items: center; gap: 8px; color: #384c5b; }
.next-document-governance > header svg { width: 18px; height: 18px; flex: 0 0 auto; }
.next-document-governance > header span { display: grid; gap: 2px; }
.next-document-governance > header strong { font-size: 9px; }
.next-document-governance > header small, .next-document-governance > p, .next-document-toggle small { color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-document-governance > p { margin: -2px 0 0; }
.next-document-governance-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(118px, .65fr); gap: 7px; }
.next-document-governance label { display: grid; gap: 4px; color: #555b60; font-size: 8px; font-weight: 750; }
.next-document-governance select, .next-document-governance input[type="date"], .next-document-governance textarea { width: 100%; color: var(--next-ink); border: 1px solid #ccd0d3; border-radius: 3px; outline: none; background: #fff; font: inherit; }
.next-document-governance select, .next-document-governance input[type="date"] { height: 33px; padding: 0 8px; }
.next-document-governance textarea { min-height: 52px; padding: 7px 8px; resize: vertical; }
.next-document-governance select:focus, .next-document-governance input:focus, .next-document-governance textarea:focus { border-color: #ae7479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-document-governance .next-document-toggle { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; cursor: pointer; }
.next-document-toggle input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--next-red); }
.next-document-toggle span { display: grid; gap: 1px; }
.next-document-toggle strong { font-size: 8px; }
.next-function-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-function-header > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.next-function-header > div:first-child > div { min-width: 0; }
.next-function-header h1 { margin: 2px 0; font-size: 28px; letter-spacing: 0; }
.next-function-header p { overflow: hidden; margin: 0; color: var(--next-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-function-symbol { display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 auto; color: #fff; border-radius: 4px; background: var(--next-blue); }
.next-function-symbol svg { width: 23px; height: 23px; }
.next-function-header .next-command, .next-governance-editor .next-command { min-height: 32px; border: 0; cursor: pointer; }
.next-function-header button:disabled, .next-governance-editor button:disabled { opacity: .55; cursor: wait; }
.next-function-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-area-kpis { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.next-function-kpis > div { display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 76px; padding: 10px 16px; border-right: 1px solid var(--next-line); }
.next-function-kpis > div:last-child { border-right: 0; }
.next-function-kpis .next-metric-icon { width: 37px; height: 37px; }
.next-function-kpis .next-metric-icon svg { width: 17px; height: 17px; }
.next-function-kpis > div > span:last-child { display: grid; gap: 1px; }
.next-function-kpis small { color: var(--next-muted); font-size: 8px; }
.next-function-kpis strong { font-size: 20px; }
.next-function-kpis .warning strong { color: var(--next-amber); }
.next-function-kpis .critical strong { color: var(--next-red-dark); }
.next-function-kpis + .next-message { margin-top: 14px; }
.next-function-kpis.next-reservation-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-quality-band { margin-top: 16px; border: 1px solid var(--next-line); border-radius: 5px; background: #fff; overflow: hidden; }
.next-quality-band > header, .next-governance > section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-quality-band > header > div, .next-governance > section > header > div { display: grid; min-width: 0; gap: 2px; }
.next-quality-band > header span, .next-governance > section > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-quality-band h2, .next-governance h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-governance h2 b { margin-left: 4px; color: var(--next-muted); font-size: 9px; }
.next-quality-band > header button, .next-governance-editor > header button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #767b80; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-quality-band > header button:hover, .next-governance-editor > header button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-quality-band > header button svg, .next-governance-editor > header button svg { width: 14px; height: 14px; }
.next-quality-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-quality-summary span { display: grid; gap: 2px; min-height: 50px; padding: 9px 13px; border-right: 1px solid var(--next-line); }
.next-quality-summary span:last-child { border-right: 0; }
.next-quality-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-quality-summary strong { font-size: 14px; }
.next-quality-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-quality-findings > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 52px; padding: 8px 11px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-quality-findings > div:nth-child(even) { border-right: 0; }
.next-quality-findings svg { width: 16px; height: 16px; color: var(--next-blue); }
.next-quality-findings .kritisch svg { color: var(--next-red-dark); }
.next-quality-findings .warnung svg { color: var(--next-amber); }
.next-quality-findings span { display: grid; min-width: 0; gap: 2px; }
.next-quality-findings strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-quality-findings small { color: var(--next-muted); font-size: 8px; line-height: 1.35; }
.next-governance { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(520px, 1.28fr); min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-governance > section { min-width: 0; }
.next-governance-master { border-right: 1px solid var(--next-line); }
.next-governance-master > header small { color: var(--next-muted); font-size: 8px; }
.next-governance-master .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
.next-governance-register { min-width: 0; }
.next-governance-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(145px, .35fr); gap: 7px; padding: 9px 11px; border-bottom: 1px solid var(--next-line); background: #f8f9fa; }
.next-governance-toolbar label { position: relative; min-width: 0; }
.next-governance-toolbar label svg { position: absolute; z-index: 1; top: 9px; left: 9px; width: 14px; height: 14px; color: #858a8f; }
.next-governance-toolbar input, .next-governance-toolbar select { width: 100%; height: 32px; color: var(--next-ink); border: 1px solid #ccd0d3; border-radius: 3px; background: #fff; font-size: 9px; }
.next-governance-toolbar input { padding: 0 8px 0 30px; }
.next-governance-toolbar select { padding: 0 8px; }
.next-governance-editor { border-bottom: 1px solid var(--next-line); background: #fbfbfc; }
.next-governance-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 7px 12px; border-bottom: 1px solid var(--next-line); }
.next-governance-editor > header > div { display: grid; gap: 2px; }
.next-governance-editor > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-governance-editor h3 { margin: 0; font-size: 11px; letter-spacing: 0; }
.next-governance-editor .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 440px; padding: 12px; overflow-y: auto; }
.next-governance-editor-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.next-governance-editor > footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--next-line); }
.next-governance-list { min-width: 0; }
.next-governance-list-head, .next-governance-row { display: grid; grid-template-columns: 1.15fr 1fr .8fr .9fr .7fr 62px; align-items: center; min-width: 0; }
.next-governance-list-head { min-height: 31px; color: #6c7176; border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-governance-list-head span, .next-governance-row > span { min-width: 0; padding: 5px 7px; }
.next-governance-row { min-height: 58px; border-bottom: 1px solid #eceef0; }
.next-governance-row:last-child { border-bottom: 0; }
.next-governance-row:hover { background: #fafbfb; }
.next-governance-row.due { box-shadow: inset 3px 0 0 var(--next-red); }
.next-governance-row > span:not(.next-governance-actions) { display: grid; gap: 2px; }
.next-governance-row strong, .next-governance-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-governance-row strong { font-size: 8px; }
.next-governance-row small { color: var(--next-muted); font-size: 7px; }
.next-governance-row em { justify-self: start; padding: 4px 6px; color: #5f656a; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-governance-row em.status-in-prufung { color: #75540e; background: #fff3d6; }
.next-governance-row em.status-nacharbeit { color: #8b252b; background: #fbeced; }
.next-governance-row em.status-freigegeben { color: #315e45; background: #e9f2ed; }
.next-governance-actions { display: flex; justify-content: flex-end; gap: 2px; }
.next-governance-actions button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; color: #787d82; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-governance-actions button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-governance-actions svg { width: 13px; height: 13px; }
.next-governance-actions .next-bim-revision-upload { position: relative; display: grid; place-items: center; width: 27px; height: 27px; color: #8f2930; border-radius: 3px; background: #fff0f1; cursor: pointer; overflow: hidden; }
.next-governance-actions .next-bim-revision-upload:hover { color: #fff; background: var(--next-red); }
.next-governance-actions .next-bim-revision-upload.disabled { opacity: .45; cursor: wait; }
.next-governance-actions .next-bim-revision-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.next-governance-documents { grid-column: 1 / -1; border-top: 1px solid var(--next-line); }
.next-governance-documents > .next-document-control { margin: 13px; }
.next-area-workspace { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-area-master, .next-area-register { min-width: 0; }
.next-area-master > header, .next-area-register > header, .next-area-workspace > .next-governance-documents > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-area-master > header > div, .next-area-register > header > div, .next-area-workspace > .next-governance-documents > header > div { display: grid; min-width: 0; gap: 2px; }
.next-area-master > header span, .next-area-register > header span, .next-area-workspace > .next-governance-documents > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-area-master h2, .next-area-register h2, .next-area-workspace > .next-governance-documents h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-area-master h2 b, .next-area-register h2 b, .next-area-workspace > .next-governance-documents h2 b { margin-left: 4px; color: var(--next-muted); font-size: 9px; }
.next-area-master > header small { color: var(--next-muted); font-size: 8px; }
.next-area-master .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
.next-area-rule { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; margin: 0 14px 14px; padding: 10px; border: 1px solid #d9e2ea; border-radius: 4px; background: #f1f5f8; }
.next-area-rule > svg { width: 18px; height: 18px; color: var(--next-blue); }
.next-area-rule > span { display: grid; gap: 2px; }
.next-area-rule strong { font-size: 9px; }
.next-area-rule small { color: var(--next-muted); font-size: 8px; }
.next-area-register { border-top: 1px solid var(--next-line); }
.next-area-editor .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 430px; }
.next-inline-warning { display: flex; align-items: center; gap: 7px; margin: 0 12px 10px; padding: 8px 10px; color: #7c5517; border: 1px solid #ead7ac; border-radius: 4px; background: #fff8e8; font-size: 9px; }
.next-inline-warning svg { width: 14px; height: 14px; }
.next-area-list { min-width: 0; }
.next-area-list-head, .next-area-row { display: grid; grid-template-columns: 1.1fr .9fr .85fr 1.05fr 1fr 1fr 76px; align-items: center; min-width: 0; }
.next-area-list-head { min-height: 31px; color: #6c7176; border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-area-list-head span, .next-area-row > span { min-width: 0; padding: 6px 8px; }
.next-area-row { min-height: 62px; border-bottom: 1px solid #eceef0; }
.next-area-row:last-child { border-bottom: 0; }
.next-area-row:hover { background: #fafbfb; }
.next-area-row.due { box-shadow: inset 3px 0 0 var(--next-red); }
.next-area-row > span:not(.next-governance-actions) { display: grid; gap: 2px; }
.next-area-row strong, .next-area-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-area-row strong { font-size: 8px; }
.next-area-row small { color: var(--next-muted); font-size: 7px; }
.next-area-row em { justify-self: start; padding: 4px 6px; color: #5f656a; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-area-row em.status-gepruft { color: #34546f; background: #e9f0f6; }
.next-area-row em.status-freigegeben { color: #315e45; background: #e9f2ed; }
.next-area-row em.status-nacharbeit { color: #8b252b; background: #fbeced; }
.next-area-row em.status-archiviert { color: #5d6166; background: #e7e9eb; }
.next-governance-actions a { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; color: #787d82; border: 0; border-radius: 3px; background: transparent; cursor: pointer; text-decoration: none; }
.next-governance-actions a:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-governance-actions a svg { width: 13px; height: 13px; }
.next-area-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 14px; border-top: 1px solid var(--next-line); }
.next-area-footer > span { color: var(--next-muted); font-size: 8px; }
.next-area-footer .next-command { min-height: 32px; border: 0; cursor: pointer; }
.next-maintenance-workspace { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-maintenance-master, .next-maintenance-register { min-width: 0; }
.next-maintenance-master > header, .next-maintenance-register > header, .next-maintenance-workspace > .next-governance-documents > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-maintenance-master > header > div, .next-maintenance-register > header > div, .next-maintenance-workspace > .next-governance-documents > header > div { display: grid; min-width: 0; gap: 2px; }
.next-maintenance-master > header span, .next-maintenance-register > header span, .next-maintenance-workspace > .next-governance-documents > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-maintenance-master h2, .next-maintenance-register h2, .next-maintenance-workspace > .next-governance-documents h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-maintenance-master h2 b, .next-maintenance-register h2 b, .next-maintenance-workspace > .next-governance-documents h2 b { margin-left: 4px; color: var(--next-muted); font-size: 9px; }
.next-maintenance-master > header small { color: var(--next-muted); font-size: 8px; }
.next-maintenance-master .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; }
.next-maintenance-master > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 14px; border-top: 1px solid var(--next-line); }
.next-maintenance-master > footer > span { color: var(--next-muted); font-size: 8px; }
.next-maintenance-register { border-top: 1px solid var(--next-line); }
.next-maintenance-plans { background: #fdfdfd; }
.next-maintenance-register > header > .next-maintenance-header-actions { display: flex; align-items: center; justify-content: flex-end; grid-auto-flow: column; gap: 6px; }
.next-maintenance-automation { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 7px; border: 1px solid #d9dddf; border-radius: 3px; background: #f4f5f6; white-space: nowrap; }
.next-maintenance-automation.active { color: #315e45; border-color: #bdd5c7; background: #e9f2ed; }
.next-maintenance-automation.inactive { color: #6c7176; }
.next-maintenance-automation svg { width: 12px; height: 12px; }
.next-maintenance-plans .next-maintenance-editor fieldset:last-child { grid-column: 1 / -1; border-right: 0; }
.next-maintenance-plan-list .next-maintenance-list-head, .next-maintenance-plan-list .next-maintenance-row { grid-template-columns: 1.15fr 1.15fr .85fr 1fr .7fr 92px; }
.next-maintenance-plan-list .next-governance-actions button:disabled { opacity: .38; cursor: not-allowed; }
.next-maintenance-plan-list .next-governance-actions button.danger { color: var(--next-red-dark); background: #fae9eb; }
.next-maintenance-toolbar { grid-template-columns: minmax(220px, 1fr) minmax(130px, 180px) minmax(130px, 180px); }
.next-maintenance-editor { border-bottom: 1px solid var(--next-line); background: #fbfbfc; }
.next-maintenance-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 49px; padding: 7px 12px; border-bottom: 1px solid var(--next-line); }
.next-maintenance-editor > header > div { display: grid; gap: 2px; }
.next-maintenance-editor > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-maintenance-editor h3 { margin: 0; font-size: 11px; letter-spacing: 0; }
.next-maintenance-editor > header button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #767b80; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-maintenance-editor > header button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-maintenance-editor > header button svg { width: 14px; height: 14px; }
.next-maintenance-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 690px; overflow-y: auto; }
.next-maintenance-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-maintenance-editor fieldset:nth-child(2n) { border-right: 0; }
.next-maintenance-editor legend { width: 100%; padding: 9px 12px; color: #4f555a; background: #f1f3f4; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-maintenance-editor fieldset .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.next-checkbox-field { grid-column: 1 / -1; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid #d9dde0; border-radius: 4px; background: #fff; }
.next-checkbox-field input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--next-red-dark); }
.next-checkbox-field > span { display: grid; gap: 2px; }
.next-checkbox-field strong { font-size: 8px; }
.next-checkbox-field small { color: var(--next-muted); font-size: 7px; }
.next-maintenance-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; }
.next-maintenance-editor > footer > span { color: var(--next-muted); font-size: 8px; }
.next-maintenance-editor > footer > div { display: flex; gap: 6px; }
.next-contractor-internal-review { margin: 10px 12px; border: 1px solid #e0bd64; border-radius: 5px; background: #fffaf0; }
.next-contractor-internal-review > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #ead9aa; }
.next-contractor-internal-review > header > div { display: grid; gap: 2px; }
.next-contractor-internal-review > header span { color: #8b5c00; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-contractor-internal-review h4 { margin: 0; font-size: 12px; }
.next-contractor-internal-review > header em { padding: 4px 7px; color: #75540e; border-radius: 3px; background: #ffefc5; font-size: 8px; font-style: normal; font-weight: 800; }
.next-contractor-internal-review > dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px 13px 0; }
.next-contractor-internal-review > dl div { min-width: 0; padding: 8px 9px; background: #fff; }
.next-contractor-internal-review dt { color: #74716a; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-contractor-internal-review dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 8px; font-weight: 700; }
.next-contractor-internal-review > .next-field { margin: 10px 13px 12px; }
.next-contractor-internal-review > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-top: 1px solid #ead9aa; background: #fff7e3; }
.next-contractor-internal-review > footer > span { color: #6d6758; font-size: 8px; }
.next-contractor-internal-review > footer > div { display: flex; gap: 7px; }
@media (max-width: 850px) {
  .next-contractor-internal-review > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-contractor-internal-review > footer { align-items: stretch; flex-direction: column; }
  .next-contractor-internal-review > footer > div { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .next-contractor-internal-review > dl { grid-template-columns: 1fr; }
  .next-contractor-internal-review > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-contractor-internal-review > footer button { width: 100%; justify-content: center; }
}
.next-maintenance-list { min-width: 0; }
.next-maintenance-list-head, .next-maintenance-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr .8fr 44px; align-items: center; min-width: 0; }
.next-maintenance-list-head { min-height: 31px; color: #6c7176; border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-maintenance-list-head span, .next-maintenance-row > span { min-width: 0; padding: 6px 8px; }
.next-maintenance-row { min-height: 62px; border-bottom: 1px solid #eceef0; }
.next-maintenance-row:last-child { border-bottom: 0; }
.next-maintenance-row:hover { background: #fafbfb; }
.next-maintenance-row.due { box-shadow: inset 3px 0 0 var(--next-red); }
.next-maintenance-row > span:not(.next-governance-actions) { display: grid; gap: 2px; }
.next-maintenance-row strong, .next-maintenance-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-maintenance-row strong { font-size: 8px; }
.next-maintenance-row small { color: var(--next-muted); font-size: 7px; }
.next-maintenance-row em { justify-self: start; padding: 4px 6px; color: #5f656a; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-maintenance-row em.critical, .next-maintenance-row em.due { color: #8b252b; background: #fbeced; }
.next-maintenance-row em.review, .next-maintenance-row small.review { color: #75540e; background: #fff3d6; }
.next-maintenance-row em.released, .next-maintenance-row small.released { color: #315e45; background: #e9f2ed; }
.next-maintenance-row em.archived, .next-maintenance-row small.archived { color: #5d6166; background: #e7e9eb; }
.next-maintenance-row small.review, .next-maintenance-row small.released, .next-maintenance-row small.archived, .next-maintenance-row small.draft { justify-self: start; padding: 3px 5px; border-radius: 3px; }
.next-work-permit-workspace { background: #fdfdfd; }
.next-work-permit-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-work-permit-metrics > span { display: grid; gap: 2px; min-width: 0; padding: 10px 14px; border-right: 1px solid var(--next-line); }
.next-work-permit-metrics > span:last-child { border-right: 0; }
.next-work-permit-metrics small { color: var(--next-muted); font-size: 8px; }
.next-work-permit-metrics strong { font-size: 15px; }
.next-work-permit-metrics .critical strong { color: var(--next-red-dark); }
.next-work-permit-toolbar { grid-template-columns: minmax(240px, 1fr) minmax(150px, 210px); }
.next-work-permit-layout { display: grid; grid-template-columns: minmax(270px, 31%) minmax(0, 1fr); min-height: 480px; }
.next-work-permit-list { min-width: 0; max-height: 760px; border-right: 1px solid var(--next-line); overflow-y: auto; }
.next-work-permit-list-item { display: grid; width: 100%; min-width: 0; gap: 4px; padding: 11px 12px; color: var(--next-ink); border: 0; border-bottom: 1px solid #e7e9ea; border-radius: 0; background: #fff; text-align: left; cursor: pointer; }
.next-work-permit-list-item:hover { background: #f7f8f8; }
.next-work-permit-list-item.active { box-shadow: inset 3px 0 var(--next-red-dark); background: #f8f5f5; }
.next-work-permit-list-item > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.next-work-permit-list-item > span strong, .next-work-permit-list-item > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-work-permit-list-item > span strong { font-size: 9px; }
.next-work-permit-list-item > b { font-size: 10px; }
.next-work-permit-list-item small { color: var(--next-muted); font-size: 8px; line-height: 1.35; }
.next-work-permit-list-item em, .next-work-permit-record > header em { flex: none; padding: 3px 6px; color: #5f656a; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-work-permit-list-item em.status-eingereicht, .next-work-permit-list-item em.status-in-prufung, .next-work-permit-record > header em.status-eingereicht, .next-work-permit-record > header em.status-in-prufung { color: #75540e; background: #fff3d6; }
.next-work-permit-list-item em.status-freigegeben, .next-work-permit-list-item em.status-aktiv, .next-work-permit-list-item em.status-abgeschlossen, .next-work-permit-record > header em.status-freigegeben, .next-work-permit-record > header em.status-aktiv, .next-work-permit-record > header em.status-abgeschlossen { color: #315e45; background: #e9f2ed; }
.next-work-permit-list-item em.status-unterbrochen, .next-work-permit-list-item em.status-in-ablosung, .next-work-permit-record > header em.status-unterbrochen, .next-work-permit-record > header em.status-in-ablosung { color: #75540e; background: #fff3d6; }
.next-work-permit-list-item em.status-zuruckgewiesen, .next-work-permit-list-item em.status-storniert, .next-work-permit-list-item em.status-abgelaufen, .next-work-permit-record > header em.status-zuruckgewiesen, .next-work-permit-record > header em.status-storniert, .next-work-permit-record > header em.status-abgelaufen { color: #8b252b; background: #fbeced; }
.next-work-permit-detail { min-width: 0; background: #fff; }
.next-work-permit-editor > header, .next-work-permit-record > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-work-permit-editor > header > div, .next-work-permit-record > header > div { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-editor > header span, .next-work-permit-record > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-editor h3, .next-work-permit-record h3 { margin: 0; font-size: 14px; letter-spacing: 0; }
.next-work-permit-record > header p { margin: 2px 0 0; color: var(--next-muted); font-size: 8px; }
.next-work-permit-editor > header button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #767b80; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-work-permit-editor > header button svg { width: 14px; height: 14px; }
.next-work-permit-form { max-height: 720px; overflow-y: auto; }
.next-work-permit-form fieldset, .next-work-permit-transition { min-width: 0; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--next-line); }
.next-work-permit-form legend, .next-work-permit-transition legend { width: 100%; padding: 9px 12px; color: #4f555a; background: #f1f3f4; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-form fieldset .next-form-grid, .next-work-permit-transition .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.next-work-permit-evidence { display: grid; gap: 6px; min-width: 0; }
.next-work-permit-evidence > span { color: #4f555a; font-size: 8px; font-weight: 800; }
.next-work-permit-evidence > small { color: var(--next-red-dark); font-size: 8px; }
.next-work-permit-evidence > label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 7px; padding: 7px 8px; border: 1px solid #d9dde0; border-radius: 4px; background: #fff; }
.next-work-permit-evidence > label input { margin: 1px 0 0; accent-color: var(--next-red-dark); }
.next-work-permit-evidence > label span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-evidence strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-work-permit-evidence small { color: var(--next-muted); font-size: 7px; }
.next-work-permit-atmosphere-target-editor { min-width: 0; border: 1px solid #d9dde0; border-radius: 5px; background: #f8f9f9; overflow: hidden; }
.next-work-permit-atmosphere-target-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #dfe2e4; background: #f1f3f4; }
.next-work-permit-atmosphere-target-editor > header > span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-atmosphere-target-editor > header strong { font-size: 9px; }
.next-work-permit-atmosphere-target-editor > header small { color: var(--next-muted); font-size: 7px; line-height: 1.35; }
.next-work-permit-atmosphere-target-draft { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 30px; gap: 8px; padding: 10px; border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-atmosphere-target-draft:last-child { border-bottom: 0; }
.next-work-permit-atmosphere-target-draft > .icon-button { align-self: end; }
.next-work-permit-atmosphere { border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-work-permit-atmosphere > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 12px; border-bottom: 1px solid #dfe2e4; background: #f1f3f4; }
.next-work-permit-atmosphere > header > div { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-atmosphere > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-atmosphere > header h4 { margin: 0; font-size: 9px; letter-spacing: 0; }
.next-work-permit-atmosphere > header h4 b { margin-left: 4px; color: var(--next-muted); font-size: 8px; }
.next-work-permit-atmosphere em.ready, .next-work-permit-atmosphere em.due { flex: none; padding: 3px 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-work-permit-atmosphere em.ready { color: #315e45; background: #e9f2ed; }
.next-work-permit-atmosphere em.due { color: #7e2f35; background: #fbeced; }
.next-work-permit-atmosphere-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-atmosphere-plan > span { display: grid; min-width: 0; gap: 3px; padding: 9px 10px; border-right: 1px solid #eceeef; }
.next-work-permit-atmosphere-plan > span:last-child { border-right: 0; }
.next-work-permit-atmosphere-plan small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-work-permit-atmosphere-plan strong { overflow-wrap: anywhere; font-size: 8px; line-height: 1.4; }
.next-work-permit-atmosphere-history { display: grid; gap: 6px; max-height: 260px; padding: 8px 10px; overflow-y: auto; }
.next-work-permit-atmosphere-history article { padding: 8px 9px; border: 1px solid #dfe2e4; border-radius: 4px; background: #fff; }
.next-work-permit-atmosphere-history article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.next-work-permit-atmosphere-history article > header > span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-atmosphere-history article strong { font-size: 8px; }
.next-work-permit-atmosphere-history article small { color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-work-permit-atmosphere-history article p { margin: 5px 0; font-size: 8px; overflow-wrap: anywhere; }
.next-work-permit-atmosphere-history article p.critical { color: #7e2f35; font-weight: 700; }
.next-work-permit-atmosphere-entry { margin: 0; border-top: 1px solid #dfe2e4; background: #fbfbfc; }
.next-work-permit-atmosphere-entry > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.next-work-permit-atmosphere-entry > footer > span { color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-work-permit-atmosphere-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; border: 1px solid #dfe2e4; border-radius: 4px; background: #f8f9f9; }
.next-work-permit-rescue-equipment-editor { min-width: 0; border: 1px solid #d9dde0; border-radius: 5px; background: #f8f9f9; overflow: hidden; }
.next-work-permit-rescue-equipment-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #dfe2e4; background: #f1f3f4; }
.next-work-permit-rescue-equipment-editor > header > span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-rescue-equipment-editor > header strong { font-size: 9px; }
.next-work-permit-rescue-equipment-editor > header small { color: var(--next-muted); font-size: 7px; line-height: 1.35; }
.next-work-permit-rescue-equipment-draft { display: grid; grid-template-columns: 1fr 100px 1fr 2fr 30px; gap: 8px; padding: 10px; border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-rescue-equipment-draft:last-child { border-bottom: 0; }
.next-work-permit-rescue-equipment-draft > .icon-button { align-self: end; }
.next-work-permit-rescue { border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-work-permit-rescue > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 12px; border-bottom: 1px solid #dfe2e4; background: #f1f3f4; }
.next-work-permit-rescue > header > div { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-rescue > header span { color: #315e45; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-rescue > header h4 { margin: 0; font-size: 9px; letter-spacing: 0; }
.next-work-permit-rescue > header h4 b { margin-left: 4px; color: var(--next-muted); font-size: 8px; }
.next-work-permit-rescue em.ready, .next-work-permit-rescue em.due { flex: none; padding: 3px 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-work-permit-rescue em.ready { color: #315e45; background: #e9f2ed; }
.next-work-permit-rescue em.due { color: #7e2f35; background: #fbeced; }
.next-work-permit-rescue-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-rescue-plan > span { display: grid; min-width: 0; gap: 3px; padding: 9px 10px; border-right: 1px solid #eceeef; border-bottom: 1px solid #eceeef; }
.next-work-permit-rescue-plan small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-work-permit-rescue-plan strong { overflow-wrap: anywhere; font-size: 8px; line-height: 1.4; }
.next-work-permit-rescue-history { display: grid; gap: 6px; max-height: 260px; padding: 8px 10px; overflow-y: auto; }
.next-work-permit-rescue-history article { padding: 8px 9px; border: 1px solid #dfe2e4; border-radius: 4px; background: #fff; }
.next-work-permit-rescue-history article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.next-work-permit-rescue-history article > header > span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-rescue-history article strong { font-size: 8px; }
.next-work-permit-rescue-history article small { color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-work-permit-rescue-history article p { margin: 5px 0; font-size: 8px; overflow-wrap: anywhere; }
.next-work-permit-rescue-history article p.critical { color: #7e2f35; font-weight: 700; }
.next-work-permit-rescue-entry { margin: 0; border-top: 1px solid #dfe2e4; background: #fbfbfc; }
.next-work-permit-rescue-entry > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.next-work-permit-rescue-entry > footer > span { color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-work-permit-rescue-equipment-checks { display: grid; gap: 8px; }
.next-work-permit-rescue-equipment-checks > article { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 9px; border: 1px solid #dfe2e4; border-radius: 4px; background: #f8f9f9; }
.next-work-permit-rescue-equipment-checks > article > header { display: grid; grid-column: 1 / -1; gap: 2px; }
.next-work-permit-rescue-equipment-checks > article > header strong { font-size: 8px; }
.next-work-permit-rescue-equipment-checks > article > header small { color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-work-permit-access { border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-work-permit-access > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 12px; border-bottom: 1px solid #dfe2e4; background: #f1f3f4; }
.next-work-permit-access > header > div { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-access > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-access > header h4 { margin: 0; font-size: 9px; letter-spacing: 0; }
.next-work-permit-access > header h4 b { margin-left: 4px; color: var(--next-muted); font-size: 8px; }
.next-work-permit-access em.ready, .next-work-permit-access em.due { flex: none; padding: 3px 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-work-permit-access em.ready { color: #315e45; background: #e9f2ed; }
.next-work-permit-access em.due { color: #7e2f35; background: #fbeced; }
.next-work-permit-access-plan { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr); border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-access-plan > span { display: grid; min-width: 0; gap: 3px; padding: 9px 10px; border-right: 1px solid #eceeef; }
.next-work-permit-access-plan > span:last-child { border-right: 0; }
.next-work-permit-access-plan small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-work-permit-access-plan strong { overflow-wrap: anywhere; font-size: 8px; line-height: 1.4; }
.next-work-permit-access-presence, .next-work-permit-access-history { display: grid; gap: 6px; padding: 8px 10px; }
.next-work-permit-access-presence { border-bottom: 1px solid #dfe2e4; background: #fff8f8; }
.next-work-permit-access-history { max-height: 260px; overflow-y: auto; }
.next-work-permit-access-presence article, .next-work-permit-access-history article { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; padding: 8px 9px; border: 1px solid #dfe2e4; border-radius: 4px; background: #fff; }
.next-work-permit-access-presence svg, .next-work-permit-access-history svg { width: 14px; height: 14px; margin-top: 1px; color: var(--next-red-dark); }
.next-work-permit-access-presence article > span, .next-work-permit-access-history article > span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-access-presence strong, .next-work-permit-access-history strong { font-size: 8px; }
.next-work-permit-access-presence small, .next-work-permit-access-history small { color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-work-permit-access-history em { color: #315e45; font-size: 7px; font-style: normal; }
.next-work-permit-access-entry { margin: 0; border-top: 1px solid #dfe2e4; background: #fbfbfc; }
.next-work-permit-access-entry > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.next-work-permit-access-entry > footer > span { color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-work-permit-isolation-editor { min-width: 0; border: 1px solid #d9dde0; border-radius: 5px; background: #f8f9f9; overflow: hidden; }
.next-work-permit-isolation-editor > header, .next-work-permit-isolations > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #dfe2e4; background: #f1f3f4; }
.next-work-permit-isolation-editor > header > span, .next-work-permit-isolations > header > div { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-isolation-editor > header strong, .next-work-permit-isolations h4 { margin: 0; font-size: 9px; letter-spacing: 0; }
.next-work-permit-isolation-editor > header small, .next-work-permit-isolations > header > small { color: var(--next-muted); font-size: 7px; line-height: 1.35; }
.next-work-permit-isolation-draft { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 30px; gap: 8px; padding: 10px; border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-isolation-draft:last-child { border-bottom: 0; }
.next-work-permit-isolation-draft .wide { grid-column: span 2; }
.next-work-permit-isolation-draft > .icon-button { align-self: end; grid-column: 3; grid-row: 1; }
.next-work-permit-isolations { border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-work-permit-isolations > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-isolations h4 b { margin-left: 4px; color: var(--next-muted); font-size: 8px; }
.next-work-permit-isolation-point { padding: 10px 12px; border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-isolation-point:last-child { border-bottom: 0; }
.next-work-permit-isolation-point > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.next-work-permit-isolation-point > header > span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-isolation-point > header strong { overflow-wrap: anywhere; font-size: 9px; }
.next-work-permit-isolation-point > header small { color: var(--next-muted); font-size: 7px; }
.next-work-permit-isolation-point > header em { flex: none; padding: 3px 6px; border-radius: 3px; background: #eef0f2; color: #5f656a; font-size: 7px; font-style: normal; font-weight: 800; }
.next-work-permit-isolation-point > header em.status-gesichert { color: #75540e; background: #fff3d6; }
.next-work-permit-isolation-point > header em.status-gepruft, .next-work-permit-isolation-point > header em.status-zuruckgebaut { color: #315e45; background: #e9f2ed; }
.next-work-permit-isolation-point > dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr); margin: 8px 0 0; border: 1px solid #eceeef; }
.next-work-permit-isolation-point > dl > div { min-width: 0; padding: 7px 8px; border-right: 1px solid #eceeef; }
.next-work-permit-isolation-point > dl > div:last-child { border-right: 0; }
.next-work-permit-isolation-point dt { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-isolation-point dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 8px; }
.next-work-permit-isolation-point > p { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 6px; margin: 7px 0 0; color: #315e45; }
.next-work-permit-isolation-point > p svg { width: 13px; height: 13px; margin-top: 1px; }
.next-work-permit-isolation-point > p span { display: grid; gap: 1px; }
.next-work-permit-isolation-point > p strong { font-size: 8px; }
.next-work-permit-isolation-point > p small { color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-work-permit-isolation-action { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #eceeef; }
.next-work-permit-isolation-action .next-secondary-command { white-space: nowrap; }
.next-work-permit-participant-editor { min-width: 0; border: 1px solid #d9dde0; border-radius: 5px; background: #f8f9f9; overflow: hidden; }
.next-work-permit-participant-editor > header, .next-work-permit-participants > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #dfe2e4; background: #f1f3f4; }
.next-work-permit-participant-editor > header > span, .next-work-permit-participants > header > div { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-participant-editor > header strong, .next-work-permit-participants h4 { margin: 0; font-size: 9px; letter-spacing: 0; }
.next-work-permit-participant-editor > header small, .next-work-permit-participants > header > small { color: var(--next-muted); font-size: 7px; line-height: 1.35; }
.next-work-permit-participant-draft { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 30px; gap: 8px; padding: 10px; border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-participant-draft:last-child { border-bottom: 0; }
.next-work-permit-participant-draft > .icon-button { align-self: end; grid-column: 3; grid-row: 1; }
.next-work-permit-participants { border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-work-permit-participants > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-participants h4 b { margin-left: 4px; color: var(--next-muted); font-size: 8px; }
.next-work-permit-participant { padding: 10px 12px; border-bottom: 1px solid #dfe2e4; background: #fff; }
.next-work-permit-participant:last-child { border-bottom: 0; }
.next-work-permit-participant > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.next-work-permit-participant > header > span { display: grid; min-width: 0; gap: 2px; }
.next-work-permit-participant > header strong { overflow-wrap: anywhere; font-size: 9px; }
.next-work-permit-participant > header small { color: var(--next-muted); font-size: 7px; }
.next-work-permit-participant > header em { flex: none; padding: 3px 6px; border-radius: 3px; background: #eef0f2; color: #5f656a; font-size: 7px; font-style: normal; font-weight: 800; }
.next-work-permit-participant > header em.status-unterwiesen { color: #315e45; background: #e9f2ed; }
.next-work-permit-participant > header em.status-abgemeldet { color: #53606a; background: #e8ecef; }
.next-work-permit-participant > p { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 6px; margin: 7px 0 0; color: #315e45; }
.next-work-permit-participant > p svg { width: 13px; height: 13px; margin-top: 1px; }
.next-work-permit-participant > p span { display: grid; gap: 1px; }
.next-work-permit-participant > p strong { font-size: 8px; }
.next-work-permit-participant > p small { color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-work-permit-participant-action { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #eceeef; }
.next-work-permit-participant-action .next-secondary-command { white-space: nowrap; }
.next-work-permit-legacy-roster { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 12px; color: #5f656a; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-work-permit-legacy-roster svg { width: 16px; height: 16px; }
.next-work-permit-legacy-roster span { display: grid; gap: 2px; }
.next-work-permit-legacy-roster strong { font-size: 8px; }
.next-work-permit-legacy-roster small { color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-work-permit-editor > footer, .next-work-permit-transition > footer, .next-work-permit-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.next-work-permit-editor > footer > span, .next-work-permit-actions > span { color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-work-permit-editor > footer > div, .next-work-permit-actions > div, .next-work-permit-transition > footer { display: flex; justify-content: flex-end; gap: 6px; }
.next-work-permit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-work-permit-summary > span { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; border-right: 1px solid var(--next-line); }
.next-work-permit-summary > span:last-child { border-right: 0; }
.next-work-permit-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-work-permit-summary strong { overflow-wrap: anywhere; font-size: 8px; }
.next-work-permit-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--next-line); }
.next-work-permit-data > div { min-width: 0; padding: 10px 12px; border-right: 1px solid #eceeef; border-bottom: 1px solid #eceeef; }
.next-work-permit-data > div:nth-child(2n) { border-right: 0; }
.next-work-permit-data dt { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-work-permit-data dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 8px; line-height: 1.5; }
.next-work-permit-data dd small { display: block; margin-top: 3px; color: var(--next-red-dark); }
.next-work-permit-timeline { display: grid; max-height: 210px; margin: 0; padding: 8px 12px; list-style: none; overflow-y: auto; }
.next-work-permit-timeline li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; padding: 6px 0; border-bottom: 1px solid #eef0f1; }
.next-work-permit-timeline li:last-child { border-bottom: 0; }
.next-work-permit-timeline svg { width: 13px; height: 13px; margin-top: 1px; color: var(--next-green); }
.next-work-permit-timeline span { display: grid; gap: 2px; }
.next-work-permit-timeline strong { font-size: 8px; }
.next-work-permit-timeline small, .next-work-permit-timeline em { color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-work-permit-transition { border-top: 1px solid var(--next-line); background: #fbfbfc; }
.next-work-permit-transition.critical legend { color: #7e2f35; background: #fbeced; }
.next-work-permit-actions { min-height: 54px; border-top: 1px solid var(--next-line); }
.next-asset-workspace { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-asset-master, .next-asset-register { min-width: 0; }
.next-asset-master > header, .next-asset-register > header, .next-asset-workspace > .next-governance-documents > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-asset-master > header > div, .next-asset-register > header > div, .next-asset-workspace > .next-governance-documents > header > div { display: grid; min-width: 0; gap: 2px; }
.next-asset-master > header span, .next-asset-register > header span, .next-asset-workspace > .next-governance-documents > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-asset-master h2, .next-asset-register h2, .next-asset-workspace > .next-governance-documents h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-asset-master h2 b, .next-asset-register h2 b, .next-asset-workspace > .next-governance-documents h2 b { margin-left: 4px; color: var(--next-muted); font-size: 9px; }
.next-asset-master > header small { color: var(--next-muted); font-size: 8px; }
.next-asset-master .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; }
.next-asset-master > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 14px; border-top: 1px solid var(--next-line); }
.next-asset-master > footer > span { color: var(--next-muted); font-size: 8px; }
.next-asset-register { border-top: 1px solid var(--next-line); }
.next-asset-toolbar { grid-template-columns: minmax(220px, 1fr) minmax(150px, 200px); }
.next-reservation-toolbar { grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(170px, 210px)); }
.next-asset-editor { border-bottom: 1px solid var(--next-line); background: #fbfbfc; }
.next-asset-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 49px; padding: 7px 12px; border-bottom: 1px solid var(--next-line); }
.next-asset-editor > header > div { display: grid; gap: 2px; }
.next-asset-editor > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-asset-editor h3 { margin: 0; font-size: 11px; letter-spacing: 0; }
.next-asset-editor > header button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #767b80; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-asset-editor > header button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-asset-editor > header button svg { width: 14px; height: 14px; }
.next-asset-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 690px; overflow-y: auto; }
.next-evidence-lock { min-width: 0; margin: 0; padding: 0; border: 0; }
.next-asset-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-asset-editor fieldset:nth-child(2n) { border-right: 0; }
.next-asset-editor legend { width: 100%; padding: 9px 12px; color: #4f555a; background: #f1f3f4; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-asset-editor fieldset .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.next-asset-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; }
.next-asset-editor > footer > span { color: var(--next-muted); font-size: 8px; }
.next-asset-editor > footer > div { display: flex; gap: 6px; }
.next-reservation-evidence-review { margin: 12px; border: 1px solid #d8c58f; border-radius: 5px; background: #fffdf5; }
.next-reservation-evidence-review > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border-bottom: 1px solid #e7dcc0; }
.next-reservation-evidence-review > header > div { display: grid; gap: 2px; }
.next-reservation-evidence-review > header span { color: #79580d; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-reservation-evidence-review > header h3 { margin: 0; font-size: 11px; letter-spacing: 0; }
.next-reservation-evidence-review > header small { color: var(--next-muted); font-size: 8px; }
.next-reservation-evidence-review > .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; }
.next-reservation-review-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 34px; border: 1px solid #c9ced1; border-radius: 4px; overflow: hidden; }
.next-reservation-review-options button { min-width: 0; padding: 6px 8px; color: #596167; border: 0; border-right: 1px solid #d8dcdf; border-radius: 0; background: #fff; font-size: 8px; font-weight: 700; cursor: pointer; }
.next-reservation-review-options button:last-child { border-right: 0; }
.next-reservation-review-options button:hover:not(:disabled) { color: var(--next-red-dark); background: #f8f1f2; }
.next-reservation-review-options button.active { color: #fff; background: #8f242b; }
.next-reservation-review-options button:disabled { cursor: default; opacity: .62; }
.next-reservation-evidence-review > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid #e7dcc0; }
.next-reservation-evidence-review > footer > span { color: var(--next-muted); font-size: 8px; }
.next-asset-list { min-width: 0; }
.next-asset-list-head, .next-asset-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr .7fr 88px; align-items: center; min-width: 0; }
.next-cleaning-list .next-asset-list-head, .next-cleaning-list .next-asset-row { grid-template-columns: 1.15fr .95fr .85fr .7fr .72fr .72fr 88px; }
.next-cleaning-editor .next-area-rule.wide { grid-column: 1 / -1; }
.next-asset-list-head { min-height: 31px; color: #6c7176; border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-asset-list-head span, .next-asset-row > span { min-width: 0; padding: 6px 8px; }
.next-asset-row { min-height: 62px; border-bottom: 1px solid #eceef0; }
.next-asset-row:last-child { border-bottom: 0; }
.next-asset-row:hover { background: #fafbfb; }
.next-asset-row.due { box-shadow: inset 3px 0 0 var(--next-red); }
.next-asset-row.review { box-shadow: inset 3px 0 0 var(--next-amber); background: #fffdf7; }
.next-asset-row > span:not(.next-governance-actions) { display: grid; gap: 2px; }
.next-asset-row strong, .next-asset-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-asset-row strong { font-size: 8px; }
.next-asset-row small { color: var(--next-muted); font-size: 7px; }
.next-asset-row em { justify-self: start; padding: 4px 6px; color: #5f656a; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-asset-row em.released { color: #315e45; background: #e9f2ed; }
.next-asset-row em.review { color: #75540e; background: #fff3d6; }
.next-asset-row em.due { color: #8b252b; background: #fbeced; }
.next-asset-row em.archived { color: #5d6166; background: #e7e9eb; }
.next-rental-finance { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-rental-finance-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-rental-finance-header > div { display: grid; min-width: 0; gap: 2px; }
.next-rental-finance-header span, .next-rental-finance-form > header span, .next-rental-finance-journal > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-rental-finance-header h2, .next-rental-finance-form h3, .next-rental-finance-journal h3 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-rental-finance-header small, .next-rental-finance-form > header small { color: var(--next-muted); font-size: 8px; }
.next-rental-finance-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.next-rental-finance .next-function-kpis.compact { border-bottom: 1px solid var(--next-line); }
.next-rental-finance .next-function-kpis.compact > div { min-height: 68px; }
.next-rental-finance-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); min-width: 0; border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-rental-finance-tabs button { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 43px; gap: 6px; padding: 7px 9px; color: #5f656a; border: 0; border-right: 1px solid var(--next-line); border-bottom: 3px solid transparent; background: transparent; font: inherit; font-size: 8px; font-weight: 750; cursor: pointer; }
.next-rental-finance-tabs button:last-child { border-right: 0; }
.next-rental-finance-tabs button:hover { color: var(--next-red-dark); background: #fff; }
.next-rental-finance-tabs button.active { color: var(--next-red-dark); border-bottom-color: var(--next-red); background: #fff; }
.next-rental-finance-tabs button svg { width: 14px; height: 14px; flex: 0 0 auto; }
.next-rental-finance-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-rental-finance-tabs button b { min-width: 18px; padding: 2px 4px; border-radius: 3px; background: #e9ebed; font-size: 7px; text-align: center; }
.next-rental-finance-form > header, .next-rental-finance-journal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-rental-finance-form > header > div, .next-rental-finance-journal > header > div { display: grid; min-width: 0; gap: 2px; }
.next-rental-finance-form .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; }
.next-rental-finance-form > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border-top: 1px solid var(--next-line); }
.next-rental-finance-form > footer > span { max-width: 68ch; color: var(--next-muted); font-size: 8px; }
.next-rental-finance-journal { border-top: 0; }
.next-rental-finance-journal > header select { width: min(280px, 35vw); min-height: 34px; padding: 0 9px; color: var(--next-text); border: 1px solid #cfd3d6; border-radius: 3px; background: #fff; font: inherit; font-size: 8px; }
.next-rental-finance-row.next-asset-list-head, .next-rental-finance-row.next-asset-row { grid-template-columns: 1.05fr 1.1fr 1.25fr .7fr .75fr 78px; }
.next-rental-finance-row .next-governance-actions > i { width: 13px; height: 13px; color: var(--next-muted); }
.next-operating-cost { min-width: 0; background: #fff; }
.next-operating-cost-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px 16px; border-bottom: 1px solid var(--next-line); }
.next-operating-cost-header > div { display: grid; gap: 2px; min-width: 0; }
.next-operating-cost-header > div > span, .next-operating-cost-editor > header span { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-operating-cost-header h3, .next-operating-cost-editor > header h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.next-operating-cost-header small { color: var(--next-muted); font-size: 10px; }
.next-operating-cost-layout { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); min-height: 520px; }
.next-operating-cost-runs { min-width: 0; border-right: 1px solid var(--next-line); background: #f7f8f9; }
.next-operating-cost-runs > header { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); font-size: 10px; }
.next-operating-cost-runs > header span { min-width: 22px; padding: 2px 5px; color: #62686d; border-radius: 3px; background: #e6e9eb; text-align: center; }
.next-operating-cost-runs > button { display: grid; width: 100%; gap: 6px; padding: 11px 12px; color: var(--next-text); border: 0; border-bottom: 1px solid var(--next-line); border-left: 3px solid transparent; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.next-operating-cost-runs > button:hover { background: #fff; }
.next-operating-cost-runs > button.active { border-left-color: var(--next-red); background: #fff; }
.next-operating-cost-runs > button > span { display: grid; gap: 2px; min-width: 0; }
.next-operating-cost-runs > button strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-operating-cost-runs > button small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-operating-cost-runs > button .next-status-pill { justify-self: start; }
.next-operating-cost-workspace { min-width: 0; overflow: hidden; }
.next-operating-cost-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 9px 14px; border-bottom: 1px solid var(--next-line); }
.next-operating-cost-editor > header > div:first-child { display: grid; gap: 2px; min-width: 0; }
.next-operating-cost-editor > header > div:last-child, .next-operating-cost-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.next-operating-cost-editor fieldset { min-width: 0; margin: 0; padding: 12px 14px 14px; border: 0; border-bottom: 1px solid var(--next-line); }
.next-operating-cost-editor fieldset > legend { padding: 0 8px 0 0; color: #4c5257; font-size: 10px; font-weight: 800; }
.next-operating-cost-editor fieldset > legend b { min-width: 20px; margin-left: 5px; padding: 2px 5px; border-radius: 3px; background: #e9ebed; font-size: 8px; }
.next-operating-cost-editor .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 0 0; }
.next-operating-cost-editor .next-field.warning textarea { border-color: #d19126; background: #fffaf0; }
.next-operating-cost-item-head, .next-operating-cost-item { display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(145px, .9fr) minmax(85px, .55fr) minmax(120px, .75fr) minmax(170px, 1.1fr) 32px; gap: 7px; align-items: start; min-width: 780px; }
.next-operating-cost-items { overflow-x: auto; }
.next-operating-cost-item-head { padding: 5px 7px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f7f8f9; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-operating-cost-item { padding: 8px 7px; border-bottom: 1px solid #eaedef; }
.next-operating-cost-item > span { display: grid; gap: 5px; min-width: 0; }
.next-operating-cost-item input, .next-operating-cost-item select, .next-operating-cost-participant input { width: 100%; min-width: 0; min-height: 31px; padding: 5px 7px; color: var(--next-text); border: 1px solid #cfd3d6; border-radius: 3px; background: #fff; font: inherit; font-size: 9px; }
.next-operating-cost-item label, .next-operating-cost-participant label { display: grid; gap: 2px; min-width: 0; }
.next-operating-cost-item label small, .next-operating-cost-participant label small { color: var(--next-muted); font-size: 7px; }
.next-operating-cost-items > .next-secondary-command { margin-top: 9px; }
.next-operating-cost-participants { overflow-x: auto; }
.next-operating-cost-participant-head, .next-operating-cost-participant { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(110px, .75fr) minmax(90px, .65fr) minmax(90px, .65fr) minmax(100px, .7fr) minmax(120px, .8fr); gap: 8px; align-items: center; min-width: 740px; }
.next-operating-cost-participant-head { padding: 5px 7px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f7f8f9; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-operating-cost-participant { min-height: 54px; padding: 7px; border-bottom: 1px solid #eaedef; }
.next-operating-cost-participant > span { display: grid; gap: 2px; min-width: 0; }
.next-operating-cost-participant strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-operating-cost-participant small { color: var(--next-muted); font-size: 8px; }
.next-operating-cost-participant small.negative { color: #9d2e2e; }
.next-operating-cost-participant small.positive { color: #23724a; }
.next-operating-cost-editor > footer { display: grid; gap: 12px; padding: 12px 14px; background: #f7f8f9; }
.next-operating-cost-totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--next-line); border-radius: 4px; background: var(--next-line); }
.next-operating-cost-totals > span { display: grid; gap: 2px; min-width: 0; padding: 9px; background: #fff; }
.next-operating-cost-totals small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-operating-cost-totals strong { font-size: 12px; }
.next-operating-cost-totals .warning strong { color: #9d2e2e; }
.next-operating-cost-totals .success strong { color: #23724a; }
.next-icon-command.danger { color: #a52d2d; }
.next-rental-open-row.next-asset-list-head, .next-rental-open-row.next-asset-row { grid-template-columns: 1fr 1.15fr .85fr .75fr .75fr .85fr; }
.next-rental-open-row.next-asset-row > span:last-child strong { color: var(--next-red-dark); }
.next-rental-bank-import, .next-rental-account-export { border: 0; border-radius: 0; }
.next-rental-bank-import > header, .next-rental-account-export > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-rental-bank-import > header > div, .next-rental-account-export > header > div { display: grid; min-width: 0; gap: 2px; }
.next-rental-bank-import > header span, .next-rental-account-export > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-rental-bank-import h3, .next-rental-account-export h3 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-rental-bank-import > header small, .next-rental-account-export > header small { color: var(--next-muted); font-size: 8px; }
.next-rental-bank-import > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border-top: 1px solid var(--next-line); }
.next-rental-bank-import > footer > span { max-width: 76ch; color: var(--next-muted); font-size: 8px; }
.next-rental-bank-import > .next-empty-editor { min-height: 118px; }
.next-rental-import-kpis { border-top: 0; }
.next-rental-import-source { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 48px; padding: 7px 14px; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-rental-import-source > span { display: grid; min-width: 0; gap: 2px; }
.next-rental-import-source > span:last-child { text-align: right; }
.next-rental-import-source strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-rental-import-source small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-rental-import-list { max-height: 360px; overflow-y: auto; border-bottom: 1px solid var(--next-line); }
.next-rental-import-row.next-asset-list-head, .next-rental-import-row.next-asset-row { grid-template-columns: 38px 1fr 1.4fr 1.15fr .72fr .82fr; }
.next-rental-import-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--next-red); }
.next-rental-import-assignment select { width: 100%; min-width: 0; min-height: 29px; padding: 0 7px; color: var(--next-text); border: 1px solid #cfd3d6; border-radius: 3px; background: #fff; font: inherit; font-size: 7px; }
.next-rental-import-assignment select:disabled { color: #72777b; background: #f2f3f4; }
.next-rental-import-options { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; }
.next-rental-account-export { border-top: 1px solid var(--next-line); }
.next-rental-account-actions { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 10px; padding: 12px 14px 14px; }
.next-rental-account-actions .next-field { margin: 0; }
.next-rental-account-actions .disabled { pointer-events: none; opacity: .48; }
.next-contract-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-contract-list .next-asset-list-head, .next-contract-list .next-asset-row { grid-template-columns: 1.25fr 1fr .9fr .75fr .75fr 232px; }
.next-contract-row em.overdue { color: #8b252b; background: #fbeced; }
.next-contract-editor-lock { border: 0; margin: 0; min-inline-size: 0; padding: 0; }
.next-contract-row.historical { background: #f7f7f8; color: #62646a; }
.next-contract-workflow-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-contract-workflow-band > span { display: grid; min-width: 0; gap: 3px; padding: 9px 12px; border-right: 1px solid var(--next-line); }
.next-contract-workflow-band > span:last-child { border-right: 0; }
.next-contract-workflow-band small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-contract-workflow-band strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-contract-workflow-band strong.released { color: #315e45; }
.next-contract-workflow-band strong.review { color: #8b5b10; }
.next-contract-workflow-band strong.overdue { color: #8b252b; }
.next-workplace-plan-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-workplace-plan-summary > span { display: grid; min-width: 0; gap: 3px; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-workplace-plan-summary > span:last-child { border-right: 0; }
.next-workplace-plan-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-workplace-plan-summary strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-workplace-plan-summary .warning { color: #8b252b; background: #fff4f1; }
.next-workplace-list .next-asset-list-head, .next-workplace-list .next-asset-row { grid-template-columns: 1.1fr .85fr 1fr .62fr .83fr 88px; }
.next-space-chargeback { display: grid; gap: 12px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--next-line); }
.next-space-chargeback-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 12px 14px; border: 1px solid var(--next-line); background: #fff; }
.next-space-chargeback-header > div:first-child { display: grid; min-width: 0; gap: 3px; }
.next-space-chargeback-header > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.next-space-chargeback-header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-space-chargeback-header h2 { margin: 0; font-size: 14px; letter-spacing: 0; }
.next-space-chargeback-header p { margin: 0; color: var(--next-muted); font-size: 8px; }
.next-space-chargeback-kpis { border: 1px solid var(--next-line); }
.next-space-allocation-list .next-asset-list-head, .next-space-allocation-list .next-asset-row { grid-template-columns: 1.16fr 1fr 1fr .78fr 1.08fr 72px; }
.next-space-run-list .next-asset-list-head, .next-space-run-list .next-asset-row { grid-template-columns: 1.05fr .8fr .9fr .65fr 1.15fr 142px; }
.next-space-allocation-row em, .next-space-run-row em { width: max-content; }
.next-space-run-row .next-governance-actions { flex-wrap: wrap; }
.next-iot-list .next-asset-list-head, .next-iot-list .next-asset-row { grid-template-columns: 1.08fr .95fr 1fr .72fr .82fr 88px; }
.next-iot-gateway-status { display: grid; grid-template-columns: 35px repeat(3, minmax(80px, .65fr)) minmax(150px, 1.35fr); align-items: center; gap: 9px; min-height: 58px; padding: 8px 14px; border-bottom: 1px solid var(--next-line); background: #f7f9f9; }
.next-iot-gateway-status > span:not(.next-iot-gateway-icon) { display: grid; min-width: 0; gap: 2px; }
.next-iot-gateway-status small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-iot-gateway-status strong { overflow: hidden; color: var(--next-text); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-iot-gateway-icon { display: grid; place-items: center; width: 31px; height: 31px; color: #686f74; border: 1px solid #cfd4d6; border-radius: 50%; background: #fff; }
.next-iot-gateway-icon svg { width: 15px; height: 15px; }
.next-iot-gateway-status.ready { box-shadow: inset 3px 0 0 #3d7a56; }
.next-iot-gateway-status.ready .next-iot-gateway-icon { color: #315e45; border-color: #b9d0c2; background: #edf5f0; }
.next-iot-gateway-status.error { box-shadow: inset 3px 0 0 #c9323a; }
.next-iot-gateway-status.error .next-iot-gateway-icon { color: #8b252b; border-color: #e2babe; background: #fbeced; }
.next-iot-timeseries { min-width: 0; border-top: 1px solid var(--next-line); }
.next-iot-timeseries > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; min-height: 70px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-iot-timeseries > header > div, .next-iot-entry-panel > header > div, .next-iot-history > header > div { display: grid; min-width: 0; gap: 2px; }
.next-iot-timeseries > header span, .next-iot-entry-panel > header span, .next-iot-history > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-iot-timeseries h2, .next-iot-timeseries h3 { margin: 0; font-size: 12px; letter-spacing: 0; }
.next-iot-timeseries h2 b, .next-iot-timeseries h3 b { margin-left: 5px; color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-iot-timeseries > header select { width: min(300px, 38vw); min-height: 34px; padding: 0 9px; color: var(--next-text); border: 1px solid #cfd3d6; border-radius: 3px; background: #fff; font: inherit; font-size: 8px; }
.next-iot-timeseries-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); min-width: 0; border-bottom: 1px solid var(--next-line); }
.next-iot-chart-panel { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--next-line); background: #fbfcfc; }
.next-iot-chart-panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.next-iot-chart-panel > header strong { font-size: 9px; }
.next-iot-chart-panel > header span { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-iot-chart-panel svg { display: block; width: 100%; height: 230px; overflow: visible; }
.next-iot-chart-panel svg .grid { stroke: #e4e7e9; stroke-width: 1; }
.next-iot-chart-panel svg .series { fill: none; stroke: #245c70; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.next-iot-chart-panel svg circle { fill: #fff; stroke: #245c70; stroke-width: 2; vector-effect: non-scaling-stroke; }
.next-iot-chart-panel svg circle.alarm { fill: #c9323a; stroke: #fff; stroke-width: 2; }
.next-iot-chart-panel > footer { display: flex; justify-content: space-between; gap: 8px; color: var(--next-muted); font-size: 7px; }
.next-iot-chart-panel > footer strong { color: var(--next-text); }
.next-iot-chart-empty { display: grid; place-items: center; min-height: 230px; gap: 5px; color: var(--next-muted); text-align: center; }
.next-iot-chart-empty svg { width: 22px; height: 22px; }
.next-iot-chart-empty strong { color: var(--next-text); font-size: 9px; }
.next-iot-chart-empty span { font-size: 7px; }
.next-iot-entry-panel { min-width: 0; background: #fff; }
.next-iot-entry-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 51px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); }
.next-iot-entry-panel .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.next-iot-entry-panel > footer { display: flex; justify-content: flex-end; padding: 9px 12px; border-top: 1px solid var(--next-line); }
.next-iot-history { min-width: 0; }
.next-iot-history > header { min-height: 56px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-iot-reading-list { max-height: 420px; overflow-y: auto; }
.next-iot-reading-row { display: grid; grid-template-columns: 5px minmax(100px, .75fr) minmax(150px, 1fr) minmax(90px, .6fr) 36px; align-items: center; gap: 8px; min-height: 50px; padding: 6px 10px 6px 14px; border-bottom: 1px solid #eceef0; }
.next-iot-reading-row > span:first-child { width: 4px; height: 28px; border-radius: 2px; background: #a7adb2; }
.next-iot-reading-row > span:first-child.released { background: #3d7a56; }
.next-iot-reading-row > span:first-child.review { background: #c38a1c; }
.next-iot-reading-row > span:first-child.due { background: #c9323a; }
.next-iot-reading-row > span:not(:first-child) { display: grid; min-width: 0; gap: 2px; }
.next-iot-reading-row strong, .next-iot-reading-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-iot-reading-row strong { font-size: 8px; }
.next-iot-reading-row small { color: var(--next-muted); font-size: 7px; }
.next-iot-reading-row em { justify-self: start; padding: 4px 6px; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-iot-reading-row em.released { color: #315e45; background: #e9f2ed; }
.next-iot-reading-row em.review { color: #75540e; background: #fff3d6; }
.next-iot-reading-row em.due { color: #8b252b; background: #fbeced; }
.next-iot-reading-row button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #73787d; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-iot-reading-row button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-iot-reading-row button svg { width: 13px; height: 13px; }
.next-inspection-template-editor, .next-inspection-starter { min-width: 0; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fbfbfc; }
.next-inspection-template-editor > header, .next-inspection-starter > header, .next-inspection-templates > header, .next-inspection-register > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 9px 14px; border-bottom: 1px solid var(--next-line); }
.next-inspection-template-editor > header > div, .next-inspection-starter > header > div, .next-inspection-templates > header > div, .next-inspection-register > header > div { display: grid; min-width: 0; gap: 2px; }
.next-inspection-template-editor > header span, .next-inspection-starter > header span, .next-inspection-templates > header span, .next-inspection-register > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-inspection-template-editor h2, .next-inspection-starter h2, .next-inspection-templates h2, .next-inspection-register h2 { margin: 0; font-size: 12px; letter-spacing: 0; }
.next-inspection-template-editor h2 b, .next-inspection-starter h2 b, .next-inspection-templates h2 b, .next-inspection-register h2 b { margin-left: 5px; color: var(--next-muted); font-size: 8px; }
.next-inspection-template-editor > header > button, .next-inspection-starter > header > button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #73787d; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-inspection-template-editor > header > button:hover, .next-inspection-starter > header > button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-inspection-template-editor > header > button svg, .next-inspection-starter > header > button svg { width: 14px; height: 14px; }
.next-inspection-template-editor > footer, .next-inspection-starter > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--next-line); }
.next-inspection-template-editor > footer > span, .next-inspection-starter > footer > span { color: var(--next-muted); font-size: 8px; }
.next-inspection-template-editor > footer > div, .next-inspection-starter > footer > div { display: flex; gap: 6px; }
.next-inspection-templates { min-width: 0; border-top: 1px solid var(--next-line); }
.next-inspection-template-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-inspection-template-list > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; min-height: 55px; padding: 7px 10px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-inspection-template-list > div:nth-child(2n) { border-right: 0; }
.next-inspection-template-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #315f70; border-radius: 4px; background: #edf4f6; }
.next-inspection-template-icon svg { width: 15px; height: 15px; }
.next-inspection-template-list > div > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.next-inspection-template-list strong, .next-inspection-template-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-inspection-template-list strong { font-size: 8px; }
.next-inspection-template-list small { color: var(--next-muted); font-size: 7px; }
.next-inspection-template-list em { padding: 3px 5px; color: #5e6469; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-inspection-template-list button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #73787d; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-inspection-template-list button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-inspection-template-list button svg { width: 13px; height: 13px; }
.next-inspection-register { min-width: 0; border-top: 1px solid var(--next-line); }
.next-inspection-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-width: 0; }
.next-inspection-list { min-width: 0; max-height: 900px; border-right: 1px solid var(--next-line); background: #f7f8f8; overflow-y: auto; }
.next-inspection-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 55px; padding: 8px 10px; color: var(--next-text); border: 0; border-bottom: 1px solid var(--next-line); background: transparent; text-align: left; cursor: pointer; }
.next-inspection-list button:hover { background: #fff; }
.next-inspection-list button.active { box-shadow: inset 3px 0 0 var(--next-red); background: #fff; }
.next-inspection-list button > span { display: grid; min-width: 0; gap: 2px; }
.next-inspection-list strong, .next-inspection-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-inspection-list strong { font-size: 8px; }
.next-inspection-list small { color: var(--next-muted); font-size: 7px; }
.next-inspection-list em { min-width: max-content; padding: 4px 5px; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-inspection-list em.released { color: #315e45; background: #e9f2ed; }
.next-inspection-list em.review { color: #75540e; background: #fff3d6; }
.next-inspection-list em.due { color: #8b252b; background: #fbeced; }
.next-inspection-detail { min-width: 0; background: #fff; }
.next-inspection-detail > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-inspection-detail > header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-inspection-detail > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-inspection-detail h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-inspection-detail > header small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-inspection-correction { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.2fr) auto; align-items: end; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e5c9cc; background: #fff7f7; }
.next-inspection-correction > div:first-child { display: grid; gap: 2px; }
.next-inspection-correction > div:first-child > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-inspection-correction h3 { margin: 0; font-size: 11px; letter-spacing: 0; }
.next-inspection-correction small { color: var(--next-muted); font-size: 7px; }
.next-inspection-correction > div:last-child { display: flex; gap: 6px; padding-bottom: 1px; }
.next-inspection-progress { display: grid; width: 140px; min-width: 140px; gap: 4px; }
.next-inspection-progress > span { width: 100%; height: 6px; overflow: hidden; border-radius: 3px; background: #e4e7e9; }
.next-inspection-progress i { display: block; height: 100%; background: #3d7a56; }
.next-inspection-progress strong { justify-self: end; font-size: 8px; }
.next-inspection-points { min-width: 0; }
.next-inspection-point { display: grid; grid-template-columns: 38px minmax(0, 1fr); min-width: 0; border-bottom: 1px solid var(--next-line); }
.next-inspection-point.assessment-defect { box-shadow: inset 3px 0 0 var(--next-red); }
.next-inspection-point.assessment-ok { box-shadow: inset 3px 0 0 #3d7a56; }
.next-inspection-point-number { display: flex; justify-content: center; padding-top: 14px; background: #f7f8f8; }
.next-inspection-point-number span { display: grid; place-items: center; width: 22px; height: 22px; color: #5d6368; border: 1px solid #cfd3d6; border-radius: 50%; font-size: 8px; font-weight: 800; }
.next-inspection-point-body { min-width: 0; padding: 13px 14px 15px; }
.next-inspection-point-body > strong { font-size: 10px; }
.next-inspection-point-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.next-inspection-point-meta span { padding: 3px 5px; color: #5e6469; border-radius: 3px; background: #eef0f2; font-size: 7px; font-weight: 800; }
.next-inspection-point-body > p { margin: 8px 0; color: var(--next-muted); font-size: 8px; }
.next-inspection-assessment { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 530px; margin: 10px 0; border: 1px solid #cfd3d6; border-radius: 3px; overflow: hidden; }
.next-inspection-assessment button { min-height: 30px; padding: 4px 7px; color: #5f656a; border: 0; border-right: 1px solid #cfd3d6; background: #fff; font: inherit; font-size: 7px; font-weight: 800; cursor: pointer; }
.next-inspection-assessment button:last-child { border-right: 0; }
.next-inspection-assessment button.active { color: #fff; background: #4f5960; }
.next-inspection-point.assessment-ok .next-inspection-assessment button.active { background: #3d7a56; }
.next-inspection-point.assessment-defect .next-inspection-assessment button.active { background: #b62c34; }
.next-inspection-answer { display: flex; align-items: end; gap: 10px; max-width: 530px; margin-bottom: 9px; }
.next-inspection-answer .next-field { flex: 1; }
.next-inspection-answer > span { padding-bottom: 9px; color: var(--next-muted); font-size: 7px; }
.next-inspection-point-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; padding-top: 10px; border-top: 1px dashed #d8dcdf; }
.next-inspection-followup { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 8px; }
.next-inspection-followup code { color: var(--next-muted); font-size: 7px; }
.next-inspection-detail > footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 9px 14px; }
.next-inspection-detail > footer > span { color: var(--next-muted); font-size: 8px; text-align: center; }
.next-inspection-detail > footer > div { display: flex; gap: 6px; }
.next-sustainability-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; border-bottom: 1px solid var(--next-line); background: #f5f6f7; }
.next-sustainability-tabs button { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; min-height: 47px; padding: 7px 11px; color: #555c62; border: 0; border-right: 1px solid var(--next-line); border-bottom: 3px solid transparent; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.next-sustainability-tabs button:last-child { border-right: 0; }
.next-sustainability-tabs button:hover { background: #fff; }
.next-sustainability-tabs button.active { color: var(--next-red-dark); border-bottom-color: var(--next-red); background: #fff; }
.next-sustainability-tabs button > svg { width: 15px; height: 15px; }
.next-sustainability-tabs button span { overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.next-sustainability-tabs button strong { display: grid; place-items: center; min-width: 22px; min-height: 21px; padding: 0 5px; border-radius: 3px; background: #e8eaec; font-size: 7px; }
.next-sustainability-tabs button.active strong { color: #fff; background: var(--next-red-dark); }
.next-budget-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin-top: 16px; border: 1px solid var(--next-line); border-radius: 5px; background: #f5f6f7; overflow: hidden; }
.next-budget-tabs button { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; min-height: 47px; padding: 7px 12px; color: #555c62; border: 0; border-right: 1px solid var(--next-line); border-bottom: 3px solid transparent; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.next-budget-tabs button:last-child { border-right: 0; }
.next-budget-tabs button:hover { background: #fff; }
.next-budget-tabs button.active { color: var(--next-red-dark); border-bottom-color: var(--next-red); background: #fff; }
.next-budget-tabs button > svg { width: 15px; height: 15px; }
.next-budget-tabs button span { overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.next-budget-tabs button strong { display: grid; place-items: center; min-width: 22px; min-height: 21px; padding: 0 5px; border-radius: 3px; background: #e8eaec; font-size: 7px; }
.next-budget-tabs button.active strong { color: #fff; background: var(--next-red-dark); }
.next-budget-tabs + .next-budget-workspace { margin-top: 8px; }
.next-budget-invoice-summary .next-quality-summary { border-bottom: 0; }
.next-budget-invoice-summary .next-quality-summary .kritisch strong, .next-budget-invoice-row small.kritisch { color: var(--next-red-dark); }
.next-einvoice-intake { min-width: 0; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f7f9fa; }
.next-einvoice-intake > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-einvoice-intake > header > div { display: grid; min-width: 0; gap: 2px; }
.next-einvoice-intake > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-einvoice-intake h2 { margin: 0; font-size: 12px; letter-spacing: 0; }
.next-einvoice-intake-body { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, .7fr); align-items: center; gap: 16px; padding: 11px 14px; }
.next-einvoice-intake-copy { display: grid; gap: 3px; min-width: 0; }
.next-einvoice-intake-copy strong { font-size: 9px; }
.next-einvoice-intake-copy span { color: var(--next-muted); font-size: 8px; line-height: 1.55; }
.next-einvoice-intake-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-einvoice-intake-metrics > span { display: grid; gap: 2px; min-width: 0; padding: 8px 10px; border-right: 1px solid var(--next-line); }
.next-einvoice-intake-metrics > span:last-child { border-right: 0; }
.next-einvoice-intake-metrics small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-einvoice-intake-metrics strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-einvoice-intake-metrics .warning strong { color: var(--next-red-dark); }
.next-payment-reconciliation { background: #f5f8f7; }
.next-payment-runs { background: #f7f9fa; }
.next-payment-run-candidates { display: grid; border-top: 1px solid var(--next-line); background: #fff; }
.next-payment-run-candidates > label { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(110px, auto); align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--next-line); cursor: pointer; }
.next-payment-run-candidates > label:hover { background: #f5f8f9; }
.next-payment-run-candidates > label > input { width: 15px; height: 15px; margin: 0; accent-color: var(--next-red); }
.next-payment-run-candidates > label > span strong, .next-payment-run-candidates > label > span small { display: block; overflow-wrap: anywhere; }
.next-payment-run-candidates > label > span strong { font-size: 9px; }
.next-payment-run-candidates > label > span small { margin-top: 2px; color: var(--next-muted); font-size: 8px; }
.next-payment-run-candidates > label > strong { font-size: 10px; text-align: right; white-space: nowrap; }
.next-payment-run-create { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(240px, 1fr); align-items: end; gap: 12px; padding: 10px 14px; background: #f5f7f8; }
.next-payment-run-create .next-field { margin: 0; }
.next-payment-run-create > span { padding-bottom: 5px; color: var(--next-muted); font-size: 8px; }
.next-payment-run-list { display: grid; border-top: 1px solid var(--next-line); background: #fff; }
.next-payment-run-list article { display: grid; grid-template-columns: 28px minmax(220px, 1fr) minmax(220px, .8fr) auto; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--next-line); }
.next-payment-run-list article:last-child { border-bottom: 0; }
.next-payment-run-list article > span:not(.next-metric-icon) strong, .next-payment-run-list article > span:not(.next-metric-icon) small { display: block; overflow-wrap: anywhere; }
.next-payment-run-list article > span:not(.next-metric-icon) strong { font-size: 9px; }
.next-payment-run-list article > span:not(.next-metric-icon) small { margin-top: 2px; color: var(--next-muted); font-size: 8px; }
.next-payment-run-list article > div { display: flex; gap: 5px; }
.next-payment-run-list .next-file-command { position: relative; overflow: hidden; cursor: pointer; }
.next-payment-run-list .next-file-command.disabled { opacity: .55; cursor: wait; }
.next-payment-return-list { display: grid; border-bottom: 1px solid var(--next-line); background: #fff8e8; }
.next-payment-return-list > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #ead9b4; }
.next-payment-return-list > header strong { color: #765317; font-size: 8px; text-transform: uppercase; }
.next-payment-return-list > header small { color: #786b51; font-size: 7px; }
.next-payment-return-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #eee2c8; }
.next-payment-return-row > span strong, .next-payment-return-row > span small { display: block; overflow-wrap: anywhere; }
.next-payment-return-row > span strong { font-size: 8px; }
.next-payment-return-row > span small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-payment-return-state { min-width: 220px; text-align: right; }
.next-payment-return-state strong { color: #1f654d; }
.next-payment-return-actions { border-top: 0; background: #fff; }
.next-payment-status-preview { border-top: 1px solid var(--next-line); background: #f5f8f7; }
.next-payment-status-preview .next-einvoice-intake-copy small { display: block; margin-top: 4px; color: #657078; font-size: 7px; overflow-wrap: anywhere; }
.next-payment-status-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 190px; overflow: auto; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fff; }
.next-payment-status-details > span { min-width: 0; padding: 8px 12px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-payment-status-details strong, .next-payment-status-details small { display: block; overflow-wrap: anywhere; }
.next-payment-status-details strong { font-size: 8px; }
.next-payment-status-details small { margin-top: 2px; color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-payment-reconciliation-summary { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, .7fr); align-items: center; gap: 16px; padding: 11px 14px; }
.next-payment-reconciliation-table { max-width: 100%; overflow: auto; border-top: 1px solid var(--next-line); background: #fff; }
.next-payment-reconciliation-table table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; }
.next-payment-reconciliation-table th, .next-payment-reconciliation-table td { padding: 8px 9px; border-right: 1px solid #edf0f1; border-bottom: 1px solid var(--next-line); text-align: left; vertical-align: top; }
.next-payment-reconciliation-table th:first-child, .next-payment-reconciliation-table td:first-child { width: 38px; text-align: center; }
.next-payment-reconciliation-table th:nth-child(2) { width: 150px; }
.next-payment-reconciliation-table th:nth-child(3) { width: 175px; }
.next-payment-reconciliation-table th:nth-child(4) { width: 140px; }
.next-payment-reconciliation-table th:nth-child(5) { width: 205px; }
.next-payment-reconciliation-table th:nth-child(6) { width: 105px; }
.next-payment-reconciliation-table th { color: #59666e; background: #f2f4f5; font-size: 8px; text-transform: uppercase; }
.next-payment-reconciliation-table td { font-size: 8px; }
.next-payment-reconciliation-table td strong, .next-payment-reconciliation-table td small { display: block; overflow-wrap: anywhere; }
.next-payment-reconciliation-table td small { margin-top: 2px; color: var(--next-muted); line-height: 1.35; }
.next-payment-reconciliation-table .numeric { text-align: right; }
.next-payment-reconciliation-table tr.blocked { background: #fafafa; }
.next-payment-reconciliation-table tr.blocked td { color: #68737a; }
.next-reconciliation-status { display: inline-flex !important; width: fit-content; padding: 3px 5px; border-radius: 3px; background: #e8ecee; font-size: 7px; text-transform: uppercase; }
.next-reconciliation-status.ready { color: #1f654d; background: #e5f2ec; }
.next-reconciliation-status.warning { color: #775410; background: #fff0cb; }
.next-reconciliation-status.error { color: #8f2630; background: #f9e4e6; }
.next-payment-reconciliation-actions { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: end; gap: 8px; padding: 11px 14px; }
.next-payment-reconciliation-actions .next-field { margin: 0; }
.next-einvoice-indicator { display: inline-block; width: 12px; height: 12px; margin-left: 3px; color: #346c79; vertical-align: -2px; }
.next-einvoice-evidence { background: #f8fafb; }
.next-einvoice-warnings { display: grid; gap: 5px; margin: 0 12px 12px; padding: 9px 10px; border-left: 3px solid #d99524; background: #fff8e8; }
.next-einvoice-warnings > strong { color: #765317; font-size: 8px; text-transform: uppercase; }
.next-einvoice-warnings > span { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 5px; color: #675a45; font-size: 8px; line-height: 1.4; }
.next-einvoice-warnings svg { width: 12px; height: 12px; }
.next-einvoice-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 12px 12px; }
.next-einvoice-detail-grid > section { min-width: 0; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-einvoice-detail-grid > section > header, .next-einvoice-detail-grid article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; border-bottom: 1px solid var(--next-line); }
.next-einvoice-detail-grid > section > header { background: #f2f4f5; }
.next-einvoice-detail-grid > section > header small { display: grid; place-items: center; min-width: 20px; min-height: 19px; border-radius: 3px; background: #dfe4e7; font-size: 7px; }
.next-einvoice-detail-grid article:last-child { border-bottom: 0; }
.next-einvoice-detail-grid article > span { display: grid; min-width: 0; gap: 2px; }
.next-einvoice-detail-grid article > span:last-child { text-align: right; }
.next-einvoice-detail-grid article strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-einvoice-detail-grid article small { color: var(--next-muted); font-size: 7px; }
.next-budget-invoice-editor fieldset:disabled { opacity: .76; }
.next-service-acceptance { display: grid; grid-column: 1 / -1; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid #bfd8ce; border-left: 3px solid #28765b; border-radius: 4px; background: #f1f8f5; }
.next-service-acceptance > svg { width: 16px; height: 16px; color: #28765b; }
.next-service-acceptance > span { display: grid; min-width: 0; gap: 2px; }
.next-service-acceptance strong { color: #205e49; font-size: 10px; line-height: 1.35; }
.next-service-acceptance small { color: #4e675f; font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.next-service-acceptance.bound { border-color: #b9cfd8; border-left-color: #346c79; background: #f0f6f8; }
.next-service-acceptance.bound > svg, .next-service-acceptance.bound strong { color: #285b67; }
.next-service-acceptance.missing { border-color: #e6c78d; border-left-color: #c17d0c; background: #fff8e8; }
.next-service-acceptance.missing > svg, .next-service-acceptance.missing strong { color: #8b5b0d; }
.next-service-acceptance-inline { color: #28765b !important; font-size: 8px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.next-service-acceptance-inline.bound { color: #346c79 !important; }
.next-service-acceptance-inline.missing { color: #9a6208 !important; }
.next-accounting-handoff { display: grid; gap: 10px; min-width: 0; border-left: 3px solid #67747c !important; background: #f8f9fa; }
.next-accounting-handoff.pending { border-left-color: #b77c19 !important; background: #fffaf0; }
.next-accounting-handoff.accepted { border-left-color: #28765b !important; background: #f3f8f5; }
.next-accounting-handoff.rejected { border-left-color: #a82b34 !important; background: #fff6f7; }
.next-accounting-handoff-summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 30px; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--next-line); }
.next-accounting-handoff-summary > svg { width: 17px; height: 17px; color: #59666e; }
.next-accounting-handoff-summary > span { display: grid; min-width: 0; gap: 2px; }
.next-accounting-handoff-summary strong { overflow-wrap: anywhere; font-size: 9px; }
.next-accounting-handoff-summary small { color: var(--next-muted); font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.next-accounting-handoff .next-message { margin: 0 12px; }
.next-message.warning { color: #76500f; border-color: #e2c689; background: #fff8e8; }
.next-accounting-response, .next-accounting-capture { padding: 0 12px !important; }
.next-datev-profile { margin-top: 2px; border-top: 1px solid var(--next-line); background: #f7f9fa; }
.next-datev-profile::before { grid-column: 1 / -1; content: "DATEV-Übergabeprofil"; color: #53616a; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-datev-capture { margin: 0 12px; padding: 11px 0 1px !important; border-top: 1px solid #d8dde0; }
.next-accounting-handoff-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 11px; }
.next-accounting-handoff-actions > span { max-width: 720px; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-accounting-handoff-actions > div { display: flex; flex: 0 0 auto; gap: 6px; }
.next-accounting-inline { font-size: 8px !important; font-weight: 750; line-height: 1.4; white-space: normal !important; }
.next-accounting-inline.pending { color: #946315 !important; }
.next-accounting-inline.accepted { color: #28765b !important; }
.next-accounting-inline.rejected { color: #a82b34 !important; }
.next-budget-payment-editor { border-bottom: 1px solid var(--next-line); background: #fbfbfc; }
.next-budget-payment-editor .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 14px; }
.next-budget-payment-editor > header, .next-budget-payment-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--next-line); }
.next-budget-payment-editor > footer { border-top: 1px solid var(--next-line); border-bottom: 0; }
.next-budget-payment-editor > header > div { display: grid; min-width: 0; gap: 2px; }
.next-budget-payment-editor > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-budget-payment-editor h3 { overflow: hidden; margin: 0; font-size: 11px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-budget-payment-editor > header > button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #73787d; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-budget-payment-editor > header > button:hover { color: var(--next-red-dark); background: #fae9eb; }
.next-budget-payment-editor > header > button svg { width: 14px; height: 14px; }
.next-budget-payment-editor > footer > span { color: var(--next-muted); font-size: 8px; }
.next-budget-payment-editor > footer > div { display: flex; gap: 6px; }
.next-budget-invoice-list .next-asset-list-head, .next-budget-invoice-list .next-asset-row { grid-template-columns: 1.15fr .82fr 1.1fr .72fr .72fr 150px; }
.next-budget-invoice-row .next-governance-actions { flex-wrap: wrap; }
.next-purchase-workspace { display: grid; gap: 8px; min-width: 0; }
.next-purchase-summary .next-quality-summary { border-bottom: 0; }
.next-purchase-register { min-width: 0; }
.next-purchase-toolbar { grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px); }
.next-purchase-editor fieldset:disabled { opacity: .78; }
.next-purchase-list .next-asset-list-head, .next-purchase-list .next-asset-row { grid-template-columns: 1.25fr .72fr .76fr 1fr .72fr 174px; }
.next-purchase-row .next-governance-actions { flex-wrap: wrap; }
.next-purchase-row span > small { overflow: hidden; text-overflow: ellipsis; }
.next-purchase-acceptance .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 14px; }
.next-purchase-acceptance > header, .next-purchase-acceptance > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; }
.next-purchase-acceptance > header { border-bottom: 1px solid var(--next-line); }
.next-purchase-acceptance > footer { border-top: 1px solid var(--next-line); }
.next-purchase-acceptance > header > div { display: grid; gap: 2px; min-width: 0; }
.next-purchase-acceptance > header span { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-purchase-acceptance h3 { margin: 0; font-size: 12px; letter-spacing: 0; }
.next-purchase-acceptance > header > button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.next-purchase-acceptance > footer > span { color: var(--next-muted); font-size: 9px; }
.next-purchase-acceptance > footer > div { display: flex; gap: 6px; }
.next-sustainability-toolbar { border-bottom: 1px solid var(--next-line); }
.next-sustainability-editor .next-asset-editor-grid { max-height: 760px; }
.next-sustainability-editor [data-a20-protection] { background: #fafbfb; }
.next-sustainability-editor [data-a20-protection] .next-checkbox-field { align-self: end; min-height: 50px; }
.next-sustainability-list .next-asset-list-head, .next-sustainability-list .next-asset-row { grid-template-columns: 1.15fr 1fr .82fr .78fr .8fr 88px; }
.next-sustainability-list .next-asset-row > span:nth-child(5) { align-content: center; }
.next-sustainability-list .next-asset-row > span:nth-child(5) > em { margin-top: 3px; }
.next-sustainability-workspace .next-governance-documents { scroll-margin-top: 70px; }
.next-church-list .next-asset-list-head, .next-church-list .next-asset-row { grid-template-columns: 1.15fr 1fr 1fr .78fr .82fr 152px; }
.next-church-workspace .next-governance-documents { scroll-margin-top: 70px; }
.next-church-custody-register > header > small, .next-church-movement-register > header > small, .next-church-condition-register > header > small { color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-church-condition-readonly .next-field { align-content: start; min-height: 58px; padding: 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fafbfb; }
.next-church-condition-readonly .next-field strong { font-size: 9px; line-height: 1.45; }
.next-church-custody-editor > .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 480px; padding: 12px; overflow-y: auto; }
.next-church-custody-list .next-asset-list-head, .next-church-custody-list .next-asset-row { grid-template-columns: 1.25fr .9fr 1fr .8fr 42px; }
.next-church-custody-documents { scroll-margin-top: 70px; }
.next-restoration-register > header > small { color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-restoration-editor { border-top: 1px solid var(--next-line); }
.next-restoration-editor > .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; }
.next-restoration-list { min-width: 0; border-top: 1px solid var(--next-line); }
.next-restoration-row { display: grid; grid-template-columns: 1.05fr 1.35fr .9fr .7fr .8fr 42px; align-items: center; min-width: 0; min-height: 62px; border-bottom: 1px solid #eceef0; }
.next-restoration-row:last-child { border-bottom: 0; }
.next-restoration-row:hover:not(.head) { background: #fafbfb; }
.next-restoration-row.due { box-shadow: inset 3px 0 0 var(--next-red); }
.next-restoration-row.head { min-height: 31px; color: #6c7176; background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-restoration-row > span { display: grid; min-width: 0; gap: 2px; padding: 6px 8px; }
.next-restoration-row strong, .next-restoration-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-restoration-row strong { font-size: 8px; }
.next-restoration-row small { color: var(--next-muted); font-size: 7px; }
.next-restoration-row em { justify-self: start; padding: 4px 6px; color: #5f656a; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-restoration-row em.released { color: #315e45; background: #e9f2ed; }
.next-restoration-row em.review { color: #75540e; background: #fff3d6; }
.next-restoration-row em.due { color: #8b252b; background: #fbeced; }
.next-restoration-documents { scroll-margin-top: 70px; }
.next-church-loan-register > header > small { color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-church-loan-editor { border-top: 1px solid var(--next-line); }
.next-church-loan-editor > .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; }
.next-loan-direction { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 35px; border: 1px solid #cfd3d7; border-radius: 4px; overflow: hidden; background: #fff; }
.next-loan-direction button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 6px 10px; color: #555a60; border: 0; background: #fff; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.next-loan-direction button + button { border-left: 1px solid #cfd3d7; }
.next-loan-direction button svg { width: 14px; height: 14px; flex: 0 0 auto; }
.next-loan-direction button.active { color: #8b252b; background: #fbeced; box-shadow: inset 0 -2px 0 var(--next-red); }
.next-loan-direction button:disabled { cursor: default; opacity: .58; }
.next-church-loan-summary { display: grid; grid-template-columns: 1.15fr 1fr .8fr .9fr; gap: 1px; padding: 1px; background: var(--next-line); }
.next-church-loan-summary > span { display: grid; min-width: 0; gap: 3px; padding: 9px 10px; background: #fff; }
.next-church-loan-summary small { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-church-loan-summary strong { overflow: hidden; color: var(--next-ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-church-inventory-audit > header > div:last-child { display: flex; align-items: center; gap: 10px; }
.next-church-inventory-audit > header > div:last-child small { color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-inventory-audit-editor { margin: 10px; border: 1px solid #d8dcdf; }
.next-data-quality-cases { margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-data-quality-cases > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-data-quality-cases > header > div { display: grid; min-width: 0; gap: 2px; }
.next-data-quality-cases > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-data-quality-cases > header h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-data-quality-cases > header h2 b, .next-data-quality-cases > header small { color: var(--next-muted); font-size: 8px; }
.next-data-quality-finding-list { display: grid; gap: 7px; padding: 10px; border-bottom: 1px solid var(--next-line); background: #fafbfb; }
.next-data-quality-finding-list article { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid #dfe2e4; border-left-width: 3px; border-radius: 4px; background: #fff; }
.next-data-quality-finding-list article.critical { border-left-color: #ba2832; }
.next-data-quality-finding-list article.warning { border-left-color: #d39c31; }
.next-data-quality-finding-list article.info { border-left-color: #4f7e9b; }
.next-data-quality-finding-list article > svg { width: 16px; height: 16px; color: var(--next-red-dark); }
.next-data-quality-finding-list article > div { display: grid; min-width: 0; gap: 2px; }
.next-data-quality-finding-list article strong { font-size: 9px; }
.next-data-quality-finding-list article span, .next-data-quality-finding-list article small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-data-quality-case-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-data-quality-case-finding { display: flex; align-items: flex-start; gap: 9px; margin: 10px; padding: 10px; border: 1px solid #d9dddf; border-radius: 4px; background: #fafbfb; }
.next-data-quality-case-finding.active { border-color: #e6c477; background: #fff9e9; }
.next-data-quality-case-finding.resolved { border-color: #a9cbb8; background: #f2f8f4; }
.next-data-quality-case-finding > svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--next-red-dark); }
.next-data-quality-case-finding > div { display: grid; min-width: 0; gap: 3px; }
.next-data-quality-case-finding strong { font-size: 9px; }
.next-data-quality-case-finding span, .next-data-quality-case-finding small { color: var(--next-muted); font-size: 8px; }
.next-data-quality-events { display: grid; gap: 1px; margin: 10px; border: 1px solid var(--next-line); border-radius: 4px; background: var(--next-line); overflow: hidden; }
.next-data-quality-events > strong { padding: 8px 10px; background: #f4f5f6; font-size: 8px; text-transform: uppercase; }
.next-data-quality-events > span { display: grid; grid-template-columns: 18px minmax(120px, .6fr) minmax(140px, .8fr) minmax(180px, 1.4fr); align-items: center; gap: 7px; min-width: 0; padding: 7px 10px; background: #fff; }
.next-data-quality-events svg { width: 13px; height: 13px; color: var(--next-red); }
.next-data-quality-events b, .next-data-quality-events small, .next-data-quality-events em { min-width: 0; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-data-quality-events small { color: var(--next-muted); }
.next-data-quality-events em { color: #555b60; font-style: normal; }
.next-data-quality-case-list .next-inventory-audit-list-head, .next-data-quality-case-list .next-inventory-audit-row { grid-template-columns: 1.4fr 1fr .8fr .8fr 48px; }
.next-data-quality-case-list em { justify-self: start; padding: 4px 6px; border-radius: 3px; background: #eef0f2; font-size: 7px; font-style: normal; font-weight: 800; }
.next-data-quality-case-list em.status-zur-prufung { color: #75540e; background: #fff3d6; }
.next-data-quality-case-list em.status-zuruckgewiesen { color: #8b252b; background: #fbeced; }
.next-data-quality-case-list em.status-abgeschlossen { color: #315e45; background: #e9f2ed; }
.next-inventory-audit-summary { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--next-line); }
.next-asset-decommissioning .next-inventory-audit-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-inventory-audit-summary > span, .next-inventory-snapshot > span { display: grid; min-width: 0; gap: 3px; padding: 9px 10px; background: #fff; }
.next-inventory-audit-summary > span.warning { box-shadow: inset 0 -3px 0 #d39c31; }
.next-inventory-audit-summary small, .next-inventory-snapshot small { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-inventory-audit-summary strong, .next-inventory-snapshot strong { overflow: hidden; color: var(--next-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-inventory-audit-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); background: #fafbfb; color: #555b60; font-size: 8px; font-weight: 700; }
.next-inventory-audit-meta span { display: inline-flex; align-items: center; min-width: 0; gap: 5px; }
.next-inventory-audit-meta svg { width: 12px; height: 12px; color: var(--next-red); }
.next-inventory-audit-stage { margin: 10px; padding: 0; border: 1px solid #dfe2e4; border-radius: 4px; background: #fff; }
.next-inventory-audit-stage > legend { margin-left: 9px; padding: 0 5px; color: #4f555a; font-size: 8px; font-weight: 800; }
.next-inventory-audit-stage > .next-form-grid { padding: 10px; }
.next-inventory-audit-stage > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 10px; border-top: 1px solid var(--next-line); background: #fafbfb; }
.next-inventory-audit-stage > footer > div { display: flex; flex-wrap: wrap; gap: 7px; }
.next-inventory-audit-stage > footer > span { color: var(--next-muted); font-size: 8px; }
.next-inventory-snapshot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 10px 2px; padding: 1px; background: var(--next-line); }
.next-information-audit-grid { min-width: 0; margin: 0 10px 10px; overflow-x: auto; border: 1px solid var(--next-line); border-radius: 4px; }
.next-information-audit-head, .next-information-audit-row { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(180px, 1.15fr) minmax(130px, .7fr) minmax(240px, 1.4fr); min-width: 760px; }
.next-information-audit-head { min-height: 30px; color: #6c7176; background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-information-audit-head > span, .next-information-audit-row > span { min-width: 0; padding: 7px 9px; }
.next-information-audit-row { align-items: start; min-height: 58px; border-top: 1px solid #eceef0; box-shadow: inset 3px 0 0 transparent; }
.next-information-audit-row.due { background: #fff9f7; box-shadow: inset 3px 0 0 var(--next-red); }
.next-information-audit-row > span { display: grid; gap: 4px; }
.next-information-audit-row strong { overflow-wrap: anywhere; color: var(--next-ink); font-size: 8px; }
.next-information-audit-row small { color: var(--next-muted); font-size: 7px; }
.next-information-audit-row select, .next-information-audit-row input, .next-information-audit-row textarea { width: 100%; min-height: 30px; padding: 5px 7px; border: 1px solid #d8dcdf; border-radius: 3px; background: #fff; color: var(--next-ink); font: inherit; font-size: 8px; }
.next-information-audit-row textarea { min-height: 42px; resize: vertical; }
.next-audit-report { margin: 10px; border: 1px solid #d8dcdf; border-left: 3px solid var(--next-red); background: #fff; }
.next-audit-report > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); background: #fafbfb; }
.next-audit-report > header span, .next-audit-report > header em { color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-audit-report > header h4 { margin: 2px 0 0; font-size: 11px; }
.next-audit-report > p { margin: 0; padding: 12px; color: #4b5054; font-size: 9px; line-height: 1.55; white-space: pre-wrap; }
.next-audit-report > footer { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 9px 12px; border-top: 1px solid var(--next-line); background: #fafbfb; }
.next-audit-report > footer span { display: inline-flex; align-items: center; gap: 5px; color: #555b60; font-size: 8px; font-weight: 700; }
.next-audit-report > footer svg { width: 12px; height: 12px; color: var(--next-red); }
.next-inventory-audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid var(--next-line); }
.next-inventory-audit-toolbar > label { display: flex; flex: 1 1 360px; align-items: center; max-width: 620px; gap: 7px; padding: 0 9px; border: 1px solid #d8dcdf; border-radius: 4px; background: #fff; }
.next-inventory-audit-toolbar > label svg { width: 14px; height: 14px; color: var(--next-muted); }
.next-inventory-audit-toolbar input { width: 100%; min-height: 34px; border: 0; outline: 0; background: transparent; font-size: 9px; }
.next-inventory-audit-list, .next-inventory-register-list { min-width: 0; overflow-x: auto; border-top: 1px solid var(--next-line); }
.next-inventory-audit-list-head, .next-inventory-audit-row { display: grid; grid-template-columns: 1.15fr 1fr .8fr 1.2fr 48px; align-items: center; min-width: 720px; }
.next-inventory-register-head, .next-inventory-register-row { display: grid; grid-template-columns: 1.2fr 1fr .85fr 1fr 48px; align-items: center; min-width: 720px; }
.next-inventory-audit-list-head, .next-inventory-register-head { min-height: 31px; color: #6c7176; background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-inventory-audit-list-head > span, .next-inventory-audit-row > span, .next-inventory-register-head > span, .next-inventory-register-row > span { min-width: 0; padding: 7px 9px; }
.next-inventory-audit-row, .next-inventory-register-row { min-height: 58px; border-top: 1px solid #eceef0; }
.next-inventory-audit-row:hover, .next-inventory-register-row:hover { background: #fafbfb; }
.next-inventory-audit-row.due, .next-inventory-register-row.due { box-shadow: inset 3px 0 0 var(--next-red); }
.next-inventory-audit-row > span:not(.next-governance-actions), .next-inventory-register-row > span:not(.next-governance-actions) { display: grid; gap: 2px; }
.next-inventory-audit-row strong, .next-inventory-audit-row small, .next-inventory-register-row strong, .next-inventory-register-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-inventory-audit-row strong, .next-inventory-register-row strong { color: var(--next-ink); font-size: 8px; }
.next-inventory-audit-row small, .next-inventory-register-row small { color: var(--next-muted); font-size: 7px; }
.next-church-catalogue > header > div:last-child { display: flex; align-items: center; gap: 10px; }
.next-church-catalogue > header > div:last-child small { color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-church-care > header > div:last-child { display: flex; align-items: center; gap: 10px; }
.next-church-care > header > div:last-child small { color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-care-editor { scroll-margin-top: 82px; }
.next-care-point-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; padding: 10px; }
.next-care-point-grid label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 8px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; cursor: pointer; }
.next-care-point-grid input { flex: 0 0 auto; margin-top: 2px; }
.next-care-point-grid span { display: grid; gap: 2px; min-width: 0; }
.next-care-point-grid strong { color: var(--next-ink); font-size: 8px; }
.next-care-point-grid small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-church-financial { scroll-margin-top: 82px; }
.next-church-financial-kpis { margin: 0; border-bottom: 1px solid var(--next-line); }
.next-church-financial .next-catalogue-register-row > span,
.next-church-financial .next-care-inspections article > div { min-width: 0; }
.next-church-financial .next-catalogue-register-row strong,
.next-church-financial .next-catalogue-register-row small { overflow-wrap: anywhere; }

.next-insurance-management { margin-top: 12px; scroll-margin-top: 82px; }
.next-insurance-kpis { margin: 0; border-bottom: 1px solid var(--next-line); }
.next-insurance-editor > .next-catalogue-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-insurance-editor > .next-catalogue-fields > fieldset { min-width: 0; }
.next-insurance-coverages { display: grid; gap: 8px; padding: 10px 12px; }
.next-insurance-coverages > article { border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-insurance-coverages > article > header,
.next-insurance-risk-section > header,
.next-insurance-claims > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 45px; padding: 7px 12px; border-bottom: 1px solid var(--next-line); }
.next-insurance-coverages > article > header > div,
.next-insurance-risk-section > header > div,
.next-insurance-claims > header > div { display: grid; gap: 2px; }
.next-insurance-coverages h4,
.next-insurance-risk-section h3,
.next-insurance-claims h3 { margin: 0; font-size: 10px; letter-spacing: 0; }
.next-insurance-coverages > article > header span,
.next-insurance-risk-section > header span,
.next-insurance-claims > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-insurance-coverages > article > header button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--next-muted); }
.next-insurance-coverages > article > .next-form-grid { padding: 10px; }
.next-insurance-editor > .next-catalogue-fields > fieldset > .next-secondary-command { margin: 0 12px 12px; }
.next-insurance-risk-section,
.next-insurance-claims { border-top: 1px solid var(--next-line); background: #fbfbfc; }
.next-insurance-risk-section > .next-asset-editor.compact { margin: 10px 12px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-insurance-risk-section > .next-asset-editor.compact > .next-form-grid { padding: 12px; }
.next-insurance-risk-section > .next-inventory-audit-stage { margin: 10px 12px 12px; }
.next-insurance-risk-list article.overdue { box-shadow: inset 3px 0 0 var(--next-red); }
.next-insurance-register article { grid-template-columns: 1.25fr 1fr .8fr auto; }
.next-insurance-claims .next-care-inspections a { display: grid; grid-template-columns: 1.4fr .8fr auto; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; border-top: 1px solid #eceef0; color: inherit; text-decoration: none; }
.next-insurance-claims .next-care-inspections a > div { display: grid; gap: 2px; min-width: 0; }
.next-insurance-claims .next-care-inspections a strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-insurance-claims .next-care-inspections a small { color: var(--next-muted); font-size: 7px; }
.next-insurance-claims .next-care-inspections a > svg { width: 14px; height: 14px; }
.next-church-rights { scroll-margin-top: 82px; }
.next-church-rights .next-catalogue-register-row > span,
.next-church-rights .next-care-inspections article > div { min-width: 0; }
.next-church-rights .next-catalogue-register-row strong,
.next-church-rights .next-catalogue-register-row small,
.next-church-rights .next-catalogue-summary strong { overflow-wrap: anywhere; }
.next-church-rights .next-care-editor > footer > strong { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.next-care-plan-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--next-line); }
.next-care-plan-actions > span { color: var(--next-muted); font-size: 8px; }
.next-care-inspections { border-top: 1px solid var(--next-line); }
.next-care-inspections > h3 { margin: 0; padding: 10px 12px 6px; color: var(--next-ink); font-size: 9px; }
.next-care-inspections article { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; border-top: 1px solid #eceef0; }
.next-care-inspections article > div:not(.next-governance-actions) { display: grid; gap: 2px; min-width: 0; }
.next-care-inspections article strong { overflow: hidden; color: var(--next-ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-care-inspections article small { color: var(--next-muted); font-size: 7px; }
.next-catalogue-editor { margin: 10px; border: 1px solid #d8dcdf; }
.next-catalogue-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--next-line); }
.next-catalogue-summary > span { display: grid; min-width: 0; gap: 3px; padding: 9px 10px; background: #fff; }
.next-catalogue-summary small { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-catalogue-summary strong { overflow: hidden; color: var(--next-ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-catalogue-summary a { display: flex; min-width: 0; align-items: center; gap: 5px; color: var(--next-accent); text-decoration: none; }
.next-catalogue-summary a strong { min-width: 0; color: inherit; }
.next-catalogue-summary a svg { width: 12px; height: 12px; flex: 0 0 auto; }
.next-catalogue-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); background: #fafbfb; color: #555b60; font-size: 8px; font-weight: 700; }
.next-catalogue-meta span { display: inline-flex; align-items: center; min-width: 0; gap: 5px; }
.next-catalogue-meta svg { width: 12px; height: 12px; color: var(--next-red); }
.next-catalogue-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.next-catalogue-fields fieldset { min-width: 0; margin: 0; padding: 0; border: 1px solid #dfe2e4; border-radius: 4px; }
.next-catalogue-fields legend { margin-left: 9px; padding: 0 5px; color: #4f555a; font-size: 8px; font-weight: 800; }
.next-catalogue-fields .next-form-grid { padding: 10px; }
.next-catalogue-register { min-width: 0; overflow-x: auto; border-top: 1px solid var(--next-line); }
.next-catalogue-register-head, .next-catalogue-register-row { display: grid; grid-template-columns: 1.25fr .75fr 1fr 1fr 48px; align-items: center; min-width: 760px; }
.next-catalogue-register-head { min-height: 31px; color: #6c7176; background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-catalogue-register-head > span, .next-catalogue-register-row > span { min-width: 0; padding: 7px 9px; }
.next-catalogue-register-row { min-height: 58px; border-top: 1px solid #eceef0; }
.next-catalogue-register-row:hover { background: #fafbfb; }
.next-catalogue-register-row > span:not(.next-governance-actions) { display: grid; gap: 2px; }
.next-catalogue-register-row strong, .next-catalogue-register-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-catalogue-register-row strong { color: var(--next-ink); font-size: 8px; }
.next-catalogue-register-row small { color: var(--next-muted); font-size: 7px; }
.next-catalogue-register-row em { width: max-content; margin-top: 2px; }
.next-catalogue-journal { padding: 10px; border-top: 1px solid var(--next-line); }
.next-catalogue-journal h4 { margin: 0 0 8px; font-size: 9px; }
.next-catalogue-journal article { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid #eceef0; }
.next-catalogue-journal article > div { display: grid; gap: 2px; min-width: 0; }
.next-catalogue-journal article strong { font-size: 8px; }
.next-catalogue-journal article small, .next-catalogue-journal article p { margin: 0; color: var(--next-muted); font-size: 7px; }
.next-church-loan-stage { min-width: 0; margin: 0; padding: 12px; border: 0; border-top: 1px solid var(--next-line); }
.next-church-loan-stage legend { padding: 0 4px; color: var(--next-ink); font-size: 9px; font-weight: 800; }
.next-church-loan-stage > .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-church-loan-stage > footer { display: flex; justify-content: flex-end; gap: 7px; padding-top: 10px; }
.next-church-loan-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.next-church-loan-actions-grid > fieldset + fieldset { border-left: 1px solid var(--next-line); }
.next-church-loan-actions-grid .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-church-loan-events { border-top: 1px solid var(--next-line); }
.next-church-loan-events > header { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 7px 11px; background: #f4f5f6; font-size: 8px; }
.next-church-loan-events > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(120px, .7fr); align-items: center; min-height: 46px; padding: 6px 11px; border-top: 1px solid #eceef0; }
.next-church-loan-events > div > i { width: 15px; height: 15px; color: #62696f; }
.next-church-loan-events > div > span { display: grid; min-width: 0; gap: 2px; }
.next-church-loan-events > div strong { font-size: 8px; }
.next-church-loan-events > div small, .next-church-loan-events > div em { overflow: hidden; color: var(--next-muted); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.next-church-loan-events > div em { text-align: right; }
.next-church-loan-documents { scroll-margin-top: 70px; }
.next-monument-value { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; color: #fff; background: #415d71; }
.next-monument-value span { font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-monument-value strong { margin-left: auto; font-size: 18px; }
.next-monument-value small { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.82); font-size: 8px; }
.next-monument-list .next-asset-list-head, .next-monument-list .next-asset-row { grid-template-columns: 1.15fr .9fr .82fr 1fr .9fr 88px; }
.next-monument-workspace .next-governance-documents { scroll-margin-top: 70px; }
.next-bim-toolbar { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(145px, 190px)) auto; }
.next-bim-filter-alert { display: flex; align-items: center; align-self: stretch; gap: 4px; min-width: 82px; padding: 0 9px; color: #8f2930; border: 1px solid #e4b7ba; border-radius: 3px; background: #fff0f1; font-size: 8px; }
.next-bim-filter-alert svg { width: 14px; height: 14px; }
.next-bim-filter-alert strong { font-size: 10px; }
.next-bim-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-bim-editor-grid fieldset:last-child { grid-column: 1 / -1; }
.next-bim-editor-grid fieldset:last-child .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-bim-list .next-asset-list-head, .next-bim-list .next-asset-row { grid-template-columns: 1.25fr 1fr .82fr .82fr .7fr 88px; }
.next-bim-list .next-asset-row.archived { opacity: .72; background: #f7f7f7; }
.next-bim-source-state { color: #315e45 !important; font-weight: 800; }
.next-bim-source-state.stale { color: #8f2930 !important; white-space: normal !important; }
.next-bim-viewer { min-width: 0; border-top: 1px solid var(--next-line); }
.next-bim-viewer > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
.next-bim-viewer > header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-bim-viewer > header > div:first-child > span, .next-ifc-detail > header > span, .next-ifc-link-form > header > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-bim-viewer h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.next-bim-viewer-tools { display: flex; align-items: end; gap: 7px; min-width: 0; }
.next-bim-viewer-tools .next-field { width: min(390px, 40vw); }
.next-bim-viewer-tools .next-field select { min-height: 34px; }
.next-bim-cad-workspace { min-width: 0; }
.next-webcad-workspace { display: grid; grid-template-rows: auto minmax(560px, 72vh) auto; min-width: 0; background: #f5f6f6; }
.next-webcad-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-webcad-header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-webcad-header > div:first-child span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-webcad-header strong, .next-webcad-header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-webcad-header strong { font-size: 10px; }
.next-webcad-header small { color: var(--next-muted); font-size: 8px; }
.next-webcad-header > div:last-child { display: flex; align-items: center; gap: 6px; }
.next-webcad-frame { display: block; width: 100%; height: 100%; min-height: 560px; border: 0; background: #eef0f1; }
.next-webcad-workspace > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 7px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #fff; font-size: 8px; }
.next-webcad-workspace > footer span { display: inline-flex; align-items: center; gap: 5px; }
.next-webcad-workspace > footer svg { width: 13px; height: 13px; color: #3f755c; }
.next-supersplat-workspace { display: grid; grid-template-rows: auto minmax(480px, 66vh) auto; min-width: 0; background: #e9edef; }
.next-supersplat-workspace > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-supersplat-workspace > header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-supersplat-workspace > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-supersplat-workspace > header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-supersplat-workspace > header small { color: var(--next-muted); font-size: 8px; }
.next-supersplat-workspace > header > div:last-child { display: flex; gap: 6px; }
.next-supersplat-frame { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; background: #e9edef; }
.next-potree-workspace { display: grid; grid-template-rows: auto minmax(500px, 68vh) auto; min-width: 0; background: #202327; }
.next-potree-workspace > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-potree-workspace > header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-potree-workspace > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-potree-workspace > header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-potree-workspace > header small { color: var(--next-muted); font-size: 8px; }
.next-potree-workspace > header > div:last-child { display: flex; gap: 6px; }
.next-potree-frame { display: block; width: 100%; height: 100%; min-height: 500px; border: 0; background: #202327; }
.next-point-cloud-status { align-items: center; }
.next-point-cloud-status > span { flex: 1; }
.next-point-cloud-status .next-secondary-command { flex: 0 0 auto; min-height: 29px; }
.next-bim-cad-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 51px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-bim-cad-toolbar > span { display: grid; min-width: 0; gap: 2px; }
.next-bim-cad-toolbar strong, .next-bim-cad-toolbar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-bim-cad-toolbar strong { font-size: 9px; }
.next-bim-cad-toolbar small { color: var(--next-muted); font-size: 7px; }
.next-bim-cad-toolbar > div, .next-ifc-browser footer > div { display: flex; gap: 5px; }
.next-bim-cad-toolbar button, .next-ifc-browser button, .next-ifc-link-list button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #5a6167; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; cursor: pointer; }
.next-bim-cad-toolbar button:hover, .next-ifc-browser button:hover, .next-ifc-link-list button:hover { color: var(--next-red-dark); border-color: #d7b3b6; background: #fff7f7; }
.next-bim-cad-toolbar button svg, .next-ifc-browser button svg, .next-ifc-link-list button svg { width: 14px; height: 14px; }
.next-bim-cad-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; min-width: 0; min-height: 450px; }
.next-bim-canvas { display: grid; grid-template-rows: minmax(410px, 1fr) auto; min-width: 0; background: #fff; }
.next-bim-canvas svg { display: block; width: 100%; height: 100%; min-height: 410px; cursor: grab; touch-action: none; }
.next-bim-canvas svg.panning { cursor: grabbing; }
.next-bim-canvas > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 37px; padding: 7px 11px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; }
.next-bim-canvas > footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-bim-cad-layout > aside { min-width: 0; border-left: 1px solid var(--next-line); background: #f8f9f9; }
.next-bim-cad-layout > aside > header { display: flex; align-items: center; justify-content: space-between; min-height: 41px; padding: 8px 11px; border-bottom: 1px solid var(--next-line); font-size: 9px; }
.next-bim-cad-layout > aside > header span { color: var(--next-muted); font-size: 8px; }
.next-bim-layer-list { display: grid; max-height: 445px; overflow-y: auto; }
.next-bim-layer-list label { display: grid; grid-template-columns: 17px 9px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 37px; padding: 6px 10px; border-bottom: 1px solid var(--next-line); cursor: pointer; }
.next-bim-layer-list input { width: 15px; height: 15px; accent-color: var(--next-red-dark); }
.next-bim-layer-list label > span { width: 9px; height: 9px; border-radius: 2px; background: var(--next-bim-layer); }
.next-bim-layer-list strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-cad-line, .next-cad-shape { vector-effect: non-scaling-stroke; stroke-width: 1.15px; }
.next-cad-text { font-family: Arial, sans-serif; font-size: 2.4px; letter-spacing: 0; }
.next-cad-editor-header button.active, .next-cad-toolstrip button.active { color: #8f252d; border-color: #d8adb0; background: #fff3f4; }
.next-cad-editor-header button:disabled, .next-cad-toolstrip button:disabled { opacity: .42; cursor: not-allowed; }
.next-cad-toolstrip { display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 43px; padding: 6px 9px; overflow-x: auto; border-bottom: 1px solid var(--next-line); background: #fff; overscroll-behavior-inline: contain; }
.next-cad-toolstrip > button { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; padding: 0; color: #4f585e; border: 1px solid #d5dadd; border-radius: 3px; background: #fff; cursor: pointer; }
.next-cad-toolstrip > button:hover { color: #8f252d; border-color: #d8adb0; background: #fff7f7; }
.next-cad-toolstrip > button svg { width: 14px; height: 14px; }
.next-cad-toolstrip > .next-cad-finish { display: flex; width: auto; min-width: 94px; padding: 0 8px; gap: 5px; font-size: 8px; font-weight: 800; }
.next-cad-tool-separator { width: 1px; height: 22px; flex: 0 0 1px; margin: 0 3px; background: var(--next-line); }
.next-cad-tool-context { min-width: 170px; margin-left: 4px; color: var(--next-muted); font-size: 7px; white-space: nowrap; }
.next-cad-toolstrip > label { display: flex; align-items: center; gap: 5px; margin-left: auto; color: var(--next-muted); font-size: 7px; font-weight: 700; white-space: nowrap; }
.next-cad-toolstrip > label input { width: 67px; height: 29px; padding: 4px 6px; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; font-size: 8px; }
.next-cad-contextbar { display: flex; align-items: end; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-cad-contextbar label { display: grid; min-width: min(260px, 42vw); gap: 3px; color: var(--next-muted); font-size: 7px; font-weight: 700; }
.next-cad-contextbar input { min-height: 31px; padding: 5px 7px; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; font-size: 8px; }
.next-cad-message { margin: 0; border-width: 0 0 1px; border-radius: 0; }
.next-cad-editor-layout { grid-template-columns: minmax(0, 1fr) 300px; min-height: 570px; }
.next-cad-editor-canvas { grid-template-rows: minmax(520px, 1fr) auto; }
.next-cad-editor-canvas svg { min-height: 520px; cursor: default; }
.next-cad-editor-canvas svg.drawing { cursor: crosshair; }
.next-cad-editor-canvas svg.panning { cursor: grabbing; }
.next-cad-overlay > line, .next-cad-overlay > polygon, .next-cad-overlay > polyline, .next-cad-overlay > circle, .next-cad-overlay > path { vector-effect: non-scaling-stroke; stroke-width: 1.8px; pointer-events: visiblePainted; }
.next-cad-overlay > line.opening { stroke-width: 3px; }
.next-cad-overlay > text { font-family: Arial, sans-serif; font-weight: 700; letter-spacing: 0; text-anchor: middle; dominant-baseline: central; pointer-events: visiblePainted; }
.next-cad-overlay.selected > line, .next-cad-overlay.selected > polygon, .next-cad-overlay.selected > polyline, .next-cad-overlay.selected > circle, .next-cad-overlay.selected > path { stroke: #111 !important; stroke-width: 3px; }
.next-cad-overlay.selected > text { paint-order: stroke; stroke: #fff; stroke-width: 3px; fill: #111 !important; }
.next-cad-draft { vector-effect: non-scaling-stroke; stroke-width: 1.5px; stroke-dasharray: 6 4; pointer-events: none; }
.next-cad-draft-point { vector-effect: non-scaling-stroke; stroke: #fff; stroke-width: 1px; pointer-events: none; }
.next-cad-inspector { min-width: 0; overflow-y: auto; border-left: 1px solid var(--next-line); background: #f8f9f9; }
.next-cad-inspector-section { border-bottom: 1px solid var(--next-line); }
.next-cad-inspector-section > header { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 7px 10px; background: #f2f4f4; font-size: 8px; }
.next-cad-inspector-section > header span { color: var(--next-muted); font-size: 7px; }
.next-cad-properties { display: grid; gap: 7px; padding: 9px 10px; }
.next-cad-properties label { display: grid; gap: 3px; color: var(--next-muted); font-size: 7px; font-weight: 700; }
.next-cad-properties select, .next-cad-properties textarea { width: 100%; min-height: 31px; padding: 5px 7px; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; font: inherit; font-size: 8px; resize: vertical; }
.next-cad-primary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 0 10px 10px; }
.next-cad-primary-actions .next-command, .next-cad-primary-actions .next-secondary-command { min-height: 31px; padding: 6px 8px; font-size: 7px; }
.next-cad-primary-actions .next-command:disabled { opacity: .45; cursor: not-allowed; }
.next-cad-layer-list { max-height: 210px; }
.next-cad-layer-list label { grid-template-columns: 16px 24px minmax(0, 1fr); min-height: 42px; padding: 5px 8px; }
.next-cad-layer-list label.selected { background: #fff3f4; }
.next-cad-layer-list .next-cad-color { width: 22px; height: 22px; padding: 1px; border: 1px solid #cfd5d8; border-radius: 3px; background: #fff; cursor: pointer; }
.next-cad-layer-list button { display: grid; min-width: 0; gap: 1px; padding: 0; text-align: left; border: 0; background: transparent; cursor: pointer; }
.next-cad-layer-list button strong, .next-cad-layer-list button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-cad-layer-list button strong { font-size: 8px; }
.next-cad-layer-list button small { color: var(--next-muted); font-size: 6px; }
.next-cad-add-layer { display: grid; grid-template-columns: .85fr 1fr 30px; gap: 4px; padding: 7px 8px; border-top: 1px solid var(--next-line); }
.next-cad-add-layer input { min-width: 0; height: 30px; padding: 4px 6px; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; font-size: 7px; }
.next-cad-add-layer button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--next-line); border-radius: 3px; background: #fff; cursor: pointer; }
.next-cad-add-layer button svg { width: 13px; height: 13px; }
.next-cad-element-list { display: grid; max-height: 210px; overflow-y: auto; }
.next-cad-element-list > button { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 39px; padding: 5px 9px; text-align: left; border: 0; border-bottom: 1px solid var(--next-line); background: #fff; cursor: pointer; }
.next-cad-element-list > button:hover, .next-cad-element-list > button.selected { background: #fff3f4; }
.next-cad-element-list > button > svg { width: 13px; height: 13px; color: #687177; }
.next-cad-element-list > button > span { display: grid; min-width: 0; gap: 1px; }
.next-cad-element-list strong, .next-cad-element-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-cad-element-list strong { font-size: 8px; }
.next-cad-element-list small { color: var(--next-muted); font-size: 6px; }
.next-cad-delete { margin: 7px 9px 9px; min-height: 30px; font-size: 7px; }
.next-cad-history { border-bottom: 1px solid var(--next-line); }
.next-cad-history > summary { display: flex; align-items: center; justify-content: space-between; min-height: 39px; padding: 7px 10px; cursor: pointer; list-style: none; background: #f2f4f4; }
.next-cad-history > summary::-webkit-details-marker { display: none; }
.next-cad-history > summary > span { display: grid; gap: 1px; }
.next-cad-history > summary strong { font-size: 8px; }
.next-cad-history > summary small { color: var(--next-muted); font-size: 6px; }
.next-cad-history > summary svg { width: 13px; height: 13px; transition: transform .16s ease; }
.next-cad-history[open] > summary svg { transform: rotate(180deg); }
.next-cad-history > div { display: grid; max-height: 180px; overflow-y: auto; }
.next-cad-history article { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 42px; padding: 6px 10px; border-top: 1px solid var(--next-line); background: #fff; }
.next-cad-history article > span { display: grid; min-width: 0; gap: 1px; }
.next-cad-history article strong { font-size: 7px; }
.next-cad-history article small { color: var(--next-muted); font-size: 6px; }
.next-cad-history article em { display: grid; place-items: center; min-width: 24px; height: 20px; color: #5b6368; border-radius: 3px; background: #eef0f1; font-size: 7px; font-style: normal; }
.next-ifc-workspace { min-width: 0; }
.next-ifc-geometry { min-width: 0; border-bottom: 1px solid var(--next-line); background: #e9edef; }
.next-ifc-geometry > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 59px; padding: 8px 10px 8px 12px; border-bottom: 1px solid #cfd5d8; background: #f7f8f8; }
.next-ifc-geometry > header > div:first-child { display: grid; min-width: 180px; gap: 2px; }
.next-ifc-geometry > header > div:first-child > span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-ifc-geometry > header > div:first-child > strong, .next-ifc-geometry > header > div:first-child > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-geometry > header > div:first-child > strong { font-size: 10px; }
.next-ifc-geometry > header > div:first-child > small { color: var(--next-muted); font-size: 7px; }
.next-ifc-geometry > header > div:first-child > small[data-status="error"] { color: #982f37; }
.next-ifc-geometry > header > div:first-child > small[data-status="ready"] { color: #2f6b4b; }
.next-ifc-geometry > header > div:first-child > .next-ifc-orientation-status { color: #59636a; }
.next-ifc-viewer-toolbar { display: flex; align-items: center; gap: 4px; min-width: 0; }
.next-ifc-viewer-toolbar > button { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; padding: 0; color: #4c565d; border: 1px solid #ccd2d5; border-radius: 3px; background: #fff; cursor: pointer; }
.next-ifc-viewer-toolbar > button:hover, .next-ifc-viewer-toolbar > button[data-active] { color: #8f252d; border-color: #d8adb0; background: #fff3f4; }
.next-ifc-viewer-toolbar > button[data-ifc-save-orientation][data-dirty], .next-ifc-viewer-toolbar > button[data-ifc-save-orientation].is-dirty { color: #fff; border-color: #9e2932; background: #a92d36; }
.next-ifc-viewer-toolbar > button:disabled { opacity: .42; cursor: default; }
.next-ifc-viewer-toolbar > button svg { width: 14px; height: 14px; }
.next-ifc-viewer-toolbar > span { width: 1px; height: 24px; flex: 0 0 1px; margin: 0 3px; background: #d5d9dc; }
.next-ifc-viewer-toolbar > label { display: none; grid-template-columns: 14px minmax(80px, 130px); align-items: center; gap: 5px; height: 31px; padding: 0 7px; color: #676f74; border: 1px solid #d0d5d8; border-radius: 3px; background: #fff; }
.next-ifc-viewer-toolbar > label[data-active] { display: grid; }
.next-ifc-viewer-toolbar > label.next-ifc-up-axis { display: grid; grid-template-columns: 14px minmax(68px, 82px); }
.next-ifc-viewer-toolbar > label.next-ifc-yaw { display: grid; grid-template-columns: 14px 43px 8px; gap: 3px; padding-inline: 6px 4px; }
.next-ifc-viewer-toolbar > label.next-ifc-tilt { display: grid; grid-template-columns: 14px 8px 38px 8px 38px 8px; gap: 2px; padding-inline: 5px 3px; }
.next-ifc-viewer-toolbar > label svg { width: 13px; height: 13px; }
.next-ifc-viewer-toolbar input[type="range"] { width: 100%; min-width: 0; accent-color: var(--next-red-dark); }
.next-ifc-up-axis select { width: 100%; min-width: 0; height: 25px; padding: 0 20px 0 4px; color: #3f484d; border: 0; background: #fff; font: inherit; font-size: 8px; }
.next-ifc-yaw input, .next-ifc-tilt input { min-width: 0; height: 25px; padding: 0 3px; color: #3f484d; border: 0; background: #fff; font: inherit; font-size: 8px; text-align: right; }
.next-ifc-yaw input { width: 43px; }
.next-ifc-tilt input { width: 38px; }
.next-ifc-yaw span, .next-ifc-tilt span { color: #59636a; font-size: 8px; }
.next-ifc-canvas-shell { position: relative; width: 100%; height: clamp(390px, 58vh, 650px); min-height: 390px; overflow: hidden; background: #e9edef; }
.next-ifc-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: 0; touch-action: none; }
.next-ifc-progress { position: absolute; z-index: 4; inset: 0 0 auto; height: 3px; background: rgba(255,255,255,.34); pointer-events: none; }
.next-ifc-progress span { display: block; width: var(--ifc-progress, 0%); height: 100%; background: var(--next-red); transition: width .2s ease; }
.next-ifc-geometry.is-ready .next-ifc-progress { opacity: 0; transition: opacity .35s ease .3s; }
.next-ifc-canvas-help { position: absolute; z-index: 3; top: 11px; left: 11px; display: flex; gap: 5px; pointer-events: none; }
.next-ifc-canvas-help span { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; padding: 3px 6px; color: #39434a; border: 1px solid rgba(89,101,108,.25); border-radius: 3px; background: rgba(250,251,251,.84); backdrop-filter: blur(3px); font-size: 7px; }
.next-ifc-canvas-help svg { width: 11px; height: 11px; }
.next-ifc-canvas-shell > footer { position: absolute; z-index: 3; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; padding: 6px 10px; color: #39434a; border-top: 1px solid rgba(91,102,109,.28); background: rgba(249,250,250,.86); backdrop-filter: blur(4px); pointer-events: none; font-size: 7px; }
.next-ifc-registration { border-top: 1px solid #cfd5d8; background: #f8f9f9; }
.next-ifc-registration > summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 8px; min-height: 48px; padding: 7px 12px; cursor: pointer; list-style: none; }
.next-ifc-registration > summary::-webkit-details-marker { display: none; }
.next-ifc-registration > summary > span { display: grid; place-items: center; width: 28px; height: 28px; color: #8f252d; border: 1px solid #dfc4c6; border-radius: 3px; background: #fff; }
.next-ifc-registration > summary svg { width: 14px; height: 14px; }
.next-ifc-registration > summary > div { display: grid; min-width: 0; gap: 2px; }
.next-ifc-registration > summary strong { color: #343c41; font-size: 9px; }
.next-ifc-registration > summary small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-registration > summary > svg { justify-self: end; color: #727b80; transition: transform .18s ease; }
.next-ifc-registration[open] > summary > svg { transform: rotate(180deg); }
.next-ifc-georeference { display: grid; gap: 8px; padding: 10px 12px; border-top: 1px solid #dde1e3; background: #f1f5f3; }
.next-ifc-georeference > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-ifc-georeference > header > div { display: grid; min-width: 0; gap: 2px; }
.next-ifc-georeference > header span { color: #5f696d; font-size: 7px; font-weight: 750; text-transform: uppercase; }
.next-ifc-georeference > header strong { color: #33413c; font-size: 10px; }
.next-ifc-georeference > header small, .next-ifc-georeference > small { color: #66716d; font-size: 8px; line-height: 1.45; }
.next-ifc-georeference dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; border-top: 1px solid #d4ded9; border-bottom: 1px solid #d4ded9; }
.next-ifc-georeference dl > div { min-width: 0; padding: 7px 8px; border-right: 1px solid #d4ded9; }
.next-ifc-georeference dl > div:last-child { border-right: 0; }
.next-ifc-georeference dt { color: #6b7671; font-size: 7px; }
.next-ifc-georeference dd { overflow-wrap: anywhere; margin: 2px 0 0; color: #26322e; font-size: 8px; font-weight: 750; }
.next-ifc-georeference ul { display: grid; gap: 3px; margin: 0; padding-left: 16px; color: #7d541c; font-size: 8px; }
.next-ifc-registration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 10px 12px; border-top: 1px solid #dde1e3; background: #fff; }
.next-ifc-registration-grid > .wide { grid-column: 1 / -1; }
.next-ifc-transform { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 8px 9px 9px; border: 1px solid #d7dcde; border-radius: 3px; }
.next-ifc-transform legend { padding: 0 4px; color: #6c757a; font-size: 7px; font-weight: 750; }
.next-ifc-transform label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; min-width: 0; }
.next-ifc-transform label span { color: #5b6469; font-size: 7px; font-weight: 700; }
.next-ifc-transform input { width: 100%; min-width: 0; min-height: 31px; padding: 5px 7px; border: 1px solid #d3d8da; border-radius: 3px; background: #fff; font: inherit; font-size: 8px; }
.next-ifc-registration > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 7px 12px; color: var(--next-muted); border-top: 1px solid #dde1e3; font-size: 7px; }
.next-ifc-canvas-shell > footer span, .next-ifc-canvas-shell > footer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; min-width: 0; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-ifc-summary > div { display: grid; min-width: 0; gap: 2px; min-height: 63px; padding: 12px; border-right: 1px solid var(--next-line); }
.next-ifc-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-ifc-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-summary > div.warning { box-shadow: inset 0 -3px 0 #bd8522; }
.next-ifc-summary .next-secondary-command { align-self: center; margin: 8px; }
.next-model-workspace { min-width: 0; }
.next-model-geometry { min-width: 0; border-bottom: 1px solid var(--next-line); background: #e9edef; }
.next-model-geometry > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 59px; padding: 8px 10px 8px 12px; border-bottom: 1px solid #cfd5d8; background: #f7f8f8; }
.next-model-geometry > header > div:first-child { display: grid; min-width: 180px; gap: 2px; }
.next-model-geometry > header > div:first-child > span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-model-geometry > header > div:first-child > strong, .next-model-geometry > header > div:first-child > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-model-geometry > header > div:first-child > strong { font-size: 10px; }
.next-model-geometry > header > div:first-child > small { color: var(--next-muted); font-size: 7px; }
.next-model-geometry > header > div:first-child > small[data-status="error"] { color: #982f37; }
.next-model-geometry > header > div:first-child > small[data-status="ready"] { color: #2f6b4b; }
.next-model-viewer-toolbar { display: flex; align-items: center; gap: 4px; min-width: 0; }
.next-model-viewer-toolbar > button { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; padding: 0; color: #4c565d; border: 1px solid #ccd2d5; border-radius: 3px; background: #fff; cursor: pointer; }
.next-model-viewer-toolbar > button:hover, .next-model-viewer-toolbar > button[aria-pressed="true"] { color: #8f252d; border-color: #d8adb0; background: #fff3f4; }
.next-model-viewer-toolbar > button svg { width: 14px; height: 14px; }
.next-model-viewer-toolbar > label { display: grid; grid-template-columns: 14px minmax(74px, 118px); align-items: center; gap: 5px; height: 31px; padding: 0 7px; color: #676f74; border: 1px solid #d0d5d8; border-radius: 3px; background: #fff; }
.next-model-viewer-toolbar > label svg { width: 13px; height: 13px; }
.next-model-viewer-toolbar input[type="range"] { width: 100%; min-width: 0; accent-color: var(--next-red-dark); }
.next-model-viewer-toolbar .next-model-color-mode { display: none; grid-template-columns: 14px minmax(92px, 122px); }
.next-model-geometry.has-point-cloud .next-model-color-mode { display: grid; }
.next-model-color-mode select { width: 100%; min-width: 0; height: 25px; padding: 0 24px 0 6px; color: #3f484d; border: 0; background: #fff; font: inherit; font-size: 8px; }
.next-model-canvas-shell { position: relative; width: 100%; height: clamp(390px, 58vh, 650px); min-height: 390px; overflow: hidden; background: #e9edef; }
.next-model-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: 0; touch-action: none; }
.next-model-progress { position: absolute; z-index: 4; inset: 0 0 auto; height: 3px; background: rgba(255,255,255,.34); pointer-events: none; }
.next-model-progress span { display: block; width: var(--model-progress, 0%); height: 100%; background: var(--next-red); transition: width .2s ease; }
.next-model-geometry.is-ready .next-model-progress { opacity: 0; transition: opacity .35s ease .3s; }
.next-model-canvas-help { position: absolute; z-index: 3; top: 11px; left: 11px; display: flex; gap: 5px; pointer-events: none; }
.next-model-canvas-help span { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; padding: 3px 6px; color: #39434a; border: 1px solid rgba(89,101,108,.25); border-radius: 3px; background: rgba(250,251,251,.84); backdrop-filter: blur(3px); font-size: 7px; }
.next-model-canvas-help svg { width: 11px; height: 11px; }
.next-model-canvas-shell > footer { position: absolute; z-index: 3; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; padding: 6px 10px; color: #39434a; border-top: 1px solid rgba(91,102,109,.28); background: rgba(249,250,250,.86); backdrop-filter: blur(4px); pointer-events: none; font-size: 7px; }
.next-model-canvas-shell > footer span, .next-model-canvas-shell > footer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-model-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-model-summary > div { display: grid; min-width: 0; gap: 2px; min-height: 63px; padding: 12px; border-right: 1px solid var(--next-line); }
.next-model-summary > div:last-child { border-right: 0; }
.next-model-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-model-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-model-notice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #39594a; border-bottom: 1px solid #bed2c7; background: #eff8f3; font-size: 8px; }
.next-model-notice svg { width: 15px; height: 15px; flex: 0 0 15px; }
.next-bcf-workspace { min-width: 0; background: #fff; }
.next-bcf-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); min-width: 0; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-bcf-summary > div { display: grid; min-width: 0; gap: 2px; min-height: 63px; padding: 12px; border-right: 1px solid var(--next-line); }
.next-bcf-summary > div:last-child { border-right: 0; }
.next-bcf-summary > div.warning { box-shadow: inset 0 -3px 0 #bd8522; }
.next-bcf-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-bcf-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-bcf-main { display: grid; grid-template-columns: minmax(235px, 30%) minmax(0, 1fr); min-width: 0; min-height: 620px; border-bottom: 1px solid var(--next-line); }
.next-bcf-topic-list { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; border-right: 1px solid var(--next-line); background: #f8f9f9; }
.next-bcf-topic-list > header { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 57px; padding: 9px 11px; border-bottom: 1px solid var(--next-line); }
.next-bcf-topic-list > header > div { display: grid; min-width: 0; gap: 2px; }
.next-bcf-topic-list > header span, .next-bcf-detail > header span, .next-bcf-viewpoints > header span, .next-bcf-comments > header > span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-bcf-topic-list > header strong, .next-bcf-topic-list > header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-bcf-topic-list > header strong { font-size: 9px; }
.next-bcf-topic-list > header small { color: var(--next-muted); font-size: 7px; }
.next-bcf-topic-list > div { max-height: 760px; overflow-y: auto; }
.next-bcf-topic-list button { position: relative; display: grid; width: 100%; min-width: 0; gap: 3px; min-height: 79px; padding: 9px 34px 9px 11px; text-align: left; border: 0; border-bottom: 1px solid var(--next-line); background: #fff; cursor: pointer; }
.next-bcf-topic-list button:hover { background: #f6f8f9; }
.next-bcf-topic-list button.selected { box-shadow: inset 3px 0 0 var(--next-red-dark); background: #fff6f6; }
.next-bcf-topic-list button > span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.next-bcf-topic-list button > span small { color: var(--next-muted); font-size: 6px; }
.next-bcf-topic-list button > strong, .next-bcf-topic-list button > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-bcf-topic-list button > strong { font-size: 9px; }
.next-bcf-topic-list button > small { color: var(--next-muted); font-size: 7px; }
.next-bcf-topic-list button > b { position: absolute; top: 30px; right: 10px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; color: #596269; border-radius: 3px; background: #e9edef; font-size: 7px; }
.next-bcf-topic-list em, .next-bcf-detail-actions em { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 5px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-bcf-topic-list em.released, .next-bcf-detail-actions em.released { color: #2d6547; background: #e5f2ea; }
.next-bcf-topic-list em.due, .next-bcf-detail-actions em.due { color: #96323a; background: #f8e5e6; }
.next-bcf-topic-list em.review, .next-bcf-detail-actions em.review { color: #815c17; background: #f8efd9; }
.next-bcf-topic-list em.draft, .next-bcf-detail-actions em.draft { color: #596269; background: #e9edef; }
.next-bcf-detail { min-width: 0; background: #fff; }
.next-bcf-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 77px; padding: 12px 14px; border-bottom: 1px solid var(--next-line); }
.next-bcf-detail > header > div { display: grid; min-width: 0; gap: 3px; }
.next-bcf-detail > header h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; letter-spacing: 0; }
.next-bcf-detail > header small { color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-bcf-detail > header > .next-bcf-detail-actions { display: flex; grid-template-columns: none; align-items: center; flex: 0 0 auto; }
.next-bcf-detail-actions button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #4f5962; border: 1px solid #d1d7da; border-radius: 3px; background: #fff; cursor: pointer; }
.next-bcf-detail-actions button:hover { color: var(--next-red-dark); border-color: #d8adb0; background: #fff6f6; }
.next-bcf-detail-actions button:disabled { opacity: .55; cursor: not-allowed; }
.next-bcf-detail-actions button svg { width: 14px; height: 14px; }
.next-bcf-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--next-line); background: #fbfbfb; }
.next-bcf-meta > div { display: grid; min-width: 0; gap: 2px; padding: 10px 12px; border-right: 1px solid var(--next-line); }
.next-bcf-meta > div:last-child { border-right: 0; }
.next-bcf-meta dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-bcf-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 8px; font-weight: 700; }
.next-bcf-meta dd small { display: block; color: var(--next-muted); font-size: 7px; font-weight: 400; }
.next-bcf-description { margin: 0; padding: 13px 14px; border-bottom: 1px solid var(--next-line); font-size: 9px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.next-bcf-labels { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 14px; border-bottom: 1px solid var(--next-line); }
.next-bcf-labels span { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; padding: 3px 6px; color: #4f5962; border: 1px solid #d7dcdf; border-radius: 3px; background: #fff; font-size: 7px; }
.next-bcf-labels svg { width: 11px; height: 11px; }
.next-bcf-editor { border-bottom: 1px solid #d5dcdf; background: #f7f9fa; }
.next-bcf-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 47px; padding: 8px 13px; border-bottom: 1px solid #d9dfe2; }
.next-bcf-editor > header > div { display: grid; gap: 2px; }
.next-bcf-editor > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-bcf-editor > header strong { font-size: 9px; }
.next-bcf-editor > header small { color: var(--next-muted); font-size: 7px; }
.next-bcf-editor > .next-form-grid { padding: 12px 13px; }
.next-bcf-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 13px; border-top: 1px solid #d9dfe2; background: #fff; }
.next-bcf-editor > footer > span { max-width: 54%; color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-bcf-editor > footer > div { display: flex; align-items: center; gap: 6px; }
.next-bcf-capture-editor { border-top: 3px solid #9d3038; box-shadow: inset 0 1px 0 #fff; }
.next-bcf-viewpoints { border-bottom: 1px solid var(--next-line); }
.next-bcf-viewpoints > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 51px; padding: 8px 12px; background: #f7f8f8; }
.next-bcf-viewpoints > header > div:first-child { display: grid; gap: 2px; }
.next-bcf-viewpoints > header > div:first-child strong { font-size: 9px; }
.next-bcf-viewpoints > header > div:last-child { display: flex; gap: 4px; max-width: 60%; padding-bottom: 2px; overflow-x: auto; }
.next-bcf-viewpoints > header button { display: flex; align-items: center; min-width: max-content; gap: 4px; height: 29px; padding: 0 7px; color: #576168; border: 1px solid #d1d7da; border-radius: 3px; background: #fff; cursor: pointer; font-size: 7px; }
.next-bcf-viewpoints > header button.selected { color: #8f252d; border-color: #d8adb0; background: #fff3f4; }
.next-bcf-viewpoints > header button svg { width: 12px; height: 12px; }
.next-bcf-viewpoint-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(210px, .6fr); min-width: 0; min-height: 280px; }
.next-bcf-viewpoint-body > figure { display: grid; grid-template-rows: minmax(240px, 1fr) auto; min-width: 0; margin: 0; border-right: 1px solid var(--next-line); background: #e9edef; }
.next-bcf-viewpoint-body > figure img { display: block; width: 100%; height: 100%; min-height: 240px; max-height: 540px; object-fit: contain; }
.next-bcf-viewpoint-body > figure figcaption { padding: 7px 10px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #f8f9f9; font-size: 7px; }
.next-bcf-viewpoint-body > aside { min-width: 0; background: #fbfbfb; }
.next-bcf-viewpoint-body > aside > dl { display: grid; margin: 0; padding: 8px 11px; border-bottom: 1px solid var(--next-line); }
.next-bcf-viewpoint-body > aside > dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 7px; padding: 4px 0; }
.next-bcf-viewpoint-body dt { color: var(--next-muted); font-size: 7px; }
.next-bcf-viewpoint-body dd { margin: 0; font-size: 8px; font-weight: 700; }
.next-bcf-components { display: grid; max-height: 225px; gap: 4px; padding: 9px 11px; overflow-y: auto; }
.next-bcf-components > span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-bcf-components code { padding: 4px 5px; overflow: hidden; color: #465159; border: 1px solid #dde1e3; border-radius: 3px; background: #fff; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-bcf-open-ifc { width: calc(100% - 22px); justify-content: center; margin: 9px 11px 0; }
.next-bcf-comments > header { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 45px; padding: 8px 13px; border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-bcf-comments > header strong { font-size: 8px; }
.next-bcf-comments > article { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--next-line); }
.next-bcf-avatar { display: grid; place-items: center; width: 31px; height: 31px; color: #fff; border-radius: 50%; background: #58646b; font-size: 8px; font-weight: 800; }
.next-bcf-comments > article > div { min-width: 0; }
.next-bcf-comments > article header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.next-bcf-comments > article strong { font-size: 8px; }
.next-bcf-comments time { color: var(--next-muted); font-size: 7px; }
.next-bcf-comments p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.next-bcf-comments article small { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--next-muted); font-size: 7px; overflow-wrap: anywhere; }
.next-bcf-comments article small svg { width: 11px; height: 11px; flex: 0 0 11px; }
.next-ifc-notice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #7f5a12; border-bottom: 1px solid #ead59f; background: #fff7df; font-size: 8px; }
.next-ifc-notice.danger { color: #8f2930; border-color: #e4b7ba; background: #fff0f1; }
.next-ifc-notice svg { width: 15px; height: 15px; }
.next-ifc-reconciliation { border-bottom: 1px solid var(--next-line); background: #f7fbf8; }
.next-ifc-reconciliation.warning { background: #fffaf0; }
.next-ifc-reconciliation > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 8px 12px; cursor: pointer; font-size: 8px; }
.next-ifc-reconciliation > summary > span { display: flex; align-items: center; gap: 7px; }
.next-ifc-reconciliation > summary svg { width: 14px; height: 14px; color: #32745a; }
.next-ifc-reconciliation.warning > summary svg { color: #956d21; }
.next-ifc-reconciliation-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--next-line); }
.next-ifc-reconciliation-metrics > div { display: grid; gap: 2px; padding: 8px 12px; border-right: 1px solid var(--next-line); }
.next-ifc-reconciliation-metrics > div:last-child { border-right: 0; }
.next-ifc-reconciliation-metrics small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-ifc-reconciliation-metrics strong { font-size: 11px; }
.next-ifc-reconciliation ul { display: grid; max-height: 220px; margin: 0; padding: 0; overflow-y: auto; border-top: 1px solid var(--next-line); list-style: none; }
.next-ifc-reconciliation li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--next-line); color: #805b0b; }
.next-ifc-reconciliation li:first-child { border-top: 0; }
.next-ifc-reconciliation li > svg { width: 14px; height: 14px; }
.next-ifc-reconciliation li > span { display: grid; min-width: 0; gap: 2px; }
.next-ifc-reconciliation li strong, .next-ifc-reconciliation li small { overflow-wrap: anywhere; }
.next-ifc-reconciliation li strong { font-size: 8px; }
.next-ifc-reconciliation li small { color: var(--next-muted); font-size: 7px; }
.next-ifc-reconciliation li.dismissed { color: var(--next-muted); background: #f7f8f8; }
.next-ifc-reconciliation li > .next-secondary-command { grid-column: 2; justify-self: start; }
.next-ifc-reconciliation-editor { grid-column: 2; display: grid; min-width: 0; gap: 8px; padding-top: 7px; border-top: 1px solid var(--next-line); }
.next-ifc-reconciliation-editor > div { display: grid; gap: 2px; }
.next-ifc-reconciliation-editor > div small { text-transform: uppercase; }
.next-ifc-reconciliation-editor footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.next-ifc-reconciliation > p { display: flex; align-items: center; gap: 7px; margin: 0; padding: 9px 12px; border-top: 1px solid var(--next-line); color: #32745a; font-size: 8px; }
.next-ifc-reconciliation > p svg { width: 14px; height: 14px; }
.next-bim-derivative-notice span { min-width: 0; overflow-wrap: anywhere; }
.next-bim-derivative-notice strong { margin-right: 3px; }
.next-ifc-bcf-context { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 8px 11px; color: #3f4d55; border-bottom: 1px solid #cbd9df; background: #eef6f8; }
.next-ifc-bcf-context > svg { width: 18px; height: 18px; color: #376779; }
.next-ifc-bcf-context > div:not(.next-ifc-bcf-context-actions) { display: grid; min-width: 0; gap: 1px; }
.next-ifc-bcf-context span, .next-ifc-bcf-context small { color: #617179; font-size: 7px; }
.next-ifc-bcf-context > div:not(.next-ifc-bcf-context-actions) > span { font-weight: 800; text-transform: uppercase; }
.next-ifc-bcf-context strong, .next-ifc-bcf-context small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-bcf-context strong { font-size: 9px; }
.next-ifc-bcf-context-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.next-ifc-quality { border-bottom: 1px solid var(--next-line); }
.next-ifc-quality > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 8px 12px; background: #fffaf0; cursor: pointer; font-size: 8px; }
.next-ifc-quality > summary > span { display: flex; align-items: center; gap: 7px; }
.next-ifc-quality > summary svg { width: 14px; height: 14px; color: #956d21; }
.next-ifc-quality ul { display: grid; max-height: 230px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.next-ifc-quality li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 43px; padding: 6px 12px; border-top: 1px solid var(--next-line); }
.next-ifc-quality li > svg { width: 14px; height: 14px; }
.next-ifc-quality li > span { display: grid; min-width: 0; gap: 2px; }
.next-ifc-quality li strong, .next-ifc-quality li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-quality li strong { font-size: 8px; }
.next-ifc-quality li small { color: var(--next-muted); font-size: 7px; }
.next-ifc-quality li.fehler { color: #962c34; }
.next-ifc-quality li.warnung { color: #805b0b; }
.next-ifc-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr); min-width: 0; min-height: 530px; }
.next-ifc-browser { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; border-right: 1px solid var(--next-line); }
.next-ifc-browser > header { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(150px, 230px); gap: 7px; padding: 9px; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-ifc-browser > header label { display: flex; align-items: center; min-width: 0; height: 34px; padding: 0 9px; border: 1px solid #d6dadd; border-radius: 3px; background: #fff; }
.next-ifc-browser > header label svg { width: 14px; height: 14px; color: var(--next-muted); }
.next-ifc-browser > header input, .next-ifc-browser > header select { width: 100%; min-width: 0; height: 34px; border: 1px solid #d6dadd; border-radius: 3px; background: #fff; font: inherit; }
.next-ifc-browser > header input { height: 32px; border: 0; outline: 0; }
.next-ifc-table-wrap { min-width: 0; overflow: auto; }
.next-ifc-table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
.next-ifc-table-wrap th { height: 30px; padding: 5px 7px; color: #686e73; border-bottom: 1px solid var(--next-line); background: #f1f3f4; font-size: 7px; text-align: left; text-transform: uppercase; }
.next-ifc-table-wrap th:nth-child(1) { width: 145px; }
.next-ifc-table-wrap th:nth-child(2) { width: 170px; }
.next-ifc-table-wrap th:nth-child(3) { width: 210px; }
.next-ifc-table-wrap th:nth-child(4) { width: 150px; }
.next-ifc-table-wrap th:nth-child(5), .next-ifc-table-wrap th:nth-child(6) { width: 48px; }
.next-ifc-table-wrap td { height: 51px; padding: 6px 7px; border-bottom: 1px solid var(--next-line); vertical-align: middle; }
.next-ifc-table-wrap tr:hover, .next-ifc-table-wrap tr.selected { background: #f6f9fb; }
.next-ifc-table-wrap tr.selected { box-shadow: inset 3px 0 0 var(--next-blue); }
.next-ifc-table-wrap td strong, .next-ifc-table-wrap td small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-table-wrap td strong { font-size: 8px; }
.next-ifc-table-wrap td small { color: var(--next-muted); font-size: 7px; }
.next-ifc-table-wrap code { font-size: 7px; }
.next-ifc-table-wrap em { display: grid; place-items: center; width: 25px; height: 21px; color: #687078; border-radius: 3px; background: #eceff1; font-size: 7px; font-style: normal; font-weight: 800; }
.next-ifc-table-wrap em.linked { color: #2f6245; background: #e8f2ec; }
.next-ifc-browser > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 7px 10px; border-top: 1px solid var(--next-line); background: #f8f9f9; font-size: 8px; }
.next-ifc-browser button:disabled { opacity: .4; cursor: default; }
.next-ifc-browser footer strong { align-self: center; padding: 0 5px; font-size: 8px; }
.next-ifc-detail { min-width: 0; max-height: 680px; overflow-y: auto; background: #fbfbfb; }
.next-ifc-detail > header { display: grid; gap: 2px; padding: 12px; border-bottom: 1px solid var(--next-line); }
.next-ifc-detail > header > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-detail > header > small { color: var(--next-muted); font-size: 7px; }
.next-ifc-meta { display: grid; margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--next-line); }
.next-ifc-meta > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; padding: 5px 0; }
.next-ifc-meta dt { color: var(--next-muted); font-size: 7px; }
.next-ifc-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 8px; }
.next-ifc-classifications { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); }
.next-ifc-classifications span { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 4px 6px; color: #4f5962; border: 1px solid #d7dcdf; border-radius: 3px; background: #fff; font-size: 7px; }
.next-ifc-classifications svg { width: 12px; height: 12px; }
.next-ifc-properties details { border-bottom: 1px solid var(--next-line); }
.next-ifc-properties summary { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 7px 12px; background: #f3f4f5; cursor: pointer; font-size: 8px; font-weight: 800; }
.next-ifc-properties summary b { color: var(--next-muted); font-size: 7px; }
.next-ifc-properties dl { margin: 0; padding: 6px 12px; background: #fff; }
.next-ifc-properties dl > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 8px; padding: 5px 0; border-bottom: 1px dotted #e0e2e4; }
.next-ifc-properties dt, .next-ifc-properties dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 7px; }
.next-ifc-properties dt { color: var(--next-muted); }
.next-ifc-link-form { padding: 12px; border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-ifc-link-form > header { display: grid; gap: 2px; margin-bottom: 8px; }
.next-ifc-link-form > header > strong { font-size: 10px; }
.next-ifc-link-form .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 9px; }
.next-ifc-link-list article { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-ifc-link-list article > div { display: grid; min-width: 0; gap: 2px; }
.next-ifc-link-list strong, .next-ifc-link-list span, .next-ifc-link-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-link-list strong { font-size: 8px; }
.next-ifc-link-list span, .next-ifc-link-list small { color: var(--next-muted); font-size: 7px; }
.next-journal { min-width: 0; padding: 18px; }
.next-journal > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--next-line); }
.next-journal > header > div { display: grid; min-width: 0; gap: 2px; }
.next-journal > header > div > span { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-journal h3 { margin: 0; font-size: 14px; letter-spacing: 0; }
.next-journal > header small { color: var(--next-muted); font-size: 8px; }
.next-journal > header > span { display: inline-flex; align-items: center; gap: 6px; min-width: max-content; min-height: 31px; padding: 0 9px; border: 1px solid; border-radius: 4px; font-size: 9px; font-weight: 800; }
.next-journal > header > span.valid { color: #315e45; border-color: #b9d3c2; background: #edf5f0; }
.next-journal > header > span.invalid { color: #8b252b; border-color: #e1b5b8; background: #fbeced; }
.next-journal > header > span svg { width: 14px; height: 14px; }
.next-journal-list { border-top: 1px solid var(--next-line); }
.next-journal-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(120px, auto); align-items: center; gap: 10px; min-height: 61px; padding: 8px 7px; border-bottom: 1px solid var(--next-line); }
.next-journal-mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--next-blue); border-radius: 4px; background: #eaf0f6; }
.next-journal-mark svg { width: 15px; height: 15px; }
.next-journal-list article > div { display: grid; min-width: 0; gap: 2px; }
.next-journal-list article > div:last-child { justify-items: end; text-align: right; }
.next-journal-list strong, .next-journal-list article > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-journal-list strong { font-size: 10px; }
.next-journal-list article > div > span { color: var(--next-muted); font-size: 8px; }
.next-journal-list b { margin-left: 4px; color: var(--next-red-dark); font-size: 8px; }

/* Personal workspace */
.next-work-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.next-work-header h1 { margin: 5px 0 4px; font-size: 28px; letter-spacing: 0; }
.next-work-header p { max-width: 760px; margin: 0; color: var(--next-muted); font-size: 12px; line-height: 1.55; }
.next-work-tabs { display: flex; min-width: 0; margin-bottom: 20px; border-block: 1px solid var(--next-line); overflow-x: auto; overscroll-behavior-inline: contain; }
.next-work-tabs a { display: inline-flex; align-items: center; gap: 7px; min-width: max-content; min-height: 45px; padding: 0 15px; color: #555a60; border-bottom: 2px solid transparent; text-decoration: none; font-size: 10px; font-weight: 700; }
.next-work-tabs a:hover { background: #f0f2f3; }
.next-work-tabs a.active { color: var(--next-red-dark); border-bottom-color: var(--next-red); background: #fff; }
.next-work-tabs svg { width: 15px; height: 15px; }
.next-mobile-workspace-tabs { display: none; }
@media (max-width: 1120px) {
  .next-mobile-workspace-tabs { display: flex; }
}
.next-work-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-work-kpis > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 13px 16px; border-right: 1px solid var(--next-line); }
.next-work-kpis > div:last-child { border-right: 0; }
.next-work-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-work-kpis small { color: var(--next-muted); font-size: 8px; text-transform: uppercase; }
.next-work-kpis strong { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.next-work-kpis .next-metric-icon { width: 38px; height: 38px; }
.next-work-kpis .critical { background: #fff3f3; }
.next-work-kpis .warning { background: #fff8eb; }
.next-work-surface, .next-function-catalogue, .next-legacy-catalogue { min-width: 0; margin-bottom: 20px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-work-section-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 60px; padding: 11px 15px; border-bottom: 1px solid var(--next-line); }
.next-work-section-header > div { display: grid; min-width: 0; }
.next-work-section-header > div > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-section-header h2 { margin: 2px 0 0; font-size: 15px; letter-spacing: 0; }
.next-work-section-header h2 b { display: inline-grid; place-items: center; min-width: 23px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 3px; background: #eef0f2; font-size: 8px; vertical-align: 2px; }
.next-work-section-header > small { color: var(--next-muted); font-size: 9px; }
.next-work-section-header .next-command { min-height: 34px; border: 0; cursor: pointer; }
.next-work-section-header > .next-work-header-actions { display: flex; grid-auto-flow: column; align-items: center; gap: 8px; }
.next-work-header-actions .next-secondary-command { min-height: 34px; text-decoration: none; }
.next-inline-select { display: flex; align-items: center; gap: 8px; }
.next-inline-select > span { color: var(--next-muted); font-size: 9px; }
.next-inline-select select { width: min(260px, 35vw); height: 34px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 10px; }
.next-work-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(150px, 210px) minmax(150px, 230px); gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-work-toolbar label { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-work-toolbar label svg { width: 14px; height: 14px; color: #8a8f94; }
.next-work-toolbar input, .next-work-toolbar select { min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; outline: none; font-size: 10px; }
.next-work-toolbar label input { width: 100%; height: 30px; padding: 0; border: 0; background: transparent; }
.next-work-toolbar input:focus, .next-work-toolbar select:focus, .next-inline-select select:focus { border-color: #bd8e92; }
.next-inline-fields { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px; }

.next-module-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-module-directory > a, .next-module-directory > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 9px 13px; color: var(--next-ink); border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); text-decoration: none; }
.next-module-directory > :nth-child(2n) { border-right: 0; }
.next-module-directory > :nth-last-child(-n+2) { border-bottom: 0; }
.next-module-directory > a:hover { background: #f8f9fa; }
.next-module-directory > b, .next-module-directory > a > b { display: grid; place-items: center; width: 38px; height: 31px; color: var(--next-blue); border-radius: 4px; background: #e8eef4; font-size: 9px; }
.next-module-directory > div > b { display: grid; place-items: center; width: 38px; height: 31px; color: #7a7f84; border-radius: 4px; background: #eef0f2; font-size: 9px; }
.next-module-directory > * > span { display: grid; min-width: 0; gap: 2px; }
.next-module-directory strong, .next-module-directory small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-module-directory strong { font-size: 10px; }
.next-module-directory small { color: var(--next-muted); font-size: 8px; }
.next-module-directory svg { width: 15px; height: 15px; color: #979ca1; }
.next-module-directory > [data-unified-property-workspace] { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.next-migration-evidence > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; min-height: 58px; padding: 10px 15px; cursor: pointer; list-style: none; }
.next-migration-evidence > summary::-webkit-details-marker { display: none; }
.next-migration-evidence > summary span { display: grid; min-width: 0; gap: 2px; }
.next-migration-evidence > summary small { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-migration-evidence > summary strong { font-size: 13px; }
.next-migration-evidence > summary b { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; color: #62686e; border-radius: 3px; background: #eceff1; font-size: 9px; }
.next-migration-evidence > summary svg { width: 15px; height: 15px; color: var(--next-muted); transition: transform .16s ease; }
.next-migration-evidence[open] > summary { border-bottom: 1px solid var(--next-line); }
.next-migration-evidence[open] > summary svg { transform: rotate(180deg); }
.next-legacy-table-scroll { max-width: 100%; overflow: auto; }
.next-legacy-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 9px; }
.next-legacy-table th { height: 34px; padding: 0 10px; color: #666b71; border-bottom: 1px solid var(--next-line); background: #f4f5f6; text-align: left; white-space: nowrap; }
.next-legacy-table td { max-width: 330px; padding: 8px 10px; border-bottom: 1px solid #eceef0; vertical-align: top; }
.next-legacy-table tr:last-child td { border-bottom: 0; }
.next-legacy-table td strong, .next-legacy-table td small { display: block; }
.next-legacy-table td small { margin-top: 3px; overflow: hidden; color: var(--next-muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; }
.next-legacy-table code { color: #496070; font-family: Consolas, monospace; font-size: 8px; }
.next-legacy-table td > em { display: inline-flex; min-height: 20px; align-items: center; padding: 0 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-legacy-table td > em.write { color: #8e242b; background: #fae9eb; }
.next-legacy-table td > em.read { color: #496070; background: #eaf0f6; }
.next-legacy-table a { color: var(--next-red-dark); text-decoration: none; }
.next-legacy-table em.overdue { display: block; margin-top: 3px; color: var(--next-red-dark); font-size: 7px; font-style: normal; }
.next-catalog-state { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 6px; border-radius: 3px; font-size: 7px; font-weight: 800; }
.next-catalog-state svg { width: 11px; height: 11px; }
.next-catalog-state.native { color: #315f43; background: #e9f2ed; }
.next-catalog-state.replaced { color: #315772; background: #e8f0f5; }
.next-catalog-state.retired { color: #6a4a18; background: #f5eddf; }
.next-catalog-state.open { color: #755018; background: #f8efe1; }
.next-catalog-target { display: grid; grid-template-columns: max-content minmax(0, 1fr) 14px; gap: 7px; align-items: center; }
.next-catalog-target > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-catalog-target > svg { width: 12px; height: 12px; }

.next-work-editor { border-bottom: 1px solid var(--next-line); background: #fbfcfc; }
.next-work-editor > header, .next-task-detail > header, .next-approval-detail > header, .next-ifc-case-detail > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 13px; border-bottom: 1px solid var(--next-line); }
.next-work-editor > header > div, .next-task-detail > header > div, .next-approval-detail > header > div, .next-ifc-case-detail > header > div { display: grid; min-width: 0; }
.next-work-editor > header span, .next-task-detail > header span, .next-approval-detail > header span, .next-ifc-case-detail > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-work-editor h3, .next-task-detail h3, .next-approval-detail h3, .next-ifc-case-detail h3 { overflow: hidden; margin: 2px 0 0; font-size: 13px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-work-editor > header button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.next-work-editor > header button:hover { background: #eceef0; }
.next-work-editor > header svg { width: 15px; height: 15px; }
.next-work-editor > footer, .next-task-detail > footer, .next-approval-detail > footer, .next-ifc-case-detail > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 13px; border-top: 1px solid var(--next-line); background: #f7f8f9; }
.next-work-editor > footer > span, .next-task-detail > footer > span, .next-approval-detail > footer > span, .next-ifc-case-detail > footer > span { color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-work-editor > footer > div { display: flex; gap: 7px; }
.next-work-editor > footer button, .next-task-detail > footer button, .next-approval-detail > footer button, .next-ifc-case-detail > footer button { min-height: 32px; border: 0; cursor: pointer; }
.next-task-layout, .next-approval-layout, .next-ifc-case-layout { display: grid; grid-template-columns: minmax(280px, 36%) minmax(0, 1fr); min-height: 550px; }
.next-task-list, .next-approval-list, .next-ifc-case-list { max-height: 750px; border-right: 1px solid var(--next-line); overflow-y: auto; }
.next-task-list > button { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 62px; padding: 8px 11px; color: var(--next-ink); border: 0; border-bottom: 1px solid #eceef0; background: #fff; text-align: left; cursor: pointer; }
.next-task-list > button:hover, .next-approval-list > button:hover { background: #f8f9fa; }
.next-task-list > button.active, .next-approval-list > button.active { background: #faecee; box-shadow: inset 3px 0 var(--next-red); }
.next-task-list > button > span:nth-child(2), .next-task-list > button > span:last-child { display: grid; min-width: 0; gap: 3px; }
.next-task-list > button > span:last-child { justify-items: end; }
.next-task-list strong, .next-task-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-task-list strong { font-size: 10px; }
.next-task-list small { color: var(--next-muted); font-size: 8px; }
.next-task-list em { display: inline-flex; min-height: 19px; align-items: center; padding: 0 5px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-task-list em.escalated, .next-task-list em.overdue { color: #8e242b; background: #fae9eb; }
.next-task-list em.soon { color: #755018; background: #f8efe1; }
.next-task-list em.done { color: #315f43; background: #e9f2ed; }
.next-task-list em.planned { color: #496070; background: #eaf0f6; }
.next-priority-dot { width: 7px; height: 7px; border-radius: 50%; background: #8ca1b4; }
.next-priority-dot.overdue, .next-priority-dot.escalated { background: var(--next-red); }
.next-priority-dot.soon { background: var(--next-amber); }
.next-priority-dot.done { background: var(--next-green); }
.next-task-detail, .next-approval-detail { min-width: 0; }
.next-task-detail > header small, .next-approval-detail > header small { margin-top: 3px; overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-task-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-task-summary > span { display: grid; gap: 2px; min-width: 0; padding: 9px 11px; border-right: 1px solid var(--next-line); }
.next-task-summary > span:last-child { border-right: 0; }
.next-task-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-task-summary strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-task-detail-scroll { max-height: 625px; overflow-y: auto; }
.next-task-detail fieldset { min-width: 0; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--next-line); }
.next-task-detail fieldset:last-child { border-bottom: 0; }
.next-task-detail legend { width: 100%; padding: 9px 13px 0; color: #565b60; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-task-detail .next-form-grid, .next-approval-detail .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 13px 13px; }

.next-approval-list > button { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 62px; padding: 8px 11px; color: var(--next-ink); border: 0; border-bottom: 1px solid #eceef0; background: #fff; text-align: left; cursor: pointer; }
.next-approval-symbol { display: grid; place-items: center; width: 32px; height: 32px; color: var(--next-blue); border-radius: 4px; background: #eaf0f6; }
.next-approval-symbol svg { width: 16px; height: 16px; }
.next-approval-list > button > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.next-approval-list strong, .next-approval-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-approval-list strong { font-size: 10px; }
.next-approval-list small { color: var(--next-muted); font-size: 8px; }
.next-approval-list em { display: inline-flex; min-height: 20px; align-items: center; padding: 0 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-approval-list em.approved { color: #315f43; background: #e9f2ed; }
.next-approval-list em.rejected { color: #8e242b; background: #fae9eb; }
.next-approval-list em.review { color: #755018; background: #f8efe1; }
.next-approval-list em.submitted { color: #496070; background: #eaf0f6; }
.next-approval-list em.draft { color: #666b71; background: #eef0f2; }
.next-work-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0 13px 14px; }
.next-work-metadata > div { min-width: 0; padding: 9px; border: 1px solid var(--next-line); border-right: 0; border-bottom: 0; }
.next-work-metadata > div:nth-child(2n) { border-right: 1px solid var(--next-line); }
.next-work-metadata > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--next-line); }
.next-work-metadata dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-work-metadata dd { overflow: hidden; margin: 3px 0 0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.next-ifc-case-list > button { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 66px; padding: 8px 11px; color: var(--next-ink); border: 0; border-bottom: 1px solid #eceef0; background: #fff; text-align: left; cursor: pointer; }
.next-ifc-case-list > button:hover { background: #f8f9fa; }
.next-ifc-case-list > button.active { background: #faecee; box-shadow: inset 3px 0 var(--next-red); }
.next-ifc-case-list > button.overdue:not(.active) { background: #fff8f2; box-shadow: inset 3px 0 #c56a2f; }
.next-ifc-case-list > button > span:nth-child(2), .next-ifc-case-list > button > span:last-child { display: grid; min-width: 0; gap: 3px; }
.next-ifc-case-list > button > span:last-child { justify-items: end; }
.next-ifc-case-list strong, .next-ifc-case-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-case-list strong { font-size: 10px; }
.next-ifc-case-list small { color: var(--next-muted); font-size: 8px; }
.next-ifc-case-list em { display: inline-flex; min-height: 20px; align-items: center; padding: 0 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-ifc-case-symbol { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; }
.next-ifc-case-symbol svg { width: 16px; height: 16px; }
.next-ifc-case-symbol.open, .next-ifc-case-list em.open, .next-ifc-case-summary strong.open { color: #755018; background: #f8efe1; }
.next-ifc-case-symbol.resolved, .next-ifc-case-list em.resolved, .next-ifc-case-summary strong.resolved { color: #315f43; background: #e9f2ed; }
.next-ifc-case-symbol.dismissed, .next-ifc-case-list em.dismissed, .next-ifc-case-summary strong.dismissed { color: #8e242b; background: #fae9eb; }
.next-ifc-case-symbol.forwarded, .next-ifc-case-list em.forwarded, .next-ifc-case-summary strong.forwarded { color: #496070; background: #eaf0f6; }
.next-ifc-case-symbol.neutral, .next-ifc-case-list em.neutral, .next-ifc-case-summary strong.neutral { color: #666b71; background: #eef0f2; }
.next-ifc-case-detail { min-width: 0; }
.next-ifc-case-detail > header small { margin-top: 3px; overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-case-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-ifc-case-summary > span { display: grid; min-width: 0; gap: 3px; padding: 9px 11px; border-right: 1px solid var(--next-line); }
.next-ifc-case-summary > span:last-child { border-right: 0; }
.next-ifc-case-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-ifc-case-summary strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-ifc-case-summary strong[class] { justify-self: start; min-height: 20px; align-content: center; padding: 0 6px; border-radius: 3px; }
.next-ifc-case-summary strong.overdue { color: #8e242b; background: #fae9eb; }
.next-ifc-case-detail-scroll { max-height: 610px; overflow-y: auto; }
.next-ifc-case-detail-scroll > section { border-bottom: 1px solid var(--next-line); }
.next-ifc-case-detail-scroll > section:last-child { border-bottom: 0; }
.next-ifc-case-detail-scroll h4 { margin: 0; padding: 10px 13px 0; color: #565b60; font-size: 8px; text-transform: uppercase; }
.next-ifc-case-detail-scroll .next-work-metadata { padding-top: 9px; }
.next-ifc-case-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 7px; margin: 0 13px 13px; padding: 9px; color: #4f5960; border: 1px solid var(--next-line); border-radius: 4px; background: #f7f8f9; font-size: 8px; line-height: 1.45; }
.next-ifc-case-note svg { width: 14px; height: 14px; }
.next-ifc-case-decision { padding-bottom: 13px; background: #fffaf0; }
.next-ifc-case-decision > p { margin: 7px 13px 10px; color: var(--next-muted); font-size: 8px; line-height: 1.5; }
.next-ifc-case-decision .next-field { margin: 0 13px; }
.next-ifc-case-toolbar { grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 180px)); }
.next-ifc-case-planning { padding-bottom: 12px; background: #f7fafb; }
.next-ifc-case-planning .next-form-grid { padding: 9px 13px; }
.next-ifc-case-planning-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 0 13px; }
.next-ifc-case-planning-actions button { min-height: 32px; }
.next-ifc-case-detail > footer > div { display: flex; gap: 7px; }
.next-ifc-case-detail > footer a { min-height: 32px; text-decoration: none; }

.next-report-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-bottom: 12px; }
.next-report-actions > div { display: grid; margin-right: auto; }
.next-report-actions > div span { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-report-actions > div strong { font-size: 9px; }
.next-report-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 14px; }
.next-coverage-list { display: grid; }
.next-coverage-list > div { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, .65fr) 39px; align-items: center; gap: 10px; min-height: 43px; padding: 6px 12px; border-bottom: 1px solid #eceef0; }
.next-coverage-list > div:last-child { border-bottom: 0; }
.next-coverage-list > div > span:first-child { display: grid; min-width: 0; gap: 2px; }
.next-coverage-list strong, .next-coverage-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-coverage-list strong { font-size: 9px; }
.next-coverage-list small { color: var(--next-muted); font-size: 7px; }
.next-coverage-list b { font-size: 8px; text-align: right; }
.next-progress { display: block; height: 6px; border-radius: 3px; background: #e5e8ea; overflow: hidden; }
.next-progress i { display: block; height: 100%; background: var(--next-green); }
.next-progress.table { display: inline-block; width: 80px; margin-right: 5px; vertical-align: 1px; }
.next-report-counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-report-counters > div { display: grid; gap: 3px; min-height: 61px; padding: 10px 12px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-report-counters > div:nth-child(2n) { border-right: 0; }
.next-report-counters > div:nth-last-child(-n+2) { border-bottom: 0; }
.next-report-counters small { color: var(--next-muted); font-size: 8px; }
.next-report-counters strong { font-size: 18px; }
.next-report-counters .critical { color: var(--next-red-dark); background: #fff3f3; }
.next-quality-compact { display: grid; max-height: 367px; overflow-y: auto; }
.next-quality-compact > a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 7px; min-height: 52px; padding: 8px 11px; color: var(--next-ink); border-bottom: 1px solid #eceef0; text-decoration: none; }
.next-quality-compact > a:hover { background: #f8f9fa; }
.next-quality-compact > a > svg { width: 15px; height: 15px; color: var(--next-amber); }
.next-quality-compact > a > span { display: grid; min-width: 0; gap: 2px; }
.next-quality-compact strong { font-size: 9px; }
.next-quality-compact small { display: -webkit-box; overflow: hidden; color: var(--next-muted); font-size: 7px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.next-quality-compact em { font-size: 7px; font-style: normal; }
.next-quality-compact em.kritisch { color: var(--next-red-dark); }
.next-quality-compact em.warnung { color: #8a5a19; }
.next-report-table-section, .next-area-report { margin-top: 0; }
.next-area-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-area-report-grid > div { min-width: 0; padding: 12px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-area-report-grid > div:nth-child(2n) { border-right: 0; }
.next-area-report-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.next-area-report-grid > div > span { display: grid; gap: 2px; margin-bottom: 9px; }
.next-area-report-grid strong { font-size: 10px; }
.next-area-report-grid small { color: var(--next-muted); font-size: 8px; }
.next-area-report-grid dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.next-area-report-grid dl div { min-width: 0; padding: 5px 7px; border-left: 1px solid var(--next-line); }
.next-area-report-grid dl div:first-child { border-left: 0; padding-left: 0; }
.next-area-report-grid dt { color: var(--next-muted); font-size: 7px; }
.next-area-report-grid dd { overflow: hidden; margin: 2px 0 0; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.next-property-report { margin-bottom: 18px; color: var(--next-ink); background: #fff; border: 1px solid var(--next-line); }
.next-property-report-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 22px; padding: 18px 20px; border-bottom: 2px solid var(--next-red); }
.next-property-report-brand { display: flex; align-items: center; }
.next-property-report-brand img { display: block; width: 150px; height: 52px; object-fit: contain; }
.next-property-report-title { min-width: 0; }
.next-property-report-title > span, .next-property-report-grid header span, .next-property-report-modules header span { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-property-report-title h2 { overflow-wrap: anywhere; margin: 2px 0; font-size: 20px; }
.next-property-report-title p { overflow-wrap: anywhere; margin: 0; color: var(--next-muted); font-size: 9px; }
.next-property-report-header > dl { display: grid; min-width: 180px; margin: 0; }
.next-property-report-header > dl div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.next-property-report-header dt { color: var(--next-muted); font-size: 7px; }
.next-property-report-header dd { overflow-wrap: anywhere; margin: 0; font-size: 8px; font-weight: 700; text-align: right; }
.next-property-report-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-property-report-actions > span { display: flex; align-items: center; gap: 6px; margin-right: auto; color: var(--next-muted); font-size: 8px; }
.next-property-report-actions > span svg { width: 14px; height: 14px; color: var(--next-green); }
.next-property-report-result { display: flex; grid-column: 1 / -1; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border: 1px solid; border-radius: 4px; font-size: 9px; }
.next-property-report-result.success { color: #315e45; border-color: #b9d3c2; background: #edf5f0; }
.next-property-report-result.error { color: #8b252b; border-color: #e1b5b8; background: #fbeced; }
.next-property-report-result svg { width: 15px; height: 15px; flex: 0 0 auto; }
.next-property-report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); margin: 0; border-bottom: 1px solid var(--next-line); }
.next-property-report-kpis > div { display: grid; min-width: 0; gap: 3px; padding: 12px 14px; border-right: 1px solid var(--next-line); }
.next-property-report-kpis > div:last-child { border-right: 0; }
.next-property-report-kpis small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-property-report-kpis strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.next-property-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-property-report-grid > section { min-width: 0; }
.next-property-report-grid > section + section { border-left: 1px solid var(--next-line); }
.next-property-report-grid header, .next-property-report-modules > header { padding: 10px 13px; border-bottom: 1px solid var(--next-line); }
.next-property-report-grid h3, .next-property-report-modules h3 { margin: 2px 0 0; font-size: 11px; }
.next-property-report-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.next-property-report-facts > div { min-width: 0; padding: 8px 11px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-property-report-facts > div:nth-child(2n), .next-property-report-facts > div.wide { border-right: 0; }
.next-property-report-facts > div.wide { grid-column: 1 / -1; }
.next-property-report-facts dt { color: var(--next-muted); font-size: 7px; }
.next-property-report-facts dd { overflow-wrap: anywhere; margin: 2px 0 0; font-size: 9px; font-weight: 700; }
.next-property-report-facts dd.critical { color: var(--next-red-dark); }
.next-property-report-modules > header { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.next-property-report-modules > header strong { color: var(--next-green); font-size: 9px; }
.next-property-report-module-head, .next-property-report-module-list > div { display: grid; grid-template-columns: 64px minmax(180px, 1fr) 76px 76px 120px; align-items: center; }
.next-property-report-module-head { padding: 7px 12px; color: var(--next-muted); background: #f7f7f7; font-size: 7px; text-transform: uppercase; }
.next-property-report-module-list > div { min-height: 48px; padding: 8px 12px; border-top: 1px solid var(--next-line); }
.next-property-report-module-list > div:first-child { border-top: 0; }
.next-property-report-module-list > div > span { min-width: 0; font-size: 8px; }
.next-property-report-module-list b { color: var(--next-muted); }
.next-property-report-module-list strong, .next-property-report-module-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-property-report-module-list strong { font-size: 9px; }
.next-property-report-module-list small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-property-report-module-list em { color: var(--next-muted); font-style: normal; }
.next-property-report-module-list > div.active b, .next-property-report-module-list > div.active em { color: var(--next-green); }
.next-property-report-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 10px 13px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-property-report-footer p { flex: 0 0 100%; margin: 2px 0 0; color: var(--next-ink); font-size: 8px; }

.next-planning-empty { display: grid; justify-items: center; gap: 7px; padding: 35px 18px; text-align: center; }
.next-planning-empty > svg { width: 27px; height: 27px; color: #92979c; }
.next-planning-empty > strong { font-size: 11px; }
.next-planning-empty > span { color: var(--next-muted); font-size: 9px; }
.next-planning-header { flex-wrap: wrap; gap: 10px; }
.next-planning-view-tabs { display: flex; align-items: center; gap: 2px; min-height: 42px; padding: 5px 12px; border-bottom: 1px solid var(--next-line); background: #f5f6f7; }
.next-planning-view-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #5d6469; font-size: 10px; font-weight: 700; cursor: pointer; }
.next-planning-view-tabs button:hover { background: #e9ecee; color: var(--next-ink); }
.next-planning-view-tabs button.active { border-color: #cfd4d7; background: #fff; color: var(--next-ink); box-shadow: 0 1px 2px rgb(20 28 32 / 8%); }
.next-planning-view-tabs svg { width: 14px; height: 14px; }
.next-planning-rangebar { display: grid; grid-template-columns: minmax(130px, 165px) minmax(130px, 165px) 32px 32px minmax(175px, auto) minmax(210px, 1fr); align-items: end; gap: 8px; min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-planning-rangebar > label:not(.next-planning-completed) { display: grid; gap: 4px; color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-planning-rangebar input[type="date"] { width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid #d3d7da; border-radius: 4px; background: #fff; color: var(--next-ink); font-size: 10px; }
.next-planning-rangebar .next-icon-command { width: 32px; height: 32px; }
.next-planning-completed { display: flex; align-items: center; gap: 7px; min-height: 32px; color: #4d555a; font-size: 9px; font-weight: 700; }
.next-planning-completed input { width: 15px; height: 15px; accent-color: var(--next-red); }
.next-planning-rangebar > span { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-height: 32px; color: var(--next-muted); font-size: 8px; text-align: right; }
.next-planning-rangebar > span svg { width: 13px; height: 13px; }
.next-planning-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(200px, 290px) minmax(190px, 270px); }
.next-fm-planning-list { min-width: 0; }
.next-fm-planning-list > section > header { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 13px; border-bottom: 1px solid #dfe3e5; background: #eceff1; color: #343a3e; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.next-fm-planning-list > section > header b { display: grid; place-items: center; min-width: 23px; height: 21px; padding: 0 5px; border-radius: 3px; background: #d9dee1; font-size: 8px; }
.next-fm-planning-list > section > div { display: grid; }
.next-fm-planning-list a { position: relative; display: grid; grid-template-columns: 56px 52px minmax(240px, 2fr) minmax(135px, .8fr) minmax(105px, .6fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 70px; padding: 9px 12px; border-bottom: 1px solid #e9ecee; color: var(--next-ink); text-decoration: none; }
.next-fm-planning-list a:hover { background: #f7f8f8; }
.next-fm-planning-list a.due { box-shadow: inset 3px 0 #c52531; }
.next-fm-planning-list a.escalated { box-shadow: inset 3px 0 #9f2e6d; }
.next-fm-planning-list a.conflict { box-shadow: inset 3px 0 #d48316; }
.next-fm-planning-list a.completed { opacity: .66; }
.next-fm-planning-list time { display: grid; justify-items: center; gap: 1px; min-width: 0; color: #353b3f; }
.next-fm-planning-list time strong { font-size: 19px; line-height: 1; }
.next-fm-planning-list time small { max-width: 56px; overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-fm-planning-kind { display: grid; justify-items: center; gap: 4px; min-width: 0; color: #626a6f; }
.next-fm-planning-kind svg { width: 19px; height: 19px; }
.next-fm-planning-kind small { font-size: 8px; font-weight: 800; }
.next-fm-planning-main, .next-fm-planning-owner, .next-fm-planning-state { display: grid; min-width: 0; gap: 3px; }
.next-fm-planning-main strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-fm-planning-main small, .next-fm-planning-owner small, .next-fm-planning-state small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-fm-planning-main em { overflow: hidden; color: #6a7176; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.next-fm-planning-owner strong, .next-fm-planning-state strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-fm-planning-state strong { color: #3f6066; }
.next-fm-planning-flags { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 20px; color: #737b80; }
.next-fm-planning-flags svg { width: 14px; height: 14px; }
.next-fm-planning-flags svg[title="Überfällig"], .next-fm-planning-flags svg[title="Eskaliert"] { color: #b3212d; }
.next-fm-planning-flags svg[title="Terminkonflikt"] { color: #b66c0b; }
.next-property-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(760px, 100%); margin-top: 10px; border: 1px solid var(--next-line); }
.next-property-shortcuts a { display: grid; grid-template-columns: 18px minmax(0, 1fr) 14px; align-items: center; gap: 7px; min-width: 0; min-height: 39px; padding: 6px 8px; color: var(--next-ink); border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); text-align: left; text-decoration: none; }
.next-property-shortcuts a:nth-child(3n) { border-right: 0; }
.next-property-shortcuts a svg { width: 13px; height: 13px; color: var(--next-blue); }
.next-property-shortcuts a span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-planning-board { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); min-width: 0; overflow-x: auto; }
.next-planning-board > section { min-width: 230px; border-right: 1px solid var(--next-line); }
.next-planning-board > section:last-child { border-right: 0; }
.next-planning-board > section > header { display: flex; align-items: center; justify-content: space-between; min-height: 39px; padding: 0 10px; border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 9px; font-weight: 800; }
.next-planning-board > section > header b { display: grid; place-items: center; min-width: 20px; height: 19px; padding: 0 4px; border-radius: 3px; background: #e4e7e9; font-size: 7px; }
.next-planning-board > section > div { display: grid; align-content: start; max-height: 620px; overflow-y: auto; }
.next-planning-board a { display: grid; gap: 8px; min-width: 0; padding: 11px; color: var(--next-ink); border-bottom: 1px solid #eceef0; text-decoration: none; }
.next-planning-board a:hover { background: #f8f9fa; }
.next-planning-board a.due { box-shadow: inset 3px 0 var(--next-red); }
.next-planning-board a > span { display: grid; min-width: 0; gap: 2px; }
.next-planning-board a strong, .next-planning-board a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-planning-board a strong { font-size: 9px; }
.next-planning-board a small { color: var(--next-muted); font-size: 7px; }
.next-planning-board dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
.next-planning-board dl div { min-width: 0; }
.next-planning-board dt { color: var(--next-muted); font-size: 6px; text-transform: uppercase; }
.next-planning-board dd { overflow: hidden; margin: 2px 0 0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-planning-board a > em { display: inline-flex; align-items: center; justify-self: start; gap: 4px; min-height: 19px; padding: 0 5px; color: #7c561c; border-radius: 3px; background: #f8efe1; font-size: 7px; font-style: normal; }
.next-planning-board a > em.historical { color: #4c555b; background: #e9edef; }
.next-planning-board a > em svg { width: 11px; height: 11px; }
.next-planning-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--next-line); background: #fafbfb; }
.next-planning-create > header { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border-bottom: 1px solid #e7e9ea; }
.next-planning-create > header > div { display: grid; min-width: 0; gap: 2px; }
.next-planning-create > header strong { color: var(--next-ink); font-size: 10px; }
.next-planning-create > header small { color: var(--next-muted); font-size: 7px; line-height: 1.45; }
.next-planning-create > header > button { display: grid; place-items: center; width: 27px; height: 27px; margin-left: auto; border: 0; border-radius: 4px; background: transparent; color: var(--next-muted); cursor: pointer; }
.next-planning-create > header > button:hover { background: #eceeef; color: var(--next-ink); }
.next-planning-create > header > button svg { width: 14px; height: 14px; }
.next-planning-create-form { display: grid; grid-template-columns: minmax(190px, 2fr) minmax(135px, 1fr) minmax(135px, 1fr); gap: 9px; min-width: 0; padding: 11px 12px; }
.next-planning-create-form label { display: grid; min-width: 0; gap: 4px; color: var(--next-muted); font-size: 7px; font-weight: 700; }
.next-planning-create-form input, .next-planning-create-form select { width: 100%; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid #d9dddf; border-radius: 4px; background: #fff; color: var(--next-ink); font: inherit; font-size: 8px; }
.next-planning-create > footer { display: flex; align-items: flex-end; justify-content: flex-end; gap: 9px; min-width: 180px; padding: 11px 12px; border-left: 1px solid #e7e9ea; }
.next-planning-create-error { display: inline-flex; align-items: center; gap: 5px; max-width: 185px; color: var(--next-red); font-size: 7px; line-height: 1.35; }
.next-planning-create-error svg { flex: 0 0 auto; width: 12px; height: 12px; }
.next-planning-create .next-command.disabled { pointer-events: none; opacity: .45; }
.next-work-kpis.next-contract-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-work-kpis.next-property-dossier-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-work-kpis.next-party-dossier-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-property-dossier-toolbar { grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, .7fr)); }
.next-party-dossier-toolbar { grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, .7fr)); }
.next-contract-portfolio-toolbar { grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, .7fr)); }
.next-contract-portfolio-list { min-width: 0; }
.next-contract-portfolio-list > header, .next-contract-portfolio-list > a { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(210px, 1.2fr) minmax(130px, .7fr) minmax(155px, .8fr) minmax(125px, .65fr) 76px; align-items: center; gap: 10px; min-width: 0; }
.next-party-dossier-list > header, .next-party-dossier-list > a { grid-template-columns: minmax(215px, 1.2fr) minmax(190px, 1fr) minmax(175px, .9fr) minmax(185px, .95fr) minmax(155px, .8fr) 92px; }
.next-contract-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-contract-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-contract-portfolio-list > a:hover { background: #f7f8f8; }
.next-contract-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-contract-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-contract-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-contract-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-contract-portfolio-list strong, .next-contract-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-contract-portfolio-list strong { font-size: 9px; }
.next-contract-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-contract-portfolio-list small em { color: #9a6412; font-style: normal; }
.next-contract-portfolio-list strong.released { color: var(--next-green); }
.next-contract-portfolio-list strong.review { color: var(--next-blue); }
.next-contract-portfolio-list strong.overdue { color: var(--next-red-dark); }
.next-contract-portfolio-list strong.draft { color: var(--next-muted); }
.next-work-kpis.next-insurance-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-insurance-portfolio-toolbar { grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, .7fr)); }
.next-insurance-portfolio-list { min-width: 0; }
.next-insurance-portfolio-list > header, .next-insurance-portfolio-list > a { display: grid; grid-template-columns: minmax(210px, 1.25fr) minmax(190px, 1fr) minmax(170px, .85fr) minmax(170px, .85fr) minmax(120px, .65fr) 82px; align-items: center; gap: 10px; min-width: 0; }
.next-insurance-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-insurance-portfolio-list > a { min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-insurance-portfolio-list > a:hover { background: #f7f8f8; }
.next-insurance-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-insurance-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-insurance-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-insurance-portfolio-list strong, .next-insurance-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-insurance-portfolio-list strong { font-size: 9px; }
.next-insurance-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-contract-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 6px; color: #727a7f; }
.next-contract-portfolio-flags svg { width: 14px; height: 14px; }
.next-contract-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-contract-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-contract-portfolio-foot svg { width: 12px; height: 12px; }

/* A11 portfolio compliance */
.next-work-kpis.next-obligation-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-obligation-portfolio-toolbar { grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, .7fr)); }
.next-obligation-portfolio-list { min-width: 0; }
.next-obligation-portfolio-list > header, .next-obligation-portfolio-list > a { display: grid; grid-template-columns: minmax(240px, 1.45fr) minmax(220px, 1.2fr) minmax(145px, .72fr) minmax(135px, .68fr) minmax(165px, .8fr) 94px; align-items: center; gap: 10px; min-width: 0; }
.next-obligation-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-obligation-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-obligation-portfolio-list > a:hover { background: #f7f8f8; }
.next-obligation-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-obligation-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-obligation-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-obligation-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-obligation-portfolio-list strong, .next-obligation-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-obligation-portfolio-list strong { font-size: 9px; }
.next-obligation-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-obligation-portfolio-list small em { color: #9a6412; font-style: normal; }
.next-obligation-portfolio-list strong.released { color: var(--next-green); }
.next-obligation-portfolio-list strong.review { color: var(--next-blue); }
.next-obligation-portfolio-list strong.overdue { color: var(--next-red-dark); }
.next-obligation-portfolio-list strong.draft { color: var(--next-muted); }
.next-obligation-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-obligation-portfolio-flags svg { width: 13px; height: 13px; }
.next-obligation-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-obligation-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-obligation-portfolio-foot svg { width: 12px; height: 12px; }

/* A14 portfolio finance control */
.next-work-kpis.next-finance-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-finance-portfolio-toolbar { grid-template-columns: minmax(280px, 1.7fr) repeat(6, minmax(120px, .62fr)); }
.next-finance-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-finance-portfolio-list { min-width: 0; }
.next-finance-portfolio-list > header, .next-finance-portfolio-list > a { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(220px, 1.15fr) minmax(145px, .72fr) minmax(185px, .9fr) minmax(165px, .8fr) 104px; align-items: center; gap: 10px; min-width: 0; }
.next-finance-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-finance-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-finance-portfolio-list > a:hover { background: #f7f8f8; }
.next-finance-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-finance-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-finance-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-finance-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-finance-portfolio-list strong, .next-finance-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-finance-portfolio-list strong { font-size: 9px; }
.next-finance-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-finance-portfolio-list strong.released { color: var(--next-green); }
.next-finance-portfolio-list strong.review { color: var(--next-blue); }
.next-finance-portfolio-list strong.overdue { color: var(--next-red-dark); }
.next-finance-portfolio-list strong.draft { color: var(--next-muted); }
.next-finance-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-finance-portfolio-flags svg { width: 13px; height: 13px; }
.next-finance-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-finance-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-finance-portfolio-foot svg { width: 12px; height: 12px; }

/* A4 portfolio asset and inventory control */
.next-work-kpis.next-asset-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-asset-portfolio-toolbar { grid-template-columns: minmax(280px, 1.7fr) repeat(5, minmax(125px, .62fr)); }
.next-asset-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-asset-portfolio-list { min-width: 0; }
.next-asset-portfolio-list > header, .next-asset-portfolio-list > a { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(210px, 1.1fr) minmax(145px, .72fr) minmax(180px, .88fr) minmax(220px, 1.05fr) 112px; align-items: center; gap: 10px; min-width: 0; }
.next-asset-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-asset-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-asset-portfolio-list > a:hover { background: #f7f8f8; }
.next-asset-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-asset-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-asset-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-asset-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-asset-portfolio-list strong, .next-asset-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-asset-portfolio-list strong { font-size: 9px; }
.next-asset-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-asset-portfolio-list small em { color: #9a6412; font-style: normal; }
.next-asset-portfolio-list strong.released { color: var(--next-green); }
.next-asset-portfolio-list strong.review { color: var(--next-blue); }
.next-asset-portfolio-list strong.overdue { color: var(--next-red-dark); }
.next-asset-portfolio-list strong.draft { color: var(--next-muted); }
.next-asset-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-asset-portfolio-flags svg { width: 13px; height: 13px; }
.next-asset-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-asset-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-asset-portfolio-foot svg { width: 12px; height: 12px; }

/* A3 portfolio maintenance control */
.next-work-kpis.next-maintenance-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-maintenance-portfolio-toolbar { grid-template-columns: minmax(280px, 1.7fr) repeat(5, minmax(125px, .62fr)); }
.next-maintenance-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-maintenance-portfolio-list { min-width: 0; }
.next-maintenance-portfolio-list > header, .next-maintenance-portfolio-list > a { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(205px, 1fr) minmax(160px, .78fr) minmax(190px, .92fr) minmax(185px, .9fr) 104px; align-items: center; gap: 10px; min-width: 0; }
.next-maintenance-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-maintenance-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-maintenance-portfolio-list > a:hover { background: #f7f8f8; }
.next-maintenance-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-maintenance-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-maintenance-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-maintenance-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-maintenance-portfolio-list strong, .next-maintenance-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-maintenance-portfolio-list strong { font-size: 9px; }
.next-maintenance-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-maintenance-portfolio-list strong.released, .next-maintenance-portfolio-list small.released { color: var(--next-green); }
.next-maintenance-portfolio-list strong.review, .next-maintenance-portfolio-list small.review { color: var(--next-blue); }
.next-maintenance-portfolio-list strong.overdue, .next-maintenance-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-maintenance-portfolio-list strong.draft, .next-maintenance-portfolio-list small.draft { color: var(--next-muted); }
.next-maintenance-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-maintenance-portfolio-flags svg { width: 13px; height: 13px; }
.next-maintenance-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-maintenance-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-maintenance-portfolio-foot svg { width: 12px; height: 12px; }

/* A13 portfolio service control */
.next-work-kpis.next-service-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-service-portfolio-toolbar { grid-template-columns: minmax(270px, 1.55fr) repeat(6, minmax(116px, .62fr)); }
.next-service-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-service-portfolio-list { min-width: 0; }
.next-service-portfolio-list > header, .next-service-portfolio-list > a { display: grid; grid-template-columns: minmax(230px, 1.3fr) minmax(205px, 1fr) minmax(190px, .92fr) minmax(170px, .82fr) minmax(190px, .92fr) 104px; align-items: center; gap: 10px; min-width: 0; }
.next-service-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-service-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-service-portfolio-list > a:hover { background: #f7f8f8; }
.next-service-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-service-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-service-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-service-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-service-portfolio-list strong, .next-service-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-service-portfolio-list strong { font-size: 9px; }
.next-service-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-service-portfolio-list strong.released, .next-service-portfolio-list small.released { color: var(--next-green); }
.next-service-portfolio-list strong.review, .next-service-portfolio-list small.review { color: var(--next-blue); }
.next-service-portfolio-list strong.overdue, .next-service-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-service-portfolio-list strong.draft, .next-service-portfolio-list small.draft { color: var(--next-muted); }
.next-service-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-service-portfolio-flags svg { width: 13px; height: 13px; }
.next-service-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-service-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-service-portfolio-foot svg { width: 12px; height: 12px; }

/* A19 portfolio inspection and audit control */
.next-work-kpis.next-inspection-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-inspection-portfolio-toolbar { grid-template-columns: minmax(270px, 1.55fr) repeat(5, minmax(125px, .64fr)); }
.next-inspection-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-inspection-portfolio-list { min-width: 0; }
.next-inspection-portfolio-list > header, .next-inspection-portfolio-list > a { display: grid; grid-template-columns: minmax(240px, 1.32fr) minmax(215px, 1.02fr) minmax(175px, .82fr) minmax(160px, .76fr) minmax(190px, .9fr) 118px; align-items: center; gap: 10px; min-width: 0; }
.next-inspection-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-inspection-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-inspection-portfolio-list > a:hover { background: #f7f8f8; }
.next-inspection-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-inspection-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-inspection-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-inspection-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-inspection-portfolio-list strong, .next-inspection-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-inspection-portfolio-list strong { font-size: 9px; }
.next-inspection-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-inspection-portfolio-list small em { color: #9a6412; font-style: normal; }
.next-inspection-portfolio-list strong.released, .next-inspection-portfolio-list small.released { color: var(--next-green); }
.next-inspection-portfolio-list strong.review, .next-inspection-portfolio-list small.review { color: var(--next-blue); }
.next-inspection-portfolio-list strong.overdue, .next-inspection-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-inspection-portfolio-list strong.draft, .next-inspection-portfolio-list small.draft { color: var(--next-muted); }
.next-inspection-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-inspection-portfolio-flags svg { width: 13px; height: 13px; }
.next-inspection-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-inspection-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-inspection-portfolio-foot svg { width: 12px; height: 12px; }

/* A20 portfolio sustainability and impact control */
.next-work-kpis.next-sustainability-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-sustainability-portfolio-toolbar { grid-template-columns: minmax(270px, 1.55fr) repeat(5, minmax(125px, .64fr)); }
.next-sustainability-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-sustainability-portfolio-list { min-width: 0; }
.next-sustainability-portfolio-list > header, .next-sustainability-portfolio-list > a { display: grid; grid-template-columns: minmax(250px, 1.32fr) minmax(215px, 1.02fr) minmax(190px, .9fr) minmax(170px, .78fr) minmax(210px, .96fr) 122px; align-items: center; gap: 10px; min-width: 0; }
.next-sustainability-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-sustainability-portfolio-list > a { position: relative; min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-sustainability-portfolio-list > a:hover { background: #f7f8f8; }
.next-sustainability-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-sustainability-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-sustainability-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-sustainability-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-sustainability-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-sustainability-portfolio-list strong, .next-sustainability-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-sustainability-portfolio-list strong { font-size: 9px; }
.next-sustainability-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-sustainability-portfolio-list strong.released, .next-sustainability-portfolio-list small.released { color: var(--next-green); }
.next-sustainability-portfolio-list strong.review, .next-sustainability-portfolio-list small.review { color: var(--next-blue); }
.next-sustainability-portfolio-list strong.overdue, .next-sustainability-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-sustainability-portfolio-list strong.draft, .next-sustainability-portfolio-list small.draft { color: var(--next-muted); }
.next-sustainability-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-sustainability-portfolio-flags svg { width: 13px; height: 13px; }
.next-sustainability-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-sustainability-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-sustainability-portfolio-foot svg { width: 12px; height: 12px; }

/* A10 portfolio energy and consumption control */
.next-work-kpis.next-energy-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-energy-portfolio-toolbar { grid-template-columns: minmax(270px, 1.55fr) repeat(5, minmax(125px, .64fr)); }
.next-quality-band.next-energy-portfolio-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-energy-portfolio-band > span,
.next-energy-certificate-portfolio-kpis > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 7px; min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-energy-portfolio-band > span:last-child,
.next-energy-certificate-portfolio-kpis > span:last-child { border-right: 0; }
.next-energy-portfolio-band > span > svg,
.next-energy-certificate-portfolio-kpis > span > svg { grid-row: 1 / span 2; width: 17px; height: 17px; color: #68757b; }
.next-energy-portfolio-band > span > strong,
.next-energy-portfolio-band > span > small,
.next-energy-certificate-portfolio-kpis > span > strong,
.next-energy-certificate-portfolio-kpis > span > small { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-energy-portfolio-band > span > strong,
.next-energy-certificate-portfolio-kpis > span > strong { font-size: 12px; line-height: 1.1; }
.next-energy-portfolio-band > span > small,
.next-energy-certificate-portfolio-kpis > span > small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-energy-portfolio-list { min-width: 0; }
.next-energy-portfolio-list > header, .next-energy-portfolio-list > a { display: grid; grid-template-columns: minmax(235px, 1.22fr) minmax(215px, 1.02fr) minmax(180px, .84fr) minmax(180px, .84fr) minmax(165px, .76fr) 138px; align-items: center; gap: 10px; min-width: 0; }
.next-energy-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-energy-portfolio-list > a { position: relative; min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-energy-portfolio-list > a:hover { background: #f7f8f8; }
.next-energy-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-energy-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-energy-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-energy-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-energy-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-energy-portfolio-list strong, .next-energy-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-energy-portfolio-list strong { font-size: 9px; }
.next-energy-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-energy-portfolio-list strong.released, .next-energy-portfolio-list small.released { color: var(--next-green); }
.next-energy-portfolio-list strong.review, .next-energy-portfolio-list small.review { color: var(--next-blue); }
.next-energy-portfolio-list strong.overdue, .next-energy-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-energy-portfolio-list strong.draft, .next-energy-portfolio-list small.draft { color: var(--next-muted); }
.next-energy-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-energy-portfolio-flags svg { width: 13px; height: 13px; }
.next-energy-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-energy-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-energy-portfolio-foot svg { width: 12px; height: 12px; }

/* A10 energy certificate and renovation evidence file */
.next-energy-certificate-workspace { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-energy-certificate-header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--next-line); }
.next-energy-certificate-header > div { display: grid; min-width: 0; gap: 2px; }
.next-energy-certificate-header > div > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-energy-certificate-header h2 { margin: 0; color: var(--next-ink); font-size: 14px; letter-spacing: 0; }
.next-energy-certificate-header small { color: var(--next-muted); font-size: 8px; }
.next-energy-certificate-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-energy-certificate-kpis > div { display: grid; min-width: 0; gap: 2px; padding: 10px 12px; border-right: 1px solid var(--next-line); background: #fff; }
.next-energy-certificate-kpis > div:last-child { border-right: 0; }
.next-energy-certificate-kpis small { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-energy-certificate-kpis strong { color: var(--next-ink); font-size: 17px; }
.next-energy-certificate-kpis span { color: var(--next-muted); font-size: 7px; }
.next-energy-certificate-kpis .warning { box-shadow: inset 0 3px #d48316; }
.next-energy-certificate-kpis .critical { box-shadow: inset 0 3px var(--next-red); }
.next-energy-certificate-editor > header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); }
.next-energy-certificate-editor > header > div { display: grid; min-width: 0; gap: 2px; }
.next-energy-certificate-editor > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-energy-certificate-editor > header h3 { margin: 0; font-size: 12px; letter-spacing: 0; }
.next-energy-certificate-editor > header > button { width: 30px; height: 30px; border: 0; border-radius: 4px; background: #f0f1f2; }
.next-energy-certificate-editor > fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.next-energy-certificate-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--next-line); background: #f7f8f8; }
.next-energy-certificate-editor > footer > span { max-width: 54%; color: var(--next-muted); font-size: 7px; line-height: 1.45; }
.next-energy-certificate-editor > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.next-energy-certificate-register .next-catalogue-register-head,
.next-energy-certificate-register .next-catalogue-register-row { grid-template-columns: minmax(210px, 1.12fr) minmax(165px, .84fr) minmax(190px, .9fr) minmax(220px, 1.08fr) 70px; }
.next-energy-certificate-register .next-catalogue-register-row.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-energy-certificate-register .next-catalogue-register-row.due { box-shadow: inset 3px 0 #d48316; }
.next-energy-certificate-register .next-catalogue-register-row.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-energy-certificate-register .next-catalogue-register-row.released { box-shadow: inset 3px 0 var(--next-green); }
.next-energy-certificate-portfolio { margin-top: 18px; overflow: hidden; }
.next-energy-certificate-portfolio .next-work-section-header > small { max-width: 420px; color: var(--next-muted); font-size: 8px; line-height: 1.45; text-align: right; }
.next-quality-band.next-energy-certificate-portfolio-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-energy-certificate-portfolio-kpis > span.warning { box-shadow: inset 0 3px #d48316; }
.next-energy-certificate-portfolio-kpis > span.critical { box-shadow: inset 0 3px var(--next-red); }
.next-energy-certificate-portfolio-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(190px, .32fr); }
.next-energy-certificate-portfolio-list { min-width: 0; overflow-x: auto; }
.next-energy-certificate-portfolio-list > header,
.next-energy-certificate-portfolio-list > a { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(190px, .95fr) minmax(165px, .75fr) minmax(190px, .85fr) 42px; min-width: 940px; align-items: center; text-decoration: none; }
.next-energy-certificate-portfolio-list > header { padding: 7px 12px; border-bottom: 1px solid var(--next-line); background: #f6f7f8; color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-energy-certificate-portfolio-list > a { min-height: 56px; padding: 7px 12px; border-bottom: 1px solid var(--next-line); color: var(--next-ink); }
.next-energy-certificate-portfolio-list > a:hover { background: #f8f9fa; }
.next-energy-certificate-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-energy-certificate-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-energy-certificate-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-energy-certificate-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-energy-certificate-portfolio-list > a > span { display: grid; min-width: 0; gap: 2px; padding-right: 9px; }
.next-energy-certificate-portfolio-list strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-energy-certificate-portfolio-list small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-energy-certificate-portfolio-flags { display: flex !important; flex-direction: row; justify-content: flex-end; gap: 5px !important; padding-right: 0 !important; color: var(--next-muted); }
.next-energy-certificate-portfolio-flags i { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .next-energy-certificate-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-energy-certificate-kpis > div:nth-child(2) { border-right: 0; }
  .next-energy-certificate-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-energy-certificate-editor > footer { align-items: flex-start; flex-direction: column; }
  .next-energy-certificate-editor > footer > span { max-width: none; }
  .next-energy-certificate-editor > footer > div { width: 100%; justify-content: flex-start; }
  .next-quality-band.next-energy-certificate-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-quality-band.next-energy-portfolio-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-energy-certificate-portfolio-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .next-energy-certificate-header { align-items: flex-start; flex-direction: column; }
  .next-energy-certificate-header .next-secondary-command { width: 100%; justify-content: center; }
  .next-energy-certificate-kpis { grid-template-columns: 1fr; }
  .next-energy-certificate-kpis > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-energy-certificate-kpis > div:last-child { border-bottom: 0; }
  .next-energy-certificate-editor > footer > div > * { flex: 1 1 150px; justify-content: center; }
  .next-energy-certificate-portfolio .next-work-section-header { align-items: flex-start; flex-direction: column; }
  .next-energy-certificate-portfolio .next-work-section-header > small { max-width: none; text-align: left; }
  .next-quality-band.next-energy-certificate-portfolio-kpis { grid-template-columns: 1fr 1fr; }
  .next-energy-certificate-portfolio-kpis > span:last-child { grid-column: 1 / -1; }
  .next-quality-band.next-energy-portfolio-band { grid-template-columns: 1fr 1fr; }
}

/* A2 portfolio area and occupancy control */
.next-work-kpis.next-area-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-area-portfolio-toolbar { grid-template-columns: minmax(270px, 1.55fr) repeat(5, minmax(125px, .64fr)); }
.next-quality-band.next-area-portfolio-band, .next-quality-band.next-chargeback-portfolio-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-area-portfolio-band > span, .next-chargeback-portfolio-band > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 7px; min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-area-portfolio-band > span:last-child, .next-chargeback-portfolio-band > span:last-child { border-right: 0; }
.next-area-portfolio-band > span svg, .next-chargeback-portfolio-band > span svg { grid-row: 1 / 3; width: 17px; height: 17px; color: var(--next-red-dark); }
.next-area-portfolio-band > span strong, .next-chargeback-portfolio-band > span strong { min-width: 0; font-size: 11px; }
.next-area-portfolio-band > span small, .next-chargeback-portfolio-band > span small { min-width: 0; overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-area-portfolio-list { min-width: 0; }
.next-area-portfolio-list > header, .next-area-portfolio-list > a { display: grid; grid-template-columns: minmax(225px, 1.2fr) minmax(215px, 1.02fr) minmax(175px, .82fr) minmax(170px, .78fr) minmax(190px, .9fr) 138px; align-items: center; gap: 10px; min-width: 0; }
.next-area-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-area-portfolio-list > a { position: relative; min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-area-portfolio-list > a:hover { background: #f7f8f8; }
.next-area-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-area-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-area-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-area-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-area-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-area-portfolio-list strong, .next-area-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-area-portfolio-list strong { font-size: 9px; }
.next-area-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-area-portfolio-list strong.released, .next-area-portfolio-list small.released { color: var(--next-green); }
.next-area-portfolio-list strong.review, .next-area-portfolio-list small.review { color: var(--next-blue); }
.next-area-portfolio-list strong.overdue, .next-area-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-area-portfolio-list strong.draft, .next-area-portfolio-list small.draft { color: var(--next-muted); }
.next-area-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-area-portfolio-flags svg { width: 13px; height: 13px; }
.next-area-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-area-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-area-portfolio-foot svg { width: 12px; height: 12px; }
.next-chargeback-portfolio { margin-top: 14px; }
.next-chargeback-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-chargeback-portfolio-toolbar { grid-template-columns: minmax(270px, 1.4fr) repeat(3, minmax(155px, .72fr)); }
.next-chargeback-summary-list, .next-chargeback-portfolio-list { min-width: 0; }
.next-chargeback-summary-list > header, .next-chargeback-summary-list > div { display: grid; grid-template-columns: minmax(250px, 1.35fr) minmax(120px, .62fr) minmax(130px, .7fr) minmax(145px, .76fr) minmax(145px, .76fr); align-items: center; gap: 10px; min-width: 0; }
.next-chargeback-summary-list > header, .next-chargeback-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-chargeback-summary-list > div { min-height: 58px; padding: 8px 12px; border-bottom: 1px solid #e9ecee; background: #fbfbfc; }
.next-chargeback-summary-list > div > span, .next-chargeback-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-chargeback-summary-list strong, .next-chargeback-summary-list small, .next-chargeback-portfolio-list strong, .next-chargeback-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-chargeback-summary-list strong, .next-chargeback-portfolio-list strong { font-size: 9px; }
.next-chargeback-summary-list small, .next-chargeback-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-chargeback-summary-list .released, .next-chargeback-portfolio-list .released { color: var(--next-green); }
.next-chargeback-summary-list .review, .next-chargeback-portfolio-list .review { color: var(--next-blue); }
.next-chargeback-summary-list .due, .next-chargeback-portfolio-list .due { color: #9a5b08; }
.next-chargeback-summary-list .draft, .next-chargeback-portfolio-list .draft { color: var(--next-muted); }
.next-chargeback-portfolio-list > header, .next-chargeback-portfolio-list > a { display: grid; grid-template-columns: minmax(220px, 1.12fr) minmax(220px, 1.12fr) minmax(155px, .76fr) minmax(175px, .88fr) minmax(165px, .82fr) 36px; align-items: center; gap: 10px; min-width: 0; }
.next-chargeback-portfolio-list > a { position: relative; min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-chargeback-portfolio-list > a:hover { background: #f7f8f8; }
.next-chargeback-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-chargeback-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-chargeback-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-chargeback-portfolio-list > a.draft { box-shadow: inset 3px 0 #a4aaad; }

/* A17 portfolio workplace capacity and assignment control */
.next-workplace-portfolio { margin-top: 14px; }
.next-workplace-portfolio-kpis { grid-template-columns: repeat(4, minmax(155px, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-workplace-portfolio-toolbar { grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(155px, .72fr)); }
.next-quality-band.next-workplace-portfolio-band { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-workplace-portfolio-band > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 7px; min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-workplace-portfolio-band > span:last-child { border-right: 0; }
.next-workplace-portfolio-band > span svg { grid-row: 1 / 3; width: 17px; height: 17px; color: var(--next-red-dark); }
.next-workplace-portfolio-band > span strong { min-width: 0; font-size: 11px; }
.next-workplace-portfolio-band > span small { min-width: 0; overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-workplace-summary-list, .next-workplace-portfolio-list { min-width: 0; }
.next-workplace-summary-list > header, .next-workplace-summary-list > a { display: grid; grid-template-columns: minmax(245px, 1.25fr) minmax(150px, .74fr) minmax(130px, .62fr) minmax(145px, .7fr) minmax(155px, .75fr); align-items: center; gap: 10px; min-width: 0; }
.next-workplace-summary-list > header, .next-workplace-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-workplace-summary-list > a { min-height: 58px; padding: 8px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; background: #fbfbfc; text-decoration: none; }
.next-workplace-summary-list > a:hover, .next-workplace-portfolio-list > a:hover { background: #f7f8f8; }
.next-workplace-summary-list > a.overdue, .next-workplace-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-workplace-summary-list > a.review, .next-workplace-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-workplace-summary-list > a.released, .next-workplace-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-workplace-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-workplace-portfolio-list > a.draft { box-shadow: inset 3px 0 #a4aaad; }
.next-workplace-summary-list > a > span, .next-workplace-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-workplace-summary-list strong, .next-workplace-summary-list small, .next-workplace-portfolio-list strong, .next-workplace-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-workplace-summary-list strong, .next-workplace-portfolio-list strong { font-size: 9px; }
.next-workplace-summary-list small, .next-workplace-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-workplace-summary-list .released, .next-workplace-portfolio-list .released { color: var(--next-green); }
.next-workplace-summary-list .overdue, .next-workplace-portfolio-list .overdue { color: var(--next-red-dark); }
.next-workplace-portfolio-list .due { color: #9a5b08; }
.next-workplace-portfolio-list > header, .next-workplace-portfolio-list > a { display: grid; grid-template-columns: minmax(220px, 1.12fr) minmax(215px, 1.08fr) minmax(155px, .76fr) minmax(175px, .86fr) minmax(180px, .88fr) 70px; align-items: center; gap: 10px; min-width: 0; }
.next-workplace-portfolio-list > a { position: relative; min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }

@media (max-width: 900px) {
  .next-work-kpis.next-workplace-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-workplace-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-workplace-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-quality-band.next-workplace-portfolio-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-workplace-portfolio-band > span:nth-child(2n) { border-right: 0; }
  .next-workplace-summary-list > header, .next-workplace-portfolio-list > header { display: none; }
  .next-workplace-summary-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
  .next-workplace-summary-list > a > span, .next-workplace-portfolio-list > a > span { padding: 2px; }
  .next-workplace-summary-list > a > span::before, .next-workplace-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-workplace-summary-list > a > span:last-child { grid-column: 1 / -1; }
  .next-workplace-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-workplace-portfolio-list .next-area-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
}

/* A5 portfolio cleaning, quality and evidence control */
.next-work-kpis.next-cleaning-portfolio-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-cleaning-portfolio-toolbar { grid-template-columns: minmax(280px, 1.5fr) repeat(5, minmax(140px, .7fr)); }
.next-quality-band.next-cleaning-portfolio-band { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-cleaning-portfolio-band > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 7px; min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-cleaning-portfolio-band > span:last-child { border-right: 0; }
.next-cleaning-portfolio-band > span > svg { grid-row: 1 / span 2; width: 17px; height: 17px; color: #68757b; }
.next-cleaning-portfolio-band > span > strong,
.next-cleaning-portfolio-band > span > small { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-cleaning-portfolio-band > span > strong { font-size: 11px; line-height: 1.1; }
.next-cleaning-portfolio-band > span > small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-cleaning-portfolio-summary-list,
.next-cleaning-portfolio-list { min-width: 0; }
.next-cleaning-portfolio-summary-list > header,
.next-cleaning-portfolio-summary-list > a { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .72fr) minmax(145px, .68fr) minmax(180px, .82fr) minmax(170px, .78fr); align-items: center; gap: 10px; min-width: 0; }
.next-cleaning-portfolio-list > header,
.next-cleaning-portfolio-list > a { display: grid; grid-template-columns: minmax(235px, 1.22fr) minmax(205px, 1fr) minmax(190px, .9fr) minmax(170px, .78fr) minmax(200px, .94fr) 124px; align-items: center; gap: 10px; min-width: 0; }
.next-cleaning-portfolio-summary-list > header,
.next-cleaning-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-cleaning-portfolio-summary-list > a,
.next-cleaning-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-cleaning-portfolio-summary-list > a:hover,
.next-cleaning-portfolio-list > a:hover { background: #f7f8f8; }
.next-cleaning-portfolio-summary-list > a.overdue,
.next-cleaning-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-cleaning-portfolio-summary-list > a.review,
.next-cleaning-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-cleaning-portfolio-summary-list > a.released,
.next-cleaning-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-cleaning-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-cleaning-portfolio-summary-list > a > span,
.next-cleaning-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-cleaning-portfolio-summary-list strong,
.next-cleaning-portfolio-summary-list small,
.next-cleaning-portfolio-list strong,
.next-cleaning-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-cleaning-portfolio-summary-list strong,
.next-cleaning-portfolio-list strong { font-size: 9px; }
.next-cleaning-portfolio-summary-list small,
.next-cleaning-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-cleaning-portfolio-list .released { color: var(--next-green); }
.next-cleaning-portfolio-list .due { color: #9a5b08; }
.next-cleaning-portfolio-list .overdue { color: var(--next-red-dark); }
.next-cleaning-portfolio-list .review { color: var(--next-blue); }
.next-cleaning-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-cleaning-portfolio-flags svg { width: 13px; height: 13px; }
.next-cleaning-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-cleaning-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-cleaning-portfolio-foot svg { width: 12px; height: 12px; }

@media (max-width: 1100px) {
  .next-work-kpis.next-cleaning-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-cleaning-portfolio-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-cleaning-portfolio-toolbar > label:first-child { grid-column: 1 / -1; }
  .next-quality-band.next-cleaning-portfolio-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-cleaning-portfolio-band > span:nth-child(4n) { border-right: 0; }
}

@media (max-width: 900px) {
  .next-cleaning-portfolio-summary-list > header,
  .next-cleaning-portfolio-list > header { display: none; }
  .next-cleaning-portfolio-summary-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
  .next-cleaning-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-cleaning-portfolio-summary-list > a > span,
  .next-cleaning-portfolio-list > a > span { padding: 2px; }
  .next-cleaning-portfolio-summary-list > a > span::before,
  .next-cleaning-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-cleaning-portfolio-list .next-cleaning-portfolio-flags { grid-column: 3; grid-row: 1 / 4; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-cleaning-portfolio-list .next-cleaning-portfolio-flags::before { content: none; }
}

@media (max-width: 620px) {
  .next-work-kpis.next-cleaning-portfolio-kpis { grid-template-columns: 1fr 1fr; }
  .next-cleaning-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-cleaning-portfolio-toolbar > label:first-child { grid-column: auto; }
  .next-quality-band.next-cleaning-portfolio-band { grid-template-columns: 1fr 1fr; }
  .next-cleaning-portfolio-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-cleaning-portfolio-summary-list > a { grid-template-columns: 1fr; }
  .next-cleaning-portfolio-list > a { grid-template-columns: 1fr 42px; }
  .next-cleaning-portfolio-list .next-cleaning-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
}

@media (max-width: 620px) {
  .next-work-kpis.next-workplace-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-workplace-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-workplace-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-quality-band.next-workplace-portfolio-band { grid-template-columns: 1fr; }
  .next-workplace-portfolio-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-workplace-portfolio-band > span:last-child { border-bottom: 0; }
  .next-workplace-summary-list > a { grid-template-columns: 1fr; }
  .next-workplace-summary-list > a > span:last-child { grid-column: auto; }
  .next-workplace-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-workplace-portfolio-list > a > span { grid-column: 1; overflow-wrap: anywhere; white-space: normal; }
  .next-workplace-portfolio-list .next-area-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-workplace-summary-list strong, .next-workplace-summary-list small, .next-workplace-portfolio-list strong, .next-workplace-portfolio-list small { overflow-wrap: anywhere; white-space: normal; }
}

/* A7 portfolio access, locking media and security control */
.next-work-kpis.next-access-portfolio-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-access-portfolio-toolbar { grid-template-columns: minmax(280px, 1.5fr) repeat(5, minmax(140px, .7fr)); }
.next-quality-band.next-access-portfolio-band { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-access-portfolio-band > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 7px; min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-access-portfolio-band > span:last-child { border-right: 0; }
.next-access-portfolio-band > span > svg { grid-row: 1 / span 2; width: 17px; height: 17px; color: #68757b; }
.next-access-portfolio-band > span > strong,
.next-access-portfolio-band > span > small { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-access-portfolio-band > span > strong { font-size: 11px; line-height: 1.1; }
.next-access-portfolio-band > span > small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-access-privacy-note { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #3e525b; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f4f7f8; font-size: 8px; line-height: 1.45; }
.next-access-privacy-note svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--next-green); }
.next-access-portfolio-summary-list,
.next-access-portfolio-list { min-width: 0; }
.next-access-portfolio-summary-list > header,
.next-access-portfolio-summary-list > a { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .72fr) minmax(175px, .82fr) minmax(160px, .74fr) minmax(185px, .86fr); align-items: center; gap: 10px; min-width: 0; }
.next-access-portfolio-list > header,
.next-access-portfolio-list > a { display: grid; grid-template-columns: minmax(230px, 1.18fr) minmax(210px, 1fr) minmax(175px, .82fr) minmax(180px, .84fr) minmax(210px, .96fr) 124px; align-items: center; gap: 10px; min-width: 0; }
.next-access-portfolio-summary-list > header,
.next-access-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-access-portfolio-summary-list > a,
.next-access-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-access-portfolio-summary-list > a:hover,
.next-access-portfolio-list > a:hover { background: #f7f8f8; }
.next-access-portfolio-summary-list > a.overdue,
.next-access-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-access-portfolio-summary-list > a.review,
.next-access-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-access-portfolio-summary-list > a.released,
.next-access-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-access-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-access-portfolio-list > a.archived { box-shadow: inset 3px 0 #7b858a; }
.next-access-portfolio-summary-list > a > span,
.next-access-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-access-portfolio-summary-list strong,
.next-access-portfolio-summary-list small,
.next-access-portfolio-list strong,
.next-access-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-access-portfolio-summary-list strong,
.next-access-portfolio-list strong { font-size: 9px; }
.next-access-portfolio-summary-list small,
.next-access-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-access-portfolio-list .released { color: var(--next-green); }
.next-access-portfolio-list .due { color: #9a5b08; }
.next-access-portfolio-list .overdue { color: var(--next-red-dark); }
.next-access-portfolio-list .review { color: var(--next-blue); }
.next-access-portfolio-list .archived { color: #68757b; }
.next-access-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-access-portfolio-flags svg { width: 13px; height: 13px; }
.next-access-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-access-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-access-portfolio-foot svg { width: 12px; height: 12px; }

@media (max-width: 1100px) {
  .next-work-kpis.next-access-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-access-portfolio-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-access-portfolio-toolbar > label:first-child { grid-column: 1 / -1; }
  .next-quality-band.next-access-portfolio-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-access-portfolio-band > span:nth-child(3n) { border-right: 0; }
}

@media (max-width: 900px) {
  .next-access-portfolio-summary-list > header,
  .next-access-portfolio-list > header { display: none; }
  .next-access-portfolio-summary-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
  .next-access-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-access-portfolio-summary-list > a > span,
  .next-access-portfolio-list > a > span { padding: 2px; }
  .next-access-portfolio-summary-list > a > span::before,
  .next-access-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-access-portfolio-list .next-access-portfolio-flags { grid-column: 3; grid-row: 1 / 4; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-access-portfolio-list .next-access-portfolio-flags::before { content: none; }
}

@media (max-width: 620px) {
  .next-work-kpis.next-access-portfolio-kpis { grid-template-columns: 1fr 1fr; }
  .next-access-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-access-portfolio-toolbar > label:first-child { grid-column: auto; }
  .next-quality-band.next-access-portfolio-band { grid-template-columns: 1fr 1fr; }
  .next-access-portfolio-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-access-portfolio-summary-list > a { grid-template-columns: 1fr; }
  .next-access-portfolio-list > a { grid-template-columns: 1fr 42px; }
  .next-access-portfolio-list .next-access-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-access-privacy-note { align-items: flex-start; }
}

/* A8 portfolio relocation planning, handover and defect control */
.next-work-kpis.next-relocation-portfolio-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-relocation-portfolio-toolbar { grid-template-columns: minmax(280px, 1.5fr) repeat(5, minmax(140px, .7fr)); }
.next-quality-band.next-relocation-portfolio-band { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-relocation-portfolio-band > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 7px; min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-relocation-portfolio-band > span:last-child { border-right: 0; }
.next-relocation-portfolio-band > span > svg { grid-row: 1 / span 2; width: 17px; height: 17px; color: #68757b; }
.next-relocation-portfolio-band > span > strong,
.next-relocation-portfolio-band > span > small { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-relocation-portfolio-band > span > strong { font-size: 11px; line-height: 1.1; }
.next-relocation-portfolio-band > span > small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-relocation-portfolio-summary-list,
.next-relocation-portfolio-list { min-width: 0; }
.next-relocation-portfolio-summary-list > header,
.next-relocation-portfolio-summary-list > a { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .72fr) minmax(175px, .82fr) minmax(160px, .74fr) minmax(185px, .86fr); align-items: center; gap: 10px; min-width: 0; }
.next-relocation-portfolio-list > header,
.next-relocation-portfolio-list > a { display: grid; grid-template-columns: minmax(245px, 1.2fr) minmax(210px, 1fr) minmax(175px, .82fr) minmax(190px, .88fr) minmax(190px, .9fr) 104px; align-items: center; gap: 10px; min-width: 0; }
.next-relocation-portfolio-summary-list > header,
.next-relocation-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-relocation-portfolio-summary-list > a,
.next-relocation-portfolio-list > a { position: relative; min-height: 66px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-relocation-portfolio-summary-list > a:hover,
.next-relocation-portfolio-list > a:hover { background: #f7f8f8; }
.next-relocation-portfolio-summary-list > a.overdue,
.next-relocation-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-relocation-portfolio-summary-list > a.review,
.next-relocation-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-relocation-portfolio-summary-list > a.released,
.next-relocation-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-relocation-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-relocation-portfolio-list > a.archived { box-shadow: inset 3px 0 #7b858a; }
.next-relocation-portfolio-summary-list > a > span,
.next-relocation-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-relocation-portfolio-summary-list strong,
.next-relocation-portfolio-summary-list small,
.next-relocation-portfolio-list strong,
.next-relocation-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-relocation-portfolio-summary-list strong,
.next-relocation-portfolio-list strong { font-size: 9px; }
.next-relocation-portfolio-summary-list small,
.next-relocation-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-relocation-portfolio-list .released { color: var(--next-green); }
.next-relocation-portfolio-list .due { color: #9a5b08; }
.next-relocation-portfolio-list .overdue { color: var(--next-red-dark); }
.next-relocation-portfolio-list .review { color: var(--next-blue); }
.next-relocation-portfolio-list .archived { color: #68757b; }

@media (max-width: 1100px) {
  .next-work-kpis.next-relocation-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-relocation-portfolio-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-relocation-portfolio-toolbar > label:first-child { grid-column: 1 / -1; }
  .next-quality-band.next-relocation-portfolio-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-relocation-portfolio-band > span:nth-child(3n) { border-right: 0; }
}

@media (max-width: 900px) {
  .next-relocation-portfolio-summary-list > header,
  .next-relocation-portfolio-list > header { display: none; }
  .next-relocation-portfolio-summary-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
  .next-relocation-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-relocation-portfolio-summary-list > a > span,
  .next-relocation-portfolio-list > a > span { padding: 2px; }
  .next-relocation-portfolio-summary-list > a > span::before,
  .next-relocation-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-relocation-portfolio-list .next-access-portfolio-flags { grid-column: 3; grid-row: 1 / 4; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-relocation-portfolio-list .next-access-portfolio-flags::before { content: none; }
}

@media (max-width: 620px) {
  .next-work-kpis.next-relocation-portfolio-kpis { grid-template-columns: 1fr 1fr; }
  .next-relocation-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-relocation-portfolio-toolbar > label:first-child { grid-column: auto; }
  .next-quality-band.next-relocation-portfolio-band { grid-template-columns: 1fr 1fr; }
  .next-relocation-portfolio-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-relocation-portfolio-summary-list > a { grid-template-columns: 1fr; }
  .next-relocation-portfolio-list > a { grid-template-columns: 1fr 42px; }
  .next-relocation-portfolio-list .next-access-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
}

/* A9 portfolio rental, usage and vacancy control */
.next-work-kpis.next-rental-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-rental-portfolio-toolbar { grid-template-columns: minmax(270px, 1.55fr) repeat(5, minmax(125px, .64fr)); }
.next-rental-portfolio-band { margin: 0; border-right: 0; border-left: 0; }
.next-rental-portfolio-list { min-width: 0; }
.next-rental-portfolio-list > header, .next-rental-portfolio-list > a { display: grid; grid-template-columns: minmax(220px, 1.14fr) minmax(215px, 1.04fr) minmax(165px, .76fr) minmax(170px, .78fr) minmax(190px, .88fr) 138px; align-items: center; gap: 10px; min-width: 0; }
.next-rental-portfolio-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-rental-portfolio-list > a { position: relative; min-height: 68px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-rental-portfolio-list > a:hover { background: #f7f8f8; }
.next-rental-portfolio-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-rental-portfolio-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-rental-portfolio-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-rental-portfolio-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-rental-portfolio-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-rental-portfolio-list strong, .next-rental-portfolio-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-rental-portfolio-list strong { font-size: 9px; }
.next-rental-portfolio-list small { color: var(--next-muted); font-size: 7px; }
.next-rental-portfolio-list strong.released, .next-rental-portfolio-list small.released { color: var(--next-green); }
.next-rental-portfolio-list strong.review, .next-rental-portfolio-list small.review { color: var(--next-blue); }
.next-rental-portfolio-list strong.overdue, .next-rental-portfolio-list small.overdue { color: var(--next-red-dark); }
.next-rental-portfolio-list strong.draft, .next-rental-portfolio-list small.draft { color: var(--next-muted); }
.next-rental-portfolio-flags { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px; color: #727a7f; }
.next-rental-portfolio-flags svg { width: 13px; height: 13px; }
.next-rental-portfolio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 10px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 7px; }
.next-rental-portfolio-foot span { display: inline-flex; align-items: center; gap: 5px; }
.next-rental-portfolio-foot svg { width: 12px; height: 12px; }
@media (max-width: 720px) {
    .next-planning-create { grid-template-columns: 1fr; }
    .next-planning-create-form { grid-template-columns: minmax(0, 1fr) minmax(120px, .65fr) minmax(120px, .65fr); }
    .next-planning-create > footer { align-items: center; border-top: 1px solid #e7e9ea; border-left: 0; }
    .next-planning-rangebar { grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 32px 32px; }
    .next-planning-completed { grid-column: 1 / 3; }
    .next-planning-rangebar > span { grid-column: 3 / -1; }
    .next-planning-toolbar { grid-template-columns: 1fr; }
    .next-fm-planning-list a { grid-template-columns: 48px 42px minmax(0, 1fr) auto; gap: 7px; min-height: 74px; padding: 8px 9px; }
    .next-fm-planning-owner, .next-fm-planning-state { display: none; }
    .next-fm-planning-main strong { white-space: normal; }
    .next-fm-planning-main em { display: none; }
    .next-fm-planning-flags { max-width: 42px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
    .next-planning-create-form { grid-template-columns: 1fr; }
    .next-planning-create > footer { justify-content: space-between; }
    .next-planning-header .next-work-header-actions { width: 100%; overflow-x: auto; }
    .next-planning-view-tabs { overflow-x: auto; }
    .next-planning-rangebar { grid-template-columns: 1fr 1fr 32px 32px; }
    .next-planning-completed { grid-column: 1 / -1; }
    .next-planning-rangebar > span { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
    .next-fm-planning-flags svg[title="Kirchlicher Bezug"], .next-fm-planning-flags svg[title="Denkmalschutz"] { display: none; }
}

@media (max-width: 1120px) {
  .next-property-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 0; }
  .next-property-facts div:nth-child(3) { border-right: 0; }
  .next-property-facts div:nth-child(4) { padding-left: 0; }
  .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-governance { grid-template-columns: 1fr; }
  .next-data-quality-finding-list article { grid-template-columns: 22px minmax(0, 1fr); }
  .next-data-quality-finding-list article > button { grid-column: 1 / -1; justify-self: stretch; }
  .next-data-quality-case-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-data-quality-events > span { grid-template-columns: 18px minmax(0, 1fr); }
  .next-data-quality-events > span small, .next-data-quality-events > span em { grid-column: 2; white-space: normal; }
  .next-governance-master { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-area-editor .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-maintenance-editor-grid { grid-template-columns: 1fr; }
  .next-maintenance-editor fieldset { border-right: 0; }
  .next-maintenance-plans .next-maintenance-editor fieldset:last-child { grid-column: auto; }
  .next-asset-editor-grid { grid-template-columns: 1fr; }
  .next-asset-editor fieldset { border-right: 0; }
  .next-bim-editor-grid fieldset:last-child { grid-column: auto; }
  .next-bim-editor-grid fieldset:last-child .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-ifc-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-ifc-summary > div:nth-child(3) { border-right: 0; }
  .next-ifc-summary .next-secondary-command { justify-self: start; }
  .next-model-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-model-summary > div:nth-child(3) { border-right: 0; }
  .next-bcf-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-bcf-summary > div:nth-child(3n) { border-right: 0; }
  .next-ifc-main { grid-template-columns: 1fr; }
  .next-ifc-browser { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-ifc-detail { max-height: none; }
  .next-report-grid { grid-template-columns: 1fr; }
  .next-task-layout, .next-approval-layout, .next-ifc-case-layout { grid-template-columns: minmax(250px, 34%) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .next-space-chargeback-header { align-items: stretch; flex-direction: column; }
  .next-space-chargeback-header > div:last-child { justify-content: flex-start; }
  .next-space-allocation-list .next-asset-row,
  .next-space-run-list .next-asset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .next-space-allocation-list .next-asset-row > span,
  .next-space-run-list .next-asset-row > span { padding: 7px; }
  .next-space-allocation-list .next-asset-row strong,
  .next-space-allocation-list .next-asset-row small,
  .next-space-run-list .next-asset-row strong,
  .next-space-run-list .next-asset-row small { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .next-space-allocation-list .next-governance-actions,
  .next-space-run-list .next-governance-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .next-property-title h1 { font-size: 23px; }
  .next-property-symbol { width: 42px; height: 42px; }
  .next-property-actions .next-command { width: 38px; min-width: 38px; padding: 0; }
  .next-property-actions .next-command span { display: none; }
  .next-property-switcher { grid-template-columns: 1fr; gap: 10px; padding: 11px; }
  .next-property-switcher-context { justify-items: start; text-align: left; }
  .next-viewer { display: block; }
  .next-tabs { display: flex; gap: 4px; padding: 7px; border-right: 0; border-bottom: 1px solid var(--next-line); overflow-x: auto; overscroll-behavior-inline: contain; }
  .next-tabs button { display: flex; width: auto; min-width: max-content; padding: 0 10px; }
  .next-editor-header { align-items: flex-start; }
  .next-editor-meta { display: grid; justify-items: end; }
  .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-file-list { grid-template-columns: 1fr; }
  .next-file-list > div:nth-child(odd) { border-right: 0; }
  .next-record-body { grid-template-columns: 1fr; }
  .next-record-folders { display: flex; gap: 4px; max-height: none; padding: 7px; border-right: 0; border-bottom: 1px solid var(--next-line); overflow-x: auto; }
  .next-record-folders button { display: flex; width: auto; min-width: max-content; }
  .next-record-folders span { max-width: 210px; }
  .next-document-layout.has-detail { grid-template-columns: 1fr; }
  .next-document-detail { border-top: 1px solid var(--next-line); border-left: 0; }
  .next-function-header { align-items: flex-start; }
  .next-function-header h1 { font-size: 21px; }
  .next-function-header p { max-width: 53vw; }
  .next-function-header > div:last-child .next-secondary-command span, .next-function-header > div:last-child .next-command span { display: none; }
  .next-function-header > div:last-child .next-secondary-command, .next-function-header > div:last-child .next-command { width: 34px; min-width: 34px; padding: 0; }
  .next-function-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-function-kpis.next-reservation-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-function-kpis.next-reservation-kpis > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--next-line); }
  .next-contract-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-contract-kpis > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--next-line); }
  .next-contract-workflow-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-contract-workflow-band > span:nth-child(2n) { border-right: 0; }
  .next-contract-workflow-band > span:last-child { grid-column: 1 / -1; border-top: 1px solid var(--next-line); }
  .next-function-kpis > div:nth-child(2) { border-right: 0; }
  .next-workplace-plan-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-workplace-plan-summary > span:nth-child(3n) { border-right: 0; }
  .next-function-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-quality-findings { grid-template-columns: 1fr; }
  .next-quality-findings > div { border-right: 0; }
  .next-governance-master .next-form-grid, .next-governance-editor .next-form-grid { grid-template-columns: 1fr; }
  .next-governance-toolbar { grid-template-columns: 1fr; }
  .next-governance-list-head { display: none; }
  .next-governance-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .next-governance-row > span { padding: 5px; }
  .next-governance-row > span::before { content: attr(data-label); color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
  .next-governance-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .next-area-master .next-form-grid, .next-area-editor .next-form-grid { grid-template-columns: 1fr; }
  .next-area-list-head { display: none; }
  .next-area-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .next-area-row > span { padding: 5px; }
  .next-area-row > span::before { content: attr(data-label); color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
  .next-area-footer > span { display: none; }
  .next-maintenance-master .next-form-grid, .next-maintenance-editor fieldset .next-form-grid { grid-template-columns: 1fr; }
  .next-maintenance-toolbar { grid-template-columns: 1fr; }
  .next-maintenance-plans > header { flex-direction: column; }
  .next-maintenance-register > header > .next-maintenance-header-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; grid-auto-flow: initial; width: 100%; }
  .next-maintenance-header-actions .next-maintenance-automation { justify-content: center; }
  .next-maintenance-header-actions .next-secondary-command { min-width: 0; }
  .next-maintenance-list-head { display: none; }
  .next-maintenance-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .next-maintenance-plan-list .next-maintenance-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-maintenance-row > span { padding: 5px; }
  .next-maintenance-row > span::before { content: attr(data-label); color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
  .next-maintenance-row .next-governance-actions { grid-column: 1 / -1; }
  .next-maintenance-editor > footer { align-items: stretch; flex-direction: column; }
  .next-maintenance-editor > footer > div { justify-content: flex-end; }
  .next-asset-master .next-form-grid, .next-asset-editor fieldset .next-form-grid { grid-template-columns: 1fr; }
  .next-asset-toolbar { grid-template-columns: 1fr; }
  .next-reservation-evidence-review > .next-form-grid { grid-template-columns: 1fr; }
  .next-reservation-review-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-reservation-review-options button:nth-child(2) { border-right: 0; }
  .next-reservation-review-options button:nth-child(-n+2) { border-bottom: 1px solid #d8dcdf; }
  .next-reservation-evidence-review > header, .next-reservation-evidence-review > footer { align-items: stretch; flex-direction: column; }
  .next-reservation-evidence-review > footer .next-command { justify-content: center; width: 100%; }
  .next-asset-list-head { display: none; }
  .next-asset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .next-asset-row > span { padding: 5px; }
  .next-asset-row > span::before { content: attr(data-label); color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
  .next-asset-row .next-governance-actions { grid-column: 1 / -1; }
  .next-asset-editor > footer { align-items: stretch; flex-direction: column; }
  .next-asset-editor > footer > div { justify-content: flex-end; }
  .next-iot-timeseries > header { align-items: stretch; flex-direction: column; }
  .next-iot-gateway-status { grid-template-columns: 35px repeat(3, minmax(0, 1fr)); }
  .next-iot-gateway-last { grid-column: 2 / -1; }
  .next-iot-timeseries > header select { width: 100%; }
  .next-iot-timeseries-grid { grid-template-columns: 1fr; }
  .next-iot-chart-panel { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-iot-entry-panel .next-form-grid { grid-template-columns: 1fr; }
  .next-inspection-template-list { grid-template-columns: 1fr; }
  .next-inspection-template-list > div { border-right: 0; }
  .next-inspection-template-editor > footer, .next-inspection-starter > footer { align-items: stretch; flex-direction: column; }
  .next-inspection-template-editor > footer > div, .next-inspection-starter > footer > div { justify-content: flex-end; }
  .next-inspection-layout { grid-template-columns: 1fr; }
  .next-inspection-list { display: flex; max-height: none; border-right: 0; border-bottom: 1px solid var(--next-line); overflow-x: auto; }
  .next-inspection-list button { min-width: 230px; border-right: 1px solid var(--next-line); border-bottom: 0; }
  .next-inspection-detail > header { align-items: flex-start; flex-direction: column; }
  .next-inspection-correction { grid-template-columns: 1fr; align-items: stretch; }
  .next-inspection-correction > div:last-child { justify-content: flex-end; }
  .next-inspection-progress { width: 100%; }
  .next-inspection-point-fields { grid-template-columns: 1fr; }
  .next-inspection-detail > footer { grid-template-columns: 1fr; }
  .next-inspection-detail > footer > span { text-align: left; }
  .next-inspection-detail > footer > div { justify-content: flex-end; }
  .next-sustainability-tabs { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; }
  .next-sustainability-tabs button { min-width: 175px; }
  .next-sustainability-list .next-asset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-monument-list .next-asset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-restoration-editor > .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-church-loan-editor > .next-form-grid, .next-church-loan-stage > .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-church-custody-editor > .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-church-loan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-inventory-audit-summary, .next-asset-decommissioning .next-inventory-audit-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-inventory-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-audit-report > header { align-items: flex-start; flex-direction: column; }
  .next-church-loan-actions-grid { grid-template-columns: 1fr; }
  .next-church-loan-actions-grid > fieldset + fieldset { border-left: 0; }
  .next-restoration-row.head { display: none; }
  .next-restoration-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .next-restoration-row .next-governance-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .next-bim-toolbar { grid-template-columns: 1fr; }
  .next-bim-editor-grid fieldset:last-child .next-form-grid { grid-template-columns: 1fr; }
  .next-bim-viewer > header { align-items: flex-start; flex-direction: column; }
  .next-bim-viewer-tools { width: 100%; }
  .next-bim-viewer-tools .next-field { width: 100%; }
  .next-webcad-workspace { grid-template-rows: auto minmax(470px, 68vh) auto; }
  .next-webcad-header { align-items: stretch; flex-direction: column; }
  .next-webcad-header > div:last-child { width: 100%; overflow-x: auto; }
  .next-webcad-frame { min-height: 470px; }
  .next-supersplat-workspace { grid-template-rows: auto minmax(430px, 62vh) auto; }
  .next-supersplat-workspace > header { align-items: stretch; flex-direction: column; }
  .next-supersplat-frame { min-height: 430px; }
  .next-potree-workspace { grid-template-rows: auto minmax(430px, 62vh) auto; }
  .next-potree-workspace > header { align-items: stretch; flex-direction: column; }
  .next-potree-frame { min-height: 430px; }
  .next-point-cloud-status { align-items: flex-start; flex-direction: column; }
  .next-bim-cad-layout { grid-template-columns: 1fr; }
  .next-bim-canvas, .next-bim-canvas svg { min-height: 330px; }
  .next-bim-cad-layout > aside { border-top: 1px solid var(--next-line); border-left: 0; }
  .next-bim-layer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 190px; }
  .next-ifc-geometry > header { align-items: stretch; flex-direction: column; }
  .next-ifc-viewer-toolbar { width: 100%; padding-bottom: 2px; overflow-x: auto; overscroll-behavior-inline: contain; }
  .next-ifc-canvas-shell { height: min(58vh, 520px); min-height: 350px; }
  .next-ifc-registration-grid { grid-template-columns: 1fr; }
  .next-ifc-georeference > header { align-items: flex-start; flex-direction: column; }
  .next-ifc-georeference dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-ifc-georeference dl > div { border-bottom: 1px solid #d4ded9; }
  .next-ifc-transform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-ifc-registration > footer { align-items: flex-start; flex-direction: column; }
  .next-ifc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-ifc-summary > div:nth-child(2n) { border-right: 0; }
  .next-ifc-reconciliation > summary { align-items: flex-start; flex-direction: column; }
  .next-ifc-reconciliation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-ifc-reconciliation-metrics > div:nth-child(2n) { border-right: 0; }
  .next-ifc-reconciliation-editor footer { align-items: stretch; flex-direction: column; }
  .next-ifc-reconciliation-editor footer .next-command,
  .next-ifc-reconciliation-editor footer .next-secondary-command { justify-content: center; width: 100%; }
  .next-model-geometry > header { align-items: stretch; flex-direction: column; }
  .next-model-viewer-toolbar { width: 100%; padding-bottom: 2px; overflow-x: auto; overscroll-behavior-inline: contain; }
  .next-model-canvas-shell { height: min(58vh, 520px); min-height: 350px; }
  .next-model-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-model-summary > div:nth-child(2n) { border-right: 0; }
  .next-bcf-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-bcf-summary > div:nth-child(2n) { border-right: 0; }
  .next-bcf-main { grid-template-columns: 1fr; min-height: 0; }
  .next-bcf-topic-list { grid-template-rows: auto auto; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-bcf-topic-list > div { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .next-bcf-topic-list button { min-width: 235px; border-right: 1px solid var(--next-line); border-bottom: 0; }
  .next-bcf-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-bcf-meta > div:nth-child(2n) { border-right: 0; }
  .next-bcf-editor > .next-form-grid { grid-template-columns: 1fr; }
  .next-bcf-editor > footer { align-items: stretch; flex-direction: column; }
  .next-bcf-editor > footer > span { max-width: none; }
  .next-bcf-editor > footer > div { justify-content: flex-end; }
  .next-bcf-viewpoints > header { align-items: stretch; flex-direction: column; }
  .next-bcf-viewpoints > header > div:last-child { max-width: 100%; }
  .next-bcf-viewpoint-body { grid-template-columns: 1fr; }
  .next-bcf-viewpoint-body > figure { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-ifc-bcf-context { grid-template-columns: 24px minmax(0, 1fr); }
  .next-ifc-bcf-context-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .next-ifc-bcf-context-actions > button { min-width: 0; justify-content: center; }
  .next-ifc-browser > header { grid-template-columns: 1fr; }
  .next-ifc-main { min-height: 0; }
  .next-nav { max-width: 58vw; overflow-x: auto; }
  .next-nav-section:not(.next-personal-nav) { display: none; }
  .next-personal-nav { display: contents; }
  .next-work-header h1 { font-size: 23px; }
  .next-work-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-contract-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-contract-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-property-dossier-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-property-dossier-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-party-dossier-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-party-dossier-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-insurance-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-insurance-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-obligation-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-obligation-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-finance-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-finance-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-asset-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-asset-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-maintenance-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-maintenance-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-service-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-service-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-inspection-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-inspection-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-sustainability-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-sustainability-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-energy-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-energy-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-area-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-area-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis.next-rental-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-rental-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-work-kpis > div:nth-child(2) { border-right: 0; }
  .next-work-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-work-toolbar { grid-template-columns: 1fr 1fr; }
  .next-work-toolbar label { grid-column: 1 / -1; }
  .next-contract-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-property-dossier-toolbar { grid-template-columns: 1fr 1fr; }
  .next-party-dossier-toolbar { grid-template-columns: 1fr 1fr; }
  .next-contract-portfolio-list > header { display: none; }
  .next-contract-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 34px; gap: 9px; padding: 10px; }
  .next-contract-portfolio-list > a > span { padding: 2px; }
  .next-contract-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-insurance-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-insurance-portfolio-list > header { display: none; }
  .next-insurance-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 34px; gap: 9px; padding: 10px; }
  .next-insurance-portfolio-list > a > span { padding: 2px; }
  .next-insurance-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-contract-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-obligation-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-obligation-portfolio-list > header { display: none; }
  .next-obligation-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 42px; gap: 9px; padding: 10px; }
  .next-obligation-portfolio-list > a > span { padding: 2px; }
  .next-obligation-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-obligation-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-finance-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-finance-portfolio-list > header { display: none; }
  .next-finance-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 42px; gap: 9px; padding: 10px; }
  .next-finance-portfolio-list > a > span { padding: 2px; }
  .next-finance-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-finance-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-asset-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-asset-portfolio-list > header { display: none; }
  .next-asset-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 46px; gap: 9px; padding: 10px; }
  .next-asset-portfolio-list > a > span { padding: 2px; }
  .next-asset-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-asset-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-maintenance-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-maintenance-portfolio-list > header { display: none; }
  .next-maintenance-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 42px; gap: 9px; padding: 10px; }
  .next-maintenance-portfolio-list > a > span { padding: 2px; }
  .next-maintenance-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-maintenance-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-service-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-service-portfolio-list > header { display: none; }
  .next-service-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 42px; gap: 9px; padding: 10px; }
  .next-service-portfolio-list > a > span { padding: 2px; }
  .next-service-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-service-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-inspection-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-inspection-portfolio-list > header { display: none; }
  .next-inspection-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 46px; gap: 9px; padding: 10px; }
  .next-inspection-portfolio-list > a > span { padding: 2px; }
  .next-inspection-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-inspection-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-sustainability-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-sustainability-portfolio-list > header { display: none; }
  .next-sustainability-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 46px; gap: 9px; padding: 10px; }
  .next-sustainability-portfolio-list > a > span { padding: 2px; }
  .next-sustainability-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-sustainability-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-energy-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-energy-portfolio-list > header { display: none; }
  .next-energy-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-energy-portfolio-list > a > span { padding: 2px; }
  .next-energy-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-energy-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-area-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-area-portfolio-list > header { display: none; }
  .next-area-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-area-portfolio-list > a > span { padding: 2px; }
  .next-area-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-area-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-quality-band.next-area-portfolio-band, .next-quality-band.next-chargeback-portfolio-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-area-portfolio-band > span:nth-child(2n), .next-chargeback-portfolio-band > span:nth-child(2n) { border-right: 0; }
  .next-work-kpis.next-chargeback-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-chargeback-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-chargeback-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-chargeback-summary-list > header, .next-chargeback-portfolio-list > header { display: none; }
  .next-chargeback-summary-list > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
  .next-chargeback-summary-list > div > span, .next-chargeback-portfolio-list > a > span { padding: 2px; }
  .next-chargeback-summary-list > div > span::before, .next-chargeback-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-chargeback-summary-list > div > span:last-child { grid-column: 1 / -1; }
  .next-chargeback-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-rental-portfolio-toolbar { grid-template-columns: 1fr 1fr; }
  .next-rental-portfolio-list > header { display: none; }
  .next-rental-portfolio-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-rental-portfolio-list > a > span { padding: 2px; }
  .next-rental-portfolio-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-rental-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
  .next-ifc-case-toolbar { grid-template-columns: 1fr 1fr; }
  .next-module-directory { grid-template-columns: 1fr; }
  .next-module-directory > a, .next-module-directory > div { border-right: 0; }
  .next-module-directory > :nth-last-child(2) { border-bottom: 1px solid var(--next-line); }
  .next-task-layout, .next-approval-layout, .next-ifc-case-layout { grid-template-columns: 1fr; }
  .next-task-list, .next-approval-list, .next-ifc-case-list { display: flex; max-height: none; border-right: 0; border-bottom: 1px solid var(--next-line); overflow-x: auto; }
  .next-task-list > button, .next-approval-list > button, .next-ifc-case-list > button { min-width: 280px; border-right: 1px solid var(--next-line); border-bottom: 0; }
  .next-task-detail-scroll { max-height: none; }
  .next-ifc-case-detail-scroll { max-height: none; }
  .next-area-report-grid { grid-template-columns: 1fr; }
  .next-area-report-grid > div { border-right: 0; }
  .next-area-report-grid > div:nth-last-child(2) { border-bottom: 1px solid var(--next-line); }
  .next-property-report-header { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .next-property-report-header > dl { min-width: 0; }
  .next-property-report-header dd { max-width: 62%; }
  .next-property-report-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .next-property-report-actions > span { grid-column: 1 / -1; }
  .next-property-report-actions button:first-of-type { grid-column: 1 / -1; }
  .next-property-report-actions .next-secondary-command, .next-property-report-actions .next-command { justify-content: center; }
  .next-property-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-property-report-kpis > div { border-bottom: 1px solid var(--next-line); }
  .next-property-report-kpis > div:nth-child(2n) { border-right: 0; }
  .next-property-report-kpis > div:nth-last-child(-n+2) { border-bottom: 0; }
  .next-property-report-grid { grid-template-columns: 1fr; }
  .next-property-report-grid > section + section { border-top: 1px solid var(--next-line); border-left: 0; }
  .next-property-report-module-head { display: none; }
  .next-property-report-module-list > div { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 7px 10px; }
  .next-property-report-module-list > div > span:nth-child(3), .next-property-report-module-list > div > span:nth-child(4) { display: none; }
  .next-property-report-module-list > div > span:nth-child(5) { text-align: right; }
  .next-property-report-footer { display: grid; }
  .next-property-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-property-shortcuts a:nth-child(3n) { border-right: 1px solid var(--next-line); }
  .next-property-shortcuts a:nth-child(2n) { border-right: 0; }
}

@media (max-width: 460px) {
  .next-function-header { gap: 8px; }
  .next-function-header > div:first-child { flex: 1 1 auto; }
  .next-function-header > div:last-child { flex: 0 0 auto; gap: 4px; }
  .next-ifc-canvas-shell { height: 390px; min-height: 330px; }
  .next-ifc-canvas-help span { width: 25px; padding: 0; justify-content: center; font-size: 0; }
  .next-ifc-canvas-help svg { width: 12px; height: 12px; }
  .next-webcad-header .next-secondary-command span { display: none; }
  .next-webcad-workspace > footer { align-items: flex-start; flex-direction: column; }
  .next-breadcrumb span { display: none; }
  .next-property-header { align-items: flex-start; }
  .next-property-title { gap: 10px; }
  .next-property-title h1 { font-size: 19px; }
  .next-property-title p { max-width: 52vw; }
  .next-property-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-workplace-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-workplace-plan-summary > span:nth-child(3n) { border-right: 1px solid var(--next-line); }
  .next-workplace-plan-summary > span:nth-child(2n) { border-right: 0; }
  .next-iot-reading-row { grid-template-columns: 5px minmax(0, 1fr) 30px; }
  .next-iot-gateway-status { grid-template-columns: 35px repeat(2, minmax(0, 1fr)); }
  .next-iot-gateway-status > span:nth-child(4) { grid-column: 2; }
  .next-iot-gateway-last { grid-column: 3; }
  .next-iot-reading-row > span:nth-child(3), .next-iot-reading-row > em { grid-column: 2; }
  .next-iot-reading-row > button { grid-column: 3; grid-row: 1 / span 3; }
  .next-inspection-point { grid-template-columns: 30px minmax(0, 1fr); }
  .next-inspection-point-body { padding-inline: 10px; }
  .next-inspection-assessment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-inspection-assessment button:nth-child(2) { border-right: 0; }
  .next-inspection-assessment button:nth-child(-n+2) { border-bottom: 1px solid #cfd3d6; }
  .next-inspection-answer { align-items: stretch; flex-direction: column; }
  .next-inspection-answer > span { padding-bottom: 0; }
  .next-property-facts div { min-height: 42px; padding: 0 9px; }
  .next-property-facts div:nth-child(2), .next-property-facts div:nth-child(4) { border-right: 0; }
  .next-property-facts div:nth-child(3), .next-property-facts div:nth-child(5) { padding-left: 0; }
  .next-property-facts div:nth-child(3) { border-right: 1px solid var(--next-line); }
  .next-editor-header { display: grid; }
  .next-editor-meta { display: flex; justify-content: space-between; }
  .next-form-grid { grid-template-columns: 1fr; padding: 16px 13px 19px; }
  .next-field.wide { grid-column: auto; }
  .next-subsection { padding-inline: 13px; }
  .next-editor-footer { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 13px; }
  .next-editor-footer .next-command { width: 100%; }
  .next-editor-footer .next-command span { display: inline; }
  .next-record-header { align-items: flex-start; }
  .next-record-header .next-secondary-command span { display: none; }
  .next-record-content { padding-inline: 12px; }
  .next-record-content > header { align-items: flex-start; }
  .next-upload-command span { display: none; }
  .next-document-control-header { display: grid; }
  .next-document-control-header > div:first-child { min-width: 0; }
  .next-document-open { grid-template-columns: 27px minmax(0, 1fr); }
  .next-document-open em { grid-column: 2; justify-self: start; }
  .next-document-version { grid-template-columns: minmax(0, 1fr) 27px 27px 27px; }
  .next-document-workflow footer { align-items: stretch; flex-direction: column-reverse; }
  .next-document-workflow footer > * { width: 100%; }
  .next-document-governance-grid { grid-template-columns: 1fr; }
  .next-journal { padding-inline: 12px; }
  .next-journal > header { align-items: flex-start; }
  .next-journal > header > span { min-width: 31px; width: 31px; padding: 0; justify-content: center; font-size: 0; }
  .next-journal-list article { grid-template-columns: 30px minmax(0, 1fr); }
  .next-journal-list article > div:last-child { grid-column: 2; justify-items: start; text-align: left; }
  .next-maintenance-master > header, .next-maintenance-register > header, .next-maintenance-workspace > .next-governance-documents > header { align-items: flex-start; }
  .next-maintenance-master > header small, .next-maintenance-master > footer > span { display: none; }
  .next-maintenance-master > footer { justify-content: flex-end; }
  .next-maintenance-row { grid-template-columns: 1fr; }
  .next-maintenance-plan-list .next-maintenance-row { grid-template-columns: 1fr; }
  .next-maintenance-row .next-governance-actions { grid-column: 1; }
  .next-maintenance-editor > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .next-asset-master > header, .next-asset-register > header, .next-asset-workspace > .next-governance-documents > header { align-items: flex-start; }
  .next-asset-master > header small, .next-asset-master > footer > span { display: none; }
  .next-asset-master > footer { justify-content: flex-end; }
  .next-asset-row { grid-template-columns: 1fr; }
  .next-asset-row .next-governance-actions { grid-column: 1; }
  .next-space-allocation-list .next-asset-row,
  .next-space-run-list .next-asset-row { grid-template-columns: 1fr; }
  .next-space-allocation-list .next-governance-actions,
  .next-space-run-list .next-governance-actions { grid-column: 1; }
  .next-asset-editor > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .next-sustainability-tabs button { min-width: 160px; }
  .next-sustainability-list .next-asset-row { grid-template-columns: 1fr; }
  .next-monument-list .next-asset-row { grid-template-columns: 1fr; }
  .next-restoration-editor > .next-form-grid, .next-restoration-row { grid-template-columns: 1fr; }
  .next-church-loan-editor > .next-form-grid, .next-church-custody-editor > .next-form-grid, .next-church-loan-stage > .next-form-grid, .next-church-loan-actions-grid .next-form-grid, .next-church-loan-summary { grid-template-columns: 1fr; }
  .next-church-inventory-audit > header, .next-church-inventory-audit > header > div:last-child, .next-inventory-audit-stage > footer { align-items: stretch; flex-direction: column; }
  .next-inventory-audit-summary, .next-asset-decommissioning .next-inventory-audit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-inventory-snapshot { grid-template-columns: 1fr; }
  .next-information-audit-grid { overflow: visible; border: 0; }
  .next-information-audit-head { display: none; }
  .next-information-audit-row { grid-template-columns: 1fr; min-width: 0; margin-bottom: 8px; border: 1px solid var(--next-line); border-radius: 4px; }
  .next-inventory-audit-editor { margin: 7px; }
  .next-inventory-audit-toolbar { align-items: stretch; flex-direction: column; }
  .next-inventory-audit-toolbar > label { flex-basis: auto; max-width: none; }
  .next-inventory-audit-list-head, .next-inventory-register-head { display: none; }
  .next-inventory-audit-row, .next-inventory-register-row { grid-template-columns: 1fr; min-width: 0; padding: 7px; }
  .next-inventory-audit-row .next-governance-actions, .next-inventory-register-row .next-governance-actions { justify-content: flex-end; }
  .next-inventory-audit-stage > footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .next-inventory-audit-stage > footer .next-command, .next-inventory-audit-stage > footer .next-secondary-command { justify-content: center; width: 100%; min-width: 0; padding: 0 10px; }
  .next-inventory-audit-stage > footer .next-command span { display: inline; }
  .next-church-catalogue > header, .next-church-catalogue > header > div:last-child, .next-church-care > header, .next-church-care > header > div:last-child { align-items: stretch; flex-direction: column; }
  .next-care-editor { scroll-margin-top: 12px; }
  .next-church-financial { scroll-margin-top: 12px; }
  .next-church-financial-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-insurance-management { scroll-margin-top: 12px; }
  .next-insurance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-insurance-editor > .next-catalogue-fields { grid-template-columns: 1fr; }
  .next-insurance-register article,
  .next-insurance-claims .next-care-inspections a { grid-template-columns: 1fr; }
  .next-church-rights { scroll-margin-top: 12px; }
  .next-care-plan-actions { align-items: stretch; flex-direction: column; }
  .next-care-inspections article { grid-template-columns: 1fr; }
  .next-care-inspections article .next-governance-actions { justify-content: flex-end; }
  .next-catalogue-editor { margin: 7px; }
  .next-catalogue-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-catalogue-fields { grid-template-columns: 1fr; padding: 7px; }
  .next-catalogue-register-head { display: none; }
  .next-catalogue-register-row { grid-template-columns: 1fr; min-width: 0; padding: 7px; }
  .next-catalogue-register-row .next-governance-actions { justify-content: flex-end; }
  .next-catalogue-journal article { grid-template-columns: 1fr; }
  .next-loan-direction { grid-template-columns: 1fr; }
  .next-loan-direction button + button { border-top: 1px solid #cfd3d7; border-left: 0; }
  .next-church-loan-events > div { grid-template-columns: 22px minmax(0, 1fr); }
  .next-church-loan-events > div em { grid-column: 2; text-align: left; white-space: normal; }
  .next-restoration-row .next-governance-actions { grid-column: 1; }
  .next-monument-value { align-items: flex-start; flex-direction: column; }
  .next-monument-value strong { margin-left: 0; }
  .next-monument-value small { padding-left: 0; border-left: 0; }
  .next-work-kpis { grid-template-columns: 1fr; }
  .next-work-kpis > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-work-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-work-kpis > div:last-child { border-bottom: 0; }
  .next-work-toolbar { grid-template-columns: 1fr; }
  .next-work-toolbar label { grid-column: auto; }
  .next-ifc-case-toolbar { grid-template-columns: 1fr; }
  .next-inline-select > span { display: none; }
  .next-inline-select select { width: 42vw; }
  .next-work-editor > footer, .next-task-detail > footer, .next-approval-detail > footer, .next-ifc-case-detail > footer { align-items: stretch; flex-direction: column; }
  .next-work-editor > footer > div { justify-content: flex-end; }
  .next-task-detail .next-form-grid, .next-approval-detail .next-form-grid { grid-template-columns: 1fr; }
  .next-ifc-case-detail > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-ifc-case-detail > footer a, .next-ifc-case-detail > footer button { justify-content: center; width: 100%; }
  .next-task-summary { grid-template-columns: 1fr; }
  .next-task-summary > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-task-summary > span:last-child { border-bottom: 0; }
  .next-ifc-case-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-ifc-case-summary > span:nth-child(2) { border-right: 0; }
  .next-ifc-case-summary > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-ifc-case-planning-actions { display: grid; grid-template-columns: 1fr; }
  .next-work-metadata { grid-template-columns: 1fr; }
  .next-work-metadata > div { border-right: 1px solid var(--next-line); }
  .next-work-metadata > div:nth-last-child(2) { border-bottom: 0; }
  .next-report-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .next-report-actions > div { grid-column: 1 / -1; }
  .next-report-actions .next-secondary-command { justify-content: center; }
  .next-coverage-list > div { grid-template-columns: minmax(150px, 1fr) 60px; }
  .next-coverage-list > div .next-progress { display: none; }
  .next-area-report-grid dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-area-report-grid dl div:nth-child(3) { padding-left: 0; border-left: 0; }
  .next-property-shortcuts { grid-template-columns: 1fr; }
  .next-property-shortcuts a { border-right: 0; }
  .next-property-shortcuts a:nth-child(3n) { border-right: 0; }
}

@media (max-width: 760px) {
  .next-nav .next-system-nav { display: block; flex: 0 0 auto; align-self: center; margin: 0; padding: 0; border: 0; }
  .next-nav .next-system-nav .next-nav-section-body { display: flex; gap: 4px; padding: 0; }
  .next-nav .next-system-nav a { margin: 0; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body.docsys-printing { background: #fff !important; }
  body.docsys-printing * { visibility: hidden !important; }
  body.docsys-printing .docsys-print-target, body.docsys-printing .docsys-print-target * { visibility: visible !important; }
  body.docsys-printing .docsys-print-target { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; border: 0; color: #222; background: #fff; }
  body.docsys-printing .docsys-print-target [data-report-action] { display: none !important; }
  body.docsys-printing .next-property-report-header { padding: 0 0 10mm; }
  body.docsys-printing .next-property-report-kpis, body.docsys-printing .next-property-report-grid, body.docsys-printing .next-property-report-module-list > div { break-inside: avoid; }
  body.docsys-printing .next-property-report-module-list strong, body.docsys-printing .next-property-report-module-list small { white-space: normal; }
}

.next-exchange-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-exchange-header > div:first-child { min-width: 0; }
.next-exchange-header h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-exchange-header p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-exchange-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-exchange-kpis > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 0 18px; border-right: 1px solid var(--next-line); }
.next-exchange-kpis > div:first-child { padding-left: 0; }
.next-exchange-kpis > div:nth-child(5n) { border-right: 0; }
.next-exchange-kpis > div:last-child { border-right: 0; }
.next-exchange-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-exchange-kpis small { color: var(--next-muted); font-size: 9px; }
.next-exchange-kpis strong { font-size: 18px; }
.next-exchange-message { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 37px; margin-top: 14px; padding: 7px 10px; border: 1px solid; border-radius: 4px; font-size: 9px; }
.next-exchange-message svg { width: 15px; height: 15px; }
.next-exchange-message.success { color: #315f43; border-color: #b8d3c2; background: #f1f7f3; }
.next-exchange-message.error { color: #8e242b; border-color: #e1b5b8; background: #fff5f6; }
.next-external-migration { min-width: 0; margin-top: 16px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-external-migration > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-external-migration > header > div { display: grid; min-width: 0; }
.next-external-migration > header > div > span, .next-external-migration-body header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-external-migration > header h2 { margin: 3px 0; font-size: 17px; }
.next-external-migration > header small { color: var(--next-muted); font-size: 9px; }
.next-external-migration > header > label { display: grid; flex: 0 1 320px; gap: 5px; min-width: 230px; color: var(--next-muted); font-size: 8px; font-weight: 800; }
.next-external-migration select { width: 100%; min-height: 34px; padding: 6px 28px 6px 8px; color: var(--next-ink); border: 1px solid #cfd3d6; border-radius: 4px; background: #fff; font: inherit; font-size: 9px; }
.next-external-migration-source { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(300px, 1.15fr); gap: 18px; align-items: stretch; padding: 14px 18px; border-bottom: 1px solid var(--next-line); }
.next-external-migration-source .next-exchange-drop { min-height: 64px; }
.next-external-profile-summary { display: grid; align-content: center; min-width: 0; padding-left: 18px; border-left: 1px solid var(--next-line); }
.next-external-profile-summary strong { font-size: 10px; }
.next-external-profile-summary span { margin-top: 4px; color: var(--next-muted); font-size: 9px; line-height: 1.45; }
.next-external-migration-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #fbfbfb; }
.next-external-migration-metrics > span { display: grid; min-width: 0; padding: 10px 13px; border-right: 1px solid var(--next-line); }
.next-external-migration-metrics > span:last-child { border-right: 0; }
.next-external-migration-metrics small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-external-migration-metrics strong { margin-top: 3px; font-size: 15px; }
.next-external-migration-metrics .critical strong { color: var(--next-red-dark); }
.next-external-migration-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); min-width: 0; }
.next-external-migration-body > section { min-width: 0; border-right: 1px solid var(--next-line); }
.next-external-migration-body header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 9px 13px; border-bottom: 1px solid var(--next-line); }
.next-external-migration-body header strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-external-mapping-list { max-height: 430px; overflow: auto; }
.next-external-mapping-list > label { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.2fr); align-items: center; gap: 12px; min-height: 50px; padding: 7px 13px; border-bottom: 1px solid #e5e7e9; }
.next-external-mapping-list > label:last-child { border-bottom: 0; }
.next-external-mapping-list > label.required { box-shadow: inset 3px 0 0 #ca2733; }
.next-external-mapping-list > label > span { display: grid; min-width: 0; }
.next-external-mapping-list strong { font-size: 9px; }
.next-external-mapping-list small { margin-top: 2px; color: var(--next-muted); font-size: 8px; }
.next-external-migration-body > aside { min-width: 0; padding-bottom: 13px; background: #fafbfb; }
.next-external-migration-ok, .next-external-migration-issue { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 7px; margin: 10px 13px 0; padding: 8px; border: 1px solid; border-radius: 4px; font-size: 8px; line-height: 1.45; }
.next-external-migration-ok { color: #315f43; border-color: #b8d3c2; background: #eef6f1; }
.next-external-migration-issue.error { color: #8e242b; border-color: #e1b5b8; background: #fff5f6; }
.next-external-migration-issue.warning { color: #805a13; border-color: #ddc88f; background: #fff9e9; }
.next-external-migration-ok svg, .next-external-migration-issue svg { width: 15px; height: 15px; }
.next-external-migration-body aside details { margin: 10px 13px 0; padding: 8px; border: 1px solid #d8dcdf; border-radius: 4px; background: #fff; font-size: 8px; }
.next-external-migration-body aside details summary { cursor: pointer; font-weight: 800; }
.next-external-migration-body aside details p { margin: 6px 0 0; color: var(--next-muted); line-height: 1.5; overflow-wrap: anywhere; }
.next-external-migration-body aside dl { margin: 10px 13px; }
.next-external-migration-body aside dl > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 7px; padding: 6px 0; border-bottom: 1px solid #e0e3e5; font-size: 8px; }
.next-external-migration-body aside dt { color: var(--next-muted); }
.next-external-migration-body aside dd { overflow: hidden; margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.next-external-migration-body aside > .next-secondary-command { margin: 0 13px; }
.next-exchange-layout { display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); min-width: 0; margin-top: 16px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-exchange-source { min-width: 0; padding: 18px; border-right: 1px solid var(--next-line); background: #f8f9fa; }
.next-exchange-source > header, .next-exchange-preview > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.next-exchange-source > header span, .next-exchange-preview > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-exchange-source > header h2, .next-exchange-preview > header h2 { margin: 3px 0 0; font-size: 15px; }
.next-exchange-source > header small { padding-top: 4px; color: var(--next-muted); font-size: 8px; white-space: nowrap; }
.next-exchange-steps { display: grid; margin: 17px 0; border-top: 1px solid #dfe2e4; }
.next-exchange-steps > div { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid #dfe2e4; color: #8b9095; }
.next-exchange-steps b { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #c9cdd0; border-radius: 50%; font-size: 8px; }
.next-exchange-steps span { display: grid; min-width: 0; }
.next-exchange-steps strong { color: #666c71; font-size: 9px; }
.next-exchange-steps small { margin-top: 2px; font-size: 8px; }
.next-exchange-steps > div.active b { color: #fff; border-color: var(--next-red); background: var(--next-red); }
.next-exchange-steps > div.active strong { color: var(--next-ink); }
.next-exchange-drop { position: relative; display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 74px; padding: 11px; border: 1px dashed #b6bcc0; border-radius: 5px; background: #fff; cursor: pointer; }
.next-exchange-drop:hover { border-color: var(--next-red); background: #fffafb; }
.next-exchange-drop > svg { width: 23px; height: 23px; color: var(--next-red-dark); }
.next-exchange-drop > span, .next-exchange-readonly > span { display: grid; min-width: 0; }
.next-exchange-drop strong, .next-exchange-readonly strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-exchange-drop small, .next-exchange-readonly small { margin-top: 4px; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-exchange-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.next-exchange-drop.disabled { opacity: .55; pointer-events: none; }
.next-exchange-readonly { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 68px; padding: 11px; border: 1px solid #d6d9dc; border-radius: 5px; background: #fff; }
.next-exchange-readonly svg { width: 21px; height: 21px; color: #777d82; }
.next-exchange-template { display: grid; grid-template-columns: minmax(0, 1fr) 31px; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 0; border-bottom: 1px solid #dfe2e4; }
.next-exchange-template > span { display: grid; }
.next-exchange-template strong { font-size: 8px; }
.next-exchange-template small { margin-top: 3px; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-exchange-template button, .next-exchange-preview > header > button { display: grid; place-items: center; width: 31px; height: 31px; color: #5f656a; border: 1px solid #d1d5d8; border-radius: 4px; background: #fff; cursor: pointer; }
.next-exchange-template button:hover, .next-exchange-preview > header > button:hover { color: var(--next-red-dark); border-color: #c89498; }
.next-exchange-template svg, .next-exchange-preview > header > button svg { width: 14px; height: 14px; }
.next-exchange-rules { margin: 10px 0 0; }
.next-exchange-rules > div { padding: 8px 0; border-bottom: 1px solid #e5e7e9; }
.next-exchange-rules dt { font-size: 8px; font-weight: 800; }
.next-exchange-rules dd { margin: 3px 0 0; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-exchange-preview { min-width: 0; }
.next-exchange-preview > header { min-height: 70px; padding: 17px 18px 12px; border-bottom: 1px solid var(--next-line); }
.next-legacy-import { border-bottom: 1px solid var(--next-line); background: #f7f9f8; }
.next-legacy-import > header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 66px; padding: 10px 13px; }
.next-legacy-import > header > span:nth-child(2) { display: grid; min-width: 0; }
.next-legacy-import > header small { color: var(--next-muted); font-size: 8px; text-transform: uppercase; }
.next-legacy-import > header strong { margin-top: 2px; font-size: 12px; }
.next-legacy-import > header em { overflow: hidden; margin-top: 2px; color: var(--next-muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.next-legacy-import-state { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 5px 8px; border: 1px solid; border-radius: 4px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.next-legacy-import-state svg { width: 13px; height: 13px; }
.next-legacy-import-state.ready { color: #315f43; border-color: #b8d3c2; background: #eef6f1; }
.next-legacy-import-state.needs-review { color: #805a13; border-color: #ddc88f; background: #fff9e9; }
.next-legacy-import-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--next-line); background: #fff; }
.next-legacy-import-metrics > span { display: grid; min-width: 0; padding: 9px 11px; border-right: 1px solid var(--next-line); }
.next-legacy-import-metrics > span:last-child { border-right: 0; }
.next-legacy-import-metrics small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-legacy-import-metrics strong { margin-top: 3px; font-size: 13px; }
.next-legacy-import > footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 8px 13px; border-top: 1px solid var(--next-line); color: #686e72; font-size: 8px; }
.next-legacy-import > footer span { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: start; gap: 5px; }
.next-legacy-import > footer svg { width: 13px; height: 13px; color: #8b651c; }
.next-exchange-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #fafbfb; }
.next-exchange-summary > span { display: grid; min-width: 0; padding: 11px 13px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-exchange-summary > span:nth-child(5n) { border-right: 0; }
.next-exchange-summary > span:nth-last-child(-n+5) { border-bottom: 0; }
.next-exchange-summary > span:last-child { border-right: 0; }
.next-exchange-summary small { color: var(--next-muted); font-size: 8px; }
.next-exchange-summary strong { margin-top: 3px; font-size: 14px; }
.next-exchange-table { max-height: 640px; overflow: auto; }
.next-exchange-table-head, .next-exchange-row { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(110px, 1.25fr) minmax(70px, .65fr) minmax(140px, 1.4fr); align-items: center; min-width: 0; }
.next-exchange-table-head { position: sticky; top: 0; z-index: 1; min-height: 34px; color: #73797e; border-bottom: 1px solid var(--next-line); background: #f1f3f4; font-size: 8px; font-weight: 800; }
.next-exchange-table-head span, .next-exchange-row > span { min-width: 0; padding: 8px 11px; }
.next-exchange-row { min-height: 56px; border-bottom: 1px solid var(--next-line); }
.next-exchange-row:hover { background: #fbfbfc; }
.next-exchange-row.invalid { background: #fff7f7; }
.next-exchange-row > span { display: grid; }
.next-exchange-row strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-exchange-row small { margin-top: 3px; color: var(--next-muted); font-size: 8px; line-height: 1.35; }
.next-exchange-row em { justify-self: start; padding: 3px 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-exchange-row em.create { color: #245e3d; background: #deeee4; }
.next-exchange-row em.update { color: #75580e; background: #f5eacb; }
.next-exchange-row em.unchanged { color: #5e656a; background: #e9ecee; }
.next-exchange-row em.invalid { color: #8e242b; background: #f5dfe1; }
.next-exchange-preview > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 10px 18px; border-top: 1px solid var(--next-line); background: #fafbfb; }
.next-exchange-preview > footer > span { color: var(--next-muted); font-size: 8px; }

@media (max-width: 1000px) {
  .next-external-migration-body { grid-template-columns: 1fr; }
  .next-external-migration-body > section { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-exchange-layout { grid-template-columns: 1fr; }
  .next-exchange-source { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-exchange-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
}

@media (max-width: 760px) {
  .next-external-migration > header { align-items: stretch; flex-direction: column; }
  .next-external-migration > header > label { flex-basis: auto; min-width: 0; }
  .next-external-migration-source { grid-template-columns: 1fr; }
  .next-external-profile-summary { padding: 12px 0 0; border-top: 1px solid var(--next-line); border-left: 0; }
  .next-external-migration-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-external-migration-metrics > span { border-bottom: 1px solid var(--next-line); }
  .next-external-migration-metrics > span:nth-child(2n) { border-right: 0; }
  .next-external-migration-metrics > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .next-exchange-header { align-items: flex-start; flex-direction: column; }
  .next-exchange-header .next-security-actions { width: 100%; }
  .next-exchange-header .next-security-actions > * { flex: 1; justify-content: center; }
  .next-exchange-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-exchange-kpis > div { padding: 10px 12px; border-bottom: 1px solid var(--next-line); }
  .next-exchange-kpis > div:nth-child(5n) { border-right: 1px solid var(--next-line); }
  .next-exchange-kpis > div:nth-child(2n) { border-right: 0; }
  .next-exchange-kpis > div:nth-last-child(2):nth-child(odd), .next-exchange-kpis > div:last-child { border-bottom: 0; }
  .next-exchange-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-exchange-summary > span:nth-child(5n) { border-right: 1px solid var(--next-line); }
  .next-exchange-summary > span:nth-child(2n) { border-right: 0; }
  .next-exchange-summary > span:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--next-line); }
  .next-exchange-summary > span:nth-last-child(-n+2) { border-bottom: 0; }
  .next-legacy-import-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-legacy-import-metrics > span:nth-child(3n) { border-right: 0; }
  .next-legacy-import-metrics > span:nth-child(-n+3) { border-bottom: 1px solid var(--next-line); }
  .next-legacy-import > footer { grid-template-columns: 1fr; }
  .next-exchange-table-head { display: none; }
  .next-exchange-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding: 6px; }
  .next-exchange-row > span { align-content: start; min-height: 48px; padding: 7px; }
  .next-exchange-row > span::before { content: attr(data-label); margin-bottom: 4px; color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
  .next-exchange-row strong { overflow: visible; text-overflow: clip; white-space: normal; }
  .next-exchange-preview > footer { align-items: stretch; flex-direction: column; }
  .next-exchange-preview > footer .next-command { justify-content: center; width: 100%; }
  .next-exchange-preview > footer .next-command span { display: inline; }
}

@media (max-width: 460px) {
  .next-external-migration > header, .next-external-migration-source { padding-inline: 12px; }
  .next-external-mapping-list > label { grid-template-columns: 1fr; gap: 5px; padding: 9px 11px; }
  .next-exchange-header .next-security-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .next-exchange-rules { grid-template-columns: 1fr; }
  .next-exchange-source { padding: 14px 12px; }
  .next-exchange-preview > header { padding-inline: 12px; }
  .next-legacy-import > header { grid-template-columns: 35px minmax(0, 1fr); padding-inline: 10px; }
  .next-legacy-import-state { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .next-legacy-import-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-legacy-import-metrics > span:nth-child(3n) { border-right: 1px solid var(--next-line); }
  .next-legacy-import-metrics > span:nth-child(2n) { border-right: 0; }
  .next-legacy-import-metrics > span:nth-child(-n+4) { border-bottom: 1px solid var(--next-line); }
}

.next-storage-import-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-storage-import-header > div:first-child { min-width: 0; }
.next-storage-import-header > div:last-child { display: flex; gap: 8px; }
.next-storage-import-header h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-storage-import-header p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-legacy-file-import { min-width: 0; margin: 18px 0; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-legacy-file-import > .next-section-heading { padding: 14px 16px; border-bottom: 1px solid var(--next-line); }
.next-legacy-file-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.next-legacy-file-actions > * { min-height: 34px; }
.next-legacy-file-summary { padding: 15px 16px 0; }
.next-legacy-file-source { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.next-legacy-file-source > span:nth-child(2) { display: grid; min-width: 0; }
.next-legacy-file-source strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-legacy-file-source small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-legacy-file-source em { padding: 4px 7px; color: #31594a; border-radius: 4px; background: #eaf4ee; font-size: 8px; font-style: normal; font-weight: 800; }
.next-legacy-file-progress { height: 7px; margin-top: 13px; border-radius: 3px; background: #e6eaec; overflow: hidden; }
.next-legacy-file-progress > span { display: block; height: 100%; min-width: 0; max-width: 100%; border-radius: inherit; background: #277258; transition: width .25s ease; }
.next-legacy-file-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--next-line); }
.next-legacy-file-metrics > span { display: grid; min-width: 0; padding: 11px 12px; border-right: 1px solid var(--next-line); }
.next-legacy-file-metrics > span:last-child { border-right: 0; }
.next-legacy-file-metrics small { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-legacy-file-metrics strong { margin-top: 3px; font-size: 14px; }
.next-legacy-file-metrics strong.warning { color: #9b4b22; }
.next-legacy-file-blockers { display: flex; align-items: flex-start; gap: 8px; padding: 10px 16px; color: #765322; border-top: 1px solid #eadbb8; background: #fff9e9; font-size: 8px; line-height: 1.45; }
.next-legacy-file-blockers svg { width: 15px; height: 15px; flex: 0 0 auto; }
.next-legacy-root-list { border-top: 1px solid var(--next-line); }
.next-legacy-root-list > div { display: grid; grid-template-columns: 9px minmax(190px, 1fr) minmax(95px, .35fr) minmax(110px, .4fr); align-items: center; gap: 10px; min-height: 49px; padding: 8px 16px; border-bottom: 1px solid var(--next-line); }
.next-legacy-root-list > div:last-child { border-bottom: 0; }
.next-legacy-root-list > div > span:not(.next-status-dot) { display: grid; min-width: 0; }
.next-legacy-root-list strong { font-size: 8px; }
.next-legacy-root-list small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-legacy-root-list code { overflow: hidden; margin-top: 3px; color: #5b6469; font-family: Consolas, monospace; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-legacy-file-errors { border-top: 1px solid #e2c8c0; background: #fff8f6; }
.next-legacy-file-errors summary { display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 8px 16px; color: #874631; cursor: pointer; font-size: 8px; font-weight: 800; list-style: none; }
.next-legacy-file-errors summary::-webkit-details-marker { display: none; }
.next-legacy-file-errors summary svg { width: 14px; height: 14px; }
.next-legacy-file-errors summary b { margin-left: auto; }
.next-legacy-file-errors > div { max-height: 260px; border-top: 1px solid #ead2cb; overflow: auto; }
.next-legacy-file-errors p { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.5fr); gap: 12px; margin: 0; padding: 8px 16px; border-bottom: 1px solid #efdfda; font-size: 7px; }
.next-legacy-file-errors p:last-child { border-bottom: 0; }
.next-legacy-file-errors p strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-legacy-file-errors p span { color: #735d56; }
.next-storage-import-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-storage-import-kpis > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 0 18px; border-right: 1px solid var(--next-line); }
.next-storage-import-kpis > div:first-child { padding-left: 0; }
.next-storage-import-kpis > div:last-child { border-right: 0; }
.next-storage-import-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-storage-import-kpis small { color: var(--next-muted); font-size: 8px; }
.next-storage-import-kpis strong { margin-top: 2px; font-size: 17px; }
.next-storage-import-note { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 16px 0; padding: 12px 14px; color: #345848; border: 1px solid #bcd2c5; border-radius: 5px; background: #f2f8f4; }
.next-storage-import-note > svg { width: 22px; height: 22px; }
.next-storage-import-note > div { display: grid; min-width: 0; }
.next-storage-import-note strong { font-size: 9px; }
.next-storage-import-note span { margin-top: 3px; font-size: 8px; line-height: 1.45; }
.next-storage-import-note small { color: #5e776a; font-size: 8px; white-space: nowrap; }
.next-storage-import-register { min-width: 0; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-storage-import-register > .next-section-heading { padding: 15px 17px; border-bottom: 1px solid var(--next-line); }
.next-storage-import-table-scroll { max-width: 100%; overflow: auto; }
.next-storage-import-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.next-storage-import-table th { height: 34px; padding: 7px 11px; color: #6f767b; border-bottom: 1px solid var(--next-line); background: #f3f5f6; font-size: 8px; text-align: left; }
.next-storage-import-table th:first-child { width: 24%; }
.next-storage-import-table th:nth-child(2), .next-storage-import-table th:nth-child(3), .next-storage-import-table th:nth-child(4) { width: 11%; }
.next-storage-import-table th:nth-child(5) { width: 12%; }
.next-storage-import-table td { min-width: 0; height: 58px; padding: 8px 11px; border-bottom: 1px solid var(--next-line); vertical-align: middle; }
.next-storage-import-table tbody tr:last-child td { border-bottom: 0; }
.next-storage-import-table tbody tr.changed { background: #fffdf8; }
.next-storage-import-table td > strong, .next-storage-import-table td > small { display: block; }
.next-storage-import-table td > strong { font-size: 9px; }
.next-storage-import-table td > strong.warning { color: #9b4b22; }
.next-storage-import-table td > small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-storage-import-table code { display: block; overflow: hidden; color: #556169; font-family: Consolas, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-storage-clarifications { margin-top: 16px; }
.next-storage-clarification-list { max-height: min(560px, 56vh); overflow: auto; }
.next-storage-clarification-row { display: grid; grid-template-columns: minmax(210px, 1.35fr) minmax(190px, 1fr) minmax(150px, .85fr) minmax(190px, 1fr) auto; align-items: end; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--next-line); }
.next-storage-clarification-row:last-child { border-bottom: 0; }
.next-storage-clarification-file { display: grid; grid-template-columns: 9px minmax(0, 1fr); align-items: start; gap: 8px; min-width: 0; }
.next-storage-clarification-file > span:last-child, .next-storage-clarification-reason { display: grid; min-width: 0; }
.next-storage-clarification-file strong, .next-storage-clarification-reason strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-storage-clarification-file code { overflow: hidden; margin-top: 3px; color: #566168; font-family: Consolas, monospace; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-storage-clarification-file small, .next-storage-clarification-reason span, .next-storage-clarification-reason small { margin-top: 3px; color: var(--next-muted); font-size: 7px; line-height: 1.35; }
.next-storage-clarification-reason small { width: max-content; padding: 2px 5px; color: #725322; border-radius: 3px; background: #fff1cf; font-weight: 800; }
.next-storage-clarification-row > label { display: grid; min-width: 0; gap: 4px; color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-storage-clarification-row select { width: 100%; height: 34px; min-width: 0; padding: 0 26px 0 9px; color: var(--next-ink); border: 1px solid var(--next-line-strong); border-radius: 4px; background: #fff; font: inherit; font-size: 8px; text-transform: none; }
.next-storage-clarification-row .next-command { height: 34px; padding-inline: 10px; }
.next-storage-clarification-limit { display: flex; align-items: center; gap: 7px; padding: 9px 14px; color: #705727; border-top: 1px solid #e7d7ad; background: #fff9e9; font-size: 8px; }
.next-storage-clarification-limit svg { width: 14px; height: 14px; flex: 0 0 auto; }

@media (max-width: 1000px) {
  .next-legacy-file-import > .next-section-heading { align-items: flex-start; }
  .next-legacy-file-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-legacy-file-metrics > span:nth-child(3n) { border-right: 0; }
  .next-legacy-file-metrics > span:nth-child(-n+3) { border-bottom: 1px solid var(--next-line); }
  .next-storage-import-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-storage-import-kpis > div { padding: 10px 14px; border-bottom: 1px solid var(--next-line); }
  .next-storage-import-kpis > div:nth-child(3n) { border-right: 0; }
  .next-storage-import-kpis > div:nth-last-child(-n+3) { border-bottom: 0; }
  .next-storage-clarification-row { grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(140px, .8fr); align-items: end; }
  .next-storage-clarification-row > label:nth-of-type(2) { grid-column: 1 / 3; }
}

@media (max-width: 760px) {
  .next-legacy-file-import > .next-section-heading { display: grid; grid-template-columns: 1fr; }
  .next-legacy-file-actions { justify-content: stretch; }
  .next-legacy-file-actions > * { flex: 1; justify-content: center; }
  .next-legacy-root-list > div { grid-template-columns: 9px minmax(0, 1fr) minmax(86px, .4fr); }
  .next-legacy-root-list > div > span:last-child { grid-column: 2 / -1; }
  .next-storage-import-header { align-items: flex-start; flex-direction: column; }
  .next-storage-import-header > div:last-child { width: 100%; }
  .next-storage-import-header > div:last-child > * { flex: 1; justify-content: center; }
  .next-storage-import-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-storage-import-kpis > div:nth-child(3n) { border-right: 1px solid var(--next-line); }
  .next-storage-import-kpis > div:nth-child(2n) { border-right: 0; }
  .next-storage-import-kpis > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--next-line); }
  .next-storage-import-kpis > div:nth-last-child(-n+2) { border-bottom: 0; }
  .next-storage-import-note { grid-template-columns: 26px minmax(0, 1fr); }
  .next-storage-import-note > small { grid-column: 2; }
  .next-storage-import-table { table-layout: auto; }
  .next-storage-import-table thead { display: none; }
  .next-storage-import-table, .next-storage-import-table tbody, .next-storage-import-table tr, .next-storage-import-table td { display: block; width: 100%; }
  .next-storage-import-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; border-bottom: 1px solid var(--next-line); }
  .next-storage-import-table tbody tr:last-child { border-bottom: 0; }
  .next-storage-import-table td { height: auto; min-height: 54px; padding: 8px; border-bottom: 0; }
  .next-storage-import-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
  .next-storage-import-table td:last-child { grid-column: 1 / -1; min-height: 44px; }
  .next-storage-import-table code { white-space: normal; overflow-wrap: anywhere; }
  .next-storage-clarification-list { max-height: none; }
  .next-storage-clarification-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .next-storage-clarification-file, .next-storage-clarification-reason { grid-column: 1 / -1; }
  .next-storage-clarification-row > label:nth-of-type(2) { grid-column: auto; }
  .next-storage-clarification-row .next-command { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 460px) {
  .next-legacy-file-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .next-legacy-file-actions > .next-command { grid-column: 1 / -1; width: 100%; padding-inline: 10px; }
  .next-legacy-file-actions > .next-command span { display: inline; }
  .next-legacy-file-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-legacy-file-metrics > span:nth-child(3n) { border-right: 1px solid var(--next-line); }
  .next-legacy-file-metrics > span:nth-child(2n) { border-right: 0; }
  .next-legacy-file-metrics > span:nth-child(-n+4) { border-bottom: 1px solid var(--next-line); }
  .next-legacy-file-metrics > span:nth-last-child(-n+2) { border-bottom: 0; }
  .next-legacy-file-source { grid-template-columns: 9px minmax(0, 1fr); }
  .next-legacy-file-source em { grid-column: 2; justify-self: start; }
  .next-legacy-root-list > div { grid-template-columns: 9px minmax(0, 1fr); }
  .next-legacy-root-list > div > span:nth-child(n+3) { grid-column: 2; }
  .next-legacy-file-errors p { grid-template-columns: 1fr; gap: 3px; }
  .next-storage-import-header h1 { font-size: 24px; }
  .next-storage-import-header > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .next-storage-import-header > div:last-child > .next-command { width: 100%; padding-inline: 9px; font-size: 9px; }
  .next-storage-import-header > div:last-child > .next-command span { display: inline; }
  .next-storage-import-kpis > div { grid-template-columns: 34px minmax(0, 1fr); padding-inline: 9px; }
  .next-storage-import-table tr { grid-template-columns: 1fr; }
  .next-storage-import-table td:last-child { grid-column: 1; }
  .next-storage-clarification-row { grid-template-columns: 1fr; padding-inline: 10px; }
  .next-storage-clarification-file, .next-storage-clarification-reason, .next-storage-clarification-row .next-command { grid-column: 1; }
}

.next-party-heading { padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-party-heading h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-party-heading p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-party-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-party-kpis > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 0 20px; border-right: 1px solid var(--next-line); }
.next-party-kpis > div:first-child { padding-left: 0; }
.next-party-kpis > div:last-child { border-right: 0; }
.next-party-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-party-kpis small { overflow: hidden; color: var(--next-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-party-kpis strong { margin-top: 2px; font-size: 18px; }
.next-party-modes { display: flex; align-items: flex-end; gap: 2px; margin-top: 16px; border-bottom: 1px solid var(--next-line); }
.next-party-modes button { display: grid; grid-template-columns: 18px minmax(0, auto) 22px; align-items: center; gap: 7px; min-height: 38px; margin-bottom: -1px; padding: 0 12px; color: #666c71; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.next-party-modes button:hover { color: var(--next-ink); background: #f7f8f8; }
.next-party-modes button.active { color: var(--next-red-dark); border-bottom-color: var(--next-red); background: #fff; }
.next-party-modes svg { width: 15px; height: 15px; }
.next-party-modes b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: #687076; border-radius: 3px; background: #eceeef; font-size: 8px; }
.next-party-workspace { display: grid; grid-template-columns: minmax(350px, .9fr) minmax(520px, 1.25fr); min-width: 0; min-height: 580px; border: 1px solid var(--next-line); border-top: 0; border-radius: 0 0 6px 6px; background: #fff; overflow: hidden; }
.next-party-register { min-width: 0; border-right: 1px solid var(--next-line); background: #fafbfb; }
.next-party-register > header { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(120px, .48fr) auto; align-items: center; gap: 8px; min-height: 58px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); background: #f3f5f6; }
.next-party-register > header label { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 5px; height: 34px; padding: 0 8px; border: 1px solid #ccd1d4; border-radius: 4px; background: #fff; }
.next-party-register > header label:focus-within { border-color: #ae7479; box-shadow: 0 0 0 2px rgba(216, 40, 49, .08); }
.next-party-register > header label svg { width: 14px; height: 14px; color: #70777c; }
.next-party-register > header input { min-width: 0; height: 30px; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 9px; }
.next-party-register > header select { min-width: 0; height: 34px; padding: 0 26px 0 8px; color: var(--next-ink); border: 1px solid #ccd1d4; border-radius: 4px; background: #fff; font: inherit; font-size: 8px; }
.next-party-register > header > span { color: var(--next-muted); font-size: 8px; white-space: nowrap; }
.next-party-list { max-height: min(690px, 69vh); overflow: auto; }
.next-party-list > button { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(80px, auto) 15px; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 8px 11px 8px calc(11px + min(var(--party-depth, 0), 5) * 12px); color: var(--next-ink); border: 0; border-bottom: 1px solid #e1e4e6; background: #fff; text-align: left; cursor: pointer; }
.next-party-list > button:hover, .next-party-list > button:focus-visible { background: #fff8f8; outline: 0; }
.next-party-list > button.inactive { color: #747a7f; background: #f7f8f8; }
.next-party-list > button > span:nth-child(2), .next-party-list > button > span:nth-child(3) { display: grid; min-width: 0; }
.next-party-list strong, .next-party-list small, .next-party-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-party-list strong { font-size: 9px; }
.next-party-list small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-party-list b { color: #656c72; font-size: 7px; font-weight: 700; text-align: right; }
.next-party-list em { justify-self: end; width: max-content; margin-top: 4px; padding: 2px 5px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-party-list em.active { color: #2e6545; background: #dfeedf; }
.next-party-list em.inactive { color: #6c7378; background: #e5e7e8; }
.next-party-list em.review { color: #6f5118; background: #fff0c7; }
.next-party-list em.draft { color: #52616b; background: #e9eef1; }
.next-party-list > button > svg { width: 14px; height: 14px; color: #90969a; }
.next-party-branch { display: grid; place-items: center; width: 28px; height: 28px; color: #745b5e; border: 1px solid #ded2d3; border-radius: 50%; background: #fff; }
.next-party-branch svg { width: 13px; height: 13px; }
.next-party-editor { min-width: 0; background: #fff; }
.next-party-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 73px; padding: 14px 17px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-party-editor > header > div { display: grid; min-width: 0; }
.next-party-editor > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-party-editor > header h2 { margin: 3px 0 2px; font-size: 15px; }
.next-party-editor > header small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-party-form { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.next-party-form-fields { min-width: 0; max-height: min(615px, 61vh); margin: 0; padding: 0; border: 0; overflow-y: auto; }
.next-party-form-fields:disabled { opacity: .78; }
.next-party-form .next-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-party-form-section { display: grid; gap: 2px; padding: 11px 17px 6px; border-top: 1px solid var(--next-line); background: #f7f8f8; }
.next-party-form-section > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-party-form-section > strong { font-size: 11px; }
.next-supplier-categories { display: grid; gap: 7px; min-width: 0; }
.next-supplier-categories > span { color: #4f565b; font-size: 8px; font-weight: 750; }
.next-supplier-categories > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 8px; padding: 8px; border: 1px solid #d7dbde; border-radius: 4px; background: #fafbfb; }
.next-supplier-categories label { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 5px; min-width: 0; color: #555c61; font-size: 8px; line-height: 1.3; }
.next-supplier-categories input { margin: 0; }
.next-supplier-workflow-evidence input { color: #596167; background: #f4f6f6; }
.next-supplier-evidence { border-top: 1px solid var(--next-line); background: #fff; }
.next-supplier-evidence > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; background: #f7f8f8; }
.next-supplier-evidence > header > div { display: grid; gap: 2px; min-width: 0; }
.next-supplier-evidence > header > div > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-supplier-evidence > header strong { font-size: 11px; }
.next-supplier-evidence > header small { color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-supplier-evidence-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fafbfb; }
.next-supplier-evidence-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; border-right: 1px solid #e1e4e6; }
.next-supplier-evidence-summary > div:last-child { border-right: 0; }
.next-supplier-evidence-summary span { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-evidence-summary strong { font-size: 13px; }
.next-supplier-evidence-summary .ok strong { color: #2e6545; }
.next-supplier-evidence-summary .warning strong { color: #916316; }
.next-supplier-evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px 17px; }
.next-supplier-evidence-list > article { min-width: 0; border: 1px solid #d7dcdf; border-radius: 4px; background: #fff; }
.next-supplier-evidence-list > article.active { border-color: #b77b80; box-shadow: inset 3px 0 0 var(--next-red); }
.next-supplier-evidence-list > article > button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 13px; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 8px 9px; color: var(--next-ink); border: 0; background: transparent; text-align: left; cursor: pointer; }
.next-supplier-evidence-list > article > button:hover { background: #fff8f8; }
.next-supplier-evidence-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #4f6675; border-radius: 4px; background: #edf3f6; }
.next-supplier-evidence-icon svg { width: 14px; height: 14px; }
.next-supplier-evidence-main, .next-supplier-evidence-state { display: grid; min-width: 0; }
.next-supplier-evidence-main strong, .next-supplier-evidence-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-evidence-main strong { font-size: 9px; }
.next-supplier-evidence-main small, .next-supplier-evidence-state small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-supplier-evidence-state { justify-items: end; }
.next-supplier-evidence-state em { padding: 2px 4px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-supplier-evidence-state em.active { color: #2e6545; background: #dfeedf; }
.next-supplier-evidence-state em.review { color: #6f5118; background: #fff0c7; }
.next-supplier-evidence-state em.inactive { color: #823338; background: #f7dfe1; }
.next-supplier-evidence-state em.draft { color: #52616b; background: #e9eef1; }
.next-supplier-evidence-list > article > button > svg { width: 13px; height: 13px; color: #90969a; }
.next-supplier-evidence-list article > footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 7px; min-height: 28px; padding: 6px 9px; border-top: 1px solid #eceeef; color: var(--next-muted); background: #fafbfb; font-size: 7px; }
.next-supplier-evidence-list article > footer :is(a, span) { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-evidence-list article > footer a:hover { color: var(--next-red-dark); }
.next-supplier-evidence-list article > footer svg { flex: none; width: 10px; height: 10px; }
.next-supplier-evidence-empty { display: grid; grid-column: 1 / -1; justify-items: center; gap: 5px; min-height: 92px; padding: 16px; color: var(--next-muted); text-align: center; }
.next-supplier-evidence-empty svg { width: 22px; height: 22px; }
.next-supplier-evidence-empty strong { color: var(--next-ink); font-size: 10px; }
.next-supplier-evidence-empty span { max-width: 460px; font-size: 8px; line-height: 1.45; }
.next-supplier-evidence-editor { border-top: 1px solid var(--next-line); background: #fff; }
.next-supplier-evidence-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 7px 17px; background: #f4f6f6; }
.next-supplier-evidence-editor > header > div { display: grid; min-width: 0; gap: 2px; }
.next-supplier-evidence-editor > header span { color: var(--next-muted); font-size: 8px; }
.next-supplier-evidence-editor > header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-evidence-editor > .next-message { margin: 9px 17px 0; }
.next-supplier-evidence-editor > fieldset { margin: 0; padding: 0; border: 0; }
.next-supplier-evidence-upload { display: grid; grid-template-columns: minmax(190px, auto) minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 17px; border-top: 1px solid #eceeef; background: #fafbfb; }
.next-supplier-evidence-upload label { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 31px; padding: 0 10px; color: #444c51; border: 1px solid #cbd1d4; border-radius: 4px; background: #fff; font-size: 8px; font-weight: 750; cursor: pointer; }
.next-supplier-evidence-upload label.disabled { cursor: not-allowed; opacity: .58; }
.next-supplier-evidence-upload label svg { width: 13px; height: 13px; }
.next-supplier-evidence-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.next-supplier-evidence-upload small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-evidence-legacy { display: flex; align-items: center; gap: 8px; padding: 10px 17px; border-top: 1px solid #e0d8bf; color: #6f5b2f; background: #fffbef; font-size: 8px; line-height: 1.4; }
.next-supplier-evidence-legacy svg { flex: none; width: 14px; height: 14px; }
.next-supplier-evidence-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 9px 17px; border-top: 1px solid var(--next-line); background: #f8f9f9; }
.next-supplier-evidence-editor > footer > span { max-width: 46%; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-supplier-evidence-editor > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.next-supplier-renewals { border-top: 1px solid var(--next-line); background: #fff; }
.next-supplier-renewals > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; background: #f7f8f8; }
.next-supplier-renewals > header > div { display: grid; gap: 2px; min-width: 0; }
.next-supplier-renewals > header > div > span { color: #6c4c17; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-supplier-renewals > header strong { font-size: 11px; }
.next-supplier-renewals > header small { color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-supplier-renewal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--next-line); background: #fafbfb; }
.next-supplier-renewal-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; border-right: 1px solid #e1e4e6; }
.next-supplier-renewal-summary > div:last-child { border-right: 0; }
.next-supplier-renewal-summary span { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-renewal-summary strong { font-size: 13px; }
.next-supplier-renewal-summary .warning strong { color: #916316; }
.next-supplier-renewal-summary .danger strong { color: #a22f39; }
.next-supplier-renewal-layout { display: grid; grid-template-columns: minmax(310px, .75fr) minmax(480px, 1.25fr); min-height: 130px; }
.next-supplier-renewal-list { min-width: 0; border-right: 1px solid var(--next-line); }
.next-supplier-renewal-list > button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 13px; align-items: center; gap: 8px; width: 100%; min-height: 58px; padding: 8px 12px; color: var(--next-ink); border: 0; border-bottom: 1px solid #eceeef; background: #fff; text-align: left; cursor: pointer; }
.next-supplier-renewal-list > button:hover { background: #fffaf2; }
.next-supplier-renewal-list > button.active { background: #fff8eb; box-shadow: inset 3px 0 0 #b07a21; }
.next-supplier-renewal-marker { display: grid; place-items: center; width: 28px; height: 28px; color: #6c5631; border-radius: 4px; background: #f4ead7; }
.next-supplier-renewal-marker svg, .next-supplier-renewal-list > button > svg { width: 13px; height: 13px; }
.next-supplier-renewal-list > button > span:not(.next-supplier-renewal-marker) { display: grid; min-width: 0; gap: 2px; }
.next-supplier-renewal-list > button strong, .next-supplier-renewal-list > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-renewal-list > button strong { font-size: 9px; }
.next-supplier-renewal-list > button small { color: var(--next-muted); font-size: 7px; }
.next-supplier-renewal-state { justify-items: end; }
.next-supplier-renewal-state em { padding: 2px 4px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-supplier-renewal-state em.active { color: #2e6545; background: #dfeedf; }
.next-supplier-renewal-state em.review { color: #6f5118; background: #fff0c7; }
.next-supplier-renewal-state em.inactive { color: #823338; background: #f7dfe1; }
.next-supplier-renewal-state em.draft { color: #52616b; background: #e9eef1; }
.next-supplier-renewal-empty { display: grid; justify-items: center; gap: 5px; min-height: 130px; padding: 22px 16px; color: var(--next-muted); text-align: center; }
.next-supplier-renewal-empty svg { width: 22px; height: 22px; }
.next-supplier-renewal-empty strong { color: var(--next-ink); font-size: 10px; }
.next-supplier-renewal-empty span { max-width: 340px; font-size: 8px; line-height: 1.45; }
.next-supplier-renewal-editor { min-width: 0; background: #fff; }
.next-supplier-renewal-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 7px 17px; background: #f4f6f6; }
.next-supplier-renewal-editor > header > div { display: grid; min-width: 0; gap: 2px; }
.next-supplier-renewal-editor > header span { color: var(--next-muted); font-size: 8px; }
.next-supplier-renewal-editor > header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-renewal-editor > .next-message { margin: 9px 17px 0; }
.next-supplier-renewal-editor > fieldset { margin: 0; padding: 0; border: 0; }
.next-supplier-renewal-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 9px 17px; border-top: 1px solid #eceeef; background: #fafbfb; }
.next-supplier-renewal-timeline > div { min-width: 0; padding: 0 9px; border-right: 1px solid #e1e4e6; }
.next-supplier-renewal-timeline > div:first-child { padding-left: 0; }
.next-supplier-renewal-timeline > div:last-child { padding-right: 0; border-right: 0; }
.next-supplier-renewal-timeline dt { color: var(--next-muted); font-size: 7px; }
.next-supplier-renewal-timeline dd { overflow: hidden; margin: 3px 0 0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-renewal-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 9px 17px; border-top: 1px solid var(--next-line); background: #f8f9f9; }
.next-supplier-renewal-editor > footer > span { max-width: 52%; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-supplier-renewal-editor > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.next-supplier-qualifications { border-top: 1px solid var(--next-line); background: #fff; }
.next-supplier-qualifications > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; background: #f7f8f8; }
.next-supplier-qualifications > header > div { display: grid; gap: 2px; min-width: 0; }
.next-supplier-qualifications > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-supplier-qualifications > header strong { font-size: 11px; }
.next-supplier-qualifications > header small { color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-supplier-qualifications > header > b { display: grid; place-items: center; min-width: 29px; height: 29px; color: #fff; border-radius: 4px; background: var(--next-red); font-size: 10px; }
.next-supplier-qualification-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px 17px; border-top: 1px solid var(--next-line); }
.next-supplier-qualification-list > article { min-width: 0; padding: 9px; border: 1px solid #d7dcdf; border-radius: 4px; background: #fff; }
.next-supplier-qualification-list > article.active { border-color: #b77b80; box-shadow: inset 3px 0 0 var(--next-red); }
.next-supplier-qualification-list article > header { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.next-supplier-qualification-list article > header > span { display: grid; min-width: 0; }
.next-supplier-qualification-list article strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-qualification-list article small { color: var(--next-muted); font-size: 7px; }
.next-supplier-qualification-list article em { flex: none; padding: 2px 4px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-supplier-qualification-list article em.active { color: #2e6545; background: #dfeedf; }
.next-supplier-qualification-list article em.review { color: #6f5118; background: #fff0c7; }
.next-supplier-qualification-list article em.inactive { color: #823338; background: #f7dfe1; }
.next-supplier-qualification-list article em.draft { color: #52616b; background: #e9eef1; }
.next-supplier-qualification-list dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 9px 0; }
.next-supplier-qualification-list dl > div { display: grid; min-width: 0; }
.next-supplier-qualification-list dt { color: var(--next-muted); font-size: 7px; }
.next-supplier-qualification-list dd { overflow: hidden; margin: 1px 0 0; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-qualification-list article > footer { display: flex; align-items: center; gap: 5px; min-width: 0; padding-top: 7px; color: var(--next-muted); border-top: 1px solid #eceeef; font-size: 7px; }
.next-supplier-qualification-list article > footer svg { width: 11px; height: 11px; }
.next-supplier-qualification-list article > footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-assessments { border-top: 1px solid var(--next-line); background: #fff; }
.next-supplier-assessments > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; background: #f7f8f8; }
.next-supplier-assessments > header > div { display: grid; gap: 2px; min-width: 0; }
.next-supplier-assessments > header > div > span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-supplier-assessments > header strong { font-size: 11px; }
.next-supplier-assessments > header small { color: var(--next-muted); font-size: 8px; }
.next-supplier-assessment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px 17px; border-top: 1px solid var(--next-line); }
.next-supplier-assessment-list > button { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; min-width: 0; min-height: 49px; padding: 7px 9px; color: var(--next-ink); border: 1px solid #d7dcdf; border-radius: 4px; background: #fff; text-align: left; cursor: pointer; }
.next-supplier-assessment-list > button:hover, .next-supplier-assessment-list > button.active { border-color: #b77b80; background: #fff8f8; }
.next-supplier-assessment-list > button > span { display: grid; min-width: 0; }
.next-supplier-assessment-list strong, .next-supplier-assessment-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-assessment-list strong { font-size: 9px; }
.next-supplier-assessment-list small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-supplier-assessment-list b { font-size: 12px; text-align: right; }
.next-supplier-assessment-list em { justify-self: end; margin-top: 2px; padding: 2px 4px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-supplier-assessment-list em.active { color: #2e6545; background: #dfeedf; }
.next-supplier-assessment-list em.review { color: #6f5118; background: #fff0c7; }
.next-supplier-assessment-list em.inactive { color: #823338; background: #f7dfe1; }
.next-supplier-assessment-list em.draft { color: #52616b; background: #e9eef1; }
.next-supplier-assessment-list svg { width: 13px; height: 13px; color: #90969a; }
.next-supplier-assessment-empty { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 7px; min-height: 46px; color: var(--next-muted); font-size: 8px; }
.next-supplier-assessment-empty svg { width: 15px; height: 15px; }
.next-supplier-assessment-editor { border-top: 1px solid var(--next-line); }
.next-supplier-assessment-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 7px 17px; background: #f4f6f6; }
.next-supplier-assessment-editor > header > div { display: grid; gap: 2px; }
.next-supplier-assessment-editor > header span { color: var(--next-muted); font-size: 8px; }
.next-supplier-assessment-editor > header strong { font-size: 10px; }
.next-supplier-assessment-editor > fieldset { margin: 0; padding: 0; border: 0; }
.next-supplier-score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 17px; border-top: 1px solid #eceeef; border-bottom: 1px solid #eceeef; background: #fafbfb; }
.next-supplier-score-grid > * { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 4px 7px; min-width: 0; padding: 7px; border: 1px solid #dce0e2; border-radius: 4px; background: #fff; }
.next-supplier-score-grid span { overflow: hidden; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.next-supplier-score-grid input { width: 48px; height: 28px; padding: 0 6px; border: 1px solid #cbd1d4; border-radius: 3px; font-size: 9px; }
.next-supplier-score-grid small { grid-column: 1 / -1; color: var(--next-muted); font-size: 7px; }
.next-supplier-score-grid strong { font-size: 15px; text-align: right; }
.next-supplier-assessment-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 51px; padding: 9px 17px; border-top: 1px solid var(--next-line); background: #f8f9f9; }
.next-supplier-assessment-editor > footer > span { max-width: 48%; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-supplier-assessment-editor > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.next-party-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 59px; padding: 10px 17px; border-top: 1px solid var(--next-line); background: #f8f9f9; }
.next-party-editor-footer > span { max-width: 48%; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-party-editor-footer > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.next-danger-command.confirm { color: #fff; border-color: #a42a31; background: #a42a31; }
.next-empty-editor { min-height: 260px; }

@media (max-width: 1120px) {
  .next-party-workspace { grid-template-columns: minmax(310px, .8fr) minmax(440px, 1.2fr); }
  .next-party-register > header { grid-template-columns: minmax(170px, 1fr) minmax(110px, .5fr); }
  .next-party-register > header > span { grid-column: 1 / -1; }
  .next-party-form .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-supplier-categories > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-supplier-evidence-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-supplier-evidence-summary > div:nth-child(2) { border-right: 0; }
  .next-supplier-evidence-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e1e4e6; }
  .next-supplier-renewal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-supplier-renewal-summary > div:nth-child(2) { border-right: 0; }
  .next-supplier-renewal-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e1e4e6; }
  .next-supplier-renewal-layout { grid-template-columns: 1fr; }
  .next-supplier-renewal-list { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-supplier-score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .next-party-workspace { grid-template-columns: 1fr; }
  .next-party-register { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-party-list { max-height: 360px; }
  .next-party-form-fields { max-height: none; }
}

@media (max-width: 760px) {
  .next-party-heading { align-items: flex-start; flex-direction: column; }
  .next-party-heading .next-command { justify-content: center; width: 100%; }
  .next-party-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-party-kpis > div { padding: 10px 12px; border-bottom: 1px solid var(--next-line); }
  .next-party-kpis > div:nth-child(2n) { border-right: 0; }
  .next-party-kpis > div:nth-last-child(-n+2) { border-bottom: 0; }
  .next-party-modes button { flex: 1; justify-content: center; }
  .next-party-modes { overflow-x: auto; }
  .next-party-modes button { min-width: 135px; }
  .next-party-register > header { grid-template-columns: minmax(0, 1fr) minmax(112px, .45fr); }
  .next-party-list > button { grid-template-columns: 28px minmax(0, 1fr) 15px; }
  .next-party-list > button > span:nth-child(3) { display: none; }
  .next-party-editor-footer { align-items: stretch; flex-direction: column; }
  .next-party-editor-footer > span { max-width: none; }
  .next-party-editor-footer > div > * { flex: 1; }
  .next-supplier-categories > div { grid-template-columns: 1fr; }
  .next-supplier-evidence-list { grid-template-columns: 1fr; }
  .next-supplier-evidence-editor > footer { align-items: stretch; flex-direction: column; }
  .next-supplier-evidence-editor > footer > span { max-width: none; }
  .next-supplier-renewal-editor > footer { align-items: stretch; flex-direction: column; }
  .next-supplier-renewal-editor > footer > span { max-width: none; }
  .next-supplier-renewal-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; }
  .next-supplier-renewal-timeline > div:nth-child(2) { border-right: 0; }
  .next-supplier-assessment-editor > footer { align-items: stretch; flex-direction: column; }
  .next-supplier-assessment-editor > footer > span { max-width: none; }
}

@media (max-width: 460px) {
  .next-party-heading h1 { font-size: 24px; }
  .next-party-kpis > div { grid-template-columns: 34px minmax(0, 1fr); padding-inline: 9px; }
  .next-party-modes button { grid-template-columns: 16px minmax(0, auto) 20px; padding-inline: 6px; }
  .next-party-register > header { grid-template-columns: 1fr; }
  .next-party-register > header > span { grid-column: 1; }
  .next-party-list > button { padding-left: calc(9px + min(var(--party-depth, 0), 3) * 8px); }
  .next-party-form .next-form-grid { grid-template-columns: 1fr; padding: 14px 12px 17px; }
  .next-party-editor-footer > div { display: grid; grid-template-columns: 1fr; }
  .next-party-editor-footer .next-command, .next-party-editor-footer .next-danger-command { width: 100%; }
  .next-supplier-qualification-list, .next-supplier-assessment-list, .next-supplier-score-grid { grid-template-columns: 1fr; padding-inline: 12px; }
  .next-supplier-evidence > header { align-items: stretch; flex-direction: column; padding-inline: 12px; }
  .next-supplier-evidence-list { padding-inline: 12px; }
  .next-supplier-evidence-list > article > button { grid-template-columns: 28px minmax(0, 1fr) 13px; }
  .next-supplier-evidence-state { display: none; }
  .next-supplier-evidence-list article > footer { grid-template-columns: 1fr; }
  .next-supplier-evidence-upload { grid-template-columns: 1fr; padding-inline: 12px; }
  .next-supplier-evidence-upload small { white-space: normal; }
  .next-supplier-evidence-editor > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-supplier-evidence-editor > footer button { width: 100%; }
  .next-supplier-renewals > header { align-items: stretch; flex-direction: column; padding-inline: 12px; }
  .next-supplier-renewal-list > button { grid-template-columns: 28px minmax(0, 1fr) 13px; }
  .next-supplier-renewal-state { display: none !important; }
  .next-supplier-renewal-editor > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-supplier-renewal-editor > footer button { width: 100%; }
  .next-supplier-renewal-timeline { grid-template-columns: 1fr; }
  .next-supplier-renewal-timeline > div { padding: 0 0 7px; border-right: 0; border-bottom: 1px solid #e1e4e6; }
  .next-supplier-renewal-timeline > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .next-supplier-qualifications > header { align-items: stretch; flex-direction: column; padding-inline: 12px; }
  .next-supplier-assessments > header { align-items: stretch; flex-direction: column; padding-inline: 12px; }
  .next-supplier-assessment-editor > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-supplier-assessment-editor > footer button { width: 100%; }
}

.next-simulation-header { margin-bottom: 18px; }
.next-workspace-context-banner { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 51px; margin: 14px 0; padding: 8px 12px; border: 1px solid #cbd3d9; border-radius: 5px; background: #f5f7f8; }
.next-workspace-context-banner > svg { width: 17px; height: 17px; color: var(--next-blue); }
.next-workspace-context-banner > span { display: grid; min-width: 0; gap: 2px; }
.next-workspace-context-banner strong { font-size: 10px; }
.next-workspace-context-banner small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-workspace-context-banner > a { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-decoration: none; }
.next-workspace-context-banner.simulation { border-color: #d5a8ab; background: #fff4f4; }
.next-workspace-context-banner.simulation > svg { color: var(--next-red-dark); }
.next-workspace-context-banner.historical { border-color: #d7c28e; background: #fff9ea; }
.next-workspace-context-banner.historical > svg { color: #8a6418; }
.next-viewer.read-only .next-section-workspace :is(input:disabled, select:disabled, textarea:disabled, button:disabled, .next-upload-command.disabled) { pointer-events: none; }
.next-viewer.read-only .next-section-workspace :is(input:disabled, select:disabled, textarea:disabled) { color: #596066; background: #f2f3f4; }
.next-simulation-workspace { display: grid; grid-template-columns: minmax(280px, 370px) minmax(0, 1fr); border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-simulation-create { border-right: 1px solid var(--next-line); background: #fafbfb; }
.next-simulation-create > header, .next-simulation-list > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 72px; padding: 15px 17px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-simulation-create > header > div, .next-simulation-list > header > div { display: grid; gap: 2px; }
.next-simulation-create > header span, .next-simulation-list > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-simulation-create h2, .next-simulation-list h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.next-simulation-create > header > svg { width: 19px; height: 19px; color: var(--next-blue); }
.next-simulation-list > header > small { align-self: center; color: var(--next-muted); font-size: 9px; }
.next-simulation-create .next-form-grid { grid-template-columns: 1fr 1fr; padding: 15px 17px 5px; }
.next-simulation-basis-note { display: flex; align-items: center; gap: 9px; margin: 12px 17px; padding: 10px; border: 1px solid #cad6df; border-radius: 4px; background: #eef3f7; }
.next-simulation-basis-note > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--next-blue); }
.next-simulation-basis-note > span { display: grid; gap: 2px; }
.next-simulation-basis-note strong { font-size: 9px; }
.next-simulation-basis-note small { color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-simulation-create > footer { display: flex; justify-content: flex-end; padding: 5px 17px 17px; }
.next-simulation-create > footer .next-command { border: 0; cursor: pointer; }
.next-simulation-rows { display: grid; }
.next-simulation-rows article { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(100px, 140px) auto; align-items: center; gap: 12px; min-height: 86px; padding: 12px 14px; border-bottom: 1px solid #eceef0; }
.next-simulation-rows article.active { background: #fff5f5; box-shadow: inset 3px 0 var(--next-red); }
.next-simulation-id { display: grid; place-items: center; min-height: 30px; padding: 0 6px; color: var(--next-blue); border-radius: 4px; background: #e9f0f5; font-size: 9px; font-weight: 850; }
.next-simulation-main, .next-simulation-state { display: grid; min-width: 0; gap: 3px; }
.next-simulation-main strong, .next-simulation-main small, .next-simulation-main em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-simulation-main strong { font-size: 11px; }
.next-simulation-main small { color: var(--next-muted); font-size: 9px; }
.next-simulation-main em { color: #6a7075; font-size: 8px; font-style: normal; }
.next-simulation-state > span { justify-self: start; padding: 4px 7px; border-radius: 3px; font-size: 8px; font-weight: 800; }
.next-simulation-state > span.draft { color: #7a561d; background: #f7eddc; }
.next-simulation-state > span.accepted { color: #286143; background: #e8f3ec; }
.next-simulation-state > span.discarded { color: #6b7075; background: #eceeef; }
.next-simulation-state small { color: var(--next-muted); font-size: 8px; }
.next-simulation-actions { display: flex; align-items: center; gap: 5px; }
.next-simulation-actions button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #5e6469; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-simulation-actions button:hover { color: var(--next-blue); border-color: #a8bbc9; }
.next-simulation-actions button.accept:hover { color: var(--next-green); border-color: #9bc0aa; }
.next-simulation-actions button.danger:hover { color: var(--next-red-dark); border-color: #d7a6aa; }
.next-simulation-actions button:disabled { cursor: wait; opacity: .5; }
.next-simulation-actions svg { width: 14px; height: 14px; }

@media (max-width: 1280px) {
  .next-topbar { grid-template-columns: minmax(156px, .65fr) minmax(420px, 2.35fr) auto; gap: 10px; }
  .next-temporal-context > label { grid-template-columns: 15px minmax(100px, auto); }
  .next-temporal-context > label:nth-child(2) { grid-template-columns: 15px minmax(128px, 170px); }
  .next-temporal-context > label > span { display: none; }
}

@media (max-width: 980px) {
  .next-topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .next-top-tools { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(190px, 1fr) auto; }
  .next-simulation-workspace { grid-template-columns: 1fr; }
  .next-simulation-create { border-right: 0; border-bottom: 1px solid var(--next-line); }
}

@media (max-width: 760px) {
  .next-top-tools { grid-template-columns: 1fr; }
  .next-global-search { grid-column: auto; grid-row: auto; }
  .next-temporal-context { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; }
  .next-temporal-context > label, .next-temporal-context > label:nth-child(2) { grid-template-columns: 15px minmax(0, 1fr); width: 100%; }
  .next-temporal-context input, .next-temporal-context select { width: 100%; }
  .next-global-search-results { top: 178px; }
  .next-workspace-context-banner { grid-template-columns: 28px minmax(0, 1fr); }
  .next-workspace-context-banner > a { grid-column: 2; }
  .next-simulation-rows article { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .next-simulation-state { grid-column: 2; }
  .next-simulation-actions { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 460px) {
  .next-simulation-create .next-form-grid { grid-template-columns: 1fr; }
  .next-simulation-rows article { grid-template-columns: 48px minmax(0, 1fr); gap: 9px; }
  .next-simulation-state { grid-column: 2; }
  .next-simulation-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; }
}

.next-reconnect-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  place-items: center;
  padding: 20px;
  background: rgb(23 28 32 / 48%);
  backdrop-filter: blur(2px);
}

.next-reconnect-modal:is(.components-reconnect-show, .components-reconnect-retrying, .components-reconnect-failed, .components-reconnect-rejected) {
  display: grid;
}

.next-reconnect-dialog {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(620px, 100%);
  padding: 18px;
  border: 1px solid #c9ced2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(17 24 29 / 24%);
}

.next-reconnect-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #8d262d;
  border-radius: 50%;
  background: #f9e9ea;
}

.next-reconnect-icon svg { width: 19px; height: 19px; }
.next-reconnect-copy { display: grid; min-width: 0; gap: 4px; }
.next-reconnect-copy strong { font-size: 14px; }
.next-reconnect-copy p { margin: 0; color: #656b70; font-size: 10px; line-height: 1.45; }
.next-reconnect-failed-copy, .next-reconnect-rejected-copy { display: none; }
.components-reconnect-failed .next-reconnect-connecting,
.components-reconnect-rejected .next-reconnect-connecting { display: none; }
.components-reconnect-failed .next-reconnect-failed-copy,
.components-reconnect-rejected .next-reconnect-rejected-copy { display: block; }
.next-reconnect-actions { display: flex; align-items: center; gap: 7px; }
.next-reconnect-actions button { min-height: 34px; cursor: pointer; }
.next-reconnect-actions button:disabled { cursor: wait; opacity: .55; }

@media (max-width: 620px) {
  .next-reconnect-dialog { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 15px; }
  .next-reconnect-icon { width: 36px; height: 36px; }
  .next-reconnect-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 400px) {
  .next-reconnect-modal { padding: 12px; }
  .next-reconnect-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .next-reconnect-actions button { justify-content: center; min-width: 0; }
}
/* GEFMA 444 certification evidence */
.next-gefma-header .next-system-actions { align-items: center; }
.next-gefma-message { margin-inline: 0; }
.next-gefma-kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.next-gefma-kpis > div.critical strong { color: #8e242b; }
.next-gefma-context { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-gefma-context > div { display: grid; min-width: 0; min-height: 60px; align-content: center; padding: 9px 12px; border-right: 1px solid var(--next-line); }
.next-gefma-context > div:last-child { border-right: 0; }
.next-gefma-context small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-context strong, .next-gefma-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-context strong { margin-top: 3px; font-size: 9px; }
.next-gefma-context span { margin-top: 2px; color: var(--next-muted); font-size: 8px; }
.next-gefma-readiness { margin-top: 14px; border-top: 1px solid var(--next-line-strong); border-bottom: 1px solid var(--next-line-strong); background: #f7f8f8; }
.next-gefma-readiness > header { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 70px; padding: 10px 12px; }
.next-gefma-readiness > header > span { display: grid; place-items: center; width: 32px; height: 32px; color: #5b3033; border: 1px solid #d8b8ba; border-radius: 50%; background: #fff; }
.next-gefma-readiness > header svg { width: 16px; height: 16px; }
.next-gefma-readiness > header > div { display: grid; min-width: 0; }
.next-gefma-readiness > header small { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-readiness > header h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-gefma-readiness > header p { margin: 3px 0 0; color: var(--next-muted); font-size: 8px; }
.next-gefma-readiness > header > strong { padding: 5px 8px; color: #7f252c; border: 1px solid #d8b8ba; border-radius: 4px; background: #fff; font-size: 8px; }
.next-gefma-readiness > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--next-line); }
.next-gefma-readiness > div > span { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: start; gap: 6px; min-width: 0; padding: 8px 12px; color: #5f3337; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); font-size: 8px; line-height: 1.4; }
.next-gefma-readiness > div > span:nth-child(even) { border-right: 0; }
.next-gefma-readiness > div > span:nth-last-child(-n+2) { border-bottom: 0; }
.next-gefma-readiness > div > span svg { width: 11px; height: 11px; margin-top: 1px; }
.next-gefma-readiness.ready { border-color: #a8c7b3; background: #f3f8f5; }
.next-gefma-readiness.ready > header > span { color: #2f6745; border-color: #a8c7b3; }
.next-gefma-readiness.ready > header small, .next-gefma-readiness.ready > header > strong { color: #2f6745; }
.next-gefma-readiness.ready > header > strong { border-color: #a8c7b3; }
.next-gefma-readiness.ready > div > span { grid-column: 1 / -1; color: #2f6745; border-right: 0; border-bottom: 0; }
.next-gefma-baselines { margin-top: 14px; border-top: 1px solid var(--next-line-strong); border-bottom: 1px solid var(--next-line-strong); background: #fff; }
.next-gefma-baselines > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 61px; padding: 9px 12px; }
.next-gefma-baselines > header > div { display: grid; min-width: 0; }
.next-gefma-baselines > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-baselines > header h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-gefma-baselines > header p { margin: 2px 0 0; color: var(--next-muted); font-size: 8px; }
.next-gefma-baseline-editor, .next-gefma-baseline-decision { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(260px, 1fr) auto; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--next-line); background: #f7f8f8; }
.next-gefma-baseline-editor > div, .next-gefma-baseline-decision > div { display: flex; gap: 6px; }
.next-gefma-baseline-empty { display: grid; justify-items: center; padding: 24px 14px; color: var(--next-muted); border-top: 1px solid var(--next-line); text-align: center; }
.next-gefma-baseline-empty svg { width: 24px; height: 24px; }
.next-gefma-baseline-empty strong { margin-top: 7px; color: var(--next-text); font-size: 10px; }
.next-gefma-baseline-empty span { margin-top: 3px; font-size: 8px; }
.next-gefma-baseline-list { display: grid; gap: 8px; padding: 0 12px 12px; border-top: 1px solid var(--next-line); }
.next-gefma-baseline-list article { margin-top: 10px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-gefma-baseline-list article.prepared { border-color: #d9c29d; }
.next-gefma-baseline-list article.approved { border-color: #a8c7b3; }
.next-gefma-baseline-list article.withdrawn, .next-gefma-baseline-list article.drift { border-color: #d8b8ba; }
.next-gefma-baseline-state { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-gefma-baseline-state > span { display: grid; place-items: center; width: 30px; height: 30px; color: #5b6470; border: 1px solid #d4d9dd; border-radius: 50%; background: #fff; }
.next-gefma-baseline-state svg { width: 15px; height: 15px; }
.next-gefma-baseline-state > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; align-items: center; gap: 2px 10px; }
.next-gefma-baseline-state small { grid-column: 1; color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-baseline-state strong { grid-column: 1; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-baseline-state em { grid-column: 2; grid-row: 1 / 3; padding: 4px 6px; color: #6c4c18; border-radius: 3px; background: #f8efe1; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-gefma-baseline-list article.approved .next-gefma-baseline-state em { color: #2f6745; background: #e7f2eb; }
.next-gefma-baseline-list article.withdrawn .next-gefma-baseline-state em { color: #8e242b; background: #fae9eb; }
.next-gefma-baseline-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-gefma-baseline-facts > span { display: grid; min-width: 0; min-height: 56px; align-content: center; padding: 7px 10px; border-right: 1px solid var(--next-line); }
.next-gefma-baseline-facts > span:last-child { border-right: 0; }
.next-gefma-baseline-facts small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-baseline-facts strong, .next-gefma-baseline-facts em { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-baseline-facts strong { font-size: 8px; }
.next-gefma-baseline-facts em { color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-gefma-baseline-list article > p, .next-gefma-baseline-list blockquote { margin: 0; padding: 8px 10px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; line-height: 1.45; }
.next-gefma-baseline-list blockquote { color: #303943; background: #f7f8f8; }
.next-gefma-baseline-drift { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #ead1d3; background: #fff8f7; }
.next-gefma-baseline-drift span { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 5px; padding: 7px 10px; color: #7f252c; font-size: 8px; }
.next-gefma-baseline-drift svg { width: 11px; height: 11px; }
.next-gefma-baseline-list article > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 7px 10px; border-top: 1px solid var(--next-line); }
.next-gefma-baseline-list article > footer > span { display: flex; align-items: center; gap: 5px; color: var(--next-muted); font-size: 7px; }
.next-gefma-baseline-list article > footer svg { width: 12px; height: 12px; }
.next-gefma-baseline-list article > footer > div { display: flex; gap: 6px; }
.next-gefma-baseline-decision { grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--next-line); }
.next-gefma-handovers { margin-top: 14px; border-top: 1px solid var(--next-line-strong); border-bottom: 1px solid var(--next-line-strong); background: #fff; }
.next-gefma-handovers > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 61px; padding: 9px 12px; }
.next-gefma-handovers > header > div { display: grid; min-width: 0; }
.next-gefma-handovers > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-handovers > header h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-gefma-handovers > header p { margin: 2px 0 0; color: var(--next-muted); font-size: 8px; }
.next-gefma-handovers > header > strong { flex: 0 0 auto; color: var(--next-muted); font-size: 8px; }
.next-gefma-handover-editor, .next-gefma-handover-action { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)) auto; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--next-line); background: #f7f8f8; }
.next-gefma-handover-editor .next-field.wide, .next-gefma-handover-action .next-field.wide { grid-column: span 2; }
.next-gefma-handover-editor > div, .next-gefma-handover-action > div { display: flex; justify-content: flex-end; gap: 6px; }
.next-gefma-handover-list { display: grid; gap: 8px; padding: 0 12px 12px; border-top: 1px solid var(--next-line); }
.next-gefma-handover-list article { margin-top: 10px; overflow: hidden; border: 1px solid #d9c29d; border-radius: 6px; background: #fff; }
.next-gefma-handover-list article.submitted { border-color: #a9bfd2; }
.next-gefma-handover-list article.acknowledged { border-color: #a8c7b3; }
.next-gefma-handover-list article.result-recorded { border-color: #779b84; }
.next-gefma-handover-list article.withdrawn { border-color: #d8b8ba; }
.next-gefma-handover-list article > header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-gefma-handover-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #536270; border: 1px solid #d4d9dd; border-radius: 50%; background: #fff; }
.next-gefma-handover-icon svg { width: 15px; height: 15px; }
.next-gefma-handover-list article > header > div { display: grid; min-width: 0; }
.next-gefma-handover-list article > header small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-handover-list article > header strong { overflow: hidden; margin-top: 1px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-handover-list article > header em { margin-top: 2px; color: #755018; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-gefma-handover-list article.submitted > header em { color: #3f607b; }
.next-gefma-handover-list article.acknowledged > header em, .next-gefma-handover-list article.result-recorded > header em { color: #315f43; }
.next-gefma-handover-list article.withdrawn > header em { color: #8e242b; }
.next-gefma-integrity { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 3px; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-integrity.valid { color: #315f43; background: #e7f2eb; }
.next-gefma-integrity.invalid { color: #8e242b; background: #fae9eb; }
.next-gefma-integrity svg { width: 11px; height: 11px; }
.next-gefma-handover-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-gefma-handover-facts > span { display: grid; min-width: 0; min-height: 58px; align-content: center; padding: 7px 10px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-gefma-handover-facts > span:nth-child(3n) { border-right: 0; }
.next-gefma-handover-facts > span:nth-last-child(-n+3) { border-bottom: 0; }
.next-gefma-handover-facts small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-handover-facts strong, .next-gefma-handover-facts em { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-handover-facts strong { font-size: 8px; }
.next-gefma-handover-facts em { color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-gefma-handover-list article > p, .next-gefma-handover-list blockquote { margin: 0; padding: 8px 10px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; line-height: 1.45; }
.next-gefma-handover-list blockquote { color: #303943; background: #f7f8f8; }
.next-gefma-handover-list blockquote strong { margin-right: 5px; color: var(--next-text); }
.next-gefma-handover-list article > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 7px 10px; border-top: 1px solid var(--next-line); }
.next-gefma-handover-list article > footer > span { display: flex; align-items: center; min-width: 0; gap: 5px; color: var(--next-muted); font-size: 7px; }
.next-gefma-handover-list article > footer svg { width: 12px; height: 12px; }
.next-gefma-handover-list article > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.next-gefma-findings { margin-top: 14px; border-top: 1px solid var(--next-line-strong); border-bottom: 1px solid var(--next-line-strong); background: #fff; }
.next-gefma-findings > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 61px; padding: 9px 12px; }
.next-gefma-findings > header > div { display: grid; min-width: 0; }
.next-gefma-findings > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-findings > header h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-gefma-findings > header p { margin: 2px 0 0; color: var(--next-muted); font-size: 8px; }
.next-gefma-findings > header > strong { flex: 0 0 auto; color: var(--next-muted); font-size: 8px; }
.next-gefma-finding-editor, .next-gefma-finding-action { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--next-line); background: #f7f8f8; }
.next-gefma-finding-editor .next-field.wide, .next-gefma-finding-action .next-field.wide { grid-column: span 2; }
.next-gefma-finding-editor .next-field.full, .next-gefma-finding-action .next-field.full { grid-column: 1 / -1; }
.next-gefma-finding-editor > div, .next-gefma-finding-action > div { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 6px; }
.next-gefma-finding-list { display: grid; gap: 8px; padding: 0 12px 12px; border-top: 1px solid var(--next-line); }
.next-gefma-finding-list > article { margin-top: 10px; overflow: hidden; border: 1px solid #d3b4b7; border-radius: 6px; background: #fff; }
.next-gefma-finding-list > article.response-prepared { border-color: #d7c08f; }
.next-gefma-finding-list > article.response-submitted { border-color: #9db5c8; }
.next-gefma-finding-list > article.accepted { border-color: #8eb39a; }
.next-gefma-finding-list > article.rejected, .next-gefma-finding-list > article.critical { border-color: #c77c81; }
.next-gefma-finding-list > article > header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-gefma-finding-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #7a3137; border: 1px solid #dfc3c5; border-radius: 50%; background: #fff; }
.next-gefma-finding-icon svg { width: 15px; height: 15px; }
.next-gefma-finding-list > article > header > div { display: grid; min-width: 0; }
.next-gefma-finding-list > article > header small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-finding-list > article > header strong { overflow: hidden; margin-top: 1px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-finding-list > article > header em { margin-top: 2px; color: #8e242b; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-gefma-finding-list > article.accepted > header em { color: #315f43; }
.next-gefma-finding-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-gefma-finding-facts > span { display: grid; min-width: 0; min-height: 58px; align-content: center; padding: 7px 10px; border-right: 1px solid var(--next-line); }
.next-gefma-finding-facts > span:last-child { border-right: 0; }
.next-gefma-finding-facts small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-finding-facts strong, .next-gefma-finding-facts em { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-finding-facts strong { font-size: 8px; }
.next-gefma-finding-facts em { color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-gefma-finding-list blockquote { margin: 0; padding: 8px 10px; color: #303943; border-top: 1px solid var(--next-line); background: #f7f8f8; font-size: 8px; line-height: 1.45; }
.next-gefma-finding-list blockquote strong { margin-right: 5px; color: var(--next-text); }
.next-gefma-finding-list > article > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 7px 10px; border-top: 1px solid var(--next-line); }
.next-gefma-finding-list > article > footer > span { display: flex; align-items: center; min-width: 0; gap: 5px; color: var(--next-muted); font-size: 7px; }
.next-gefma-finding-list > article > footer svg { width: 12px; height: 12px; }
.next-gefma-finding-list > article > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.next-gefma-cycles { margin-top: 14px; border-top: 1px solid var(--next-line-strong); border-bottom: 1px solid var(--next-line-strong); background: #fff; }
.next-gefma-cycles > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 61px; padding: 9px 12px; }
.next-gefma-cycles > header > div { display: grid; min-width: 0; }
.next-gefma-cycles > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-cycles > header h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-gefma-cycles > header p { margin: 2px 0 0; color: var(--next-muted); font-size: 8px; }
.next-gefma-cycles > header > strong { flex: 0 0 auto; color: var(--next-muted); font-size: 8px; }
#gefma-cycle-editor { scroll-margin-top: 76px; }
.next-gefma-cycle-editor, .next-gefma-cycle-action { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--next-line); background: #f7f8f8; }
.next-gefma-cycle-editor .next-field.wide, .next-gefma-cycle-action .next-field.wide { grid-column: span 2; }
.next-gefma-cycle-action .next-field.full { grid-column: 1 / -1; }
.next-gefma-cycle-editor > div, .next-gefma-cycle-action > div { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 6px; }
.next-gefma-cycle-list { display: grid; gap: 8px; padding: 0 12px 12px; border-top: 1px solid var(--next-line); }
.next-gefma-cycle-list > article { margin-top: 10px; overflow: hidden; border: 1px solid #9ebda9; border-radius: 6px; background: #fff; }
.next-gefma-cycle-list > article.conditions-open, .next-gefma-cycle-list > article.overdue, .next-gefma-cycle-list > article.renewal-due { border-color: #d2ad70; }
.next-gefma-cycle-list > article.expired, .next-gefma-cycle-list > article.integrity-error { border-color: #c77c81; }
.next-gefma-cycle-list > article.superseded { border-color: #bbc2c8; }
.next-gefma-cycle-list > article > header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border-bottom: 1px solid var(--next-line); background: #fafafa; }
.next-gefma-cycle-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #315f43; border: 1px solid #b9d0c1; border-radius: 50%; background: #fff; }
.next-gefma-cycle-list > article.conditions-open .next-gefma-cycle-icon, .next-gefma-cycle-list > article.overdue .next-gefma-cycle-icon, .next-gefma-cycle-list > article.renewal-due .next-gefma-cycle-icon { color: #755018; border-color: #dbc79f; }
.next-gefma-cycle-list > article.expired .next-gefma-cycle-icon, .next-gefma-cycle-list > article.integrity-error .next-gefma-cycle-icon { color: #8e242b; border-color: #dfc3c5; }
.next-gefma-cycle-icon svg { width: 15px; height: 15px; }
.next-gefma-cycle-list > article > header > div { display: grid; min-width: 0; }
.next-gefma-cycle-list > article > header small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-cycle-list > article > header strong { overflow: hidden; margin-top: 1px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-cycle-list > article > header em { margin-top: 2px; color: #315f43; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-gefma-cycle-list > article.conditions-open > header em, .next-gefma-cycle-list > article.overdue > header em, .next-gefma-cycle-list > article.renewal-due > header em { color: #755018; }
.next-gefma-cycle-list > article.expired > header em, .next-gefma-cycle-list > article.integrity-error > header em { color: #8e242b; }
.next-gefma-cycle-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-gefma-cycle-facts > span { display: grid; min-width: 0; min-height: 58px; align-content: center; padding: 7px 10px; border-right: 1px solid var(--next-line); }
.next-gefma-cycle-facts > span:last-child { border-right: 0; }
.next-gefma-cycle-facts small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-cycle-facts strong, .next-gefma-cycle-facts em { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-cycle-facts strong { font-size: 8px; }
.next-gefma-cycle-facts em { color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-gefma-cycle-list > article > blockquote { margin: 0; padding: 8px 10px; color: #303943; border-top: 1px solid var(--next-line); background: #f7f8f8; font-size: 8px; line-height: 1.45; }
.next-gefma-cycle-alert { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 7px; padding: 8px 10px; color: #755018; border-top: 1px solid #e4d8c5; background: #fffaf2; }
.next-gefma-cycle-alert svg { width: 14px; height: 14px; }
.next-gefma-cycle-alert span { display: grid; }
.next-gefma-cycle-alert strong { font-size: 8px; }
.next-gefma-cycle-alert small { margin-top: 2px; font-size: 7px; }
.next-gefma-checkpoint-list { display: grid; gap: 5px; padding: 8px 10px; border-top: 1px solid var(--next-line); }
.next-gefma-checkpoint-list article { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-gefma-checkpoint-list article.overdue { border-color: #d8b8ba; background: #fff8f7; }
.next-gefma-checkpoint-list article > svg { width: 14px; height: 14px; color: #536270; }
.next-gefma-checkpoint-list article.overdue > svg { color: #8e242b; }
.next-gefma-checkpoint-list article > span { display: grid; min-width: 0; }
.next-gefma-checkpoint-list strong { font-size: 8px; }
.next-gefma-checkpoint-list small { overflow: hidden; margin-top: 2px; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-checkpoint-list em { color: var(--next-muted); font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-gefma-renewal { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 8px; padding: 9px 10px; color: #304c62; border-top: 1px solid #cbd9e3; background: #f4f8fa; }
.next-gefma-renewal > svg { width: 15px; height: 15px; }
.next-gefma-renewal > span { display: grid; min-width: 0; }
.next-gefma-renewal strong { font-size: 8px; }
.next-gefma-renewal small { overflow: hidden; margin-top: 2px; color: #5d6c78; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-cycle-list > article > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 7px 10px; border-top: 1px solid var(--next-line); }
.next-gefma-cycle-list > article > footer > span { display: flex; align-items: center; gap: 5px; color: var(--next-muted); font-size: 7px; }
.next-gefma-cycle-list > article > footer svg { width: 12px; height: 12px; }
.next-gefma-cycle-list > article > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.next-gefma-response-history { display: grid; gap: 5px; padding: 8px 10px; border-top: 1px solid var(--next-line); }
.next-gefma-response-history article { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-gefma-response-history article > svg { width: 14px; height: 14px; color: #536270; }
.next-gefma-response-history article > span { display: grid; min-width: 0; }
.next-gefma-response-history strong { font-size: 8px; }
.next-gefma-response-history small { overflow: hidden; margin-top: 2px; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-response-history code { color: var(--next-muted); font-size: 7px; }
.next-gefma-editor, .next-gefma-import { margin-top: 14px; border: 1px solid var(--next-line-strong); border-radius: 6px; background: #fff; overflow: hidden; }
#gefma-settings-editor, #gefma-import-editor, #gefma-criterion-editor { scroll-margin-top: 76px; }
.next-gefma-editor > header, .next-gefma-import > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 14px; color: #fff; background: #343a40; }
.next-gefma-editor > header > div, .next-gefma-import > header > div { display: grid; min-width: 0; }
.next-gefma-editor > header span, .next-gefma-import > header span { color: #d8dde1; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-editor > header h2, .next-gefma-import > header h2 { overflow: hidden; margin: 2px 0 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.next-gefma-editor > header button, .next-gefma-import > header button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #e8eaec; border: 1px solid #606970; border-radius: 4px; background: transparent; cursor: pointer; }
.next-gefma-editor > header button svg, .next-gefma-import > header button svg { width: 13px; height: 13px; }
.next-gefma-editor .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 15px 16px; }
.next-gefma-traceability { border-top: 1px solid var(--next-line); background: #f8faf9; }
.next-gefma-traceability > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 16px; border-bottom: 1px solid var(--next-line); }
.next-gefma-traceability > header > div { display: grid; min-width: 0; }
.next-gefma-traceability > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-traceability > header strong { margin-top: 2px; font-size: 9px; }
.next-gefma-traceability > header em { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 8px; font-size: 7px; font-style: normal; font-weight: 800; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; text-transform: uppercase; }
.next-gefma-traceability > header em.complete { color: #315f43; border-color: #b8d0c0; background: #f2f8f4; }
.next-gefma-traceability > header em.incomplete { color: #8e242b; border-color: #e0b9bd; background: #fff5f5; }
.next-gefma-traceability > header em svg { width: 12px; height: 12px; }
.next-gefma-traceability > .next-form-grid { background: #fff; }
.next-gefma-traceability > a { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 12px; color: #315f43; font-size: 8px; font-weight: 700; text-decoration: none; }
.next-gefma-traceability > a:hover { text-decoration: underline; }
.next-gefma-traceability > a svg { width: 13px; height: 13px; }
.next-gefma-test-runs { border-top: 1px solid var(--next-line); background: #f8faf9; }
.next-gefma-test-runs > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; border-bottom: 1px solid var(--next-line); }
.next-gefma-test-runs > header > div { display: grid; min-width: 0; }
.next-gefma-test-runs > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-test-runs > header strong { margin-top: 2px; font-size: 9px; }
.next-gefma-test-runs > header em { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 8px; font-size: 7px; font-style: normal; font-weight: 800; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; text-transform: uppercase; }
.next-gefma-test-runs > header em.passed { color: #315f43; border-color: #b8d0c0; background: #f2f8f4; }
.next-gefma-test-runs > header em.failed, .next-gefma-test-runs > header em.blocked { color: #8e242b; border-color: #e0b9bd; background: #fff5f5; }
.next-gefma-test-runs > header em svg { width: 12px; height: 12px; }
.next-gefma-test-run-editor { border-bottom: 1px solid var(--next-line); background: #fff; }
.next-gefma-test-run-editor .next-form-grid { padding-block: 12px; }
.next-gefma-test-run-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 12px; }
.next-gefma-test-run-editor > footer > span { display: flex; align-items: center; gap: 6px; color: var(--next-muted); font-size: 8px; }
.next-gefma-test-run-editor > footer svg { width: 13px; height: 13px; }
.next-gefma-test-run-editor > p { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 16px; color: #755018; border-top: 1px solid #e4d8c5; background: #fffaf2; font-size: 8px; }
.next-gefma-test-run-editor > p svg { width: 13px; height: 13px; }
.next-gefma-release-evidence { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(220px, 1.25fr) auto; align-items: end; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--next-line); background: #f6f8f7; }
.next-gefma-release-evidence > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.next-gefma-release-evidence > div > svg { flex: 0 0 auto; width: 16px; height: 16px; color: #315f43; }
.next-gefma-release-evidence > div > span { display: grid; min-width: 0; }
.next-gefma-release-evidence > div strong { font-size: 11px; }
.next-gefma-release-evidence > div small { margin-top: 2px; color: var(--next-muted); font-size: 10px; line-height: 1.35; }
.next-gefma-release-evidence > label { display: grid; gap: 4px; min-width: 0; color: var(--next-muted); font-size: 10px; font-weight: 700; }
.next-gefma-release-evidence select { width: 100%; min-height: 32px; padding: 5px 8px; color: var(--next-ink); border: 1px solid var(--next-line-strong); border-radius: 4px; background: #fff; font: inherit; font-size: 11px; }
.next-gefma-release-evidence > .next-secondary-command { min-height: 32px; }
.next-gefma-release-empty { grid-column: 2 / -1; color: var(--next-muted); font-size: 10px; line-height: 1.45; }
.next-gefma-release-empty code { color: var(--next-ink); font-size: inherit; }
.next-gefma-release-selection { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; color: #315f43; font-size: 10px; overflow-wrap: anywhere; }
.next-gefma-release-selection svg { flex: 0 0 auto; width: 12px; height: 12px; }
.next-gefma-test-run-history { display: grid; background: #fff; }
.next-gefma-test-run-history article { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(90px, auto); align-items: center; gap: 8px; min-height: 54px; padding: 8px 16px; border-bottom: 1px solid var(--next-line); }
.next-gefma-test-run-history article:last-child { border-bottom: 0; }
.next-gefma-test-run-history article.historic { opacity: .68; }
.next-gefma-test-run-history article.current { box-shadow: inset 3px 0 #47715a; }
.next-gefma-test-run-history article > svg { width: 14px; height: 14px; }
.next-gefma-test-run-history article.passed > svg { color: #315f43; }
.next-gefma-test-run-history article.failed > svg, .next-gefma-test-run-history article.blocked > svg { color: #8e242b; }
.next-gefma-test-run-history span { display: grid; min-width: 0; }
.next-gefma-test-run-history strong, .next-gefma-test-run-history small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-test-run-history strong { font-size: 8px; }
.next-gefma-test-run-history small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-gefma-test-run-history code { color: #415262; font-size: 7px; }
.next-gefma-evidence { border-top: 1px solid var(--next-line); background: #f8faf9; }
.next-gefma-evidence > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; }
.next-gefma-evidence > header > div { display: grid; min-width: 0; }
.next-gefma-evidence > header > div span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-evidence > header > div strong { margin-top: 2px; font-size: 9px; }
.next-gefma-evidence .next-upload-command { min-height: 31px; }
.next-gefma-evidence-empty { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 8px 16px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #fff; font-size: 8px; }
.next-gefma-evidence-empty svg { flex: 0 0 auto; width: 14px; height: 14px; }
.next-gefma-evidence-files { display: grid; border-top: 1px solid var(--next-line); background: #fff; }
.next-gefma-evidence-files > a { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(90px, auto) 18px; align-items: center; gap: 8px; min-height: 49px; padding: 7px 16px; color: var(--next-ink); border-bottom: 1px solid var(--next-line); text-decoration: none; }
.next-gefma-evidence-files > a:last-child { border-bottom: 0; }
.next-gefma-evidence-files > a:hover { background: #f5f7f6; }
.next-gefma-evidence-files > a > svg { width: 14px; height: 14px; color: #315f43; }
.next-gefma-evidence-files > a > span { display: grid; min-width: 0; }
.next-gefma-evidence-files strong, .next-gefma-evidence-files small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-evidence-files strong { font-size: 8px; }
.next-gefma-evidence-files small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-gefma-evidence-files code { overflow: hidden; color: #415262; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-evidence > p { display: flex; align-items: center; gap: 7px; margin: 0; padding: 8px 16px; color: #755018; border-top: 1px solid #e4d8c5; background: #fffaf2; font-size: 8px; }
.next-gefma-evidence > p svg { flex: 0 0 auto; width: 13px; height: 13px; }
.next-gefma-workflow-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--next-line); background: #f8faf9; }
.next-gefma-workflow-note > span { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 7px; min-height: 52px; align-content: center; padding: 8px 16px; border-right: 1px solid var(--next-line); }
.next-gefma-workflow-note > span:last-child { border-right: 0; }
.next-gefma-workflow-note svg { grid-row: 1 / 3; align-self: center; width: 15px; height: 15px; color: #315f43; }
.next-gefma-workflow-note strong { font-size: 8px; }
.next-gefma-workflow-note small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-gefma-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 9px 15px; border-top: 1px solid var(--next-line); background: #fafafa; }
.next-gefma-editor > footer > span { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 6px; color: var(--next-muted); font-size: 8px; }
.next-gefma-editor > footer > span svg { width: 14px; height: 14px; color: #315f43; }
.next-gefma-editor > footer > div { display: flex; gap: 7px; }
.next-gefma-editor .next-command { border: 0; cursor: pointer; }
.next-checkbox-field { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; min-height: 35px; margin-top: 17px; padding: 7px 9px; border: 1px solid var(--next-line); border-radius: 4px; background: #fafafa; }
.next-checkbox-field input { accent-color: var(--next-red-dark); }
.next-checkbox-field > span { display: grid !important; min-height: 0 !important; }
.next-checkbox-field strong { font-size: 9px; }
.next-checkbox-field small { font-size: 7px; }
.next-gefma-import-body { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.7fr); }
.next-gefma-import-source { display: grid; align-content: start; gap: 12px; padding: 14px; border-right: 1px solid var(--next-line); background: #fafafa; }
.next-gefma-import-source .next-exchange-drop { min-height: 94px; margin: 0; }
.next-gefma-replace { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 7px; padding: 9px; border: 1px solid var(--next-line); border-radius: 5px; background: #fff; cursor: pointer; }
.next-gefma-replace input { margin-top: 2px; accent-color: var(--next-red-dark); }
.next-gefma-replace span { display: grid; }
.next-gefma-replace strong { font-size: 8px; }
.next-gefma-replace small { margin-top: 3px; color: var(--next-muted); font-size: 7px; line-height: 1.4; }
.next-gefma-import-preview { min-width: 0; }
.next-gefma-import-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-gefma-import-summary > span { display: grid; min-height: 48px; align-content: center; padding: 7px 11px; border-right: 1px solid var(--next-line); }
.next-gefma-import-summary > span:last-child { border-right: 0; }
.next-gefma-import-summary small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-gefma-import-summary strong { margin-top: 2px; font-size: 14px; }
.next-gefma-import-summary .critical strong { color: #8e242b; }
.next-gefma-import-rows { max-height: 290px; overflow-y: auto; }
.next-gefma-import-rows > div { display: grid; grid-template-columns: minmax(150px, .8fr) 80px minmax(180px, 1.2fr); align-items: center; gap: 10px; min-height: 47px; padding: 7px 11px; border-bottom: 1px solid var(--next-line); }
.next-gefma-import-rows > div.invalid { background: #fff6f6; }
.next-gefma-import-rows > div.removed { background: #fff8f0; }
.next-gefma-import-rows span { display: grid; min-width: 0; }
.next-gefma-import-rows strong, .next-gefma-import-rows small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-import-rows strong { font-size: 8px; }
.next-gefma-import-rows small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-gefma-import-rows em { color: #315f43; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-gefma-import-rows .invalid em { color: #8e242b; }
.next-gefma-import-rows .removed em { color: #8e242b; }
.next-gefma-import-preview > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 9px 11px; border-top: 1px solid var(--next-line); background: #fafafa; }
.next-gefma-import-preview > footer > span { color: var(--next-muted); font-size: 8px; }
.next-gefma-import-preview > footer .next-command { min-height: 32px; border: 0; cursor: pointer; }
.next-gefma-catalogs { margin-top: 14px; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-gefma-catalogs > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 51px; padding: 8px 2px; }
.next-gefma-catalogs > header > div { display: grid; }
.next-gefma-catalogs > header span, .next-gefma-register > header > div:first-child span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-catalogs h2, .next-gefma-register h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0; }
.next-gefma-catalogs > header small { color: var(--next-muted); font-size: 7px; }
.next-gefma-catalogs > div { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-left: 1px solid var(--next-line); }
.next-gefma-catalogs button { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; min-width: 0; min-height: 43px; padding: 7px 8px 10px; color: var(--next-ink); border: 0; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fff; cursor: pointer; overflow: hidden; }
.next-gefma-catalogs button:hover, .next-gefma-catalogs button.active { background: #f4f6f7; }
.next-gefma-catalogs button.active { color: var(--next-red-dark); box-shadow: inset 0 0 0 1px #c28e92; }
.next-gefma-catalogs button.overdue strong { color: #8e242b; }
.next-gefma-catalogs button.missing { color: #8e242b; background: #fff8f7; }
.next-gefma-catalogs button.missing i { background: #d7a5a8; }
.next-gefma-catalogs button strong { font-size: 9px; }
.next-gefma-catalogs button span { color: var(--next-muted); font-size: 7px; }
.next-gefma-catalogs button i { position: absolute; right: 7px; bottom: 5px; left: 7px; height: 2px; background: linear-gradient(90deg, #47715a var(--coverage), #e4e7e9 var(--coverage)); }
.next-gefma-register { margin-top: 14px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-gefma-register > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 65px; padding: 10px 13px; border-bottom: 1px solid var(--next-line); }
.next-gefma-register > header > div:first-child { display: grid; flex: 0 0 auto; }
.next-gefma-filters { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.next-gefma-filters > label { display: grid; grid-template-columns: 28px minmax(100px, 1fr); align-items: center; width: min(280px, 24vw); height: 34px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-gefma-filters > label svg { justify-self: center; width: 13px; height: 13px; color: var(--next-muted); }
.next-gefma-filters input, .next-gefma-filters select { min-width: 0; height: 34px; color: var(--next-ink); border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 8px; }
.next-gefma-filters input { height: 32px; padding: 0 7px 0 0; border: 0; outline: none; }
.next-gefma-filters select { max-width: 150px; padding: 0 22px 0 7px; }
.next-gefma-filters .next-command { min-height: 34px; border: 0; cursor: pointer; }
.next-gefma-criterion-editor { margin: 0; border: 0; border-bottom: 1px solid var(--next-line-strong); border-radius: 0; }
.next-gefma-table-head, .next-gefma-table article { display: grid; grid-template-columns: 118px minmax(220px, 1.15fr) minmax(150px, .65fr) minmax(190px, 1fr) 66px; align-items: center; gap: 10px; }
.next-gefma-table-head { min-height: 32px; padding: 5px 10px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #fafafa; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-gefma-table article { min-height: 69px; padding: 9px 10px; border-bottom: 1px solid var(--next-line); }
.next-gefma-table article:last-child { border-bottom: 0; }
.next-gefma-table article.overdue { box-shadow: inset 3px 0 #aa343c; }
.next-gefma-table article > span { display: grid; min-width: 0; }
.next-gefma-table article > span > strong, .next-gefma-table article > span > small, .next-gefma-table article > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-gefma-table article > span > strong { font-size: 8px; }
.next-gefma-table article > span > small, .next-gefma-table article > span > span { margin-top: 3px; color: var(--next-muted); font-size: 7px; }
.next-gefma-status { grid-template-columns: 22px minmax(0, 1fr) !important; align-items: center; gap: 5px; }
.next-gefma-status svg { width: 14px; height: 14px; }
.next-gefma-status em { overflow: hidden; font-size: 7px; font-style: normal; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.next-gefma-table article.verified .next-gefma-status { color: #315f43; }
.next-gefma-table article.evidence-submitted .next-gefma-status { color: #3f607b; }
.next-gefma-table article.in-progress .next-gefma-status { color: #755018; }
.next-gefma-table article.not-applicable .next-gefma-status { color: #687078; }
.next-gefma-title > small { margin: 0 !important; color: var(--next-red-dark) !important; font-weight: 800; text-transform: uppercase; }
.next-gefma-title > strong { margin-top: 3px; font-size: 9px !important; }
.next-gefma-trace-line { display: flex !important; align-items: center; gap: 4px; }
.next-gefma-trace-line svg { flex: 0 0 auto; width: 11px; height: 11px; }
.next-gefma-trace-line.complete { color: #315f43 !important; }
.next-gefma-trace-line.incomplete { color: #8e242b !important; }
.next-gefma-test-line { display: flex !important; align-items: center; gap: 4px; }
.next-gefma-test-line svg { flex: 0 0 auto; width: 11px; height: 11px; }
.next-gefma-test-line.passed { color: #315f43 !important; }
.next-gefma-test-line.failed, .next-gefma-test-line.blocked, .next-gefma-test-line.missing { color: #8e242b !important; }
.next-gefma-row-evidence small { display: flex; align-items: center; gap: 4px; }
.next-gefma-row-evidence small svg { flex: 0 0 auto; width: 11px; height: 11px; }
.next-gefma-row-actions { display: flex; justify-content: flex-end; gap: 5px; min-width: 0; }
.next-gefma-row-actions button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--next-muted); border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-gefma-row-actions button:hover { color: var(--next-red-dark); border-color: #c8a1a4; }
.next-gefma-row-actions button:disabled { opacity: .55; cursor: wait; }
.next-gefma-row-actions button svg { width: 12px; height: 12px; }
.next-gefma-empty { display: grid; justify-items: center; padding: 35px 15px; color: var(--next-muted); text-align: center; }
.next-gefma-empty svg { width: 26px; height: 26px; }
.next-gefma-empty strong { margin-top: 9px; color: var(--next-ink); font-size: 10px; }
.next-gefma-empty span { margin-top: 3px; font-size: 8px; }
.next-gefma-disclaimer { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 8px; margin-top: 14px; padding: 10px 2px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; line-height: 1.45; }
.next-gefma-disclaimer svg { width: 15px; height: 15px; color: #3f5366; }

@media (max-width: 1120px) {
  .next-gefma-header { display: grid; align-items: start; }
  .next-gefma-header .next-system-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .next-gefma-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-gefma-kpis > div { border-bottom: 1px solid var(--next-line); }
  .next-gefma-kpis > div:nth-child(4n) { border-right: 0; }
  .next-gefma-kpis > div:nth-last-child(-n+4) { border-bottom: 0; }
  .next-gefma-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-gefma-context > div:nth-child(2) { border-right: 0; }
  .next-gefma-context > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-gefma-baseline-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-gefma-baseline-facts > span:nth-child(2) { border-right: 0; }
  .next-gefma-baseline-facts > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-gefma-handover-editor, .next-gefma-handover-action { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .next-gefma-handover-editor > div, .next-gefma-handover-action > div { grid-column: 1 / -1; }
  .next-gefma-finding-editor, .next-gefma-finding-action { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .next-gefma-cycle-editor, .next-gefma-cycle-action { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .next-gefma-editor .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-gefma-catalogs > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .next-gefma-register > header { align-items: flex-start; flex-direction: column; }
  .next-gefma-filters { width: 100%; justify-content: flex-start; }
  .next-gefma-filters > label { width: min(320px, 100%); }
  .next-gefma-table-head, .next-gefma-table article { grid-template-columns: 106px minmax(180px, 1fr) minmax(130px, .6fr) minmax(160px, .8fr) 66px; }
}

@media (max-width: 760px) {
  #gefma-settings-editor, #gefma-import-editor, #gefma-criterion-editor, #gefma-handover-editor, #gefma-finding-editor, #gefma-cycle-editor { scroll-margin-top: 152px; }
  .next-gefma-header { display: grid; }
  .next-gefma-header .next-system-actions { width: 100%; }
  .next-gefma-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-gefma-kpis > div, .next-gefma-kpis > div:nth-child(3) { min-height: 57px; padding: 0 8px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
  .next-gefma-kpis > div:nth-child(even) { border-right: 0; }
  .next-gefma-kpis > div:last-child { border-bottom: 0; }
  .next-gefma-kpis > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .next-gefma-context { grid-template-columns: 1fr; }
  .next-gefma-context > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-context > div:last-child { border-bottom: 0; }
  .next-gefma-readiness > div { grid-template-columns: 1fr; }
  .next-gefma-readiness > div > span, .next-gefma-readiness > div > span:nth-child(even), .next-gefma-readiness > div > span:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-readiness > div > span:last-child { border-bottom: 0; }
  .next-gefma-baselines > header { align-items: flex-start; flex-direction: column; }
  .next-gefma-baseline-editor, .next-gefma-baseline-decision { grid-template-columns: 1fr; align-items: stretch; }
  .next-gefma-baseline-editor .next-field.wide { grid-column: auto; }
  .next-gefma-baseline-editor > div, .next-gefma-baseline-decision > div { justify-content: flex-end; }
  .next-gefma-baseline-drift { grid-template-columns: 1fr; }
  .next-gefma-baseline-list article > footer { align-items: flex-start; flex-direction: column; }
  .next-gefma-baseline-list article > footer > div { width: 100%; justify-content: flex-end; }
  .next-gefma-handovers > header { align-items: flex-start; flex-direction: column; }
  .next-gefma-handover-editor, .next-gefma-handover-action { grid-template-columns: 1fr; align-items: stretch; }
  .next-gefma-handover-editor .next-field.wide, .next-gefma-handover-action .next-field.wide { grid-column: auto; }
  .next-gefma-handover-editor > div, .next-gefma-handover-action > div { grid-column: auto; }
  .next-gefma-handover-list article > footer { align-items: flex-start; flex-direction: column; }
  .next-gefma-handover-list article > footer > div { width: 100%; justify-content: flex-end; }
  .next-gefma-findings > header { align-items: flex-start; flex-direction: column; }
  .next-gefma-finding-editor, .next-gefma-finding-action { grid-template-columns: 1fr; align-items: stretch; }
  .next-gefma-finding-editor .next-field.wide, .next-gefma-finding-action .next-field.wide, .next-gefma-finding-editor .next-field.full, .next-gefma-finding-action .next-field.full { grid-column: auto; }
  .next-gefma-finding-editor > div, .next-gefma-finding-action > div { grid-column: auto; }
  .next-gefma-finding-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-gefma-finding-facts > span:nth-child(2) { border-right: 0; }
  .next-gefma-finding-facts > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-gefma-finding-list > article > footer { align-items: flex-start; flex-direction: column; }
  .next-gefma-finding-list > article > footer > div { width: 100%; justify-content: flex-end; }
  .next-gefma-cycles > header { align-items: flex-start; flex-direction: column; }
  .next-gefma-cycle-editor, .next-gefma-cycle-action { grid-template-columns: 1fr; align-items: stretch; }
  .next-gefma-cycle-editor .next-field.wide, .next-gefma-cycle-action .next-field.wide, .next-gefma-cycle-action .next-field.full { grid-column: auto; }
  .next-gefma-cycle-editor > div, .next-gefma-cycle-action > div { grid-column: auto; }
  .next-gefma-cycle-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-gefma-cycle-facts > span:nth-child(2) { border-right: 0; }
  .next-gefma-cycle-facts > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-gefma-cycle-list > article > footer { align-items: flex-start; flex-direction: column; }
  .next-gefma-cycle-list > article > footer > div { width: 100%; justify-content: flex-end; }
  .next-gefma-editor .next-form-grid { grid-template-columns: 1fr; }
  .next-gefma-traceability > header { align-items: stretch; flex-direction: column; }
  .next-gefma-traceability > header em { align-self: flex-start; }
  .next-gefma-test-runs > header { align-items: stretch; flex-direction: column; }
  .next-gefma-test-runs > header em { align-self: flex-start; }
  .next-gefma-test-run-editor > footer { align-items: stretch; flex-direction: column; }
  .next-gefma-test-run-editor > footer .next-command { justify-content: center; width: 100%; }
  .next-gefma-release-evidence { grid-template-columns: 1fr; align-items: stretch; }
  .next-gefma-release-evidence > .next-secondary-command { justify-content: center; width: 100%; }
  .next-gefma-release-empty, .next-gefma-release-selection { grid-column: 1; }
  .next-gefma-test-run-history article { grid-template-columns: 22px minmax(0, 1fr); }
  .next-gefma-test-run-history code { grid-column: 2; }
  .next-gefma-evidence > header { align-items: stretch; flex-direction: column; }
  .next-gefma-evidence .next-upload-command { justify-content: center; width: 100%; }
  .next-gefma-evidence-files > a { grid-template-columns: 22px minmax(0, 1fr) 18px; }
  .next-gefma-evidence-files code { grid-column: 2; }
  .next-gefma-editor .next-field.wide { grid-column: auto; }
  .next-gefma-workflow-note { grid-template-columns: 1fr; }
  .next-gefma-workflow-note > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-workflow-note > span:last-child { border-bottom: 0; }
  .next-gefma-editor > footer { align-items: stretch; flex-direction: column; }
  .next-gefma-editor > footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-gefma-editor > footer .next-command, .next-gefma-editor > footer .next-secondary-command, .next-gefma-editor > footer .next-danger-command { justify-content: center; width: 100%; }
  .next-gefma-import-body { grid-template-columns: 1fr; }
  .next-gefma-import-source { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-import-rows > div { grid-template-columns: 1fr auto; }
  .next-gefma-import-rows > div > span:last-child { grid-column: 1 / -1; }
  .next-gefma-import-preview > footer { align-items: stretch; flex-direction: column; }
  .next-gefma-import-preview > footer .next-command { justify-content: center; width: 100%; }
  .next-gefma-catalogs > header { align-items: flex-start; flex-direction: column; }
  .next-gefma-catalogs > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-gefma-filters { display: grid; grid-template-columns: 1fr 1fr auto; }
  .next-gefma-filters > label { grid-column: 1 / -1; width: 100%; }
  .next-gefma-filters select { width: 100%; max-width: none; }
  .next-gefma-table-head { display: none; }
  .next-gefma-table article { grid-template-columns: 1fr 66px; gap: 8px; padding: 11px; }
  .next-gefma-table article > span { grid-column: 1; padding-top: 7px; border-top: 1px dashed var(--next-line); }
  .next-gefma-table article > span:first-child, .next-gefma-table article > span:nth-child(2) { padding-top: 0; border-top: 0; }
  .next-gefma-row-actions { grid-column: 2; grid-row: 1; }
  .next-gefma-status { grid-row: 1; }
  .next-gefma-title { grid-row: 2; }
  .next-gefma-table article > span:nth-child(3) { grid-row: 3; }
  .next-gefma-table article > span:nth-child(4) { grid-row: 4; }
}

@media (max-width: 460px) {
  .next-gefma-kpis { grid-template-columns: 1fr; }
  .next-gefma-kpis > div, .next-gefma-kpis > div:nth-child(3) { padding: 0; border-right: 0; }
  .next-gefma-readiness > header { grid-template-columns: 30px minmax(0, 1fr); }
  .next-gefma-readiness > header > span { width: 28px; height: 28px; }
  .next-gefma-readiness > header > strong { grid-column: 2; justify-self: start; }
  .next-gefma-baseline-list { padding-right: 0; padding-left: 0; }
  .next-gefma-baseline-list article { border-right: 0; border-left: 0; border-radius: 0; }
  .next-gefma-baseline-facts { grid-template-columns: 1fr; }
  .next-gefma-baseline-facts > span, .next-gefma-baseline-facts > span:nth-child(2), .next-gefma-baseline-facts > span:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-baseline-facts > span:last-child { border-bottom: 0; }
  .next-gefma-baseline-state > div { grid-template-columns: 1fr; }
  .next-gefma-baseline-state em { grid-column: 1; grid-row: auto; justify-self: start; }
  .next-gefma-handover-list { padding-right: 0; padding-left: 0; }
  .next-gefma-handover-list article { border-right: 0; border-left: 0; border-radius: 0; }
  .next-gefma-handover-list article > header { grid-template-columns: 32px minmax(0, 1fr); }
  .next-gefma-integrity { grid-column: 2; justify-self: start; }
  .next-gefma-handover-facts { grid-template-columns: 1fr; }
  .next-gefma-handover-facts > span, .next-gefma-handover-facts > span:nth-child(3n), .next-gefma-handover-facts > span:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-handover-facts > span:last-child { border-bottom: 0; }
  .next-gefma-finding-list { padding-right: 0; padding-left: 0; }
  .next-gefma-finding-list > article { border-right: 0; border-left: 0; border-radius: 0; }
  .next-gefma-finding-list > article > header { grid-template-columns: 32px minmax(0, 1fr); }
  .next-gefma-finding-facts { grid-template-columns: 1fr; }
  .next-gefma-finding-facts > span, .next-gefma-finding-facts > span:nth-child(2), .next-gefma-finding-facts > span:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-finding-facts > span:last-child { border-bottom: 0; }
  .next-gefma-response-history article { grid-template-columns: 22px minmax(0, 1fr); }
  .next-gefma-response-history code { grid-column: 2; }
  .next-gefma-cycle-list { padding-right: 0; padding-left: 0; }
  .next-gefma-cycle-list > article { border-right: 0; border-left: 0; border-radius: 0; }
  .next-gefma-cycle-list > article > header { grid-template-columns: 32px minmax(0, 1fr); }
  .next-gefma-cycle-facts { grid-template-columns: 1fr; }
  .next-gefma-cycle-facts > span, .next-gefma-cycle-facts > span:nth-child(2), .next-gefma-cycle-facts > span:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-gefma-cycle-facts > span:last-child { border-bottom: 0; }
  .next-gefma-checkpoint-list article { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .next-gefma-checkpoint-list article > button { grid-column: 3; }
  .next-gefma-renewal { grid-template-columns: 24px minmax(0, 1fr); }
  .next-gefma-renewal > span:last-child { grid-column: 2; }
  .next-gefma-catalogs > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-gefma-filters { grid-template-columns: 1fr 1fr; }
  .next-gefma-filters .next-command { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .next-gefma-editor > footer > div { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .next-cad-editor-layout { grid-template-columns: 1fr; min-height: 0; }
  .next-cad-editor-canvas { grid-template-rows: minmax(360px, 1fr) auto; min-height: 360px; }
  .next-cad-editor-canvas svg { min-height: 360px; }
  .next-cad-inspector { max-height: none; border-top: 1px solid var(--next-line); border-left: 0; }
  .next-cad-tool-context { display: none; }
  .next-cad-toolstrip > label { margin-left: 5px; }
  .next-cad-contextbar { align-items: stretch; flex-direction: column; }
  .next-cad-contextbar label { min-width: 0; width: 100%; }
  .next-cad-layer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-cad-element-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 240px; }
}

@media (max-width: 520px) {
  .next-cad-editor-header { align-items: flex-start; flex-direction: column; }
  .next-cad-view-actions { width: 100%; overflow-x: auto; }
  .next-cad-editor-canvas { grid-template-rows: minmax(310px, 1fr) auto; min-height: 310px; }
  .next-cad-editor-canvas svg { min-height: 310px; }
  .next-cad-layer-list, .next-cad-element-list { grid-template-columns: 1fr; }
  .next-cad-primary-actions > * { flex: 1 1 auto; justify-content: center; }
}

.next-location-plan-workspace { min-width: 0; margin: 0 0 14px; border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fff; }
.next-location-plan-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; padding: 10px 12px; border-bottom: 1px solid var(--next-line); background: #f8f9f9; }
.next-location-plan-header > div:first-child { display: grid; min-width: 0; gap: 2px; }
.next-location-plan-header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-location-plan-header h3 { margin: 0; overflow: hidden; font-size: 13px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-header p { margin: 0; overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.next-location-plan-actions button, .next-location-plan-actions a { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; color: #56616a; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-location-plan-actions button:disabled { opacity: .45; cursor: default; }
.next-location-plan-actions button:not(:disabled):hover, .next-location-plan-actions a:hover { color: var(--next-red-dark); border-color: #cba5a8; background: #fff7f7; }
.next-location-plan-actions svg { width: 14px; height: 14px; }
.next-location-plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; width: 100%; height: clamp(450px, 62vh, 560px); min-width: 0; }
.next-location-plan-canvas { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
.next-location-plan-canvas svg { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; cursor: grab; touch-action: none; }
.next-location-plan-canvas svg:active { cursor: grabbing; }
.next-location-plan-background { fill: #fbfcfc; }
.next-location-plan-canvas .next-cad-line, .next-location-plan-canvas .next-cad-shape { vector-effect: non-scaling-stroke; stroke-width: 1; }
.next-location-plan-canvas .next-cad-text { font-family: Arial, sans-serif; font-size: 2px; letter-spacing: 0; }
.next-location-plan-canvas > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 7px 11px; color: var(--next-muted); border-top: 1px solid var(--next-line); font-size: 8px; }
.next-location-plan-canvas > footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-document-preview { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: clamp(450px, 62vh, 640px); min-height: 0; background: #f4f5f6; }
.next-location-plan-document-preview > img { width: 100%; height: 100%; min-height: 0; padding: 14px; object-fit: contain; }
.next-location-plan-document-preview > iframe { width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.next-location-plan-document-preview > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 7px 11px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #fff; font-size: 8px; }
.next-location-plan-inspector { min-width: 0; min-height: 0; overflow-y: auto; border-left: 1px solid var(--next-line); background: #f8f9f9; }
.next-location-plan-inspector > section { border-bottom: 1px solid var(--next-line); }
.next-location-plan-inspector > section > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px 10px; border-bottom: 1px solid var(--next-line); }
.next-location-plan-inspector > section > header strong { font-size: 9px; }
.next-location-plan-inspector > section > header span { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-inspector dl { margin: 0; padding: 5px 10px 8px; }
.next-location-plan-inspector dl > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 7px; padding: 4px 0; border-bottom: 1px dashed #dfe3e5; }
.next-location-plan-inspector dl > div:last-child { border-bottom: 0; }
.next-location-plan-inspector dt { color: var(--next-muted); font-size: 7px; }
.next-location-plan-inspector dd { margin: 0; overflow: hidden; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-layers { display: grid; max-height: 145px; overflow-y: auto; padding: 6px 9px; }
.next-location-plan-layers label { display: grid; grid-template-columns: 17px 10px minmax(0, 1fr); align-items: center; gap: 5px; min-height: 25px; font-size: 7px; cursor: pointer; }
.next-location-plan-layers input { accent-color: var(--next-red-dark); }
.next-layer-swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--layer-color); }
.next-location-plan-links > div { display: grid; max-height: 188px; overflow-y: auto; }
.next-location-plan-links a { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; align-items: center; gap: 6px; min-height: 43px; padding: 6px 9px; color: var(--next-ink); border-bottom: 1px solid var(--next-line); text-decoration: none; }
.next-location-plan-links a:hover, .next-location-plan-links a.current { background: #fff; }
.next-location-plan-links a.current { box-shadow: inset 3px 0 var(--next-red-dark); }
.next-location-plan-links a > svg { width: 13px; height: 13px; color: var(--next-muted); }
.next-location-plan-links a > span { display: grid; min-width: 0; }
.next-location-plan-links a strong, .next-location-plan-links a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-links a strong { font-size: 8px; }
.next-location-plan-links a small { margin-top: 2px; color: var(--next-muted); font-size: 7px; }
.next-location-plan-empty { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 150px; padding: 20px; color: var(--next-muted); }
.next-location-plan-empty > svg { width: 28px; height: 28px; }
.next-location-plan-empty > span { display: grid; }
.next-location-plan-empty strong { color: var(--next-ink); font-size: 10px; }
.next-location-plan-empty small { margin-top: 3px; font-size: 8px; }
.next-location-plan-actions .active { color: #fff; border-color: var(--next-red-dark); background: var(--next-red-dark); }
.next-location-plan-manager { border-bottom: 1px solid var(--next-line); background: #fff; }
.next-location-plan-manager > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--next-line); }
.next-location-plan-manager > header > div { display: grid; gap: 2px; }
.next-location-plan-manager > header > div span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-location-plan-manager > header > div strong { font-size: 10px; }
.next-location-plan-manager-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); min-width: 0; }
.next-location-plan-manager-layout > nav { min-width: 0; max-height: 590px; overflow-y: auto; border-right: 1px solid var(--next-line); background: #f8f9f9; }
.next-location-plan-manager-layout > nav > button { display: grid; grid-template-columns: 24px minmax(0, 1fr) 14px; align-items: center; gap: 7px; width: 100%; min-height: 50px; padding: 7px 9px; color: var(--next-ink); border: 0; border-bottom: 1px solid var(--next-line); background: transparent; text-align: left; cursor: pointer; }
.next-location-plan-manager-layout > nav > button:hover, .next-location-plan-manager-layout > nav > button.active { background: #fff; }
.next-location-plan-manager-layout > nav > button.active { box-shadow: inset 3px 0 var(--next-red-dark); }
.next-location-plan-manager-layout > nav > button > svg { width: 14px; height: 14px; color: var(--next-muted); }
.next-location-plan-manager-layout > nav > button > span { display: grid; min-width: 0; gap: 2px; }
.next-location-plan-manager-layout > nav > button strong, .next-location-plan-manager-layout > nav > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-manager-layout > nav > button strong { font-size: 8px; }
.next-location-plan-manager-layout > nav > button small { color: var(--next-muted); font-size: 7px; }
.next-location-plan-manager-layout > nav > div { display: grid; place-items: center; gap: 7px; min-height: 130px; padding: 16px; color: var(--next-muted); font-size: 8px; text-align: center; }
.next-location-plan-manager-layout > nav > div svg { width: 24px; height: 24px; }
.next-location-plan-editor { min-width: 0; }
.next-location-plan-editor > fieldset { margin: 0; padding: 12px; border: 0; border-bottom: 1px solid var(--next-line); }
.next-location-plan-assignment, .next-location-plan-versions { border-bottom: 1px solid var(--next-line); }
.next-location-plan-assignment > header, .next-location-plan-versions > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 47px; padding: 7px 11px; background: #f8f9f9; }
.next-location-plan-assignment > header > div, .next-location-plan-versions > header > div { display: grid; gap: 2px; }
.next-location-plan-assignment > header strong, .next-location-plan-versions > header strong { font-size: 9px; }
.next-location-plan-assignment > header span, .next-location-plan-versions > header span { color: var(--next-muted); font-size: 7px; }
.next-location-plan-assignment > header > label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; width: min(270px, 48%); height: 31px; padding: 0 7px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-location-plan-assignment > header > label svg { width: 12px; height: 12px; color: var(--next-muted); }
.next-location-plan-assignment > header input { min-width: 0; padding: 0; border: 0; outline: 0; font-size: 8px; }
.next-location-plan-assignment > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 220px; overflow-y: auto; }
.next-location-plan-assignment > div > label { display: grid; grid-template-columns: 18px minmax(0, 1fr) 15px; align-items: center; gap: 6px; min-height: 43px; padding: 6px 10px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); cursor: pointer; }
.next-location-plan-assignment > div > label:nth-child(2n) { border-right: 0; }
.next-location-plan-assignment > div > label.current { background: #f3f7f5; }
.next-location-plan-assignment > div > label input { accent-color: var(--next-red-dark); }
.next-location-plan-assignment > div > label > span { display: grid; min-width: 0; gap: 2px; }
.next-location-plan-assignment > div > label strong, .next-location-plan-assignment > div > label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-assignment > div > label strong { font-size: 8px; }
.next-location-plan-assignment > div > label small { color: var(--next-muted); font-size: 7px; }
.next-location-plan-assignment > div > label svg { width: 12px; height: 12px; color: #3d7357; }
.next-location-plan-versions > div { display: grid; max-height: 250px; overflow-y: auto; }
.next-location-plan-versions article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 7px; min-height: 49px; padding: 6px 10px; border-top: 1px solid var(--next-line); }
.next-location-plan-versions article > a, .next-location-plan-versions article > div button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; color: #56616a; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-location-plan-versions article > a svg, .next-location-plan-versions article > div button svg { width: 12px; height: 12px; }
.next-location-plan-versions article > span { display: grid; min-width: 0; gap: 2px; }
.next-location-plan-versions article > span strong, .next-location-plan-versions article > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-location-plan-versions article > span strong { font-size: 8px; }
.next-location-plan-versions article > span small { color: var(--next-muted); font-size: 7px; }
.next-location-plan-versions article > b { min-width: 68px; padding: 4px 6px; color: #56616a; border: 1px solid #cdd3d6; border-radius: 4px; background: #f6f7f7; font-size: 7px; text-align: center; }
.next-location-plan-versions article > b[data-status="Freigegeben"] { color: #276144; border-color: #a6c8b5; background: #edf7f1; }
.next-location-plan-versions article > b[data-status="Zur Prüfung"] { color: #79580f; border-color: #d6c18a; background: #fff9e8; }
.next-location-plan-versions article > b[data-status="Zurückgewiesen"] { color: #8b3038; border-color: #dfb0b4; background: #fff1f2; }
.next-location-plan-versions article > b[data-status="Archiviert"] { color: #5d516b; border-color: #c9bfd3; background: #f6f2f8; }
.next-location-plan-versions article > div { display: flex; gap: 4px; }
.next-location-plan-first-file { position: relative; display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 62px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); cursor: pointer; }
.next-location-plan-first-file > svg { width: 21px; height: 21px; color: var(--next-red-dark); }
.next-location-plan-first-file > span { display: grid; gap: 2px; }
.next-location-plan-first-file strong { font-size: 9px; }
.next-location-plan-first-file small { color: var(--next-muted); font-size: 8px; }
.next-location-plan-first-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.next-location-plan-editor > .next-inline-message { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--next-line); font-size: 8px; }
.next-location-plan-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 9px 12px; background: #f8f9f9; }
.next-location-plan-editor > footer > span { max-width: 58%; color: var(--next-muted); font-size: 8px; line-height: 1.4; }

@media (max-width: 860px) {
  .next-location-plan-manager-layout { grid-template-columns: 175px minmax(0, 1fr); }
  .next-location-plan-assignment > div { grid-template-columns: 1fr; }
  .next-location-plan-assignment > div > label { border-right: 0; }
  .next-location-plan-layout { grid-template-columns: 1fr; height: auto; }
  .next-location-plan-canvas { grid-template-rows: 340px auto; }
  .next-location-plan-inspector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; border-top: 1px solid var(--next-line); border-left: 0; }
  .next-location-plan-links { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .next-location-plan-manager > header { align-items: stretch; flex-direction: column; }
  .next-location-plan-manager-layout { grid-template-columns: 1fr; }
  .next-location-plan-manager-layout > nav { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-location-plan-manager-layout > nav > button { flex: 0 0 210px; border-right: 1px solid var(--next-line); }
  .next-location-plan-manager-layout > nav > div { min-width: 100%; min-height: 90px; }
  .next-location-plan-assignment > header, .next-location-plan-versions > header { align-items: stretch; flex-direction: column; }
  .next-location-plan-assignment > header > label { width: 100%; }
  .next-location-plan-versions article { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .next-location-plan-versions article > div { grid-column: 2 / -1; justify-content: flex-end; }
  .next-location-plan-editor > footer { align-items: stretch; flex-direction: column; }
  .next-location-plan-editor > footer > span { max-width: none; }
  .next-location-plan-editor > footer .next-command { width: 100%; }
  .next-location-plan-header { align-items: flex-start; flex-direction: column; }
  .next-location-plan-actions { width: 100%; overflow-x: auto; }
  .next-location-plan-canvas { grid-template-rows: 300px auto; }
  .next-location-plan-inspector { grid-template-columns: 1fr; }
  .next-location-plan-links { grid-column: auto; }
  .next-location-plan-canvas > footer { align-items: flex-start; flex-direction: column; }
}

.next-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 6px solid #d62828;
  color: #202326;
  background: #f4f5f6;
}

.next-auth-brand {
  width: min(100% - 40px, 1180px);
  min-height: 86px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.next-auth-brand > img { display: block; width: min(100%, 320px); height: auto; }

.next-auth-stage {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 40px 0 64px;
}

.next-auth-panel {
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid #d9dde0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(32, 35, 38, 0.1);
}

.next-auth-panel > header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid #e7e9eb;
}

.next-auth-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #d62828;
  border-radius: 50%;
}

.next-auth-symbol img {
  width: 21px;
  height: 21px;
}

.next-auth-panel h1 {
  margin: 3px 0 5px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.next-auth-panel header p {
  margin: 0;
  color: #697077;
  font-size: 14px;
  line-height: 1.45;
}

.next-auth-form {
  display: grid;
  gap: 17px;
  padding: 26px 30px 30px;
}

.next-auth-form .next-field {
  min-width: 0;
}

.next-auth-form .next-field > span {
  font-weight: 650;
}

.next-auth-form .next-field > small {
  display: block;
  margin-top: 6px;
  color: #697077;
  font-size: 12px;
  line-height: 1.4;
}

.next-auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4a5055;
  font-size: 13px;
  cursor: pointer;
}

.next-auth-remember input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #d62828;
}

.next-auth-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.next-auth-message.error {
  color: #8f1d1d;
  border-color: #efb4b4;
  background: #fff4f4;
}

.next-auth-submit {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  border-color: #b91f28;
}

.next-auth-submit span {
  display: inline;
}

.next-auth-federated {
  display: grid;
  gap: 12px;
  padding: 0 30px 30px;
}

.next-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #7b8289;
  font-size: 12px;
}

.next-auth-divider::before,
.next-auth-divider::after {
  content: "";
  height: 1px;
  background: #dfe2e5;
}

.next-auth-oidc {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.next-auth-federated > small {
  color: #697077;
  line-height: 1.45;
  text-align: center;
}

.next-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.next-auth-actions .next-auth-submit {
  width: auto;
}

.next-auth-logout {
  display: flex;
  justify-content: center;
  padding: 0 30px 28px;
}

.next-auth-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  color: #697077;
  font-size: 12px;
  text-align: center;
}

.next-auth-footer img {
  width: 16px;
  height: 16px;
}

.next-auth-command-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.next-account-menu form {
  display: contents;
}

@media (max-width: 600px) {
  .next-auth-shell {
    border-left-width: 4px;
  }

  .next-auth-brand,
  .next-auth-stage {
    width: min(100% - 28px, 460px);
  }

  .next-auth-brand {
    min-height: 72px;
  }

  .next-auth-stage {
    align-items: start;
    padding: 22px 0 38px;
  }

  .next-auth-panel > header,
  .next-auth-form,
  .next-auth-federated {
    padding-left: 22px;
    padding-right: 22px;
  }

  .next-auth-panel > header {
    gap: 12px;
  }

  .next-auth-panel h1 {
    font-size: 22px;
  }

  .next-auth-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .next-auth-actions .next-command,
  .next-auth-actions .next-secondary-command {
    width: 100%;
    justify-content: center;
  }
}

.next-project-workspace {
  min-width: 0;
  border-top: 1px solid var(--next-line);
  background: #fff;
}

.next-project-header,
.next-project-editor > header,
.next-project-documents > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.next-project-header {
  min-height: 83px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--next-line);
  background: #f7f8f8;
}

.next-project-header > div:first-child,
.next-project-editor > header > div,
.next-project-documents > header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.next-project-header > div:first-child > span,
.next-project-editor > header span,
.next-project-documents > header span {
  color: var(--next-accent);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-project-header h3,
.next-project-editor h4,
.next-project-documents h5 {
  margin: 0;
  letter-spacing: 0;
}

.next-project-header h3 {
  font-size: 15px;
}

.next-project-header small,
.next-project-editor > header small {
  color: var(--next-muted);
  font-size: 8px;
}

.next-project-header > div:last-child,
.next-project-editor > footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.next-project-header .next-command,
.next-project-editor > footer .next-command {
  border: 0;
  cursor: pointer;
}

.next-project-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--next-line);
}

.next-project-kpis > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 65px;
  padding: 10px 14px;
  border-right: 1px solid var(--next-line);
}

.next-project-kpis > div:last-child {
  border-right: 0;
}

.next-project-kpis > div > i {
  width: 18px;
  height: 18px;
  color: #4d5d65;
}

.next-project-kpis > div > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-project-kpis small {
  color: var(--next-muted);
  font-size: 8px;
}

.next-project-kpis strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-project-kpis .critical {
  color: #9b252c;
  background: #fff3f3;
}

.next-project-kpis .critical > i,
.next-project-kpis .critical small {
  color: #9b252c;
}

.next-project-master {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 105px minmax(220px, 1.4fr) auto;
  align-items: end;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--next-line);
  background: #fbfbfb;
}

.next-project-master .next-secondary-command {
  min-height: 32px;
  justify-content: center;
}

.next-project-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 175px auto;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--next-line);
}

.next-project-toolbar > label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #cdd2d5;
  border-radius: 4px;
  background: #fff;
}

.next-project-toolbar > label > i {
  width: 15px;
  height: 15px;
  color: var(--next-muted);
}

.next-project-toolbar input,
.next-project-toolbar select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.next-project-toolbar > select {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #cdd2d5;
  border-radius: 4px;
  background: #fff;
}

.next-project-toolbar > span {
  color: var(--next-muted);
  font-size: 8px;
  text-align: right;
}

.next-project-editor {
  border-bottom: 1px solid var(--next-line);
  background: #f8f9f9;
}

.next-project-editor > header {
  min-height: 56px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--next-line);
  background: #eef1f2;
}

.next-project-editor > header h4 {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-project-editor > header button,
.next-project-row .next-governance-actions button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid #cdd2d5;
  border-radius: 4px;
  color: #3d464b;
  background: #fff;
  cursor: pointer;
}

.next-project-editor > header button i,
.next-project-row .next-governance-actions button i {
  width: 15px;
  height: 15px;
}

.next-project-editor fieldset {
  min-width: 0;
  margin: 0;
  padding: 13px 14px 15px;
  border: 0;
  border-bottom: 1px solid #dde1e3;
}

.next-project-editor legend {
  width: 100%;
  padding: 0 0 8px;
  color: #30383c;
  font-size: 9px;
  font-weight: 800;
}

.next-project-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.next-project-form .next-checkbox-field {
  min-width: 0;
  min-height: 45px;
}

.next-project-provenance {
  padding: 12px 14px;
  border-bottom: 1px solid #d9dee0;
  background: #f3f6f4;
}

.next-project-provenance > header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.next-project-provenance > header i {
  width: 17px;
  height: 17px;
  color: #2f6f59;
}

.next-project-provenance > header div {
  display: grid;
  gap: 2px;
}

.next-project-provenance > header strong,
.next-project-costs > header strong {
  font-size: 9px;
}

.next-project-provenance > header small,
.next-project-costs > header small {
  color: var(--next-muted);
  font-size: 7px;
}

.next-project-provenance dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.next-project-provenance dl > div {
  min-width: 0;
}

.next-project-provenance dt {
  color: var(--next-muted);
  font-size: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-project-provenance dd {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-project-costs {
  margin-top: 13px;
  border-top: 1px solid #d9dee0;
}

.next-project-costs > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  padding: 8px 0;
}

.next-project-costs > header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.next-project-costs > header > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-project-costs > header > div:last-child > span {
  color: #30383c;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.next-project-cost-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px;
  border: 1px dashed #c7ced1;
  color: var(--next-muted);
  background: #fff;
  font-size: 8px;
}

.next-project-cost-empty i {
  width: 16px;
  height: 16px;
}

.next-project-cost-list {
  border: 1px solid #d7dcde;
  background: #fff;
}

.next-project-finance-control {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d9dee0;
}

.next-project-finance-control > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.next-project-finance-control > header > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.next-project-finance-control > header > span > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #c4122f;
}

.next-project-finance-control > header > span > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.next-project-finance-control > header strong {
  font-size: 12px;
}

.next-project-finance-control > header small {
  color: var(--next-muted);
  font-size: 9px;
}

.next-project-finance-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px 10px;
  border-left: 3px solid #b87913;
  color: #704d12;
  background: #fff8e9;
  font-size: 10px;
}

.next-project-finance-warning svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.next-project-finance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d6dde1;
  background: #fff;
}

.next-project-finance-metrics > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 79px;
  padding: 12px;
  border-right: 1px solid #e2e7ea;
  border-bottom: 1px solid #e2e7ea;
}

.next-project-finance-metrics > span:nth-child(4n) {
  border-right: 0;
}

.next-project-finance-metrics > span:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.next-project-finance-metrics small {
  color: var(--next-muted);
  font-size: 8px;
  font-weight: 700;
}

.next-project-finance-metrics strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-project-finance-metrics em {
  color: #707b83;
  font-size: 8px;
  font-style: normal;
}

.next-project-finance-metrics .forecast {
  color: #173f57;
  background: #f2f8fb;
}

.next-project-finance-metrics .critical {
  color: #9b252c;
  background: #fff3f3;
}

.next-project-finance-metrics .positive {
  color: #216046;
  background: #f1f8f4;
}

.next-project-cost-head,
.next-project-cost-row {
  display: grid;
  grid-template-columns: 105px minmax(180px, 1.5fr) minmax(120px, .6fr) minmax(150px, .9fr) 34px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
}

.next-project-cost-head {
  color: var(--next-muted);
  background: #eef1f2;
  font-size: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-project-cost-row {
  border-top: 1px solid #e3e6e8;
}

.next-project-cost-row input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #cbd1d4;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 8px;
}

.next-project-cost-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-project-cost-row > span strong,
.next-project-cost-row > span small {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-project-cost-row > span small {
  color: var(--next-muted);
}

.next-project-cost-row > button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid #d5b7b9;
  border-radius: 4px;
  color: #9b252c;
  background: #fff;
  cursor: pointer;
}

.next-project-cost-row > button i {
  width: 14px;
  height: 14px;
}

.next-project-documents {
  margin: 12px 14px 14px;
  border: 1px solid #d7dcde;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.next-project-documents > header {
  min-height: 51px;
  padding: 8px 10px;
  border-bottom: 1px solid #dfe3e5;
  background: #f2f4f4;
}

.next-project-documents h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 10px;
}

.next-project-documents h5 em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-project-documents h5 b {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  color: #5d666b;
  background: #e1e5e6;
  font-size: 7px;
}

.next-project-upload {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  align-items: end;
  gap: 9px;
  padding: 10px;
  border-bottom: 1px solid #e4e7e9;
}

.next-project-upload .next-upload-command {
  min-height: 32px;
}

.next-project-document-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 14px;
  padding: 11px;
  border: 1px dashed #bdc5c9;
  border-radius: 5px;
  color: var(--next-muted);
  background: #fff;
  font-size: 8px;
}

.next-project-document-hint i {
  width: 17px;
  height: 17px;
}

.next-project-editor > footer {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 10px 14px;
  border-top: 1px solid var(--next-line);
  background: rgba(255, 255, 255, .97);
}

.next-project-editor > footer > span {
  color: var(--next-muted);
  font-size: 8px;
}

.next-project-editor > footer .danger {
  color: #9b252c;
  border-color: #d8a4a8;
  background: #fff2f3;
}

.next-project-list {
  min-width: 0;
}

.next-project-list-head,
.next-project-row {
  display: grid;
  grid-template-columns: minmax(155px, 1.35fr) minmax(120px, .85fr) minmax(150px, 1fr) minmax(130px, .85fr) minmax(115px, .7fr) 38px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 14px;
}

.next-project-list-head {
  min-height: 34px;
  color: var(--next-muted);
  background: #f0f2f2;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-project-row {
  min-height: 60px;
  border-bottom: 1px solid #e4e7e9;
}

.next-project-row.due {
  box-shadow: inset 3px 0 #b52b31;
  background: #fffafa;
}

.next-project-row > span:not(.next-governance-actions) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.next-project-row strong,
.next-project-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-project-row strong {
  font-size: 8px;
}

.next-project-row small {
  color: var(--next-muted);
  font-size: 7px;
}

.next-project-progress {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e0e4e5;
  overflow: hidden;
}

.next-project-progress > i {
  display: block;
  height: 100%;
  background: #2f6f59;
}

.next-project-workspace fieldset:disabled,
.next-project-workspace button:disabled,
.next-project-workspace .disabled {
  opacity: .58;
  cursor: not-allowed;
}

@media (max-width: 1080px) {
  .next-project-master {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-project-master .next-secondary-command {
    justify-self: end;
  }

  .next-project-list-head {
    display: none;
  }

  .next-project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-project-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    border-right: 1px solid #e4e7e9;
  }

  .next-project-row > span::before {
    content: attr(data-label);
    color: var(--next-muted);
    font-size: 6px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .next-project-row .next-governance-actions {
    align-self: end;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .next-project-header,
  .next-project-editor > header,
  .next-project-documents > header {
    align-items: stretch;
    flex-direction: column;
  }

  .next-project-header > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .next-project-header .next-secondary-command,
  .next-project-header .next-command {
    width: 100%;
    justify-content: center;
  }

  .next-project-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-project-kpis > div:nth-child(2) {
    border-right: 0;
  }

  .next-project-kpis > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--next-line);
  }

  .next-project-toolbar,
  .next-project-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-project-toolbar > label,
  .next-project-toolbar > span {
    grid-column: 1 / -1;
  }

  .next-project-toolbar > span {
    text-align: left;
  }

  .next-project-editor > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .next-project-editor > footer > div {
    justify-content: flex-end;
  }

  .next-project-upload {
    grid-template-columns: 1fr;
  }

  .next-project-upload .next-upload-command {
    justify-content: center;
  }

  .next-project-cost-head {
    display: none;
  }

  .next-project-cost-list {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 0;
    background: transparent;
  }

  .next-project-cost-row {
    grid-template-columns: 90px minmax(0, 1fr) 34px;
    padding: 8px;
    border: 1px solid #d7dcde;
    background: #fff;
  }

  .next-project-cost-row > input:nth-child(2) {
    grid-column: 2;
  }

  .next-project-cost-row > input:nth-child(3) {
    grid-column: 1;
  }

  .next-project-cost-row > span {
    grid-column: 2;
  }

  .next-project-cost-row > button {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 520px) {
  .next-project-finance-control > header {
    align-items: stretch;
    flex-direction: column;
  }

  .next-project-finance-control > header .next-secondary-command {
    width: 100%;
    justify-content: center;
  }

  .next-project-finance-metrics {
    grid-template-columns: 1fr;
  }

  .next-project-finance-metrics > span,
  .next-project-finance-metrics > span:nth-child(4n),
  .next-project-finance-metrics > span:nth-last-child(-n + 4) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e2e7ea;
  }

  .next-project-finance-metrics > span:last-child {
    border-bottom: 0;
  }

  .next-project-follow-up {
    align-items: stretch;
    flex-direction: column;
  }

  .next-project-follow-up .next-secondary-command {
    width: 100%;
    justify-content: center;
  }

  .next-project-header > div:last-child,
  .next-project-master,
  .next-project-toolbar,
  .next-project-form,
  .next-project-list {
    grid-template-columns: 1fr;
  }

  .next-project-kpis strong {
    font-size: 12px;
  }

  .next-project-master .next-secondary-command {
    width: 100%;
    justify-self: stretch;
  }

  .next-project-form .next-field.wide,
  .next-project-form .next-field.full,
  .next-project-form .next-checkbox-field {
    grid-column: auto;
  }

  .next-project-row {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .next-project-row > span:not(.next-governance-actions) {
    grid-column: 1;
  }

  .next-project-row .next-governance-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .next-project-editor > footer > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .next-project-editor > footer .next-command,
  .next-project-editor > footer .next-secondary-command,
  .next-project-documents > header .next-secondary-command {
    width: 100%;
    justify-content: center;
  }

  .next-project-provenance dl {
    grid-template-columns: 1fr;
  }

  .next-project-costs > header {
    align-items: stretch;
    flex-direction: column;
  }

  .next-project-costs > header > div:last-child {
    justify-content: space-between;
  }

  .next-project-cost-row {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .next-project-cost-row > input,
  .next-project-cost-row > input:nth-child(2),
  .next-project-cost-row > input:nth-child(3),
  .next-project-cost-row > span {
    grid-column: 1;
  }

  .next-project-cost-row > button {
    grid-column: 2;
  }
}

.next-land-register {
  min-width: 0;
  border-top: 1px solid var(--next-line);
  background: #fff;
}

.next-land-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--next-line);
}

.next-land-header > div,
.next-land-register-list > header,
.next-land-editor > header > div,
.next-land-legal-register > header > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-land-header > div > span,
.next-land-editor > header > div > span,
.next-land-legal-register > header > div > span {
  color: var(--next-red-dark);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-land-header h3,
.next-land-editor h4,
.next-land-legal-register h5 {
  margin: 0;
  letter-spacing: 0;
}

.next-land-header h3 {
  font-size: 14px;
}

.next-land-header small,
.next-land-register-list > header small {
  color: var(--next-muted);
  font-size: 9px;
}

.next-land-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--next-line);
}

.next-land-summary > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 66px;
  padding: 10px 14px;
  border-right: 1px solid var(--next-line);
}

.next-land-summary > div:last-child {
  border-right: 0;
}

.next-land-summary > div > svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  color: #356a85;
  border: 1px solid #b8ced9;
  border-radius: 5px;
  background: #f2f7f9;
}

.next-land-summary > div.attention > svg {
  color: #9b5d14;
  border-color: #e6c695;
  background: #fff9ef;
}

.next-land-summary span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-land-summary small {
  overflow: hidden;
  color: var(--next-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-land-summary strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-land-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 8px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--next-line);
  background: #f8f9fa;
}

.next-land-toolbar label {
  position: relative;
  min-width: 0;
}

.next-land-toolbar label svg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 14px;
  height: 14px;
  color: #7b8086;
  pointer-events: none;
}

.next-land-toolbar input,
.next-land-toolbar select {
  width: 100%;
  height: 34px;
  min-width: 0;
  color: var(--next-ink);
  border: 1px solid #cfd3d7;
  border-radius: 4px;
  outline: none;
  background: #fff;
  font-size: 10px;
}

.next-land-toolbar input {
  padding: 0 10px 0 31px;
}

.next-land-toolbar select {
  padding: 0 8px;
}

.next-land-workspace {
  display: grid;
  grid-template-columns: minmax(225px, 285px) minmax(0, 1fr);
  min-width: 0;
  min-height: 430px;
}

.next-land-register-list {
  min-width: 0;
  border-right: 1px solid var(--next-line);
  background: #f8f9fa;
}

.next-land-register-list > header {
  min-height: 52px;
  justify-content: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--next-line);
}

.next-land-register-list > header strong {
  font-size: 10px;
}

.next-land-register-list > div {
  max-height: 720px;
  overflow-y: auto;
}

.next-land-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 62px;
  padding: 9px 11px;
  color: var(--next-ink);
  border: 0;
  border-bottom: 1px solid #e4e7e9;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.next-land-list-item:hover {
  background: #f0f2f3;
}

.next-land-list-item.active {
  box-shadow: inset 3px 0 0 var(--next-red);
  background: #fae9eb;
}

.next-land-list-item > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.next-land-list-item > span:last-child {
  justify-items: end;
}

.next-land-list-item strong,
.next-land-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-land-list-item strong {
  font-size: 9px;
}

.next-land-list-item small {
  color: var(--next-muted);
  font-size: 8px;
}

.next-land-list-item em {
  padding: 3px 5px;
  color: #315e45;
  border-radius: 3px;
  background: #e6f1ea;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.next-land-list-item em.attention {
  color: #80500e;
  background: #fff0d8;
}

.next-land-list-item em.muted {
  color: #666b70;
  background: #e8eaec;
}

.next-land-editor {
  min-width: 0;
}

.next-land-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 430px;
  padding: 28px;
  color: var(--next-muted);
  text-align: center;
}

.next-land-empty > svg {
  width: 32px;
  height: 32px;
  color: #7b8d96;
}

.next-land-empty strong {
  color: var(--next-ink);
  font-size: 12px;
}

.next-land-empty span {
  max-width: 440px;
  font-size: 9px;
  line-height: 1.5;
}

.next-land-empty .next-secondary-command {
  margin-top: 5px;
}

.next-land-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--next-line);
}

.next-land-editor h4 {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-land-editor > header > button,
.next-land-legal-card > header > button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  color: #777c82;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.next-land-editor > header > button:hover,
.next-land-legal-card > header > button:hover {
  color: var(--next-red-dark);
  background: #fae9eb;
}

.next-land-editor > header > button svg,
.next-land-legal-card > header > button svg {
  width: 15px;
  height: 15px;
}

.next-land-editor > fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--next-line);
}

.next-land-editor > fieldset > legend {
  width: 100%;
  padding: 13px 14px 0;
  color: #51565b;
  font-size: 9px;
  font-weight: 800;
}

.next-land-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 14px 16px;
}

.next-project-follow-up {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce2e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.next-project-follow-up > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-project-follow-up > span > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #c4122f;
}

.next-project-follow-up > span > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.next-project-follow-up strong {
  font-size: 12px;
}

.next-project-follow-up small {
  font-size: 10px;
  color: #66717b;
}

.next-land-geometry {
  min-width: 0;
  padding: 14px;
  border-bottom: 1px solid var(--next-line);
  background: #f8f9fa;
}

.next-land-geometry > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.next-land-geometry > header > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-land-geometry > header span {
  color: var(--next-red-dark);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-land-geometry h5 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0;
}

.next-land-geometry-import {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 8px;
  margin-bottom: 10px;
}

.next-land-geometry-import .next-field.wide {
  grid-column: 1 / -1;
}

.next-land-geometry-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 12px;
  color: var(--next-muted);
  border: 1px dashed #cfd5d8;
  border-radius: 4px;
  background: #fff;
  font-size: 9px;
}

.next-land-geometry-empty svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.next-land-geometry-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(220px, .55fr);
  min-width: 0;
  border: 1px solid #d7dcdf;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.next-land-geometry-map {
  min-width: 0;
  border-right: 1px solid #d7dcdf;
}

.next-land-geometry-map .next-map {
  height: 320px;
}

.next-land-geometry-facts {
  display: grid;
  align-content: start;
  min-width: 0;
}

.next-land-geometry-facts > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 11px 12px;
  border-bottom: 1px solid #e3e6e8;
}

.next-land-geometry-facts small,
.next-land-geometry-facts span {
  overflow-wrap: anywhere;
  color: var(--next-muted);
  font-size: 8px;
  line-height: 1.4;
}

.next-land-geometry-facts strong {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.next-land-geometry-facts .good { color: #21613c; }
.next-land-geometry-facts .warning { color: #875812; }
.next-land-geometry-facts .danger { color: #9b252c; }
.next-land-geometry-facts .muted { color: var(--next-muted); }

.next-land-geometry-facts > button {
  justify-self: start;
  margin: 11px 12px;
}

.next-land-property-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 14px 16px;
}

.next-land-property-links > label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid #d7dade;
  border-radius: 4px;
  background: #fff;
}

.next-land-property-links input {
  width: 15px;
  height: 15px;
  accent-color: var(--next-red);
}

.next-land-property-links span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-land-property-links strong,
.next-land-property-links small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-land-property-links strong {
  font-size: 9px;
}

.next-land-property-links small {
  color: var(--next-muted);
  font-size: 8px;
}

.next-land-legal-register {
  min-width: 0;
  padding: 15px 14px 17px;
  border-bottom: 1px solid var(--next-line);
  background: #f8f9fa;
}

.next-land-legal-register > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.next-land-legal-register h5 {
  font-size: 11px;
}

.next-land-legal-register h5 b {
  margin-left: 5px;
  color: var(--next-muted);
  font-size: 9px;
}

.next-land-legal-list {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.next-land-legal-card {
  min-width: 0;
  border: 1px solid #d8dcdf;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.next-land-legal-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 45px;
  padding: 7px 10px;
  border-bottom: 1px solid #e3e6e8;
  background: #f4f5f6;
}

.next-land-legal-card > header > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-land-legal-card > header strong,
.next-land-legal-card > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-land-legal-card > header strong {
  font-size: 9px;
}

.next-land-legal-card > header small {
  color: var(--next-muted);
  font-size: 8px;
}

.next-land-legal-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 11px 10px 13px;
}

.next-land-editor > footer {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 10px 14px;
  border-top: 1px solid var(--next-line);
  background: rgba(255, 255, 255, .97);
}

.next-land-editor > footer > span {
  color: var(--next-muted);
  font-size: 8px;
}

.next-land-editor > footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.next-land-editor > footer .next-command {
  border: 0;
  cursor: pointer;
}

.next-land-editor > footer .danger {
  color: #9b252c;
  border-color: #d8a4a8;
  background: #fff2f3;
}

.next-land-register fieldset:disabled,
.next-land-register button:disabled {
  opacity: .58;
}

@media (max-width: 1080px) {
  .next-land-workspace {
    grid-template-columns: 1fr;
  }

  .next-land-register-list {
    border-right: 0;
    border-bottom: 1px solid var(--next-line);
  }

  .next-land-register-list > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 250px;
  }

  .next-land-list-item:nth-child(odd) {
    border-right: 1px solid #e4e7e9;
  }

  .next-land-geometry-workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr);
  }
}

@media (max-width: 720px) {
  .next-land-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-land-summary > div:nth-child(2) {
    border-right: 0;
  }

  .next-land-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--next-line);
  }

  .next-land-toolbar {
    grid-template-columns: 1fr;
  }

  .next-land-form,
  .next-land-legal-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-land-property-links {
    grid-template-columns: 1fr;
  }

  .next-land-geometry-workspace {
    grid-template-columns: 1fr;
  }

  .next-land-geometry-map {
    border-right: 0;
    border-bottom: 1px solid #d7dcdf;
  }

  .next-land-editor > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .next-land-editor > footer > div {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .next-land-header,
  .next-land-legal-register > header {
    align-items: stretch;
    flex-direction: column;
  }

  .next-land-header .next-secondary-command,
  .next-land-legal-register > header .next-secondary-command,
  .next-land-geometry > header .next-secondary-command {
    width: 100%;
  }

  .next-land-geometry > header {
    align-items: stretch;
    flex-direction: column;
  }

  .next-land-geometry-import {
    grid-template-columns: 1fr;
  }

  .next-land-geometry-import .next-field.wide {
    grid-column: auto;
  }

  .next-land-geometry-map .next-map {
    height: 280px;
  }

  .next-land-register-list > div,
  .next-land-form,
  .next-land-legal-form {
    grid-template-columns: 1fr;
  }

  .next-land-list-item:nth-child(odd) {
    border-right: 0;
  }

  .next-land-form .next-field.wide,
  .next-land-legal-form .next-field.wide {
    grid-column: auto;
  }

  .next-land-editor > footer > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .next-land-editor > footer .next-command,
  .next-land-editor > footer .next-secondary-command {
    width: 100%;
  }
}

/* Native photo and media record */
.next-photo-workspace {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.next-photo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--next-line);
}

.next-photo-header > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.next-photo-header > div > span,
.next-photo-editor > header span {
  color: var(--next-red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-photo-header h3,
.next-photo-editor h4 {
  margin: 0;
  color: var(--next-ink);
  letter-spacing: 0;
}

.next-photo-header h3 {
  font-size: 20px;
}

.next-photo-header small,
.next-photo-editor > header small {
  color: var(--next-muted);
  font-size: 12px;
  line-height: 1.45;
}

.next-photo-header .next-upload-command {
  flex: 0 0 auto;
}

.next-photo-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--next-line);
  background: #fff;
}

.next-photo-kpis > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  padding: 14px 16px;
  border-right: 1px solid var(--next-line);
}

.next-photo-kpis > div:last-child {
  border-right: 0;
}

.next-photo-kpis > div > i {
  width: 22px;
  height: 22px;
  color: #326e63;
}

.next-photo-kpis > div > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.next-photo-kpis small {
  overflow: hidden;
  color: var(--next-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-photo-kpis strong {
  color: var(--next-ink);
  font-size: 21px;
  line-height: 1;
}

.next-photo-kpis .warning {
  background: #fff8e8;
}

.next-photo-kpis .warning > i,
.next-photo-kpis .warning small {
  color: #98651b;
}

.next-photo-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 230px) auto;
  align-items: center;
  gap: 10px;
}

.next-photo-toolbar > label {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 40px;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--next-line);
  background: #fff;
}

.next-photo-toolbar > label > i {
  width: 17px;
  height: 17px;
  color: var(--next-muted);
}

.next-photo-toolbar input,
.next-photo-toolbar select {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--next-line);
  background: #fff;
  color: var(--next-ink);
  font: inherit;
}

.next-photo-toolbar input {
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
}

.next-photo-toolbar select {
  padding: 0 10px;
}

.next-photo-toolbar > span {
  color: var(--next-muted);
  font-size: 11px;
  white-space: nowrap;
}

.next-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  min-width: 0;
  gap: 20px;
}

.next-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  align-content: start;
  min-width: 0;
  gap: 12px;
}

.next-photo-card {
  display: grid;
  grid-template-rows: 138px minmax(112px, auto);
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--next-line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.next-photo-card:hover,
.next-photo-card:focus-visible {
  border-color: #8faabd;
  box-shadow: 0 3px 12px rgb(39 55 68 / 10%);
  outline: 0;
}

.next-photo-card.selected {
  border-color: var(--next-red);
  box-shadow: 0 0 0 1px var(--next-red);
}

.next-photo-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background: #e9eef0;
}

.next-photo-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-photo-thumb > i {
  width: 32px;
  height: 32px;
  color: #6d7d86;
}

.next-photo-thumb > b {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgb(20 29 34 / 82%);
  color: #fff;
  font-size: 10px;
}

.next-photo-thumb > b i {
  width: 12px;
  height: 12px;
}

.next-photo-card-copy {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
  padding: 11px 12px;
}

.next-photo-card-copy small {
  overflow: hidden;
  color: var(--next-red);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.next-photo-card-copy strong,
.next-photo-card-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-photo-card-copy strong {
  color: var(--next-ink);
  font-size: 13px;
}

.next-photo-card-copy > span {
  color: var(--next-muted);
  font-size: 11px;
}

.next-photo-card-copy em {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 6px;
  border: 1px solid #cfd6da;
  border-radius: 3px;
  color: #58666f;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.next-photo-card-copy em[data-status="freigegeben"] {
  border-color: #aad9c4;
  background: #f0faf5;
  color: #176542;
}

.next-photo-card-copy em[data-status="zurueckgewiesen"] {
  border-color: #e9b9b9;
  background: #fff3f3;
  color: #9d3131;
}

.next-photo-editor {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 15px;
  padding-left: 20px;
  border-left: 1px solid var(--next-line);
}

.next-photo-editor > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

.next-photo-editor > header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.next-photo-editor h4 {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.next-photo-editor > header > b {
  padding: 4px 7px;
  border: 1px solid #edcd91;
  border-radius: 3px;
  background: #fff8e8;
  color: #8b5a12;
  font-size: 9px;
  text-transform: uppercase;
}

.next-photo-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--next-line);
  border-radius: 5px;
  background: #1e272c;
}

.next-photo-preview > img,
.next-photo-preview > canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.next-photo-preview > i {
  width: 40px;
  height: 40px;
  color: #9aa8af;
}

.next-photo-preview.panorama > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgb(15 23 27 / 78%);
  color: #fff;
  font-size: 9px;
  pointer-events: none;
}

.next-photo-preview.panorama > span i {
  width: 12px;
  height: 12px;
}

.next-photo-editor fieldset {
  min-width: 0;
  margin: 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--next-line);
}

.next-photo-editor legend {
  padding: 0 8px 0 0;
  color: #43535d;
  font-size: 11px;
  font-weight: 800;
}

.next-photo-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.next-photo-form .next-checkbox-field {
  grid-column: span 2;
}

.next-photo-file-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--next-line);
  border-bottom: 1px solid var(--next-line);
}

.next-photo-file-summary > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.next-photo-file-summary > span > i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #326e63;
}

.next-photo-file-summary > span > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-photo-file-summary strong,
.next-photo-file-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-photo-file-summary strong {
  color: var(--next-ink);
  font-size: 11px;
}

.next-photo-file-summary small {
  color: var(--next-muted);
  font-size: 10px;
}

.next-photo-editor > footer,
.next-photo-register-settings > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.next-photo-editor > footer .danger {
  border-color: #db9b9b;
  background: #fff5f5;
  color: #9c2e2e;
}

.next-photo-empty,
.next-photo-editor-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 240px;
  gap: 7px;
  padding: 28px;
  border: 1px dashed #c9d1d5;
  color: var(--next-muted);
  text-align: center;
}

.next-photo-empty {
  grid-column: 1 / -1;
}

.next-photo-empty i,
.next-photo-editor-empty i {
  width: 30px;
  height: 30px;
  color: #74848d;
}

.next-photo-empty strong,
.next-photo-editor-empty strong {
  color: var(--next-ink);
  font-size: 13px;
}

.next-photo-empty span,
.next-photo-editor-empty span {
  max-width: 420px;
  font-size: 11px;
  line-height: 1.5;
}

.next-photo-register-settings,
.next-photo-document-register {
  min-width: 0;
  border-top: 1px solid var(--next-line);
}

.next-photo-register-settings > summary,
.next-photo-document-register > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
}

.next-photo-register-settings > summary::-webkit-details-marker,
.next-photo-document-register > summary::-webkit-details-marker {
  display: none;
}

.next-photo-register-settings > summary > span,
.next-photo-document-register > summary > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.next-photo-register-settings > summary > span > i,
.next-photo-document-register > summary > span > i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #326e63;
}

.next-photo-register-settings > summary > span > span,
.next-photo-document-register > summary > span > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-photo-register-settings > summary strong,
.next-photo-document-register > summary strong {
  color: var(--next-ink);
  font-size: 12px;
}

.next-photo-register-settings > summary small,
.next-photo-document-register > summary small {
  color: var(--next-muted);
  font-size: 10px;
}

.next-photo-register-settings > summary > i,
.next-photo-document-register > summary > i {
  width: 17px;
  height: 17px;
  transition: transform 140ms ease;
}

.next-photo-register-settings[open] > summary > i,
.next-photo-document-register[open] > summary > i {
  transform: rotate(180deg);
}

.next-photo-register-settings > .next-form-grid {
  padding: 14px 0;
  border-top: 1px solid #edf0f1;
}

.next-photo-register-settings > footer {
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #edf0f1;
}

.next-photo-register-settings > footer > span {
  color: var(--next-muted);
  font-size: 10px;
}

.next-photo-document-register > .next-document-control {
  padding-top: 14px;
  border-top: 1px solid #edf0f1;
}

.next-photo-workspace fieldset:disabled,
.next-photo-workspace button:disabled,
.next-photo-workspace .disabled {
  opacity: .58;
  cursor: not-allowed;
}

body.next-photo-comparison-open { overflow: hidden; }

.next-photo-comparison-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.next-photo-comparison-link > .next-secondary-command { min-height: 38px; }

.next-photo-comparison-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 42px);
  background: rgb(14 20 24 / 86%);
}

.next-photo-comparison-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1380px, 100%);
  height: min(900px, 100%);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #5d6a72;
  border-radius: 6px;
  background: #f8fafb;
  box-shadow: 0 24px 70px rgb(0 0 0 / 38%);
}

.next-photo-comparison-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; min-width: 0; gap: 20px; padding: 18px 20px 15px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-photo-comparison-dialog > header > div { display: grid; min-width: 0; gap: 2px; }
.next-photo-comparison-dialog > header span { color: var(--next-red); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-photo-comparison-dialog > header h2 { margin: 0; color: var(--next-ink); font-size: 20px; letter-spacing: 0; }
.next-photo-comparison-dialog > header small { overflow: hidden; color: var(--next-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-photo-comparison-dialog > header > button { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; color: var(--next-ink); cursor: pointer; }
.next-photo-comparison-dialog > header > button:hover,
.next-photo-comparison-dialog > header > button:focus-visible { border-color: var(--next-red); color: var(--next-red); }
.next-photo-comparison-dialog > header > button i { width: 18px; height: 18px; }

.next-photo-comparison-toolbar { display: flex; align-items: center; gap: 1px; padding: 9px 20px; border-bottom: 1px solid var(--next-line); background: #eef1f2; }
.next-photo-comparison-toolbar button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; gap: 6px; padding: 7px 12px; border: 1px solid #c8d0d4; background: #fff; color: #40515a; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.next-photo-comparison-toolbar button:first-child { border-radius: 4px 0 0 4px; }
.next-photo-comparison-toolbar button:last-child { border-radius: 0 4px 4px 0; }
.next-photo-comparison-toolbar button.active { border-color: #324e5d; background: #324e5d; color: #fff; }
.next-photo-comparison-toolbar i { width: 14px; height: 14px; }

.next-photo-comparison-slider {
  --comparison-position: 50%;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #11181c;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.next-photo-comparison-slider > img,
.next-photo-comparison-before,
.next-photo-comparison-before > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.next-photo-comparison-slider > img,
.next-photo-comparison-before > img { object-fit: contain; }
.next-photo-comparison-before { overflow: hidden; clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0); }
.next-photo-comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--comparison-position); display: grid; place-items: center; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 28%); transform: translateX(-1px); pointer-events: none; }
.next-photo-comparison-divider i { width: 32px; height: 44px; padding: 7px; border: 2px solid #fff; border-radius: 4px; background: #b3262b; color: #fff; }

.next-photo-comparison-label { position: absolute; top: 14px; z-index: 2; max-width: calc(50% - 24px); overflow: hidden; padding: 6px 8px; border-radius: 3px; background: rgb(13 20 24 / 82%); color: #fff; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.next-photo-comparison-label.before { left: 14px; }
.next-photo-comparison-label.after { right: 14px; }

.next-photo-comparison-slider > label { position: absolute; right: 18px; bottom: 16px; left: 18px; z-index: 3; display: grid; grid-template-columns: auto minmax(120px, 420px) 46px; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px; border-radius: 4px; background: rgb(13 20 24 / 86%); color: #fff; font-size: 9px; cursor: default; }
.next-photo-comparison-slider > label input { width: 100%; accent-color: #d84449; cursor: ew-resize; }
.next-photo-comparison-slider > label output { font-variant-numeric: tabular-nums; text-align: right; }

.next-photo-comparison-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; min-height: 0; gap: 1px; overflow: hidden; background: #4b585f; }
.next-photo-comparison-split figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; margin: 0; background: #11181c; }
.next-photo-comparison-split figure > div { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.next-photo-comparison-split img { width: 100%; height: 100%; object-fit: contain; }
.next-photo-comparison-split figcaption { display: grid; min-width: 0; gap: 2px; padding: 11px 14px; border-top: 1px solid #435159; background: #1c272d; color: #fff; }
.next-photo-comparison-split figcaption span { color: #f29194; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-photo-comparison-split figcaption strong,
.next-photo-comparison-split figcaption small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-photo-comparison-split figcaption strong { font-size: 11px; }
.next-photo-comparison-split figcaption small { color: #b9c3c8; font-size: 9px; }

.next-photo-comparison-dialog > footer { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--next-line); background: #fff; }
.next-photo-comparison-dialog > footer span { display: inline-flex; align-items: center; min-width: 0; gap: 6px; color: var(--next-muted); font-size: 9px; }
.next-photo-comparison-dialog > footer i { flex: 0 0 auto; width: 13px; height: 13px; color: #326e63; }

@media (max-width: 1080px) {
  .next-photo-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
  }

  .next-photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  }
}

@media (max-width: 860px) {
  .next-photo-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-photo-kpis > div:nth-child(2) {
    border-right: 0;
  }

  .next-photo-kpis > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--next-line);
  }

  .next-photo-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-photo-editor {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--next-line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .next-photo-header {
    align-items: stretch;
    flex-direction: column;
  }

  .next-photo-header .next-upload-command {
    width: 100%;
  }

  .next-photo-header .next-upload-command > span,
  .next-photo-editor > footer .next-command > span {
    display: inline;
  }

  .next-photo-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-photo-toolbar > span {
    justify-self: end;
  }

  .next-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-photo-comparison-backdrop { padding: 0; }
  .next-photo-comparison-dialog { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .next-photo-comparison-dialog > header { padding: 13px 14px 11px; }
  .next-photo-comparison-toolbar { padding: 8px 14px; }
  .next-photo-comparison-dialog > footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 9px 14px; }
}

@media (max-width: 520px) {
  .next-photo-kpis {
    grid-template-columns: 1fr;
  }

  .next-photo-kpis > div,
  .next-photo-kpis > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--next-line);
  }

  .next-photo-kpis > div:last-child {
    border-bottom: 0;
  }

  .next-photo-gallery {
    grid-template-columns: 1fr;
  }

  .next-photo-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(122px, auto);
  }

  .next-photo-form {
    grid-template-columns: 1fr;
  }

  .next-photo-form .next-field.full,
  .next-photo-form .next-checkbox-field {
    grid-column: auto;
  }

  .next-photo-comparison-link { grid-template-columns: 1fr; }
  .next-photo-comparison-link > .next-secondary-command { width: 100%; }
  .next-photo-comparison-split { grid-template-columns: 1fr; overflow-y: auto; }
  .next-photo-comparison-split figure { min-height: 330px; }
  .next-photo-comparison-slider > label { right: 10px; bottom: 10px; left: 10px; grid-template-columns: minmax(100px, 1fr) 40px; }
  .next-photo-comparison-slider > label > span { display: none; }

  .next-photo-file-summary,
  .next-photo-editor > footer,
  .next-photo-register-settings > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .next-photo-file-summary .next-secondary-command,
  .next-photo-editor > footer .next-command,
  .next-photo-editor > footer .next-secondary-command,
  .next-photo-register-settings > footer .next-secondary-command {
    width: 100%;
  }
}

/* CAD reference administration */
.next-cad-reference-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-cad-reference-header > div { min-width: 0; }
.next-cad-reference-header > div:last-child { display: flex; gap: 7px; flex: 0 0 auto; }
.next-cad-reference-header h1 { margin: 4px 0 3px; font-size: 30px; letter-spacing: 0; }
.next-cad-reference-header p { max-width: 720px; margin: 0; color: var(--next-muted); font-size: 11px; line-height: 1.5; }
.next-cad-reference-header .next-command { min-height: 32px; font-size: 9px; }
.next-cad-reference-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid var(--next-line); }
.next-cad-reference-kpis > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; min-height: 48px; padding: 0 12px; border-right: 1px solid var(--next-line); }
.next-cad-reference-kpis > div:first-child { padding-left: 0; }
.next-cad-reference-kpis > div:last-child { border-right: 0; }
.next-cad-reference-kpis .next-metric-icon { width: 38px; height: 38px; }
.next-cad-reference-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-cad-reference-kpis small { color: var(--next-muted); font-size: 8px; line-height: 1.3; }
.next-cad-reference-kpis strong { font-size: 17px; }
.next-cad-reference-status { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 18px; padding: 11px 13px; border: 1px solid var(--next-line); border-left-width: 3px; border-radius: 5px; background: #fff; }
.next-cad-reference-status > svg { width: 20px; height: 20px; }
.next-cad-reference-status > span { display: grid; min-width: 0; gap: 2px; }
.next-cad-reference-status > span strong { font-size: 10px; }
.next-cad-reference-status > span small { color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-cad-reference-status.ok { border-left-color: #528667; }
.next-cad-reference-status.ok > svg { color: #315f43; }
.next-cad-reference-status.warning { border-left-color: #c5913f; }
.next-cad-reference-status.warning > svg { color: #755018; }
.next-cad-reference-status.error { border-left-color: var(--next-red); }
.next-cad-reference-status.error > svg { color: var(--next-red-dark); }
.next-cad-reference-status > em { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 8px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.next-cad-reference-status > em svg { width: 12px; height: 12px; }
.next-cad-reference-status > em.live { color: #315f43; background: #e9f2ed; }
.next-cad-reference-status > em.dry-run { color: #755018; background: #f8efe1; }
.next-cad-reference-register { min-width: 0; margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-cad-reference-register > header { min-height: 66px; padding: 10px 13px; }
.next-cad-reference-filters { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.next-cad-reference-filters > label { display: grid; grid-template-columns: 15px minmax(130px, 220px); align-items: center; gap: 5px; height: 32px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-cad-reference-filters > label svg { width: 14px; height: 14px; color: var(--next-muted); }
.next-cad-reference-filters input, .next-cad-reference-filters select { min-width: 0; height: 32px; color: var(--next-ink); border: 1px solid var(--next-line); border-radius: 4px; outline: 0; background: #fff; font-size: 9px; }
.next-cad-reference-filters input { height: 28px; padding: 0; border: 0; }
.next-cad-reference-filters select { padding: 0 8px; }
.next-cad-reference-table-scroll { max-width: 100%; overflow-x: auto; }
.next-cad-reference-table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 9px; }
.next-cad-reference-table th { height: 34px; padding: 0 10px; color: #666b71; border-bottom: 1px solid var(--next-line); background: #f4f5f6; text-align: left; white-space: nowrap; }
.next-cad-reference-table td { max-width: 245px; padding: 9px 10px; border-bottom: 1px solid #eceef0; vertical-align: top; }
.next-cad-reference-table tbody tr:last-child td { border-bottom: 0; }
.next-cad-reference-table td > strong, .next-cad-reference-table td > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-cad-reference-table td > small { margin-top: 4px; color: var(--next-muted); font-size: 7px; }
.next-cad-reference-table td > em { display: inline-flex; align-items: center; min-height: 22px; padding: 0 6px; border-radius: 3px; font-size: 7px; font-style: normal; font-weight: 800; }
.next-cad-reference-table td > em.ok { color: #315f43; background: #e9f2ed; }
.next-cad-reference-table td > em.warning { color: #755018; background: #f8efe1; }
.next-cad-reference-table td > em.error { color: #8e242b; background: #fae9eb; }
.next-cad-reference-actions { display: flex; justify-content: flex-end; gap: 4px; width: 132px; }
.next-cad-reference-actions a, .next-cad-reference-actions button { display: inline-grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #555a60; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-cad-reference-actions a:hover, .next-cad-reference-actions button:hover { color: var(--next-red-dark); border-color: #cfadb0; }
.next-cad-reference-actions svg { width: 13px; height: 13px; }
.next-cad-reference-register > footer { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 39px; padding: 7px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #f8f9fa; font-size: 8px; }
.next-cad-reference-register > footer svg { width: 14px; height: 14px; }
.next-cad-reference-register > footer small { white-space: nowrap; }
.next-cad-reference-editor { margin-top: 18px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; overflow: hidden; }
.next-cad-reference-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--next-line); }
.next-cad-reference-editor > header > div { min-width: 0; }
.next-cad-reference-editor > header span { color: var(--next-red-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-cad-reference-editor > header h2 { margin: 2px 0 3px; font-size: 15px; letter-spacing: 0; }
.next-cad-reference-editor > header p { margin: 0; color: var(--next-muted); font-size: 9px; line-height: 1.45; }
.next-cad-reference-editor > header button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; cursor: pointer; }
.next-cad-reference-editor > header button svg { width: 14px; height: 14px; }
.next-cad-reference-editor-context { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-cad-reference-editor-context > div { display: grid; gap: 4px; min-width: 0; padding: 11px 14px; border-right: 1px solid var(--next-line); }
.next-cad-reference-editor-context > div:last-child { border-right: 0; }
.next-cad-reference-editor-context small { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-cad-reference-editor-context strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-cad-reference-editor-fields { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(250px, 1fr); gap: 12px; padding: 14px 16px; }
.next-cad-reference-editor-fields .wide { grid-column: 1 / -1; }
.next-cad-reference-editor > footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--next-line); background: #f8f9fa; }
.next-cad-reference-live { display: inline-flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.next-cad-reference-live input { width: 15px; height: 15px; accent-color: var(--next-red); }
.next-cad-reference-editor > footer > span { color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-cad-reference-editor > footer > div { display: flex; gap: 7px; }
.next-cad-reference-editor .next-command { min-height: 32px; border: 0; font-size: 9px; }

@media (max-width: 1120px) {
  .next-cad-reference-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-cad-reference-kpis > div:nth-child(3n) { border-right: 0; }
  .next-cad-reference-kpis > div:nth-child(-n+3) { border-bottom: 1px solid var(--next-line); }
  .next-cad-reference-register > header { align-items: flex-start; flex-direction: column; }
  .next-cad-reference-filters { width: 100%; justify-content: flex-start; }
  .next-cad-reference-filters > label { flex: 1; }
}

@media (max-width: 760px) {
  .next-cad-reference-header { align-items: flex-start; }
  .next-cad-reference-header h1 { font-size: 23px; }
  .next-cad-reference-header .next-secondary-command { width: 34px; min-width: 34px; padding: 0; }
  .next-cad-reference-header .next-secondary-command span { display: none; }
  .next-cad-reference-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .next-cad-reference-filters > label { grid-column: 1 / -1; }
  .next-cad-reference-status { grid-template-columns: 22px minmax(0, 1fr); }
  .next-cad-reference-status > em { grid-column: 2; justify-self: start; }
  .next-cad-reference-editor-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-cad-reference-editor-context > div:nth-child(2) { border-right: 0; }
  .next-cad-reference-editor-context > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-cad-reference-editor-fields { grid-template-columns: 1fr; }
  .next-cad-reference-editor-fields .wide { grid-column: auto; }
  .next-cad-reference-editor > footer { grid-template-columns: 1fr; align-items: stretch; }
  .next-cad-reference-editor > footer > div { justify-content: flex-end; }
}

@media (max-width: 460px) {
  .next-cad-reference-header > div:last-child .next-command { width: 34px; min-width: 34px; padding: 0; }
  .next-cad-reference-header > div:last-child .next-command span { display: none; }
  .next-cad-reference-kpis { grid-template-columns: 1fr; }
  .next-cad-reference-kpis > div { padding: 7px 0; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-cad-reference-kpis > div:last-child { border-bottom: 0; }
  .next-cad-reference-filters { grid-template-columns: 1fr; }
  .next-cad-reference-filters > label { grid-column: auto; }
  .next-cad-reference-register > footer { grid-template-columns: 15px minmax(0, 1fr); }
  .next-cad-reference-register > footer small { grid-column: 2; }
  .next-cad-reference-editor-context { grid-template-columns: 1fr; }
  .next-cad-reference-editor-context > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-cad-reference-editor-context > div:last-child { border-bottom: 0; }
  .next-cad-reference-editor > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Structured building survey */
.next-survey-workspace { display: grid; gap: 18px; min-width: 0; }
.next-survey-workspace > .next-function-kpis { padding-top: 0; }
.next-survey-master,
.next-survey-starter,
.next-survey-register,
.next-survey-detail,
.next-survey-chapter-detail {
  min-width: 0;
  border: 1px solid var(--next-line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.next-survey-master > header,
.next-survey-starter > header,
.next-survey-register > header,
.next-survey-detail > header,
.next-survey-chapter-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--next-line);
}
.next-survey-master > header span,
.next-survey-starter > header span,
.next-survey-register > header span,
.next-survey-detail > header span,
.next-survey-chapter-detail > header span {
  color: var(--next-red-dark);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.next-survey-master h3,
.next-survey-starter h3,
.next-survey-register h3,
.next-survey-detail h3,
.next-survey-chapter-detail h3 {
  margin: 2px 0 0;
  font-size: 14px;
  letter-spacing: 0;
}
.next-survey-master > header .next-command,
.next-survey-register > header .next-secondary-command {
  flex: 0 0 auto;
}
.next-survey-master > .next-form-grid,
.next-survey-starter > .next-form-grid {
  padding: 15px;
}
.next-survey-master > footer,
.next-survey-starter > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 15px;
  color: var(--next-muted);
  border-top: 1px solid var(--next-line);
  background: #f8f9fa;
  font-size: 8px;
  line-height: 1.45;
}
.next-survey-starter { border-left: 3px solid var(--next-red); }
.next-survey-starter > header > button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid var(--next-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.next-survey-starter > header > button svg { width: 14px; height: 14px; }
.next-survey-starter > footer > div { display: flex; gap: 7px; flex: 0 0 auto; }
.next-survey-layout { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); min-width: 0; }
.next-survey-list {
  max-height: 920px;
  padding: 8px;
  border-right: 1px solid var(--next-line);
  background: #f7f8f9;
  overflow-y: auto;
}
.next-survey-list > button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px 8px;
  width: 100%;
  min-height: 68px;
  margin-bottom: 6px;
  padding: 10px 10px 13px;
  color: var(--next-ink);
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.next-survey-list > button:hover { border-color: #d9dcdf; background: #fff; }
.next-survey-list > button.active { border-color: #cfadb0; background: #fff; box-shadow: inset 3px 0 0 var(--next-red); }
.next-survey-list > button > span:first-child { display: grid; min-width: 0; gap: 3px; }
.next-survey-list > button strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-survey-list > button small { overflow: hidden; color: var(--next-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-survey-list > button em {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.next-survey-list > button em.draft { color: #51575d; background: #e9ebed; }
.next-survey-list > button em.review { color: #755018; background: #f8efe1; }
.next-survey-list > button em.released { color: #315f43; background: #e9f2ed; }
.next-survey-list > button em.due { color: #8e242b; background: #fae9eb; }
.next-survey-list-progress {
  position: absolute;
  right: 10px;
  bottom: 7px;
  left: 10px;
  height: 3px;
  border-radius: 2px;
  background: #e3e5e7;
  overflow: hidden;
}
.next-survey-list-progress i { display: block; height: 100%; background: #528667; }
.next-survey-detail { border: 0; border-radius: 0; }
.next-survey-detail > header { align-items: center; }
.next-survey-detail > header small { display: block; margin-top: 4px; color: var(--next-muted); font-size: 8px; }
.next-survey-progress { display: grid; grid-template-columns: 90px auto; align-items: center; gap: 9px; flex: 0 0 auto; }
.next-survey-progress > span { height: 6px; border-radius: 3px; background: #e3e5e7; overflow: hidden; }
.next-survey-progress i { display: block; height: 100%; background: #528667; }
.next-survey-progress strong { font-size: 11px; white-space: nowrap; }
.next-survey-header-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--next-line); background: #fbfbfc; }
.next-survey-header-fields .wide { grid-column: span 2; }
.next-survey-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-bottom: 1px solid var(--next-line);
  background: var(--next-line);
}
.next-survey-chapters > button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 9px;
  color: var(--next-ink);
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.next-survey-chapters > button:hover { background: #f7f8f9; }
.next-survey-chapters > button.active { background: #fbf2f3; box-shadow: inset 3px 0 0 var(--next-red); }
.next-survey-chapters > button > span { color: var(--next-red-dark); font-size: 8px; font-weight: 900; }
.next-survey-chapters > button > strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-survey-chapters > button > small { color: var(--next-muted); font-size: 7px; white-space: nowrap; }
.next-survey-chapters > button > b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: #8e242b; border-radius: 3px; background: #fae9eb; font-size: 7px; }
.next-survey-chapter-detail { margin: 14px; }
.next-survey-chapter-detail > header p { max-width: 720px; margin: 5px 0 0; color: var(--next-muted); font-size: 8px; line-height: 1.45; }
.next-survey-chapter-detail > header code { max-width: 360px; padding: 5px 7px; color: #555a60; border-radius: 3px; background: #eef0f2; font-size: 7px; line-height: 1.35; white-space: normal; }
.next-survey-points { display: grid; gap: 9px; padding: 10px; background: #f6f7f8; }
.next-survey-point { min-width: 0; border: 1px solid var(--next-line); border-left-width: 3px; border-radius: 4px; background: #fff; overflow: hidden; }
.next-survey-point.assessment-open { border-left-color: #9da2a7; }
.next-survey-point.assessment-ok { border-left-color: #528667; }
.next-survey-point.assessment-defect { border-left-color: #c5913f; }
.next-survey-point.assessment-critical { border-left-color: var(--next-red); }
.next-survey-point.assessment-na { border-left-color: #6e7580; }
.next-survey-point-heading { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid #eceef0; }
.next-survey-point-heading > span { display: grid; place-items: center; width: 23px; height: 23px; color: #555a60; border-radius: 3px; background: #eef0f2; font-size: 8px; font-weight: 900; }
.next-survey-point-heading > div { display: grid; min-width: 0; gap: 3px; }
.next-survey-point-heading strong { font-size: 9px; line-height: 1.35; }
.next-survey-point-heading small { color: var(--next-muted); font-size: 7px; }
.next-survey-point-heading > a { display: grid; place-items: center; width: 27px; height: 27px; color: #315f43; border: 1px solid #bdd1c5; border-radius: 4px; background: #f1f7f3; }
.next-survey-point-heading > a svg { width: 13px; height: 13px; }
.next-survey-assessment { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 8px 11px; border-bottom: 1px solid #eceef0; }
.next-survey-assessment button {
  min-height: 28px;
  padding: 0 7px;
  color: #555a60;
  border: 1px solid var(--next-line);
  border-radius: 3px;
  background: #fff;
  font-size: 7px;
  font-weight: 800;
  cursor: pointer;
}
.next-survey-assessment button:hover { border-color: #aaaeb2; }
.next-survey-assessment button.active { color: #fff; border-color: #555a60; background: #555a60; }
.next-survey-point.assessment-ok .next-survey-assessment button.active { border-color: #477659; background: #528667; }
.next-survey-point.assessment-defect .next-survey-assessment button.active { border-color: #a9792e; background: #b98431; }
.next-survey-point.assessment-critical .next-survey-assessment button.active { border-color: var(--next-red-dark); background: var(--next-red); }
.next-survey-point > .next-form-grid { padding: 10px 11px 12px; }
.next-survey-followup { display: flex; align-items: end; }
.next-survey-detail > footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  color: var(--next-muted);
  border-top: 1px solid var(--next-line);
  background: #f8f9fa;
  font-size: 8px;
  line-height: 1.4;
}
.next-survey-detail > footer .danger { color: #8e242b; }

@media (max-width: 1080px) {
  .next-survey-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .next-survey-header-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-survey-chapters { grid-template-columns: 1fr; }
  .next-survey-chapter-detail > header { align-items: stretch; flex-direction: column; }
  .next-survey-chapter-detail > header code { max-width: none; }
}

@media (max-width: 760px) {
  .next-survey-master > header,
  .next-survey-register > header { align-items: flex-start; }
  .next-survey-layout { grid-template-columns: 1fr; }
  .next-survey-list { display: grid; grid-auto-columns: minmax(205px, 75%); grid-auto-flow: column; max-height: none; border-right: 0; border-bottom: 1px solid var(--next-line); overflow-x: auto; overflow-y: hidden; }
  .next-survey-list > button { margin: 0 6px 0 0; }
  .next-survey-detail > header { align-items: flex-start; }
  .next-survey-progress { grid-template-columns: 70px auto; }
  .next-survey-assessment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-survey-detail > footer { grid-template-columns: 1fr; align-items: stretch; }
  .next-survey-detail > footer > span { order: -1; }
}

@media (max-width: 520px) {
  .next-survey-workspace > .next-function-kpis { grid-template-columns: 1fr; }
  .next-survey-workspace > .next-function-kpis > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-survey-workspace > .next-function-kpis > div:last-child { border-bottom: 0; }
  .next-survey-master > header .next-command,
  .next-survey-register > header .next-secondary-command { width: 34px; min-width: 34px; padding: 0; }
  .next-survey-master > header .next-command span,
  .next-survey-register > header .next-secondary-command span { display: none; }
  .next-survey-master > footer,
  .next-survey-starter > footer { align-items: stretch; flex-direction: column; }
  .next-survey-starter > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .next-survey-header-fields { grid-template-columns: 1fr; }
  .next-survey-header-fields .wide { grid-column: auto; }
  .next-survey-detail > header { flex-direction: column; }
  .next-survey-progress { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .next-survey-chapter-detail { margin: 9px; }
  .next-survey-assessment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-survey-point-heading { align-items: start; }
  .next-survey-detail > footer .next-command,
  .next-survey-detail > footer .next-secondary-command { width: 100%; }
}

/* Native building fabric, heating and valuation workspaces */
.next-building-workspace { display: grid; gap: 14px; }
.next-building-workspace > .next-function-kpis { border: 1px solid var(--next-line); border-radius: 5px; background: #fff; }
.next-building-panel,
.next-technical-editor {
  min-width: 0;
  border: 1px solid var(--next-line);
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.next-building-panel > header,
.next-technical-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--next-line);
}
.next-building-panel > header > div,
.next-technical-editor > header > div { display: grid; gap: 2px; min-width: 0; }
.next-building-panel > header > div > span,
.next-technical-editor > header > div > span { color: var(--next-red); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.next-building-panel > header h3,
.next-technical-editor > header h4 { margin: 0; color: var(--next-ink); font-size: 12px; line-height: 1.25; }
.next-building-panel > header h3 b { display: inline-grid; place-items: center; min-width: 21px; height: 19px; margin-left: 4px; color: #555a60; border-radius: 3px; background: #eceef0; font-size: 8px; }
.next-building-panel > header code { max-width: 440px; padding: 5px 7px; color: #555a60; border-radius: 3px; background: #eef0f2; font-size: 7px; line-height: 1.35; white-space: normal; }
.next-building-panel > fieldset,
.next-technical-editor > fieldset { min-width: 0; margin: 0; padding: 13px 14px; border: 0; }
.next-building-panel > footer,
.next-technical-editor > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 49px;
  padding: 9px 14px;
  color: var(--next-muted);
  border-top: 1px solid var(--next-line);
  background: #f8f9fa;
  font-size: 8px;
  line-height: 1.4;
}
.next-classification-group { padding: 12px 0; border-top: 1px solid #eceef0; }
.next-classification-group:first-of-type { margin-top: 13px; }
.next-classification-group > header { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.next-classification-group > header > div { display: grid; gap: 2px; }
.next-classification-group > header span { color: var(--next-muted); font-size: 7px; }
.next-classification-group > header h4 { margin: 0; color: var(--next-ink); font-size: 10px; }
.next-classification-group > header > small { color: var(--next-muted); font-size: 7px; }
.next-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.next-choice-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  color: #555a60;
  border: 1px solid var(--next-line);
  border-radius: 4px;
  background: #fff;
  font-size: 8px;
  font-weight: 750;
  cursor: pointer;
}
.next-choice-option:hover { border-color: #b6b9bc; background: #fafafa; }
.next-choice-option.selected { color: #7e1d24; border-color: #d8a7ab; background: #fbf1f2; }
.next-choice-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--next-red); }
.next-choice-option span { min-width: 0; overflow-wrap: anywhere; }
.next-inline-entry { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 5px; }
.next-inline-entry > button,
.next-technical-editor > header > button {
  display: grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  color: #555a60;
  border: 1px solid var(--next-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.next-inline-entry > button:hover,
.next-technical-editor > header > button:hover { color: var(--next-red); border-color: #cba5a8; }
.next-inline-entry > button svg,
.next-technical-editor > header > button svg { width: 14px; height: 14px; }
.next-condition-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.next-value-assessment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.next-value-assessment-grid .full { grid-column: 1 / -1; }
.next-technical-editor { margin: 12px 14px; border-color: #c5c8cb; box-shadow: 0 7px 22px rgba(28, 31, 34, .07); }
.next-technical-editor > header { background: #f8f9fa; }
.next-technical-register { display: grid; gap: 1px; padding: 1px; background: var(--next-line); }
.next-technical-register > article {
  display: grid;
  grid-template-columns: 36px minmax(210px, 1.3fr) minmax(290px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 13px;
  background: #fff;
}
.next-technical-symbol { display: grid; place-items: center; width: 33px; height: 33px; color: #8d2b32; border-radius: 4px; background: #f7e9ea; }
.next-technical-symbol svg { width: 15px; height: 15px; }
.next-technical-register > article > div { display: grid; min-width: 0; gap: 3px; }
.next-technical-register > article > div strong { overflow: hidden; color: var(--next-ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-technical-register > article > div small { color: #555a60; font-size: 8px; }
.next-technical-register > article > div em { overflow: hidden; color: var(--next-muted); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.next-technical-register dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.next-technical-register dl > div { display: grid; gap: 2px; min-width: 0; }
.next-technical-register dt { color: var(--next-muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.next-technical-register dd { margin: 0; overflow: hidden; color: #3e4246; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1080px) {
  .next-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-condition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-technical-register > article { grid-template-columns: 36px minmax(180px, 1fr) minmax(240px, 1fr) auto; }
}

@media (max-width: 760px) {
  .next-building-panel > header { align-items: flex-start; }
  .next-building-panel > header code { max-width: 45%; }
  .next-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-condition-grid,
  .next-value-assessment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-technical-register > article { grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; }
  .next-technical-register dl { grid-column: 2 / -1; }
}

@media (max-width: 520px) {
  .next-building-workspace > .next-function-kpis { grid-template-columns: 1fr; }
  .next-building-workspace > .next-function-kpis > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-building-workspace > .next-function-kpis > div:last-child { border-bottom: 0; }
  .next-building-panel > header { flex-wrap: wrap; }
  .next-building-panel > header code { width: 100%; max-width: none; }
  .next-building-panel > header > .next-secondary-command { width: 34px; min-width: 34px; padding: 0; }
  .next-building-panel > header > .next-secondary-command span { display: none; }
  .next-choice-grid,
  .next-condition-grid,
  .next-value-assessment-grid { grid-template-columns: 1fr; }
  .next-value-assessment-grid .full { grid-column: auto; }
  .next-building-panel > footer,
  .next-technical-editor > footer { align-items: stretch; flex-direction: column; }
  .next-building-panel > footer > .next-command,
  .next-technical-editor > footer > .next-command,
  .next-technical-editor > footer > .next-secondary-command { width: 100%; }
  .next-technical-register > article { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .next-technical-register dl { grid-template-columns: 1fr; }
}

.next-rental-deposit { display:grid; gap:16px; min-width:0; }
.next-rental-deposit-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; border-bottom:1px solid #d9dde3; padding-bottom:12px; }
.next-rental-deposit-header > div:first-child { min-width:0; }
.next-rental-deposit-header > div:last-child { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.next-rental-deposit-header span, .next-rental-deposit-installments > header span, .next-rental-deposit-journal > header span { color:#69717b; font-size:.76rem; }
.next-rental-deposit-header h3, .next-rental-deposit-installments h4, .next-rental-deposit-journal h4 { margin:3px 0 0; letter-spacing:0; }
.next-rental-deposit-layout { display:grid; grid-template-columns:minmax(230px, 280px) minmax(0, 1fr); gap:16px; align-items:start; min-width:0; }
.next-rental-deposit-list { border-right:1px solid #d9dde3; padding-right:14px; display:grid; gap:6px; max-height:760px; overflow:auto; }
.next-rental-deposit-list > header { display:flex; align-items:center; justify-content:space-between; padding:4px 4px 8px; }
.next-rental-deposit-list > header span { min-width:25px; height:25px; display:grid; place-items:center; background:#edf0f3; border-radius:50%; font-size:.75rem; }
.next-rental-deposit-list > button { appearance:none; border:1px solid transparent; border-radius:6px; background:transparent; text-align:left; padding:10px; display:grid; gap:5px; cursor:pointer; min-width:0; color:inherit; }
.next-rental-deposit-list > button:hover { background:#f4f6f7; }
.next-rental-deposit-list > button.active { background:#f1f6f4; border-color:#94b4a7; box-shadow:inset 3px 0 #276a51; }
.next-rental-deposit-list > button > span { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.next-rental-deposit-list > button > strong, .next-rental-deposit-list > button > small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-deposit-workspace { min-width:0; display:grid; gap:14px; }
.next-rental-deposit-editor, .next-rental-deposit-transaction-form { margin:0; }
.next-rental-deposit-summary { border:1px solid #d5dadf; border-radius:7px; background:#fff; overflow:hidden; }
.next-rental-deposit-summary > header { padding:16px 18px; display:flex; justify-content:space-between; align-items:flex-start; gap:14px; background:#f7f8f8; border-bottom:1px solid #dde1e4; }
.next-rental-deposit-summary > header > div:first-child { min-width:0; display:grid; gap:2px; }
.next-rental-deposit-summary > header > div:first-child > span { color:#276a51; font-size:.72rem; font-weight:700; }
.next-rental-deposit-summary > header > div:last-child { display:flex; align-items:center; gap:8px; }
.next-rental-deposit-summary h4 { margin:0; letter-spacing:0; }
.next-rental-deposit-summary header small { color:#66707a; }
.next-rental-deposit-facts { display:grid; grid-template-columns:repeat(6, minmax(95px, 1fr)); border-bottom:1px solid #dde1e4; }
.next-rental-deposit-facts > span { display:grid; gap:3px; padding:13px 14px; border-right:1px solid #e3e6e8; }
.next-rental-deposit-facts > span:last-child { border-right:0; }
.next-rental-deposit-facts small { color:#6a727b; font-size:.7rem; }
.next-rental-deposit-facts strong { font-size:.98rem; }
.next-rental-deposit-summary dl { margin:0; padding:14px 18px; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 20px; }
.next-rental-deposit-summary dl > div { min-width:0; }
.next-rental-deposit-summary dt { color:#707780; font-size:.7rem; text-transform:uppercase; }
.next-rental-deposit-summary dd { margin:3px 0 0; overflow-wrap:anywhere; }
.next-rental-deposit-installments { display:grid; gap:10px; }
.next-rental-deposit-installments > header, .next-rental-deposit-journal > header { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.next-rental-deposit-installments > header > div, .next-rental-deposit-journal > header > div { min-width:0; }
.next-rental-deposit-installments > div { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.next-rental-deposit-installments article { border:1px solid #d8dde1; border-radius:6px; padding:11px 12px; display:grid; gap:8px; background:#fff; }
.next-rental-deposit-installments article.paid { border-color:#8ab4a3; background:#f5faf8; }
.next-rental-deposit-installments article.overdue { border-color:#d58b82; background:#fff7f5; }
.next-rental-deposit-installments article header, .next-rental-deposit-installments article footer { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.next-rental-deposit-installments article header span, .next-rental-deposit-installments article footer span { color:#68717a; font-size:.73rem; }
.next-rental-deposit-installments article > div { height:5px; border-radius:3px; background:#e4e7e9; overflow:hidden; }
.next-rental-deposit-installments article > div i { display:block; height:100%; background:#2d795c; }
.next-rental-deposit-journal { display:grid; gap:8px; min-width:0; }
.next-rental-deposit-journal > article { display:grid; grid-template-columns:minmax(105px, .7fr) minmax(170px, 1.4fr) minmax(125px, .8fr) auto; gap:12px; align-items:center; padding:10px 12px; border:1px solid #dde1e4; border-radius:6px; background:#fff; min-width:0; }
.next-rental-deposit-journal > article > span { min-width:0; display:grid; gap:3px; }
.next-rental-deposit-journal > article small { color:#6b737c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-rental-deposit-journal .positive { color:#176647; }
.next-rental-deposit-journal .negative { color:#a33a31; }
.next-rental-deposit-journal .actions { display:flex; grid-auto-flow:column; justify-content:end; align-items:center; gap:6px; }
.next-rental-deposit-workflow { border-top:1px solid #d9dde1; padding-top:14px; display:grid; gap:12px; }
.next-rental-deposit-workflow > footer { display:flex; justify-content:space-between; gap:14px; align-items:center; }
.next-rental-deposit-workflow > footer > span { color:#626b74; max-width:55ch; font-size:.78rem; }
.next-rental-deposit-workflow > footer > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }

@media (max-width: 1100px) {
    .next-rental-deposit-facts { grid-template-columns:repeat(3, minmax(95px, 1fr)); }
    .next-rental-deposit-facts > span:nth-child(3) { border-right:0; }
    .next-rental-deposit-facts > span:nth-child(-n+3) { border-bottom:1px solid #e3e6e8; }
    .next-rental-deposit-journal > article { grid-template-columns:minmax(100px, .7fr) minmax(160px, 1.3fr) minmax(125px, .8fr); }
    .next-rental-deposit-journal .actions { grid-column:1 / -1; justify-content:flex-end; border-top:1px solid #edf0f1; padding-top:8px; }
}

@media (max-width: 900px) {
  .next-property-switcher { grid-template-columns: 1fr; gap: 10px; padding: 11px; }
  .next-property-switcher-context { justify-items: start; text-align: left; }
}

@media (max-width: 760px) {
    .next-rental-deposit-header { align-items:flex-start; }
    .next-rental-deposit-layout { grid-template-columns:1fr; }
    .next-rental-deposit-list { border-right:0; border-bottom:1px solid #d9dde3; padding:0 0 12px; max-height:230px; }
    .next-rental-deposit-summary > header { padding:13px; }
    .next-rental-deposit-summary dl { grid-template-columns:1fr; padding:13px; }
    .next-rental-deposit-installments > div { grid-template-columns:1fr; }
    .next-rental-deposit-journal > article { grid-template-columns:1fr 1fr; }
    .next-rental-deposit-journal .actions { grid-column:1 / -1; }
    .next-rental-deposit-workflow > footer { align-items:flex-start; flex-direction:column; }
    .next-rental-deposit-workflow > footer > div { width:100%; justify-content:flex-start; }
}

@media (max-width: 460px) {
    .next-rental-deposit-header { flex-direction:column; }
    .next-rental-deposit-header > div:last-child { width:100%; justify-content:flex-start; }
    .next-rental-deposit-facts { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .next-rental-deposit-facts > span { border-bottom:1px solid #e3e6e8; }
    .next-rental-deposit-facts > span:nth-child(2n) { border-right:0; }
    .next-rental-deposit-facts > span:nth-child(n+5) { border-bottom:0; }
    .next-rental-deposit-journal > article { grid-template-columns:1fr; }
}

.next-notification-indicator { position: relative; }
.next-notification-indicator > span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 9px;
  background: var(--next-red);
  font-size: 7px;
  font-weight: 800;
}
.next-notification-inbox-toolbar { grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(145px, 190px)); }
.next-notification-inbox-list { max-height: 640px; overflow-y: auto; }
.next-notification-inbox-list > article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 88px;
  padding: 11px 13px;
  border-bottom: 1px solid #e9ebed;
  background: #fff;
}
.next-notification-inbox-list > article:last-child { border-bottom: 0; }
.next-notification-inbox-list > article.unread { box-shadow: inset 3px 0 #7c8791; }
.next-notification-inbox-list > article.unread.critical { background: #fff7f7; box-shadow: inset 3px 0 #aa343c; }
.next-notification-inbox-list > article.unread.warning { background: #fffaf2; box-shadow: inset 3px 0 #b17b25; }
.next-notification-inbox-list > article.read { opacity: .72; }
.next-notification-inbox-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.next-notification-inbox-symbol svg { width: 16px; height: 16px; }
.next-notification-inbox-symbol.critical { color: #8e242b; background: #fae9eb; }
.next-notification-inbox-symbol.warning { color: #755018; background: #f8efe1; }
.next-notification-inbox-symbol.info { color: #496070; background: #eaf0f6; }
.next-notification-inbox-copy { display: grid; min-width: 0; gap: 3px; }
.next-notification-inbox-copy > div { display: flex; align-items: center; gap: 7px; }
.next-notification-inbox-copy > div small { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-notification-inbox-copy > div em { min-height: 18px; padding: 2px 5px; color: #666b71; border-radius: 3px; background: #eef0f2; font-size: 6px; font-style: normal; font-weight: 800; }
.next-notification-inbox-copy > strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-inbox-copy > p { overflow: hidden; margin: 0; color: #555a60; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-inbox-copy > span { overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-notification-inbox-actions { display: flex; gap: 6px; }
.next-notification-inbox-actions button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  color: #555a60;
  border: 1px solid var(--next-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.next-notification-inbox-actions button:hover { color: var(--next-red-dark); border-color: #cfadb0; }
.next-notification-inbox-actions button.open { color: #fff; border-color: var(--next-red); background: var(--next-red); }
.next-notification-inbox-actions button:disabled { opacity: .5; cursor: not-allowed; }
.next-notification-inbox-actions svg { width: 14px; height: 14px; }
.next-notification-inbox > footer { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 39px; padding: 8px 12px; color: var(--next-muted); border-top: 1px solid var(--next-line); background: #f8f9fa; font-size: 8px; }
.next-notification-inbox > footer svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .next-notification-inbox-toolbar { grid-template-columns: 1fr 1fr; }
  .next-notification-inbox-toolbar label { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .next-notification-inbox .next-work-section-header { align-items: flex-start; }
  .next-notification-inbox .next-work-section-header button { width: 34px; min-width: 34px; padding: 0; }
  .next-notification-inbox .next-work-section-header button span { display: none; }
  .next-notification-inbox-toolbar { grid-template-columns: 1fr; }
  .next-notification-inbox-toolbar label { grid-column: auto; }
  .next-notification-inbox-list > article { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .next-notification-inbox-symbol { width: 32px; height: 32px; }
  .next-notification-inbox-actions { grid-column: 2; justify-content: flex-end; }
  .next-notification-inbox-copy > strong,
  .next-notification-inbox-copy > p,
  .next-notification-inbox-copy > span { white-space: normal; }
}

/* A6 portfolio calendar */
.next-calendar-header .next-work-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.next-calendar-stepper { display: inline-flex; height: 34px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; overflow: hidden; }
.next-calendar-stepper button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 34px; height: 32px; padding: 0 9px; color: #555a60; border: 0; border-right: 1px solid var(--next-line); background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.next-calendar-stepper button:last-child { border-right: 0; }
.next-calendar-stepper button:hover { color: var(--next-red-dark); background: #f5f6f7; }
.next-calendar-stepper svg { width: 14px; height: 14px; }
.next-calendar-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); background: #fbfcfc; }
.next-calendar-date { display: inline-flex; align-items: center; gap: 8px; color: var(--next-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.next-calendar-date input { width: 136px; height: 32px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 9px; }
.next-calendar-modes { display: inline-flex; height: 32px; padding: 2px; border: 1px solid var(--next-line); border-radius: 4px; background: #eef0f2; }
.next-calendar-modes button { min-width: 64px; height: 26px; padding: 0 9px; color: #60656a; border: 0; border-radius: 3px; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.next-calendar-modes button.active { color: #fff; background: #444b50; }
.next-calendar-toolbar { display: grid; grid-template-columns: minmax(210px, 1fr) repeat(5, minmax(125px, 180px)); gap: 7px; padding: 9px 12px; border-bottom: 1px solid var(--next-line); background: #f4f5f6; }
.next-calendar-toolbar label { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 6px; height: 33px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-calendar-toolbar label svg { width: 13px; height: 13px; color: #8a8f94; }
.next-calendar-toolbar input, .next-calendar-toolbar select { min-width: 0; height: 33px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 9px; }
.next-calendar-toolbar label input { width: 100%; height: 29px; padding: 0; border: 0; }
.next-calendar-content { display: grid; min-width: 0; }
.next-calendar-content.has-detail { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); }
.next-calendar-view { min-width: 0; overflow: hidden; }
.next-calendar-content.has-detail .next-calendar-view { border-right: 1px solid var(--next-line); }
.next-calendar-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
.next-calendar-row { display: contents; }
.next-calendar-weekday { display: grid; place-items: center; height: 29px; color: #666b70; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f7f8f9; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-calendar-weekday:nth-child(7) { border-right: 0; }
.next-calendar-day { min-width: 0; min-height: 105px; padding: 5px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fff; }
.next-calendar-row .next-calendar-day:last-child { border-right: 0; }
.next-calendar-row:last-child .next-calendar-day { border-bottom: 0; }
.next-calendar-day.outside { background: #f8f9fa; }
.next-calendar-day.today { background: #fff8f3; box-shadow: inset 0 3px #c76931; }
.next-calendar-day > header { display: flex; align-items: center; justify-content: space-between; min-height: 20px; padding: 0 2px; }
.next-calendar-day > header > span { color: #4b5055; font-size: 9px; font-weight: 800; }
.next-calendar-day.outside > header > span { color: #a4a8ac; }
.next-calendar-day > header > div { display: flex; align-items: center; gap: 2px; }
.next-calendar-day > header em { color: #a44c24; font-size: 6px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-calendar-day > header button, .next-calendar-week > section > header button, .next-calendar-agenda > section > header button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; color: #6d7378; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.next-calendar-day > header button { opacity: 0; }
.next-calendar-day:hover > header button, .next-calendar-day > header button:focus-visible { opacity: 1; }
.next-calendar-day > header button:hover, .next-calendar-week > section > header button:hover, .next-calendar-agenda > section > header button:hover { color: var(--next-red-dark); background: #eceff1; }
.next-calendar-day > header button svg, .next-calendar-week > section > header button svg, .next-calendar-agenda > section > header button svg { width: 11px; height: 11px; }
.next-calendar-day > div { display: grid; gap: 3px; min-width: 0; }
.next-calendar-day > div > small { padding-left: 3px; color: var(--next-muted); font-size: 7px; }
.next-calendar-mobile-more { display: none; }
.next-calendar-event { min-width: 0; color: #294e68; border: 1px solid #bfd0dc; border-left: 3px solid #547a94; border-radius: 3px; background: #edf3f6; cursor: pointer; }
.next-calendar-event:hover { filter: brightness(.97); }
.next-calendar-event.requested { color: #6f521e; border-color: #dfcda7; border-left-color: #b88b38; background: #faf4e8; }
.next-calendar-event.active { color: #315f43; border-color: #b9d3c2; border-left-color: #4f8a67; background: #edf5f0; }
.next-calendar-event.cancelled { color: #70757a; border-color: #d4d7d9; border-left-color: #9ca1a5; background: #f3f4f5; text-decoration: line-through; }
.next-calendar-event.church, .next-calendar-event.liturgical { color: #663951; border-color: #d9bdcc; border-left-color: #9a5979; background: #f8eef3; }
.next-calendar-event.monument { color: #66531d; border-color: #d8cc9b; border-left-color: #998239; background: #f8f5e8; }
.next-calendar-event.conflict { color: #8b252b; border-color: #e1b5b8; border-left-color: var(--next-red); background: #fbeced; }
.next-calendar-day .next-calendar-event { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: center; gap: 3px; width: 100%; height: 22px; padding: 0 4px; text-align: left; }
.next-calendar-day .next-calendar-event time { font-size: 6px; font-weight: 800; }
.next-calendar-day .next-calendar-event span { overflow: hidden; font-size: 7px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 430px; }
.next-calendar-week > section { min-width: 0; border-right: 1px solid var(--next-line); }
.next-calendar-week > section:last-child { border-right: 0; }
.next-calendar-week > section.today { background: #fffaf6; }
.next-calendar-week > section > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px; min-height: 47px; padding: 8px; border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-calendar-week > section.today > header { box-shadow: inset 0 3px #c76931; }
.next-calendar-week > section > header span { grid-column: 1; color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-calendar-week > section > header strong { grid-column: 1; font-size: 9px; }
.next-calendar-week > section > header button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.next-calendar-week > section > div { display: grid; align-content: start; gap: 5px; padding: 7px; }
.next-calendar-week > section > div > small { color: #a0a4a8; font-size: 7px; }
.next-calendar-week .next-calendar-event { display: grid; gap: 2px; width: 100%; padding: 6px; text-align: left; }
.next-calendar-week .next-calendar-event time { font-size: 7px; font-weight: 800; }
.next-calendar-week .next-calendar-event strong, .next-calendar-week .next-calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-calendar-week .next-calendar-event strong { font-size: 8px; }
.next-calendar-week .next-calendar-event span { font-size: 7px; opacity: .8; }
.next-calendar-agenda > section { border-bottom: 1px solid var(--next-line); }
.next-calendar-agenda > section:last-child { border-bottom: 0; }
.next-calendar-agenda > section > header { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 12px; background: #f4f5f6; }
.next-calendar-agenda > section > header time { color: #4f5459; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-calendar-agenda > section > header > div { display: flex; align-items: center; gap: 4px; }
.next-calendar-agenda > section > header span { display: grid; place-items: center; min-width: 20px; height: 18px; border-radius: 3px; background: #e2e5e7; font-size: 7px; }
.next-calendar-agenda .next-calendar-event { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 55px; padding: 8px 12px; border-width: 0 0 1px 3px; border-radius: 0; text-align: left; }
.next-calendar-agenda .next-calendar-event:last-child { border-bottom: 0; }
.next-calendar-agenda .next-calendar-event time, .next-calendar-agenda .next-calendar-event > span { display: grid; min-width: 0; gap: 2px; }
.next-calendar-agenda .next-calendar-event time { font-size: 9px; font-weight: 800; }
.next-calendar-agenda .next-calendar-event small { overflow: hidden; font-size: 7px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.next-calendar-agenda .next-calendar-event strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-calendar-agenda .next-calendar-event em { min-width: max-content; font-size: 7px; font-style: normal; font-weight: 800; }
.next-calendar-detail { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; background: #fff; }
.next-calendar-detail > header { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 58px; padding: 9px 11px; border-bottom: 1px solid var(--next-line); }
.next-calendar-detail > header > div { display: grid; min-width: 0; gap: 2px; }
.next-calendar-detail > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-calendar-detail h3 { overflow: hidden; margin: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.next-calendar-detail > header button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.next-calendar-detail > header button:hover { background: #eef0f2; }
.next-calendar-detail > header svg { width: 14px; height: 14px; }
.next-calendar-detail-scroll { overflow-y: auto; }
.next-calendar-detail dl { margin: 0; }
.next-calendar-detail dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; padding: 8px 11px; border-bottom: 1px solid #eceef0; }
.next-calendar-detail dt { color: var(--next-muted); font-size: 7px; text-transform: uppercase; }
.next-calendar-detail dd { overflow: hidden; margin: 0; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.next-calendar-flags { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 11px; }
.next-calendar-flags span { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; padding: 0 6px; color: #4f5960; border-radius: 3px; background: #eef0f2; font-size: 7px; font-weight: 800; }
.next-calendar-flags span.critical { color: #8b252b; background: #fbeced; }
.next-calendar-flags svg { width: 12px; height: 12px; }
.next-calendar-usage { display: grid; gap: 9px; padding: 11px; border-top: 1px solid var(--next-line); background: #f8f9fa; }
.next-calendar-usage > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.next-calendar-usage > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-calendar-usage > header strong { font-size: 8px; }
.next-calendar-usage > p { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 8px; border-radius: 4px; font-size: 8px; line-height: 1.4; }
.next-calendar-usage > p.success { color: #176144; background: #e7f4ee; }
.next-calendar-usage > p.error { color: #8b252b; background: #fbeced; }
.next-calendar-usage > p svg { flex: 0 0 auto; width: 13px; height: 13px; }
.next-calendar-usage-inputs, .next-calendar-cancel { display: grid; gap: 8px; }
.next-calendar-usage label { display: grid; gap: 4px; min-width: 0; color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-calendar-usage input, .next-calendar-usage textarea { width: 100%; min-width: 0; padding: 7px 8px; color: var(--next-ink); border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font: inherit; font-size: 8px; font-weight: 600; letter-spacing: 0; text-transform: none; resize: vertical; }
.next-calendar-usage input { height: 31px; resize: none; }
.next-calendar-usage-commands { display: flex; justify-content: flex-end; gap: 7px; }
.next-calendar-cancel { padding-top: 9px; border-top: 1px solid var(--next-line); }
.next-calendar-cancel .danger { justify-self: end; color: #8b252b; border-color: #e2b7ba; background: #fff; }
.next-calendar-detail > footer { display: flex; justify-content: flex-end; padding: 9px 11px; border-top: 1px solid var(--next-line); background: #f7f8f9; }
.next-calendar-detail > footer a, .next-calendar-detail > footer button { min-height: 33px; text-decoration: none; }
.next-calendar-create-form { display: grid; gap: 11px; padding: 12px; }
.next-calendar-create-form > label, .next-calendar-create-form > div > label { display: grid; min-width: 0; gap: 4px; }
.next-calendar-create-form > label > span, .next-calendar-create-form > div > label > span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-calendar-create-form select, .next-calendar-create-form input { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; font-size: 9px; }
.next-calendar-create-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.next-calendar-create-form > p { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 9px; color: #476052; border-radius: 4px; background: #edf5f0; font-size: 8px; line-height: 1.45; }
.next-calendar-create-form > p.error { color: #8b252b; background: #fbeced; }
.next-calendar-create-form > p svg { flex: 0 0 auto; width: 13px; height: 13px; }
.next-calendar-resource-modes { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 5px !important; padding: 3px; border: 1px solid var(--next-line); border-radius: 4px; background: #eef0f2; }
.next-calendar-resource-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 30px; padding: 5px 7px; color: #5d646a; border: 0; border-radius: 3px; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.next-calendar-resource-modes button.active { color: #fff; background: #3d4850; }
.next-calendar-resource-modes svg { width: 13px; height: 13px; }
.next-calendar-workplace-finder { display: grid; gap: 7px; min-width: 0; padding: 9px; border: 1px solid var(--next-line); border-radius: 4px; background: #f8f9fa; }
.next-calendar-workplace-finder > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.next-calendar-workplace-finder > header > div { display: grid; min-width: 0; gap: 2px; }
.next-calendar-workplace-finder > header span { color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-calendar-workplace-finder > header strong { font-size: 8px; }
.next-calendar-workplace-loading { width: 14px; height: 14px; border: 2px solid #c8cdd1; border-top-color: var(--next-red); border-radius: 50%; animation: next-spin 1s linear infinite; }
.next-calendar-workplace-finder > label { display: grid !important; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 3px !important; padding: 0 7px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-calendar-workplace-finder > label svg { width: 12px; height: 12px; color: var(--next-muted); }
.next-calendar-workplace-finder > label input { height: 30px; padding: 0; border: 0; background: transparent; }
.next-calendar-workplace-finder > p { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 8px; color: #8b252b; border-radius: 4px; background: #fbeced; font-size: 8px; line-height: 1.4; }
.next-calendar-workplace-finder > p svg { flex: 0 0 auto; width: 13px; height: 13px; }
.next-calendar-workplace-options { display: grid; gap: 5px; max-height: 190px; overflow-y: auto; }
.next-calendar-workplace-options > button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; min-height: 45px; padding: 7px; color: #30363b; border: 1px solid #d8dde1; border-radius: 4px; background: #fff; text-align: left; cursor: pointer; }
.next-calendar-workplace-options > button:hover { border-color: #8998a3; background: #f2f6f8; }
.next-calendar-workplace-options > button.selected { color: #24503a; border-color: #6e9a82; background: #edf6f0; box-shadow: inset 3px 0 #3f7357; }
.next-calendar-workplace-options > button.conflict { color: #777d82; border-color: #e2e4e6; background: #f1f2f3; cursor: not-allowed; opacity: .82; }
.next-calendar-workplace-options > button > svg { width: 16px; height: 16px; }
.next-calendar-workplace-options > button > span { display: grid; min-width: 0; gap: 2px; }
.next-calendar-workplace-options > button strong, .next-calendar-workplace-options > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-calendar-workplace-options > button strong { font-size: 8px; }
.next-calendar-workplace-options > button small { color: var(--next-muted); font-size: 7px; }
.next-calendar-workplace-options > button em { color: #397253; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.next-calendar-workplace-options > button.conflict em { color: #8b4a4f; }
.next-reservation-datetime:has(.next-reservation-dst-offset) { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(160px, .72fr); }
.next-reservation-datetime:has(.next-reservation-dst-offset) > span { grid-column: 1 / -1; }
.next-reservation-dst-offset { color: #664f1e !important; border-color: #d8c58f !important; background: #fff9e8 !important; }

@media (max-width: 1180px) {
  .next-calendar-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-calendar-toolbar label { grid-column: span 2; }
  .next-calendar-content.has-detail { grid-template-columns: minmax(0, 1fr) 260px; }
  .next-calendar-day { min-height: 92px; }
}

@media (max-width: 760px) {
  .next-calendar-header { align-items: flex-start; }
  .next-calendar-header .next-work-header-actions { width: 100%; justify-content: space-between; }
  .next-calendar-controls { align-items: stretch; }
  .next-calendar-date { display: grid; gap: 4px; }
  .next-calendar-date input { width: 132px; }
  .next-calendar-toolbar { grid-template-columns: 1fr 1fr; }
  .next-calendar-toolbar label { grid-column: 1 / -1; }
  .next-calendar-content.has-detail { grid-template-columns: 1fr; }
  .next-calendar-content.has-detail .next-calendar-view { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-calendar-day { min-height: 75px; padding: 3px; }
  .next-calendar-day > header { min-height: 17px; }
  .next-calendar-day .next-calendar-event { grid-template-columns: minmax(0, 1fr); height: 17px; padding: 0 2px; }
  .next-calendar-day .next-calendar-event time { display: none; }
  .next-calendar-day .next-calendar-event span { font-size: 6px; }
  .next-calendar-day > div > small { font-size: 6px; }
  .next-calendar-week { grid-template-columns: 1fr; min-height: 0; }
  .next-calendar-week > section { display: grid; grid-template-columns: 92px minmax(0, 1fr); border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-calendar-week > section:last-child { border-bottom: 0; }
  .next-calendar-week > section > header { border-right: 1px solid var(--next-line); border-bottom: 0; }
  .next-calendar-agenda .next-calendar-event { grid-template-columns: 58px minmax(0, 1fr); }
  .next-calendar-agenda .next-calendar-event > em { grid-column: 2; justify-self: start; }
  .next-calendar-detail { max-height: none; }
}

@media (max-width: 460px) {
  .next-reservation-datetime:has(.next-reservation-dst-offset) { grid-column: auto; grid-template-columns: 1fr; }
  .next-reservation-datetime:has(.next-reservation-dst-offset) > span { grid-column: auto; }
  .next-calendar-header .next-work-header-actions > a, .next-calendar-header .next-work-header-actions > button { width: 34px; padding: 0; }
  .next-calendar-header .next-work-header-actions > a span, .next-calendar-header .next-work-header-actions > button span { display: none; }
  .next-calendar-stepper button span { display: none; }
  .next-calendar-controls { display: grid; grid-template-columns: 1fr; }
  .next-calendar-date { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .next-calendar-date input { width: 100%; }
  .next-calendar-modes { width: 100%; }
  .next-calendar-modes button { flex: 1; min-width: 0; }
  .next-calendar-toolbar { grid-template-columns: 1fr; }
  .next-calendar-toolbar label { grid-column: auto; }
  .next-calendar-day { min-height: 62px; }
  .next-calendar-day > header em { display: none; }
  .next-calendar-day > header button { width: 16px; height: 16px; opacity: 1; }
  .next-calendar-day .next-calendar-event:nth-child(n+3) { display: none; }
  .next-calendar-day > div > .next-calendar-desktop-more { display: none; }
  .next-calendar-day > div > .next-calendar-mobile-more { display: block; }
  .next-calendar-agenda .next-calendar-event { gap: 7px; padding-inline: 8px; }
}

@media (max-width: 760px) {
  .next-rental-finance-header, .next-rental-finance-form > header, .next-rental-finance-journal > header, .next-rental-bank-import > header, .next-rental-account-export > header { align-items: flex-start; flex-direction: column; }
  .next-rental-finance-header-actions { justify-content: space-between; width: 100%; }
  .next-rental-finance-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(145px, 1fr); grid-template-columns: none; overflow-x: auto; }
  .next-rental-finance-tabs button { border-bottom-width: 3px; }
  .next-rental-finance-form .next-form-grid { grid-template-columns: 1fr; }
  .next-rental-finance-form > footer { align-items: stretch; flex-direction: column; }
  .next-rental-finance-form > footer .next-command { width: 100%; }
  .next-rental-finance-journal > header select { width: 100%; }
  .next-rental-finance-row.next-asset-row { grid-template-columns: 1fr; }
  .next-rental-finance-row.next-asset-row .next-governance-actions { grid-column: 1; }
  .next-rental-open-row.next-asset-row { grid-template-columns: 1fr; }
  .next-rental-import-row.next-asset-row { grid-template-columns: 1fr; }
  .next-rental-import-row.next-asset-row > span:first-child { display: flex; justify-content: space-between; }
  .next-rental-import-options, .next-rental-account-actions { grid-template-columns: 1fr; }
  .next-rental-bank-import > footer { align-items: stretch; flex-direction: column; }
  .next-rental-bank-import > footer .next-command, .next-rental-account-actions .next-secondary-command { width: 100%; }
  .next-operating-cost-header { align-items: flex-start; flex-direction: column; }
  .next-operating-cost-header .next-command { width: 100%; }
  .next-operating-cost-layout { grid-template-columns: 1fr; }
  .next-operating-cost-runs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-operating-cost-runs > header { min-width: 125px; border-right: 1px solid var(--next-line); border-bottom: 0; }
  .next-operating-cost-runs > button { flex: 0 0 220px; border-right: 1px solid var(--next-line); border-bottom: 0; border-left: 0; border-top: 3px solid transparent; }
  .next-operating-cost-runs > button.active { border-top-color: var(--next-red); border-left-color: transparent; }
  .next-operating-cost-editor .next-form-grid { grid-template-columns: 1fr; }
  .next-operating-cost-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-operating-cost-totals > span:last-child { grid-column: 1 / -1; }
  .next-operating-cost-actions { align-items: stretch; flex-direction: column; }
  .next-operating-cost-actions .next-command, .next-operating-cost-actions .next-secondary-command { width: 100%; }
}

@media (max-width: 980px) {
  .next-einvoice-intake-body { grid-template-columns: 1fr; }
  .next-payment-run-list article { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .next-payment-run-list article > span:nth-of-type(3) { grid-column: 2 / -1; }
  .next-payment-status-details { grid-template-columns: 1fr; }
  .next-payment-reconciliation-summary { grid-template-columns: 1fr; }
  .next-budget-invoice-list .next-asset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-budget-invoice-list .next-asset-row .next-governance-actions { grid-column: 1 / -1; }
  .next-budget-payment-editor .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-purchase-list .next-asset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-purchase-list .next-asset-row .next-governance-actions { grid-column: 1 / -1; }
  .next-purchase-acceptance .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .next-budget-tabs { grid-template-columns: 1fr; }
  .next-budget-tabs button { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-budget-tabs button:last-child { border-bottom: 3px solid transparent; }
  .next-budget-tabs button:last-child.active { border-bottom-color: var(--next-red); }
  .next-budget-invoice-summary .next-quality-summary, .next-purchase-summary .next-quality-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-einvoice-intake > header { align-items: stretch; flex-direction: column; }
  .next-einvoice-intake-metrics, .next-einvoice-detail-grid { grid-template-columns: 1fr; }
  .next-einvoice-intake-metrics > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-einvoice-intake-metrics > span:last-child { border-bottom: 0; }
  .next-budget-invoice-list .next-asset-row, .next-budget-payment-editor .next-form-grid, .next-purchase-list .next-asset-row, .next-purchase-acceptance .next-form-grid { grid-template-columns: 1fr; }
  .next-budget-invoice-list .next-asset-row .next-governance-actions, .next-purchase-list .next-asset-row .next-governance-actions { grid-column: 1; }
  .next-budget-payment-editor > header, .next-budget-payment-editor > footer, .next-purchase-acceptance > header, .next-purchase-acceptance > footer { align-items: stretch; flex-direction: column; }
  .next-budget-payment-editor > footer > div, .next-purchase-acceptance > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-accounting-handoff-summary { grid-template-columns: 24px minmax(0, 1fr) 30px; }
  .next-accounting-handoff-summary > span:nth-of-type(2) { grid-column: 2 / -1; }
  .next-accounting-handoff-actions { align-items: stretch; flex-direction: column; }
  .next-accounting-handoff-actions > div { display: grid; grid-template-columns: 1fr; }
  .next-payment-run-candidates > label { grid-template-columns: 24px minmax(0, 1fr); }
  .next-payment-run-candidates > label > strong { grid-column: 2; text-align: left; }
  .next-payment-run-list article { grid-template-columns: 28px minmax(0, 1fr); }
  .next-payment-run-list article > span:nth-of-type(3), .next-payment-run-list article > div { grid-column: 2; }
  .next-payment-run-create { grid-template-columns: 1fr; }
  .next-payment-reconciliation-actions { grid-template-columns: 1fr; }
  .next-payment-reconciliation-actions .next-command, .next-payment-reconciliation-actions .next-secondary-command { width: 100%; }
  .next-payment-return-list > header { align-items: flex-start; flex-direction: column; }
  .next-payment-return-row { grid-template-columns: 1fr; }
  .next-payment-return-row .next-secondary-command { width: 100%; }
  .next-payment-return-state { min-width: 0; text-align: left; }
  .next-purchase-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .next-work-kpis.next-contract-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-contract-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-insurance-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-insurance-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-obligation-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-obligation-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-finance-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-finance-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-asset-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-asset-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-maintenance-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-maintenance-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-service-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-service-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-inspection-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-inspection-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-sustainability-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-sustainability-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-energy-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-energy-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-area-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-area-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-work-kpis.next-rental-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-rental-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-contract-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-property-dossier-toolbar { grid-template-columns: 1fr; }
  .next-party-dossier-toolbar { grid-template-columns: 1fr; }
  .next-contract-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 32px; }
  .next-contract-portfolio-list > a > span { grid-column: 1; }
  .next-insurance-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-insurance-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 32px; }
  .next-insurance-portfolio-list > a > span { grid-column: 1; }
  .next-contract-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-contract-portfolio-foot { display: grid; }
  .next-obligation-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-obligation-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 36px; }
  .next-obligation-portfolio-list > a > span { grid-column: 1; }
  .next-obligation-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-obligation-portfolio-foot { display: grid; }
  .next-finance-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-finance-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 36px; }
  .next-finance-portfolio-list > a > span { grid-column: 1; }
  .next-finance-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-finance-portfolio-foot { display: grid; }
  .next-asset-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-asset-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 38px; }
  .next-asset-portfolio-list > a > span { grid-column: 1; }
  .next-asset-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-asset-portfolio-foot { display: grid; }
  .next-maintenance-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-maintenance-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 36px; }
  .next-maintenance-portfolio-list > a > span { grid-column: 1; }
  .next-maintenance-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-maintenance-portfolio-foot { display: grid; }
  .next-service-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-service-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 36px; }
  .next-service-portfolio-list > a > span { grid-column: 1; }
  .next-service-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-service-portfolio-foot { display: grid; }
  .next-inspection-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-inspection-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-inspection-portfolio-list > a > span { grid-column: 1; }
  .next-inspection-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-inspection-portfolio-foot { display: grid; }
  .next-sustainability-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-sustainability-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-sustainability-portfolio-list > a > span { grid-column: 1; }
  .next-sustainability-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-sustainability-portfolio-foot { display: grid; }
  .next-energy-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-energy-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-energy-portfolio-list > a > span { grid-column: 1; }
  .next-energy-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-energy-portfolio-foot { display: grid; }
  .next-area-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-area-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-area-portfolio-list > a > span { grid-column: 1; }
  .next-area-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-area-portfolio-foot { display: grid; }
  .next-quality-band.next-area-portfolio-band, .next-quality-band.next-chargeback-portfolio-band { grid-template-columns: 1fr; }
  .next-area-portfolio-band > span, .next-chargeback-portfolio-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-area-portfolio-band > span:last-child, .next-chargeback-portfolio-band > span:last-child { border-bottom: 0; }
  .next-work-kpis.next-chargeback-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-chargeback-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-chargeback-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-chargeback-summary-list > div { grid-template-columns: 1fr; }
  .next-chargeback-summary-list > div > span:last-child { grid-column: auto; }
  .next-chargeback-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-chargeback-portfolio-list > a > span { grid-column: 1; }
  .next-chargeback-portfolio-list .next-area-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-chargeback-summary-list strong, .next-chargeback-summary-list small, .next-chargeback-portfolio-list strong, .next-chargeback-portfolio-list small { overflow-wrap: anywhere; white-space: normal; }
  .next-rental-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-rental-portfolio-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-rental-portfolio-list > a > span { grid-column: 1; }
  .next-rental-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-rental-portfolio-foot { display: grid; }
}

.next-work-kpis.next-masterdata-portfolio-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-masterdata-portfolio-toolbar { grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr)); }
.next-masterdata-portfolio-toolbar label { min-width: 0; }
.next-masterdata-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--next-line); background: #f8fafb; }
.next-masterdata-sites > article { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-width: 0; padding: 9px 10px; border: 1px solid #dfe4e7; border-radius: 6px; background: #fff; }
.next-masterdata-sites > article.review { border-left: 3px solid #c78b24; }
.next-masterdata-sites > article.ready { border-left: 3px solid #3f8b68; }
.next-masterdata-sites > article > span { min-width: 0; }
.next-masterdata-sites > article > span:nth-child(2) { display: grid; gap: 2px; }
.next-masterdata-sites > article strong, .next-masterdata-sites > article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-masterdata-sites > article small { color: var(--next-muted); font-size: 10px; }
.next-masterdata-site-flags { display: flex; gap: 5px; align-items: center; justify-content: flex-end; color: #9a641b; }
.next-masterdata-site-flags > svg { width: 14px; height: 14px; }
.next-masterdata-site-flags button, .next-masterdata-portfolio-actions button, .next-masterdata-portfolio-actions a { display: inline-grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #39464c; border: 1px solid #d8dfe2; border-radius: 4px; background: #fff; }
.next-masterdata-site-flags button:hover, .next-masterdata-portfolio-actions button:hover, .next-masterdata-portfolio-actions a:hover { color: #a3272e; border-color: #c98286; background: #fff7f7; }
.next-masterdata-site-flags button svg, .next-masterdata-portfolio-actions button svg, .next-masterdata-portfolio-actions a svg { width: 14px; height: 14px; }
.next-quality-band.next-masterdata-portfolio-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-masterdata-portfolio-band > span { display: grid; grid-template-columns: 28px auto; grid-template-rows: auto auto; gap: 0 7px; min-width: 0; padding: 11px 14px; border-right: 1px solid var(--next-line); }
.next-masterdata-portfolio-band > span:last-child { border-right: 0; }
.next-masterdata-portfolio-band > span > svg { grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; color: #8f353a; }
.next-masterdata-portfolio-band > span strong { font-size: 15px; line-height: 1.1; }
.next-masterdata-portfolio-band > span small { color: var(--next-muted); font-size: 9px; line-height: 1.2; }
.next-masterdata-portfolio-list { border-top: 1px solid var(--next-line); }
.next-masterdata-portfolio-list > header, .next-masterdata-portfolio-list > article { display: grid; grid-template-columns: minmax(170px, 1.05fr) minmax(170px, 1fr) minmax(190px, 1.2fr) minmax(170px, .95fr) minmax(170px, 1fr) 166px; gap: 12px; align-items: center; }
.next-masterdata-portfolio-list > header { min-height: 34px; padding: 0 14px; color: var(--next-muted); background: #f5f7f8; font-size: 9px; font-weight: 700; }
.next-masterdata-portfolio-list > article { position: relative; min-height: 64px; padding: 8px 14px 8px 17px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-masterdata-portfolio-list > article::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: #529171; }
.next-masterdata-portfolio-list > article.review::before { background: #c78b24; }
.next-masterdata-portfolio-list > article.critical::before { background: #bd3c44; }
.next-masterdata-portfolio-list > article > span:not(.next-masterdata-portfolio-actions) { display: grid; gap: 3px; min-width: 0; }
.next-masterdata-portfolio-list > article strong, .next-masterdata-portfolio-list > article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-masterdata-portfolio-list > article strong { color: #30383c; font-size: 11px; }
.next-masterdata-portfolio-list > article small { color: var(--next-muted); font-size: 9px; }
.next-masterdata-portfolio-actions { display: flex; gap: 5px; align-items: center; justify-content: flex-end; min-width: 0; }
.next-masterdata-portfolio-actions > em { min-width: 51px; padding: 4px 6px; color: #315f49; border: 1px solid #afd0be; border-radius: 4px; background: #eef8f2; font-size: 9px; font-style: normal; font-weight: 700; text-align: center; }
.next-masterdata-portfolio-actions > em.review { color: #805610; border-color: #dfc47e; background: #fff8e8; }
.next-masterdata-portfolio-actions > em.critical { color: #8b252b; border-color: #deb0b3; background: #fbeced; }
.next-masterdata-portfolio-actions > svg { width: 15px; height: 15px; }
.next-masterdata-portfolio-actions > svg.critical { color: #ad2f37; }
.next-masterdata-portfolio-actions > svg.warning { color: #a86f12; }
.next-masterdata-portfolio-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; color: var(--next-muted); font-size: 9px; }
.next-masterdata-portfolio-foot span { display: inline-flex; gap: 5px; align-items: center; }
.next-masterdata-portfolio-foot svg { width: 12px; height: 12px; }
.next-masterdata-portfolio-editor { margin-top: 12px; border: 1px solid var(--next-line); border-radius: 6px; background: #fff; box-shadow: 0 10px 26px rgba(35, 43, 47, .08); }
.next-masterdata-portfolio-editor .next-masterdata-editor { border: 0; border-radius: inherit; box-shadow: none; }

@media (max-width: 1180px) {
  .next-masterdata-portfolio-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-masterdata-portfolio-toolbar label { grid-column: span 2; }
  .next-masterdata-portfolio-list > header, .next-masterdata-portfolio-list > article { grid-template-columns: minmax(160px, 1.05fr) minmax(160px, 1fr) minmax(180px, 1.15fr) minmax(150px, .9fr) 154px; }
  .next-masterdata-portfolio-list > header > span:nth-child(5), .next-masterdata-portfolio-list > article > span:nth-child(5) { display: none; }
}

@media (max-width: 760px) {
  .next-work-kpis.next-masterdata-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-kpis.next-masterdata-portfolio-kpis > div:last-child { grid-column: 1 / -1; }
  .next-masterdata-portfolio-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-masterdata-portfolio-toolbar label { grid-column: 1 / -1; }
  .next-masterdata-sites { grid-template-columns: 1fr; padding: 10px 12px; }
  .next-quality-band.next-masterdata-portfolio-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-masterdata-portfolio-list > header { display: none; }
  .next-masterdata-portfolio-list > article { grid-template-columns: minmax(0, 1fr) 144px; gap: 8px 12px; padding: 11px 12px 11px 15px; }
  .next-masterdata-portfolio-list > article > span:not(.next-masterdata-portfolio-actions) { display: grid !important; grid-column: 1; grid-template-columns: minmax(102px, 34%) minmax(0, 1fr); gap: 8px; }
  .next-masterdata-portfolio-list > article > span:not(.next-masterdata-portfolio-actions)::before { color: var(--next-muted); font-size: 8px; font-weight: 700; content: attr(data-label); }
  .next-masterdata-portfolio-list > article > span:not(.next-masterdata-portfolio-actions) > * { grid-column: 2; }
  .next-masterdata-portfolio-actions { grid-column: 2; grid-row: 1 / span 5; align-self: stretch; align-content: center; justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .next-work-kpis.next-masterdata-portfolio-kpis { grid-template-columns: 1fr; }
  .next-work-kpis.next-masterdata-portfolio-kpis > div:last-child { grid-column: auto; }
  .next-masterdata-portfolio-toolbar { grid-template-columns: 1fr; }
  .next-masterdata-portfolio-toolbar label { grid-column: auto; }
  .next-masterdata-sites > article { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .next-masterdata-sites > article > span:nth-child(3) { display: none; }
  .next-quality-band.next-masterdata-portfolio-band { grid-template-columns: 1fr; }
  .next-masterdata-portfolio-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-masterdata-portfolio-band > span:last-child { border-bottom: 0; }
  .next-masterdata-portfolio-list > article { grid-template-columns: minmax(0, 1fr); }
  .next-masterdata-portfolio-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; padding-top: 4px; }
  .next-masterdata-portfolio-foot { align-items: flex-start; flex-direction: column; }
}

/* Central NAS-side model processing */
.next-model-processing-header { align-items: center; }
.next-work-kpis.next-model-processing-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-model-processing-workers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.next-model-processing-workers > article { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 30px; gap: 9px; align-items: center; min-width: 0; padding: 12px 14px; border: 1px solid #dce2e4; border-left: 3px solid #be3a42; border-radius: 6px; background: #fff; }
.next-model-processing-workers > article.ready { border-left-color: #438865; }
.next-model-processing-workers > article.busy { border-left-color: #32749d; }
.next-model-processing-workers > article.paused { border-left-color: #b0781d; background: #fffcf5; }
.next-model-processing-workers > article > span { display: grid; place-items: center; width: 38px; height: 38px; color: #8a3036; border-radius: 6px; background: #faecee; }
.next-model-processing-workers > article.ready > span { color: #337151; background: #ebf6f0; }
.next-model-processing-workers > article.busy > span { color: #29678e; background: #eaf4fa; }
.next-model-processing-workers > article.paused > span { color: #825814; background: #fff2d8; }
.next-model-processing-workers > article svg { width: 18px; height: 18px; }
.next-model-processing-workers > article > div { display: grid; gap: 2px; min-width: 0; }
.next-model-processing-workers small { color: var(--next-muted); font-size: 9px; }
.next-model-processing-workers strong { color: #30383c; font-size: 12px; }
.next-model-processing-workers p { overflow: hidden; margin: 0; color: var(--next-muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.next-model-processing-workers .next-model-processing-runtime { overflow: hidden; color: #59666c; text-overflow: ellipsis; white-space: nowrap; }
.next-model-processing-workers em { display: inline-flex; gap: 5px; align-items: center; padding: 5px 7px; color: #8b2930; border: 1px solid #e0b5b8; border-radius: 4px; background: #fbeced; font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.next-model-processing-workers article.ready em { color: #346c50; border-color: #b4d2c1; background: #eef8f2; }
.next-model-processing-workers article.busy em { color: #285f80; border-color: #b4cfdf; background: #edf6fb; }
.next-model-processing-workers article.paused em { color: #795110; border-color: #dfc47e; background: #fff8e8; }
.next-model-processing-worker-control { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #4a555a; border: 1px solid #cfd7da; border-radius: 4px; background: #fff; }
.next-model-processing-worker-control:hover { color: #7b4f0b; border-color: #c79745; background: #fff9ec; }
.next-model-processing-worker-control:disabled { cursor: not-allowed; opacity: .5; }
.next-model-processing-worker-control svg { width: 14px !important; height: 14px !important; }
.next-model-processing-workspace > header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 10px 18px; border-bottom: 1px solid var(--next-line); }
.next-model-processing-workspace > header span { color: var(--next-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.next-model-processing-workspace > header h2 { margin: 2px 0 0; font-size: 15px; }
.next-model-processing-workspace > header h2 b { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 5px; color: #783137; border-radius: 4px; background: #f5e8e9; font-size: 10px; }
.next-model-processing-toolbar { grid-template-columns: minmax(240px, 1fr) minmax(150px, .35fr) minmax(150px, .35fr); }
.next-model-processing-list { border-top: 1px solid var(--next-line); }
.next-model-processing-list > article { position: relative; display: grid; grid-template-columns: 38px minmax(260px, 1fr) 132px 106px; gap: 12px; align-items: center; min-height: 76px; padding: 10px 14px 10px 17px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-model-processing-list > article::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: #7a8990; }
.next-model-processing-list > article.failed::before { background: #bc3b43; }
.next-model-processing-list > article.processing::before { background: #2f789f; }
.next-model-processing-list > article.queued::before { background: #bd7f1f; }
.next-model-processing-list > article.canceled::before { background: #7a8990; }
.next-model-processing-list > article.ready::before { background: #438865; }
.next-model-processing-file-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #7a3035; border: 1px solid #ead8da; border-radius: 5px; background: #fcf5f5; }
.next-model-processing-file-icon svg { width: 17px; height: 17px; }
.next-model-processing-copy { display: grid; gap: 3px; min-width: 0; }
.next-model-processing-copy > div { display: flex; gap: 8px; align-items: center; min-width: 0; }
.next-model-processing-copy strong { overflow: hidden; color: #30383c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-model-processing-copy em { flex: 0 0 auto; padding: 3px 6px; color: #525f64; border: 1px solid #d8dfe2; border-radius: 4px; background: #f5f7f8; font-size: 8px; font-style: normal; font-weight: 700; }
.next-model-processing-copy em.failed { color: #8b252b; border-color: #deb0b3; background: #fbeced; }
.next-model-processing-copy em.processing { color: #285f80; border-color: #b4cfdf; background: #edf6fb; }
.next-model-processing-copy em.queued { color: #805610; border-color: #dfc47e; background: #fff8e8; }
.next-model-processing-copy em.canceled { color: #4d5b61; border-color: #cbd3d7; background: #f2f5f6; }
.next-model-processing-copy em.ready { color: #315f49; border-color: #afd0be; background: #eef8f2; }
.next-model-processing-copy p, .next-model-processing-copy small { overflow: hidden; margin: 0; color: var(--next-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.next-model-processing-copy p span { color: #aab2b6; }
.next-model-processing-meta { display: grid; gap: 2px; min-width: 0; }
.next-model-processing-meta small, .next-model-processing-meta span { color: var(--next-muted); font-size: 8px; }
.next-model-processing-meta strong { color: #3a4448; font-size: 10px; }
.next-model-processing-actions { display: flex; gap: 6px; justify-content: flex-end; }
.next-model-processing-actions a, .next-model-processing-actions button { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #39464c; border: 1px solid #d8dfe2; border-radius: 4px; background: #fff; }
.next-model-processing-actions a:hover, .next-model-processing-actions button:hover { color: #8c3036; border-color: #c98286; background: #fff7f7; }
.next-model-processing-actions button.danger { color: #a92e36; }
.next-model-processing-actions svg { width: 14px; height: 14px; }
.next-model-processing-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; color: var(--next-muted); font-size: 9px; }
.next-model-processing-foot span { display: inline-flex; gap: 5px; align-items: center; }
.next-model-processing-foot svg { width: 12px; height: 12px; }

@media (max-width: 980px) {
  .next-work-kpis.next-model-processing-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-model-processing-workers { grid-template-columns: 1fr; }
  .next-model-processing-list > article { grid-template-columns: 38px minmax(0, 1fr) 106px; }
  .next-model-processing-meta { display: none; }
}

@media (max-width: 700px) {
  .next-work-kpis.next-model-processing-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-model-processing-toolbar { grid-template-columns: 1fr; }
  .next-model-processing-list > article { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 10px; }
  .next-model-processing-actions { grid-column: 2; justify-content: flex-start; }
  .next-model-processing-copy > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .next-model-processing-copy p, .next-model-processing-copy small { white-space: normal; }
  .next-model-processing-foot { align-items: flex-start; flex-direction: column; }
}

.next-parcel-lineage > article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.next-parcel-lineage-kind {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
}

.next-parcel-lineage-kind.muted {
  color: #4d555d;
  background: #e8eaec;
}

.next-parcel-lineage-kind.complete {
  color: #23633e;
  background: #dff3e7;
}

.next-parcel-lineage > article > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.next-parcel-lineage strong,
.next-parcel-lineage small {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .next-parcel-lineage > article {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* Denkmalfoerderung, Bewilligung und Verwendungsnachweis */
.next-monument-funding { margin-top: 20px; border-top: 1px solid var(--next-line); }
.next-monument-funding > header { align-items: center; gap: 18px; }
.next-monument-funding-editor { margin: 18px 20px; }
.next-monument-funding-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.next-monument-funding-form fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid #d8dcdf; border-radius: 6px; }
.next-monument-funding-form fieldset:nth-child(2) { grid-row: span 2; }
.next-monument-funding-form legend { padding: 0 7px; color: #42484d; font-size: 12px; font-weight: 800; }
.next-monument-funding-balance { margin-top: 12px; padding: 9px 10px; border-top: 1px solid #dfe2e4; display: flex; justify-content: space-between; gap: 12px; background: #f7f8f9; }
.next-monument-funding-balance span { display: flex; flex-direction: column; gap: 3px; color: #70767b; font-size: 9px; font-weight: 700; }
.next-monument-funding-balance strong { color: #343a3f; font-size: 12px; }
.next-monument-funding-balance strong.released { color: #21613c; }
.next-monument-funding-balance strong.due { color: #8c282e; }
.next-monument-funding-tranche-plan { margin-top: 14px; border: 1px solid #dadddf; border-radius: 6px; overflow: hidden; }
.next-monument-funding-tranche-plan > header { min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #dde0e2; background: #f7f8f9; }
.next-monument-funding-tranche-plan > div { position: relative; padding: 9px 48px 9px 10px; border-bottom: 1px solid #e3e5e7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.next-monument-funding-tranche-plan > div:last-child { border-bottom: 0; }
.next-monument-funding-tranche-plan > div > button { position: absolute; top: 17px; right: 9px; width: 30px; height: 30px; padding: 0; border: 1px solid #d4d7da; border-radius: 4px; display: grid; place-items: center; color: #8c282e; background: #fff; }
.next-monument-funding-tranche-plan svg { width: 14px; height: 14px; }
.next-monument-funding-ledger { margin: 0 16px 16px; border: 1px solid #d8dcdf; border-radius: 6px; overflow: hidden; }
.next-monument-funding-ledger > header { min-height: 54px; padding: 9px 13px; border-bottom: 1px solid #dfe2e4; background: #f7f8f9; }
.next-monument-funding-ledger h4 { margin: 2px 0 0; font-size: 13px; }
.next-monument-funding-ledger > article { min-width: 0; padding: 12px 13px; border-bottom: 1px solid #e2e5e7; display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 2fr) max-content; align-items: center; gap: 12px; }
.next-monument-funding-ledger > article:last-child { border-bottom: 0; }
.next-monument-funding-ledger article > div:first-child { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.next-monument-funding-ledger article > div:first-child > span { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; }
.next-monument-funding-ledger .draft { color: #555c62; background: #e9ecee; }
.next-monument-funding-ledger .review { color: #78500f; background: #fff0c9; }
.next-monument-funding-ledger .released { color: #21613c; background: #dff3e7; }
.next-monument-funding-ledger .due { color: #8c282e; background: #fae3e4; }
.next-monument-funding-ledger article strong { overflow-wrap: anywhere; font-size: 11px; }
.next-monument-funding-ledger article small { overflow-wrap: anywhere; color: #71767c; font-size: 9px; }
.next-monument-funding-ledger article > .next-form-grid { padding: 0; }
.next-monument-funding-ledger article > p { margin: 0; overflow-wrap: anywhere; color: #555b60; font-size: 10px; }
.next-monument-permit-stage.danger { border-color: #e1b9bb; background: #fffafa; }
.next-monument-permit-stage.danger legend { color: #8c282e; }

@media (max-width: 1050px) {
  .next-monument-funding-form { grid-template-columns: minmax(0, 1fr); }
  .next-monument-funding-form fieldset:nth-child(2) { grid-row: auto; }
  .next-monument-funding-ledger > article { grid-template-columns: minmax(170px, .7fr) minmax(0, 1.6fr); }
  .next-monument-funding-ledger article > button { grid-column: 2; justify-self: end; }
}

@media (max-width: 720px) {
  .next-monument-funding > header { align-items: stretch; flex-direction: column; }
  .next-monument-funding > header button { width: 100%; }
  .next-monument-funding-editor { margin: 12px; }
  .next-monument-funding-form { padding: 12px; }
  .next-monument-funding-balance { align-items: stretch; flex-direction: column; }
  .next-monument-funding-tranche-plan > div { grid-template-columns: minmax(0, 1fr); }
  .next-monument-funding-ledger { margin-left: 12px; margin-right: 12px; }
  .next-monument-funding-ledger > article { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .next-monument-funding-ledger article > button { grid-column: 1; width: 100%; }
}

@media (max-width: 460px) {
  .next-work-kpis.next-model-processing-kpis { grid-template-columns: 1fr; }
  .next-model-processing-workers > article { grid-template-columns: 34px minmax(0, 1fr) 30px; }
  .next-model-processing-workers > article > em { grid-column: 2; justify-self: start; }
  .next-model-processing-worker-control { grid-column: 3; grid-row: 1 / span 2; }
}

/* Privacy governance */
.next-privacy-heading-actions,
.next-privacy-heading-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.next-privacy-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
  border: 1px solid var(--next-line);
  background: var(--next-surface);
}

.next-privacy-kpis > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 72px;
  padding: 13px 17px;
  border-right: 1px solid var(--next-line);
}

.next-privacy-kpis > div:last-child { border-right: 0; }
.next-privacy-kpis > div.warning { background: #fffaf0; }
.next-privacy-kpis > div > span:last-child { display: grid; min-width: 0; }
.next-privacy-kpis small { color: var(--next-muted); font-size: 9px; }
.next-privacy-kpis strong { font-size: 17px; line-height: 1.25; }

.next-privacy-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--next-line);
}

.next-privacy-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  color: var(--next-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.next-privacy-tabs button.active {
  color: var(--next-ink);
  border-bottom-color: var(--next-red);
  font-weight: 700;
}

.next-privacy-tabs svg { width: 16px; height: 16px; }
.next-privacy-tabs b { min-width: 20px; padding: 2px 6px; border-radius: 7px; background: #eef0f2; font-size: 8px; }
.next-privacy-overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; }

.next-privacy-summary,
.next-privacy-register,
.next-privacy-editor,
.next-privacy-retention,
.next-privacy-organization {
  min-width: 0;
  border-top: 1px solid var(--next-line);
  background: var(--next-surface);
}

.next-privacy-summary { padding: 17px 0; }
.next-privacy-summary > header,
.next-privacy-organization > header,
.next-privacy-retention > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 14px;
}

.next-privacy-summary > header { justify-content: flex-start; }
.next-privacy-summary header > div span,
.next-privacy-organization header span,
.next-privacy-retention header span {
  color: var(--next-muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.next-privacy-summary h2,
.next-privacy-organization h2,
.next-privacy-retention h2 { margin: 2px 0 0; font-size: 14px; }

.next-privacy-summary > button:not(.next-secondary-command) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 3px;
  border: 0;
  border-bottom: 1px solid var(--next-line);
  background: var(--next-surface);
  text-align: left;
  cursor: pointer;
}

.next-privacy-summary > button span > * { display: block; }
.next-privacy-summary > button small { margin-top: 3px; color: var(--next-muted); font-size: 9px; }
.next-privacy-summary > button em { font-style: normal; }
.next-privacy-summary dl { margin: 0 0 15px; }
.next-privacy-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--next-line); }
.next-privacy-summary dt { color: var(--next-muted); }
.next-privacy-summary dd { font-weight: 800; }
.next-privacy-workspace { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(500px, 1.18fr); gap: 20px; align-items: start; }

.next-privacy-register > header,
.next-privacy-retention > header {
  display: flex;
  gap: 8px;
  padding: 14px 0;
}

.next-privacy-register > header label,
.next-privacy-retention > header label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--next-line);
}

.next-privacy-register > header input,
.next-privacy-retention > header input { width: 100%; min-height: 38px; border: 0; outline: 0; background: transparent; }
.next-privacy-register > header select { min-height: 40px; max-width: 155px; padding: 0 8px; border: 1px solid var(--next-line); background: var(--next-surface); }
.next-privacy-list { min-height: 300px; max-height: calc(100vh - 340px); overflow: auto; border-top: 1px solid var(--next-line); }

.next-privacy-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, .48fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--next-line);
  background: var(--next-surface);
  text-align: left;
  cursor: pointer;
}

.next-privacy-list > button:hover { background: var(--next-soft); }
.next-privacy-list > button.historic { opacity: .62; }
.next-privacy-list > button.overdue { padding-left: 9px; border-left: 3px solid #c92a2a; }
.next-privacy-list span > * { display: block; }
.next-privacy-list small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-privacy-list b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }

.next-privacy-list em,
.next-privacy-summary em {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 7px;
  background: #f1f2f4;
  font-size: 8px;
  font-style: normal;
}

.next-privacy-list em.released,
.next-privacy-summary em.released { color: #166534; background: #e6f6ed; }
.next-privacy-list em.review,
.next-privacy-summary em.review { color: #1d4ed8; background: #eaf2ff; }
.next-privacy-list em.due { color: #92400e; background: #fff3d6; }
.next-privacy-list em.archived { color: #4b5563; background: #f3f4f6; }

.next-privacy-editor > form > header,
.next-privacy-review-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--next-line);
}

.next-privacy-editor header span,
.next-privacy-review-modal header span { color: var(--next-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.next-privacy-editor h3,
.next-privacy-review-modal h3 { margin: 3px 0 0; font-size: 14px; }
.next-privacy-editor header button,
.next-privacy-review-modal header button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; }
.next-privacy-editor fieldset { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--next-line); }
.next-privacy-editor legend { margin-bottom: 10px; font-size: 10px; font-weight: 800; }

.next-privacy-editor form > footer,
.next-privacy-organization form > footer,
.next-privacy-review-modal > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.next-privacy-editor form > footer > span,
.next-privacy-organization form > footer > span,
.next-privacy-review-modal > footer > span { color: var(--next-muted); font-size: 9px; }
.next-privacy-editor form > footer > div,
.next-privacy-review-modal > footer > div { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.next-privacy-retention > header { padding: 15px 0; }
.next-privacy-retention > header label { max-width: 390px; }
.next-privacy-retention-head,
.next-privacy-retention-row { display: grid; grid-template-columns: minmax(210px, 1.2fr) minmax(170px, .9fr) minmax(150px, .72fr) minmax(160px, .75fr) 78px; align-items: center; gap: 12px; }
.next-privacy-retention-head { padding: 9px 8px; color: var(--next-muted); background: var(--next-soft); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.next-privacy-retention-row { padding: 11px 8px; border-bottom: 1px solid var(--next-line); }
.next-privacy-retention-row.critical { padding-left: 9px; border-left: 3px solid #c92a2a; }
.next-privacy-retention-row span > * { display: block; }
.next-privacy-retention-row small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-privacy-retention-row em { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-style: normal; font-weight: 700; }
.next-privacy-retention-row em.blocked { color: #9f1239; }
.next-privacy-retention-row em.clear { color: #166534; }
.next-privacy-retention-row em svg { width: 14px; height: 14px; }
.next-privacy-organization { padding-top: 15px; }
.next-privacy-organization form fieldset { margin: 0; padding: 0; border: 0; }
.next-modal-backdrop { position: fixed; z-index: 1500; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20, 22, 25, .52); }
.next-privacy-review-modal { width: min(680px, 100%); max-height: calc(100vh - 40px); padding: 0 20px; overflow: auto; border-radius: 6px; background: var(--next-surface); box-shadow: 0 20px 70px rgba(0, 0, 0, .25); }

@media (max-width: 1050px) {
  .next-privacy-workspace,
  .next-privacy-overview { grid-template-columns: 1fr; }
  .next-privacy-list { max-height: 420px; }
  .next-privacy-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-privacy-kpis > div:nth-child(2) { border-right: 0; }
  .next-privacy-kpis > div:nth-child(-n + 2) { border-bottom: 1px solid var(--next-line); }
}

@media (max-width: 720px) {
  .next-privacy-heading-actions { width: 100%; }
  .next-privacy-kpis { grid-template-columns: 1fr; }
  .next-privacy-kpis > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-privacy-kpis > div:last-child { border-bottom: 0; }
  .next-privacy-tabs button { padding: 0 10px; }
  .next-privacy-workspace { display: block; }
  .next-privacy-editor { margin-top: 18px; }
  .next-privacy-register > header,
  .next-privacy-retention > header,
  .next-privacy-organization > header { align-items: stretch; flex-direction: column; }
  .next-privacy-register > header select,
  .next-privacy-retention > header label { max-width: none; }
  .next-privacy-retention-head { display: none; }
  .next-privacy-retention-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 4px; }
  .next-privacy-retention-row span[data-label]::before { display: block; margin-bottom: 2px; color: var(--next-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; content: attr(data-label); }
  .next-privacy-retention-row .next-governance-actions { justify-content: flex-start; }
  .next-privacy-editor form > footer,
  .next-privacy-organization form > footer,
  .next-privacy-review-modal > footer { align-items: stretch; flex-direction: column; }
  .next-privacy-editor form > footer > div,
  .next-privacy-review-modal > footer > div { justify-content: stretch; }
  .next-privacy-editor form > footer button,
  .next-privacy-review-modal > footer button { flex: 1; }
  .next-privacy-review-modal { padding: 0 14px; }
  .next-modal-backdrop { padding: 8px; }
}

/* Central report definitions, release workflow and immutable server-side runs. */
.next-report-center-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 10px;
  padding: 12px 0;
  border-top: 1px solid var(--next-line);
  border-bottom: 1px solid var(--next-line);
}

.next-report-center-toolbar > div:first-child { display: grid; gap: 2px; }
.next-report-center-toolbar > div:first-child span { color: var(--next-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-report-center-toolbar > div:first-child strong { font-size: 14px; }
.next-report-center-toolbar > div:first-child small { color: var(--next-muted); font-size: 10px; }
.next-report-center-toolbar > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }

.next-inline-message {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #a7d9ba;
  border-radius: 5px;
  color: #14532d;
  background: #effaf3;
  font-size: 10px;
}

.next-inline-message.error { color: #991b1b; border-color: #efb3b3; background: #fff2f2; }
.next-inline-message svg { width: 16px; height: 16px; flex: 0 0 auto; }

.next-report-center-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(560px, 1.28fr);
  min-height: 610px;
  border: 1px solid var(--next-line-strong);
  border-radius: 6px;
  background: var(--next-surface);
  overflow: hidden;
}

.next-report-definition-list {
  min-width: 0;
  border-right: 1px solid var(--next-line-strong);
  background: #f7f8f9;
}

.next-report-definition-list > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--next-line);
}

.next-report-definition-list > header span { color: var(--next-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-report-definition-list > header strong { font-size: 12px; }

.next-report-definition-list > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--next-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.next-report-definition-list > button:hover { background: #fff; }
.next-report-definition-list > button.active { padding-left: 9px; border-left: 3px solid var(--next-red); background: #fff; }
.next-report-definition-list > button > svg { width: 17px; height: 17px; padding: 8px; box-sizing: content-box; color: #3f5266; border: 1px solid #cad2da; border-radius: 50%; background: #fff; }
.next-report-definition-list > button span { min-width: 0; }
.next-report-definition-list > button span > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-report-definition-list > button span strong { font-size: 11px; }
.next-report-definition-list > button span small { margin-top: 4px; color: var(--next-muted); font-size: 9px; }

.next-report-definition-list em,
.next-report-detail-header > em {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 8px;
  color: #4b5563;
  background: #eceff2;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.next-report-definition-list em.review,
.next-report-detail-header > em.review { color: #1d4ed8; background: #e8f0ff; }
.next-report-definition-list em.released,
.next-report-detail-header > em.released { color: #166534; background: #e7f7ed; }
.next-report-definition-list .run-state { grid-column: 2 / -1; color: var(--next-muted); font-size: 8px; }
.next-report-definition-list .run-state.error { color: #b91c1c; }

.next-report-definition-detail { min-width: 0; padding: 18px 20px; }
.next-report-definition-detail > .next-work-section-header { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--next-line); }
.next-report-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next-report-editor-grid .wide { grid-column: 1 / -1; }
.next-report-editor-grid.schedule { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-report-editor-grid .next-field > strong { display: flex; align-items: center; min-height: 38px; padding: 0 10px; border: 1px solid var(--next-line); background: #f7f8f9; font-size: 10px; }

.next-report-editor-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--next-line); }
.next-report-editor-section > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.next-report-editor-section > header div { display: grid; gap: 2px; }
.next-report-editor-section > header span { color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-report-editor-section > header strong { font-size: 11px; }
.next-report-editor-section > header small { max-width: 430px; color: var(--next-muted); font-size: 9px; text-align: right; }

.next-report-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-left: 1px solid var(--next-line); }
.next-report-choice-grid.sites { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 170px; overflow: auto; }
.next-report-choice-grid.modules { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 220px; overflow: auto; }
.next-report-choice-grid.recipients { margin-top: 12px; }
.next-report-choice-grid label { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 38px; padding: 7px 9px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #fff; font-size: 9px; cursor: pointer; }
.next-report-choice-grid label:has(input:checked) { background: #f0f7f4; }
.next-report-choice-grid input { flex: 0 0 auto; accent-color: #28765c; }
.next-report-choice-grid label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.next-report-choice-grid label > span > * { display: block; }
.next-report-choice-grid label small { margin-top: 2px; color: var(--next-muted); font-size: 8px; }
.next-report-choice-grid label b { color: var(--next-red-dark); }

.next-report-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--next-line);
}

.next-report-editor-actions > span { max-width: 520px; color: var(--next-muted); font-size: 9px; }
.next-report-editor-actions > div,
.next-report-detail-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.next-report-detail-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--next-line); }
.next-report-detail-header .next-metric-icon { width: 42px; height: 42px; }
.next-report-detail-header small { color: var(--next-muted); font-size: 9px; font-weight: 700; }
.next-report-detail-header h2 { margin: 3px 0 4px; font-size: 17px; }
.next-report-detail-header p { margin: 0; color: var(--next-muted); font-size: 10px; line-height: 1.5; }
.next-report-definition-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0; border-top: 1px solid var(--next-line); border-left: 1px solid var(--next-line); }
.next-report-definition-facts > div { display: grid; gap: 3px; min-height: 72px; padding: 10px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-report-definition-facts small,
.next-report-definition-facts span { color: var(--next-muted); font-size: 8px; }
.next-report-definition-facts strong { font-size: 10px; }
.next-report-approval-banner { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 12px; color: #1e40af; border-left: 3px solid #3b82f6; background: #eef5ff; }
.next-report-approval-banner svg { width: 18px; height: 18px; }
.next-report-approval-banner span > * { display: block; }
.next-report-approval-banner small { margin-top: 3px; font-size: 9px; }
.next-report-detail-actions { margin: 14px 0; }

.next-report-run-list { margin-top: 18px; border-top: 1px solid var(--next-line-strong); }
.next-report-run-list > header { display: flex; align-items: center; justify-content: space-between; min-height: 50px; }
.next-report-run-list > header div { display: grid; }
.next-report-run-list > header span { color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-report-run-list > header strong { margin-top: 2px; font-size: 12px; }
.next-report-run-list > header small { color: var(--next-muted); font-size: 9px; }
.next-report-run-list > div { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 34px; align-items: center; gap: 9px; min-height: 54px; padding: 8px 4px; border-top: 1px solid var(--next-line); }
.next-report-run-list > div.failed { color: #991b1b; }
.next-report-run-list > div > svg { width: 16px; height: 16px; color: #28765c; }
.next-report-run-list > div.failed > svg { color: #c92a2a; }
.next-report-run-list > div span { min-width: 0; }
.next-report-run-list > div span > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-report-run-list > div span strong { font-size: 10px; }
.next-report-run-list > div span small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-report-run-list > div em { color: var(--next-muted); font-size: 8px; font-style: normal; white-space: nowrap; }

.next-report-live-analysis { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--next-line-strong); }
.next-report-live-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 12px 0; border-top: 1px solid var(--next-line); border-left: 1px solid var(--next-line); }
.next-report-live-kpis > div { display: grid; gap: 3px; min-height: 58px; padding: 9px 10px; border-right: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-report-live-kpis small { color: var(--next-muted); font-size: 8px; }
.next-report-live-kpis strong { font-size: 14px; }
.next-report-live-kpis .warning { color: #92400e; background: #fff8e8; }

@media (max-width: 1180px) {
  .next-report-center-layout { grid-template-columns: minmax(260px, .62fr) minmax(480px, 1.38fr); }
  .next-report-definition-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-report-live-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .next-report-center-layout { display: block; }
  .next-report-definition-list { max-height: 340px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--next-line-strong); }
  .next-report-definition-detail { min-height: 520px; }
}

@media (max-width: 720px) {
  .next-report-center-toolbar,
  .next-report-editor-actions { align-items: stretch; flex-direction: column; }
  .next-report-center-toolbar > div:last-child,
  .next-report-editor-actions > div,
  .next-report-detail-actions { justify-content: stretch; }
  .next-report-center-toolbar a,
  .next-report-center-toolbar button,
  .next-report-editor-actions button,
  .next-report-detail-actions button { flex: 1; justify-content: center; }
  .next-report-definition-detail { min-height: 0; padding: 14px 12px; }
  .next-report-editor-grid,
  .next-report-editor-grid.schedule,
  .next-report-definition-facts,
  .next-report-live-kpis { grid-template-columns: 1fr; }
  .next-report-editor-grid .wide { grid-column: auto; }
  .next-report-editor-section > header { align-items: start; flex-direction: column; }
  .next-report-editor-section > header small { text-align: left; }
  .next-report-choice-grid,
  .next-report-choice-grid.sites,
  .next-report-choice-grid.modules,
  .next-report-choice-grid.recipients { grid-template-columns: 1fr; }
  .next-report-detail-header { grid-template-columns: 42px minmax(0, 1fr); }
  .next-report-detail-header > em { grid-column: 2; justify-self: start; }
  .next-report-run-list > div { grid-template-columns: 20px minmax(0, 1fr) 34px; }
  .next-report-run-list > div > em { display: none; }
}

/* Kulturgut-Notfallplanung und Schaden-/Verlustworkflow */
.next-church-emergency > header { align-items: center; gap: 18px; }
.next-emergency-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.next-emergency-kpis { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-emergency-kpis > span { min-width: 0; min-height: 74px; padding: 14px 18px; border-right: 1px solid var(--next-line); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-emergency-kpis > span:last-child { border-right: 0; }
.next-emergency-kpis small { color: #72777d; font-size: 11px; font-weight: 700; }
.next-emergency-kpis strong { overflow-wrap: anywhere; color: #30343a; font-size: 20px; }
.next-emergency-kpis .warning { box-shadow: inset 0 3px #c68118; background: #fffaf0; }
.next-emergency-kpis .critical { box-shadow: inset 0 3px #bf262d; background: #fff5f5; }
.next-emergency-priority-add { margin-bottom: 14px; display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 8px; }
.next-emergency-priority-add select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #cfd2d6; border-radius: 5px; background: #fff; }
.next-emergency-priorities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next-emergency-priorities > article { min-width: 0; border: 1px solid #d9dcdf; border-radius: 6px; overflow: hidden; background: #fff; }
.next-emergency-priorities > article > header { min-height: 58px; padding: 11px 13px; border-bottom: 1px solid #e4e6e8; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f7f8f9; }
.next-emergency-priorities > article > header div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-emergency-priorities > article > header strong { overflow-wrap: anywhere; font-size: 13px; }
.next-emergency-priorities > article > header small { overflow-wrap: anywhere; color: #747980; font-size: 10px; }
.next-emergency-priorities > article > header button,
.next-emergency-registers article > button { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 1px solid #d2d5d8; border-radius: 5px; display: grid; place-items: center; color: #555a60; background: #fff; }
.next-emergency-priorities > article > header button { color: #b32229; }
.next-emergency-priorities > article > header svg,
.next-emergency-registers article > button svg { width: 16px; height: 16px; }
.next-emergency-priorities > article > .next-form-grid { padding: 13px; }
.next-emergency-registers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px; border-top: 1px solid var(--next-line); }
.next-emergency-registers > section { min-width: 0; }
.next-emergency-registers h3 { margin: 0 0 10px; font-size: 15px; }
.next-emergency-registers article { min-width: 0; min-height: 70px; padding: 10px 11px; border-top: 1px solid #e4e6e8; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 34px; align-items: center; gap: 12px; }
.next-emergency-registers article:last-child { border-bottom: 1px solid #e4e6e8; }
.next-emergency-registers article > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-emergency-registers article strong,
.next-emergency-registers article small { overflow-wrap: anywhere; }
.next-emergency-registers article strong { font-size: 12px; }
.next-emergency-registers article small { color: #747980; font-size: 10px; }
.next-emergency-registers article div:first-child > span { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; }

@media (max-width: 1100px) {
  .next-emergency-priorities,
  .next-emergency-registers { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .next-church-emergency > header { align-items: stretch; flex-direction: column; }
  .next-emergency-header-actions { display: grid; grid-template-columns: 1fr; }
  .next-emergency-header-actions button { width: 100%; }
  .next-emergency-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-emergency-kpis > span:nth-child(2) { border-right: 0; }
  .next-emergency-kpis > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-emergency-priority-add { grid-template-columns: minmax(0, 1fr); }
  .next-emergency-priority-add button { width: 100%; }
  .next-emergency-registers { padding: 14px; }
  .next-emergency-registers article { grid-template-columns: minmax(0, 1fr) 34px; }
  .next-emergency-registers article > div:nth-child(2) { grid-column: 1; }
  .next-emergency-registers article > button { grid-column: 2; grid-row: 1 / span 2; }
}

/* Spectrum Objektannahme und Objektausgang */
.next-object-traffic > header { align-items: center; gap: 18px; }
.next-object-traffic-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.next-object-traffic-kpis { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-object-traffic-kpis > span { min-width: 0; min-height: 74px; padding: 14px 18px; border-right: 1px solid var(--next-line); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-object-traffic-kpis > span:last-child { border-right: 0; }
.next-object-traffic-kpis small { color: #72777d; font-size: 11px; font-weight: 700; }
.next-object-traffic-kpis strong { overflow-wrap: anywhere; color: #30343a; font-size: 20px; }
.next-object-traffic-kpis .warning { box-shadow: inset 0 3px #c68118; background: #fffaf0; }
.next-object-traffic-kpis .critical { box-shadow: inset 0 3px #bf262d; background: #fff5f5; }
.next-object-traffic-editor { margin: 18px 20px; }
.next-object-traffic-fieldsets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.next-object-traffic-fieldsets fieldset,
.next-object-traffic-stage { min-width: 0; margin: 0; padding: 14px; border: 1px solid #d9dcdf; border-radius: 6px; }
.next-object-traffic-fieldsets legend,
.next-object-traffic-stage legend { padding: 0 7px; color: #43484e; font-size: 12px; font-weight: 800; }
.next-object-traffic-stage { margin: 0 16px 16px; }
.next-object-traffic-stage > footer { margin: 14px -14px -14px; }
.next-object-traffic-registers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px; border-top: 1px solid var(--next-line); }
.next-object-traffic-registers > section { min-width: 0; }
.next-object-traffic-registers > section > header { min-height: 42px; }
.next-object-traffic-registers h3 { margin: 0 0 10px; font-size: 15px; }
.next-object-traffic-registers article { min-width: 0; min-height: 72px; padding: 10px 11px; border-top: 1px solid #e4e6e8; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 34px; align-items: center; gap: 12px; }
.next-object-traffic-registers article:last-child { border-bottom: 1px solid #e4e6e8; }
.next-object-traffic-registers article > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-object-traffic-registers article strong,
.next-object-traffic-registers article small { overflow-wrap: anywhere; }
.next-object-traffic-registers article strong { font-size: 12px; }
.next-object-traffic-registers article small { color: #747980; font-size: 10px; }
.next-object-traffic-registers article div:first-child > span { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; }
.next-object-traffic-registers article > button { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 1px solid #d2d5d8; border-radius: 5px; display: grid; place-items: center; color: #555a60; background: #fff; }
.next-object-traffic-registers article > button svg { width: 16px; height: 16px; }
.next-object-traffic-journal { margin: 0 16px 16px; }

@media (max-width: 1100px) {
  .next-object-traffic-fieldsets,
  .next-object-traffic-registers { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .next-object-traffic > header { align-items: stretch; flex-direction: column; }
  .next-object-traffic-actions { display: grid; grid-template-columns: 1fr; }
  .next-object-traffic-actions button { width: 100%; }
  .next-object-traffic-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-object-traffic-kpis > span:nth-child(2) { border-right: 0; }
  .next-object-traffic-kpis > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-object-traffic-editor { margin: 12px; }
  .next-object-traffic-fieldsets { padding: 12px; }
  .next-object-traffic-stage { margin: 0 12px 12px; }
  .next-object-traffic-registers { padding: 14px; }
  .next-object-traffic-registers article { grid-template-columns: minmax(0, 1fr) 34px; }
  .next-object-traffic-registers article > div:nth-child(2) { grid-column: 1; }
  .next-object-traffic-registers article > button { grid-column: 2; grid-row: 1 / span 2; }
}

/* Spectrum Dokumentationsplanung */
.next-documentation-planning > header { align-items: center; gap: 18px; }
.next-documentation-baseline { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); border-bottom: 1px solid var(--next-line); background: #f7f8f9; }
.next-documentation-baseline > span { min-width: 0; min-height: 76px; padding: 14px 16px; border-right: 1px solid var(--next-line); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-documentation-baseline > span:last-child { border-right: 0; }
.next-documentation-baseline small { color: #72777d; font-size: 10px; font-weight: 700; }
.next-documentation-baseline strong { overflow-wrap: anywhere; color: #30343a; font-size: 19px; }
.next-documentation-baseline .warning { box-shadow: inset 0 3px #c68118; background: #fffaf0; }
.next-documentation-baseline .critical { box-shadow: inset 0 3px #bf262d; background: #fff5f5; }
.next-documentation-create,
.next-documentation-editor { margin: 18px 20px; }
.next-documentation-summary { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); border-bottom: 1px solid #dde0e3; background: #f8f9fa; }
.next-documentation-summary > span { min-width: 0; min-height: 66px; padding: 12px 14px; border-right: 1px solid #e1e3e5; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-documentation-summary > span:last-child { border-right: 0; }
.next-documentation-summary small { color: #777c82; font-size: 10px; font-weight: 700; }
.next-documentation-summary strong { overflow-wrap: anywhere; color: #30343a; font-size: 12px; }
.next-documentation-summary strong.draft,
.next-documentation-register article div:first-child > span.draft { color: #5c6268; background: #eceeef; }
.next-documentation-summary strong.review,
.next-documentation-register article div:first-child > span.review { color: #7a510d; background: #fff0c9; }
.next-documentation-summary strong.released,
.next-documentation-register article div:first-child > span.released { color: #23633e; background: #dff3e7; }
.next-documentation-summary strong.due,
.next-documentation-register article div:first-child > span.due { color: #8f282e; background: #fae3e4; }
.next-documentation-summary strong[class] { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; }
.next-documentation-fieldsets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.next-documentation-fieldsets fieldset,
.next-documentation-stage { min-width: 0; margin: 0; padding: 14px; border: 1px solid #d9dcdf; border-radius: 6px; }
.next-documentation-fieldsets legend,
.next-documentation-stage legend { padding: 0 7px; color: #43484e; font-size: 12px; font-weight: 800; }
.next-documentation-objectives,
.next-documentation-milestones,
.next-documentation-review-history { margin: 0 16px 16px; border: 1px solid #d9dcdf; border-radius: 6px; overflow: hidden; }
.next-documentation-objectives > header,
.next-documentation-milestones > header,
.next-documentation-review-history > header { min-height: 58px; padding: 10px 14px; border-bottom: 1px solid #dfe1e4; background: #f7f8f9; }
.next-documentation-objectives h4,
.next-documentation-milestones h4,
.next-documentation-review-history h4 { margin: 2px 0 0; font-size: 14px; }
.next-documentation-objectives > article,
.next-documentation-milestones > article { padding: 14px; border-bottom: 1px solid #e1e3e5; background: #fff; }
.next-documentation-objectives > article:last-child,
.next-documentation-milestones > article:last-child { border-bottom: 0; }
.next-documentation-item-head { min-width: 0; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-documentation-item-head strong { overflow-wrap: anywhere; font-size: 13px; }
.next-documentation-item-head button { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 1px solid #d5d8db; border-radius: 5px; display: grid; place-items: center; color: #8f282e; background: #fff; }
.next-documentation-item-head button svg { width: 15px; height: 15px; }
.next-documentation-links { margin-top: 12px; padding: 10px; border-top: 1px solid #e4e6e8; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.next-documentation-links > small { width: 100%; color: #676c72; font-size: 10px; font-weight: 800; }
.next-documentation-links label { display: inline-flex; align-items: center; gap: 7px; color: #44494f; font-size: 11px; }
.next-documentation-stage { margin: 0 16px 16px; }
.next-documentation-stage > footer { box-sizing: border-box; margin: 14px -14px -14px; }
.next-documentation-progress-list { margin-top: 14px; border-top: 1px solid #dfe2e4; }
.next-documentation-progress-list h5 { margin: 12px 0 8px; font-size: 12px; }
.next-documentation-progress-list article { min-width: 0; padding: 9px 0; border-top: 1px solid #eceeef; display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(110px, .7fr) 100px minmax(140px, 1fr) minmax(140px, 1fr); align-items: end; gap: 8px; }
.next-documentation-progress-list article > strong { align-self: center; overflow-wrap: anywhere; font-size: 11px; }
.next-documentation-progress-list article label { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.next-documentation-progress-list article label span { color: #73787e; font-size: 9px; font-weight: 700; }
.next-documentation-progress-list input,
.next-documentation-progress-list select { width: 100%; min-width: 0; height: 34px; padding: 5px 7px; border: 1px solid #cfd3d6; border-radius: 4px; font: inherit; background: #fff; }
.next-documentation-evaluation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.next-documentation-evaluation > div { min-width: 0; padding: 10px; border-left: 3px solid #666d73; background: #f7f8f9; }
.next-documentation-evaluation small { color: #6d7278; font-size: 10px; font-weight: 800; }
.next-documentation-evaluation p { margin: 5px 0 0; overflow-wrap: anywhere; color: #34383d; font-size: 11px; white-space: pre-wrap; }
.next-documentation-review-history > article { min-width: 0; padding: 11px 14px; border-bottom: 1px solid #e4e6e8; display: grid; grid-template-columns: minmax(145px, .7fr) minmax(0, 2fr) max-content; align-items: center; gap: 14px; }
.next-documentation-review-history > article:last-child { border-bottom: 0; }
.next-documentation-review-history article > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.next-documentation-review-history article strong { font-size: 11px; }
.next-documentation-review-history article small { color: #73787e; font-size: 9px; }
.next-documentation-review-history article p { margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.next-documentation-review-history article > span:last-child { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; }
.next-documentation-review-history article > span.review { color: #7a510d; background: #fff0c9; }
.next-documentation-review-history article > span.released { color: #23633e; background: #dff3e7; }
.next-documentation-journal > header { min-height: 48px; }
.next-documentation-journal > div > article { padding: 9px 11px; border-top: 1px solid #e4e6e8; display: flex; align-items: flex-start; gap: 9px; }
.next-documentation-journal article > svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: #6d7379; }
.next-documentation-journal article > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-documentation-journal article strong { font-size: 11px; }
.next-documentation-journal article small { color: #747980; font-size: 9px; }
.next-documentation-journal article p { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 10px; }
.next-documentation-register { padding: 20px; border-top: 1px solid var(--next-line); }
.next-documentation-register > header { min-height: 42px; }
.next-documentation-register h3 { margin: 0 0 10px; font-size: 15px; }
.next-documentation-register > article { min-width: 0; min-height: 72px; padding: 10px 11px; border-top: 1px solid #e4e6e8; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) 34px; align-items: center; gap: 12px; }
.next-documentation-register > article:last-child { border-bottom: 1px solid #e4e6e8; }
.next-documentation-register article > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-documentation-register article strong,
.next-documentation-register article small { overflow-wrap: anywhere; }
.next-documentation-register article strong { font-size: 12px; }
.next-documentation-register article small { color: #747980; font-size: 10px; }
.next-documentation-register article div:first-child > span { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; }
.next-documentation-register article > button { width: 34px; height: 34px; padding: 0; border: 1px solid #d2d5d8; border-radius: 5px; display: grid; place-items: center; color: #555a60; background: #fff; }
.next-documentation-register article > button svg { width: 16px; height: 16px; }

@media (max-width: 1180px) {
  .next-documentation-baseline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-documentation-baseline > span:nth-child(3) { border-right: 0; }
  .next-documentation-baseline > span:nth-child(-n+3) { border-bottom: 1px solid var(--next-line); }
  .next-documentation-fieldsets { grid-template-columns: minmax(0, 1fr); }
  .next-documentation-progress-list article { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-documentation-progress-list article > strong { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .next-documentation-planning > header { align-items: stretch; flex-direction: column; }
  .next-documentation-planning > header button { width: 100%; }
  .next-documentation-baseline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-documentation-baseline > span:nth-child(3) { border-right: 1px solid var(--next-line); }
  .next-documentation-baseline > span:nth-child(2n) { border-right: 0; }
  .next-documentation-baseline > span:nth-child(-n+4) { border-bottom: 1px solid var(--next-line); }
  .next-documentation-create,
  .next-documentation-editor { margin: 12px; }
  .next-documentation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-documentation-summary > span:nth-child(2n) { border-right: 0; }
  .next-documentation-summary > span { border-bottom: 1px solid #e1e3e5; }
  .next-documentation-summary > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .next-documentation-fieldsets { padding: 12px; }
  .next-documentation-objectives,
  .next-documentation-milestones,
  .next-documentation-review-history,
  .next-documentation-stage { margin: 0 12px 12px; }
  .next-documentation-objectives > header,
  .next-documentation-milestones > header { align-items: stretch; flex-direction: column; }
  .next-documentation-objectives > header button,
  .next-documentation-milestones > header button { width: 100%; }
  .next-documentation-progress-list article,
  .next-documentation-evaluation { grid-template-columns: minmax(0, 1fr); }
  .next-documentation-progress-list article > strong { grid-column: 1; }
  .next-documentation-review-history > article { grid-template-columns: minmax(0, 1fr); }
  .next-documentation-review-history article > span:last-child { width: max-content; max-width: 100%; }
  .next-documentation-register { padding: 14px; }
  .next-documentation-register > article { grid-template-columns: minmax(0, 1fr) 34px; }
  .next-documentation-register article > div:nth-child(2) { grid-column: 1; }
  .next-documentation-register article > button { grid-column: 2; grid-row: 1 / span 2; }
}

/* Release 1.246: Spectrum-Sammlungsbewertung */
.next-collection-review { margin-top: 20px; }
.next-collection-review > header { min-height: 66px; padding: 14px 20px; border-bottom: 1px solid var(--next-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.next-collection-review > header h2 { margin: 2px 0 0; font-size: 16px; }
.next-collection-review > header span,
.next-collection-review-register > header span,
.next-collection-review-assets > header span,
.next-collection-review-criteria > header span,
.next-collection-review-assessments > header span,
.next-collection-review-followups > header span { color: #747a80; font-size: 10px; font-weight: 700; }
.next-collection-review-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f8f9fa; }
.next-collection-review-kpis > span { min-width: 0; min-height: 66px; padding: 12px 18px; border-right: 1px solid var(--next-line); display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.next-collection-review-kpis > span:last-child { border-right: 0; }
.next-collection-review-kpis small { color: #70767c; font-size: 10px; }
.next-collection-review-kpis strong { font-size: 20px; }
.next-collection-review-kpis .review { box-shadow: inset 0 -3px #cb8f28; }
.next-collection-review-kpis .warning { box-shadow: inset 0 -3px #c54b47; }
.next-collection-review-create,
.next-collection-review-editor { margin: 18px; border: 1px solid #cfd3d6; border-radius: 6px; overflow: hidden; }
.next-collection-review-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid #d9dcdf; background: #f6f7f8; }
.next-collection-review-summary > span { min-width: 0; min-height: 58px; padding: 10px 12px; border-right: 1px solid #d9dcdf; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-collection-review-summary > span:last-child { border-right: 0; }
.next-collection-review-summary small { color: #747980; font-size: 9px; }
.next-collection-review-summary strong { overflow-wrap: anywhere; font-size: 11px; }
.next-collection-review-summary strong.draft,
.next-collection-review-summary strong.review,
.next-collection-review-summary strong.released,
.next-collection-review-summary strong.due { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; }
.next-collection-review-summary strong.draft { color: #4d555d; background: #e8eaec; }
.next-collection-review-summary strong.review { color: #72500f; background: #fff0c9; }
.next-collection-review-summary strong.released { color: #23633e; background: #dff3e7; }
.next-collection-review-summary strong.due { color: #913835; background: #fbe3e1; }
.next-collection-review-fieldsets { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.next-collection-review-fieldsets fieldset,
.next-collection-review-assessment-editor,
.next-collection-review-stage { min-width: 0; padding: 14px; border: 1px solid #d7dade; border-radius: 6px; }
.next-collection-review-fieldsets legend,
.next-collection-review-assessment-editor legend,
.next-collection-review-stage legend { padding: 0 6px; color: #555b61; font-size: 11px; font-weight: 800; }
.next-collection-review-assets,
.next-collection-review-criteria,
.next-collection-review-assessments,
.next-collection-review-followups,
.next-collection-review-stage,
.next-collection-review-journal { margin: 0 16px 16px; }
.next-collection-review-assets > header,
.next-collection-review-criteria > header,
.next-collection-review-assessments > header,
.next-collection-review-followups > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-collection-review-assets h4,
.next-collection-review-criteria h4,
.next-collection-review-assessments h4,
.next-collection-review-followups h4 { margin: 2px 0 0; font-size: 13px; }
.next-collection-review-assets > header > div:last-child { display: flex; gap: 7px; }
.next-collection-review-asset-grid { max-height: 280px; overflow: auto; border: 1px solid #d9dcdf; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-collection-review-asset-grid label { min-width: 0; min-height: 58px; padding: 9px 10px; border-right: 1px solid #e1e3e5; border-bottom: 1px solid #e1e3e5; display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.next-collection-review-asset-grid label:nth-child(3n) { border-right: 0; }
.next-collection-review-asset-grid label.blocked { color: #858a8f; background: #f2f3f4; cursor: not-allowed; }
.next-collection-review-asset-grid label > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-collection-review-asset-grid strong,
.next-collection-review-asset-grid small,
.next-collection-review-asset-grid em { overflow-wrap: anywhere; }
.next-collection-review-asset-grid strong { font-size: 11px; }
.next-collection-review-asset-grid small { color: #747980; font-size: 9px; }
.next-collection-review-asset-grid em { color: #9a4742; font-size: 9px; font-style: normal; }
.next-collection-review-criteria > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.next-collection-review-criteria article { min-width: 0; padding: 12px; border: 1px solid #d9dcdf; border-radius: 6px; background: #fafbfb; }
.next-collection-review-item-head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-collection-review-item-head strong { overflow-wrap: anywhere; font-size: 11px; }
.next-collection-review-item-head button { width: 30px; height: 30px; padding: 0; border: 1px solid #d5d8db; border-radius: 5px; display: grid; place-items: center; color: #656b71; background: #fff; }
.next-collection-review-item-head button svg { width: 14px; height: 14px; }
.next-collection-review-stage > footer,
.next-collection-review-assessment-editor > footer,
.next-collection-review-followups article > footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.next-collection-review-stage > footer > span,
.next-collection-review-assessment-editor > footer > span,
.next-collection-review-followups article > footer > span { max-width: 760px; color: #6f757b; font-size: 10px; }
.next-collection-review-stage > footer > div { display: flex; gap: 8px; }
.next-collection-review-assessment-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #d9dcdf; }
.next-collection-review-assessment-list button { min-width: 0; min-height: 58px; padding: 9px 11px; border: 0; border-right: 1px solid #e1e3e5; border-bottom: 1px solid #e1e3e5; display: flex; align-items: center; gap: 9px; text-align: left; background: #fff; }
.next-collection-review-assessment-list button:nth-child(3n) { border-right: 0; }
.next-collection-review-assessment-list button.active { box-shadow: inset 3px 0 #b82828; background: #fff7f6; }
.next-collection-review-assessment-list button > svg { flex: 0 0 auto; width: 17px; height: 17px; color: #50745f; }
.next-collection-review-assessment-list button > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-collection-review-assessment-list strong,
.next-collection-review-assessment-list small { overflow-wrap: anywhere; }
.next-collection-review-assessment-list strong { font-size: 11px; }
.next-collection-review-assessment-list small { color: #747980; font-size: 9px; }
.next-collection-review-assessment-editor { margin: 0 16px 16px; }
.next-collection-review-score-grid { margin: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.next-collection-review-score-grid article { min-width: 0; padding: 10px; border-left: 3px solid #65747d; display: grid; grid-template-columns: minmax(130px, 1fr) 72px minmax(180px, 1.5fr) minmax(140px, 1fr); gap: 8px; align-items: end; background: #f5f7f8; }
.next-collection-review-score-grid article > span { align-self: center; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-collection-review-score-grid strong { overflow-wrap: anywhere; font-size: 11px; }
.next-collection-review-score-grid small { color: #737980; font-size: 9px; }
.next-collection-review-score-grid label { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-collection-review-score-grid label > span { color: #737980; font-size: 9px; font-weight: 700; }
.next-collection-review-score-grid input,
.next-collection-review-score-grid textarea { width: 100%; min-width: 0; padding: 6px 7px; border: 1px solid #cfd3d6; border-radius: 4px; font: inherit; background: #fff; }
.next-collection-review-analysis { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.next-collection-review-analysis > div { min-width: 0; padding: 10px; border-left: 3px solid #66737b; background: #f6f7f8; }
.next-collection-review-analysis small { color: #747980; font-size: 9px; font-weight: 800; }
.next-collection-review-analysis p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 11px; }
.next-collection-review-followups > article { border-top: 1px solid #dde0e2; }
.next-collection-review-followups > article > button { width: 100%; min-width: 0; min-height: 58px; padding: 10px; border: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr) max-content; align-items: center; gap: 10px; text-align: left; background: #fff; }
.next-collection-review-followups > article.active > button { box-shadow: inset 3px 0 #b82828; background: #fff8f7; }
.next-collection-review-followups button > svg { width: 17px; height: 17px; }
.next-collection-review-followups button > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-collection-review-followups button strong,
.next-collection-review-followups button small { overflow-wrap: anywhere; }
.next-collection-review-followups button strong { font-size: 11px; }
.next-collection-review-followups button small { color: #747980; font-size: 9px; }
.next-collection-review-followups button em { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; }
.next-collection-review-followups button em.warning { color: #875711; background: #fff0c9; }
.next-collection-review-followups button em.review { color: #445f86; background: #e5edf8; }
.next-collection-review-followups button em.released { color: #23633e; background: #dff3e7; }
.next-collection-review-followups article > .next-form-grid,
.next-collection-review-followups article > footer { margin: 0 12px 12px; }
.next-collection-review-journal > header { min-height: 48px; }
.next-collection-review-journal > div > article { padding: 9px 11px; border-top: 1px solid #e4e6e8; display: flex; align-items: flex-start; gap: 9px; }
.next-collection-review-journal article > svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: #6d7379; }
.next-collection-review-journal article > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-collection-review-journal article strong { font-size: 11px; }
.next-collection-review-journal article small { color: #747980; font-size: 9px; }
.next-collection-review-journal article p { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 10px; }
.next-collection-review-register { padding: 18px 20px; border-top: 1px solid var(--next-line); }
.next-collection-review-register > header { min-height: 42px; }
.next-collection-review-register h3 { margin: 2px 0 10px; font-size: 14px; }
.next-collection-review-register-list { border: 1px solid #d9dcdf; }
.next-collection-review-register-list > button { width: 100%; min-width: 0; min-height: 64px; padding: 10px 12px; border: 0; border-bottom: 1px solid #e1e3e5; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, .7fr) 20px; align-items: center; gap: 12px; text-align: left; background: #fff; }
.next-collection-review-register-list > button:last-child { border-bottom: 0; }
.next-collection-review-register-list > button.active { box-shadow: inset 3px 0 #b82828; background: #fff8f7; }
.next-collection-review-register-list button > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-collection-review-register-list button > span:nth-child(2) { align-items: flex-start; }
.next-collection-review-register-list strong,
.next-collection-review-register-list small { overflow-wrap: anywhere; }
.next-collection-review-register-list strong { font-size: 11px; }
.next-collection-review-register-list small { color: #747980; font-size: 9px; }
.next-collection-review-register-list em { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; }
.next-collection-review-register-list em.draft { color: #4d555d; background: #e8eaec; }
.next-collection-review-register-list em.review { color: #72500f; background: #fff0c9; }
.next-collection-review-register-list em.released { color: #23633e; background: #dff3e7; }
.next-collection-review-register-list em.due { color: #913835; background: #fbe3e1; }
.next-collection-review-register-list svg { width: 17px; height: 17px; color: #6c7278; }

@media (max-width: 1180px) {
  .next-collection-review-fieldsets,
  .next-collection-review-criteria > div,
  .next-collection-review-score-grid { grid-template-columns: minmax(0, 1fr); }
  .next-collection-review-score-grid article { grid-template-columns: minmax(120px, 1fr) 72px minmax(160px, 1.4fr) minmax(130px, 1fr); }
  .next-collection-review-asset-grid,
  .next-collection-review-assessment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-review-asset-grid label:nth-child(3n),
  .next-collection-review-assessment-list button:nth-child(3n) { border-right: 1px solid #e1e3e5; }
  .next-collection-review-asset-grid label:nth-child(2n),
  .next-collection-review-assessment-list button:nth-child(2n) { border-right: 0; }
}

@media (max-width: 700px) {
  .next-collection-review > header { align-items: stretch; flex-direction: column; }
  .next-collection-review > header button { width: 100%; }
  .next-collection-review-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-review-kpis > span:nth-child(2n) { border-right: 0; }
  .next-collection-review-kpis > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-collection-review-create,
  .next-collection-review-editor { margin: 12px; }
  .next-collection-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-review-summary > span:nth-child(2n) { border-right: 0; }
  .next-collection-review-summary > span { border-bottom: 1px solid #d9dcdf; }
  .next-collection-review-summary > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .next-collection-review-fieldsets { padding: 12px; }
  .next-collection-review-assets,
  .next-collection-review-criteria,
  .next-collection-review-assessments,
  .next-collection-review-followups,
  .next-collection-review-stage,
  .next-collection-review-journal,
  .next-collection-review-assessment-editor { margin-left: 12px; margin-right: 12px; }
  .next-collection-review-assets > header,
  .next-collection-review-criteria > header { align-items: stretch; flex-direction: column; }
  .next-collection-review-assets > header > div:last-child { display: grid; grid-template-columns: 1fr; }
  .next-collection-review-assets > header button,
  .next-collection-review-criteria > header button { width: 100%; }
  .next-collection-review-asset-grid,
  .next-collection-review-assessment-list,
  .next-collection-review-analysis { grid-template-columns: minmax(0, 1fr); }
  .next-collection-review-asset-grid label,
  .next-collection-review-asset-grid label:nth-child(2n),
  .next-collection-review-assessment-list button,
  .next-collection-review-assessment-list button:nth-child(2n) { border-right: 0; }
  .next-collection-review-score-grid article { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-review-score-grid article > span { grid-column: 1 / -1; }
  .next-collection-review-score-grid article label:nth-of-type(2),
  .next-collection-review-score-grid article label:nth-of-type(3) { grid-column: 1 / -1; }
  .next-collection-review-stage > footer,
  .next-collection-review-assessment-editor > footer,
  .next-collection-review-followups article > footer { align-items: stretch; flex-direction: column; }
  .next-collection-review-stage > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-collection-review-stage > footer button,
  .next-collection-review-assessment-editor > footer button,
  .next-collection-review-followups article > footer button { width: 100%; }
  .next-collection-review-followups > article > button { grid-template-columns: 20px minmax(0, 1fr); }
  .next-collection-review-followups > article > button em { grid-column: 2; width: max-content; max-width: 100%; }
  .next-collection-review-register { padding: 14px; }
  .next-collection-review-register-list > button { grid-template-columns: minmax(0, 1fr) 20px; }
  .next-collection-review-register-list button > span:nth-child(2) { grid-column: 1; }
  .next-collection-review-register-list button > svg { grid-column: 2; grid-row: 1 / span 2; }
}

/* Release 1.247: Spectrum-Sammlungsnutzung */
.next-collection-use { margin-top: 20px; }
.next-collection-use > header { min-height: 66px; padding: 14px 20px; border-bottom: 1px solid var(--next-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.next-collection-use > header h2 { margin: 2px 0 0; font-size: 16px; }
.next-collection-use > header span,
.next-collection-use-register > header span,
.next-collection-use-assets > header span,
.next-collection-use-assets-work > header span,
.next-collection-use-measurements > header span { color: #747a80; font-size: 10px; font-weight: 700; }
.next-collection-use-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); background: #f8f9fa; }
.next-collection-use-kpis > span { min-width: 0; min-height: 66px; padding: 12px 18px; border-right: 1px solid var(--next-line); display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.next-collection-use-kpis > span:last-child { border-right: 0; }
.next-collection-use-kpis small { color: #70767c; font-size: 10px; }
.next-collection-use-kpis strong { font-size: 20px; }
.next-collection-use-kpis .review { box-shadow: inset 0 -3px #55799c; }
.next-collection-use-kpis .warning { box-shadow: inset 0 -3px #c54b47; }
.next-collection-use-create,
.next-collection-use-editor { margin: 18px; border: 1px solid #cfd3d6; border-radius: 6px; overflow: hidden; }
.next-collection-use-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid #d9dcdf; background: #f6f7f8; }
.next-collection-use-summary > span { min-width: 0; min-height: 58px; padding: 10px 12px; border-right: 1px solid #d9dcdf; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.next-collection-use-summary > span:last-child { border-right: 0; }
.next-collection-use-summary small { color: #747980; font-size: 9px; }
.next-collection-use-summary strong { overflow-wrap: anywhere; font-size: 11px; }
.next-collection-use-summary strong.draft,
.next-collection-use-summary strong.review,
.next-collection-use-summary strong.released,
.next-collection-use-summary strong.due { width: max-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; }
.next-collection-use-summary strong.draft { color: #4d555d; background: #e8eaec; }
.next-collection-use-summary strong.review { color: #445f86; background: #e5edf8; }
.next-collection-use-summary strong.released { color: #23633e; background: #dff3e7; }
.next-collection-use-summary strong.due { color: #913835; background: #fbe3e1; }
.next-collection-use-fieldsets { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.next-collection-use-fieldsets fieldset,
.next-collection-use-stage,
.next-collection-use-asset-editor,
.next-collection-use-completion { min-width: 0; padding: 14px; border: 1px solid #d7dade; border-radius: 6px; }
.next-collection-use-fieldsets fieldset:last-child { grid-column: 1 / -1; }
.next-collection-use-fieldsets legend,
.next-collection-use-stage legend,
.next-collection-use-asset-editor legend,
.next-collection-use-completion legend { padding: 0 6px; color: #555b61; font-size: 11px; font-weight: 800; }
.next-collection-use-modes { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #d9dcdf; }
.next-collection-use-modes label { min-width: 0; min-height: 48px; padding: 8px 9px; border-right: 1px solid #e1e3e5; border-bottom: 1px solid #e1e3e5; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.next-collection-use-modes label:nth-child(4n) { border-right: 0; }
.next-collection-use-modes label > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.next-collection-use-modes svg { flex: 0 0 auto; width: 15px; height: 15px; color: #5d6972; }
.next-collection-use-modes strong { overflow-wrap: anywhere; font-size: 10px; }
.next-collection-use-assets,
.next-collection-use-assets-work,
.next-collection-use-stage,
.next-collection-use-asset-editor,
.next-collection-use-completion,
.next-collection-use-result,
.next-collection-use-journal,
.next-collection-use-cancel { margin: 0 16px 16px; }
.next-collection-use-assets > header,
.next-collection-use-assets-work > header,
.next-collection-use-measurements > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-collection-use-assets h4,
.next-collection-use-assets-work h4,
.next-collection-use-measurements h4 { margin: 2px 0 0; font-size: 13px; }
.next-collection-use-assets > header > div:last-child { display: flex; gap: 7px; }
.next-collection-use-asset-grid { max-height: 280px; overflow: auto; border: 1px solid #d9dcdf; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-collection-use-asset-grid label { min-width: 0; min-height: 58px; padding: 9px 10px; border-right: 1px solid #e1e3e5; border-bottom: 1px solid #e1e3e5; display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.next-collection-use-asset-grid label:nth-child(3n) { border-right: 0; }
.next-collection-use-asset-grid label.reserved { background: #fff8ec; }
.next-collection-use-asset-grid label > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-collection-use-asset-grid strong,
.next-collection-use-asset-grid small,
.next-collection-use-asset-grid em { overflow-wrap: anywhere; }
.next-collection-use-asset-grid strong { font-size: 11px; }
.next-collection-use-asset-grid small { color: #747980; font-size: 9px; }
.next-collection-use-asset-grid em { color: #875711; font-size: 9px; font-style: normal; }
.next-collection-use-work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #d9dcdf; }
.next-collection-use-work-list button { min-width: 0; min-height: 58px; padding: 9px 11px; border: 0; border-right: 1px solid #e1e3e5; border-bottom: 1px solid #e1e3e5; display: flex; align-items: center; gap: 9px; text-align: left; background: #fff; }
.next-collection-use-work-list button:nth-child(3n) { border-right: 0; }
.next-collection-use-work-list button.active { box-shadow: inset 3px 0 #b82828; background: #fff7f6; }
.next-collection-use-work-list button > svg { flex: 0 0 auto; width: 17px; height: 17px; color: #50745f; }
.next-collection-use-work-list button > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-collection-use-work-list strong,
.next-collection-use-work-list small { overflow-wrap: anywhere; }
.next-collection-use-work-list strong { font-size: 11px; }
.next-collection-use-work-list small { color: #747980; font-size: 9px; }
.next-collection-use-stage > footer,
.next-collection-use-asset-editor > footer,
.next-collection-use-completion > footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.next-collection-use-stage > footer > span,
.next-collection-use-asset-editor > footer > span,
.next-collection-use-completion > footer > span { max-width: 760px; color: #6f757b; font-size: 10px; }
.next-collection-use-stage > footer > div { display: flex; gap: 8px; }
.next-collection-use-measurements { margin-top: 14px; border-top: 1px solid #dde0e2; }
.next-collection-use-measurements > div { display: grid; gap: 8px; }
.next-collection-use-measurements article { min-width: 0; padding: 9px; border-left: 3px solid #667985; display: grid; grid-template-columns: minmax(130px, 1fr) 100px 110px minmax(120px, 1fr) 130px minmax(160px, 1.2fr) 30px; gap: 7px; align-items: end; background: #f5f7f8; }
.next-collection-use-measurements label { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-collection-use-measurements label > span { color: #737980; font-size: 9px; font-weight: 700; }
.next-collection-use-measurements input { width: 100%; min-width: 0; padding: 6px 7px; border: 1px solid #cfd3d6; border-radius: 4px; font: inherit; background: #fff; }
.next-collection-use-measurements article > button { width: 30px; height: 30px; padding: 0; border: 1px solid #d5d8db; border-radius: 5px; display: grid; place-items: center; color: #656b71; background: #fff; }
.next-collection-use-measurements article > button svg { width: 14px; height: 14px; }
.next-collection-use-result { padding: 13px 14px; border-left: 3px solid #50745f; background: #f5f8f6; }
.next-collection-use-result > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-collection-use-result > div span { color: #737980; font-size: 10px; font-weight: 800; }
.next-collection-use-result > div strong { overflow-wrap: anywhere; font-size: 12px; }
.next-collection-use-result > div strong.review,
.next-collection-use-result > div strong.released,
.next-collection-use-result > div strong.due { padding: 3px 6px; border-radius: 4px; }
.next-collection-use-result > div strong.review { color: #445f86; background: #e5edf8; }
.next-collection-use-result > div strong.released { color: #23633e; background: #dff3e7; }
.next-collection-use-result > div strong.due { color: #913835; background: #fbe3e1; }
.next-collection-use-result p { margin: 10px 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 11px; }
.next-collection-use-result dl { margin: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 5px 10px; font-size: 10px; }
.next-collection-use-result dt { color: #737980; font-weight: 800; }
.next-collection-use-result dd { margin: 0; overflow-wrap: anywhere; }
.next-collection-use-cancel { display: flex; justify-content: flex-end; }
.next-collection-use-cancel .danger { color: #943b38; }
.next-collection-use-journal > header { min-height: 48px; }
.next-collection-use-journal > div > article { padding: 9px 11px; border-top: 1px solid #e4e6e8; display: flex; align-items: flex-start; gap: 9px; }
.next-collection-use-journal article > svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: #6d7379; }
.next-collection-use-journal article > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-collection-use-journal article strong { font-size: 11px; }
.next-collection-use-journal article small { color: #747980; font-size: 9px; }
.next-collection-use-journal article p { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 10px; }
.next-collection-use-register { padding: 18px 20px; border-top: 1px solid var(--next-line); }
.next-collection-use-register > header { min-height: 42px; }
.next-collection-use-register h3 { margin: 2px 0 10px; font-size: 14px; }
.next-collection-use-register-list { border: 1px solid #d9dcdf; }
.next-collection-use-register-list > button { width: 100%; min-width: 0; min-height: 64px; padding: 10px 12px; border: 0; border-bottom: 1px solid #e1e3e5; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, .7fr) 20px; align-items: center; gap: 12px; text-align: left; background: #fff; }
.next-collection-use-register-list > button:last-child { border-bottom: 0; }
.next-collection-use-register-list > button.active { box-shadow: inset 3px 0 #b82828; background: #fff8f7; }
.next-collection-use-register-list button > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-collection-use-register-list button > span:nth-child(2) { align-items: flex-start; }
.next-collection-use-register-list strong,
.next-collection-use-register-list small { overflow-wrap: anywhere; }
.next-collection-use-register-list strong { font-size: 11px; }
.next-collection-use-register-list small { color: #747980; font-size: 9px; }
.next-collection-use-register-list em { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; }
.next-collection-use-register-list em.draft { color: #4d555d; background: #e8eaec; }
.next-collection-use-register-list em.review { color: #445f86; background: #e5edf8; }
.next-collection-use-register-list em.released { color: #23633e; background: #dff3e7; }
.next-collection-use-register-list em.due { color: #913835; background: #fbe3e1; }
.next-collection-use-register-list svg { width: 17px; height: 17px; color: #6c7278; }

@media (max-width: 1180px) {
  .next-collection-use-fieldsets { grid-template-columns: minmax(0, 1fr); }
  .next-collection-use-fieldsets fieldset:last-child { grid-column: auto; }
  .next-collection-use-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-use-modes label:nth-child(4n) { border-right: 1px solid #e1e3e5; }
  .next-collection-use-modes label:nth-child(2n) { border-right: 0; }
  .next-collection-use-asset-grid,
  .next-collection-use-work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-use-asset-grid label:nth-child(3n),
  .next-collection-use-work-list button:nth-child(3n) { border-right: 1px solid #e1e3e5; }
  .next-collection-use-asset-grid label:nth-child(2n),
  .next-collection-use-work-list button:nth-child(2n) { border-right: 0; }
  .next-collection-use-measurements article { grid-template-columns: repeat(3, minmax(0, 1fr)) 30px; }
  .next-collection-use-measurements article label.wide { grid-column: 1 / span 3; }
}

@media (max-width: 700px) {
  .next-collection-use > header { align-items: stretch; flex-direction: column; }
  .next-collection-use > header button { width: 100%; }
  .next-collection-use-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-use-kpis > span:nth-child(2n) { border-right: 0; }
  .next-collection-use-kpis > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-collection-use-create,
  .next-collection-use-editor { margin: 12px; }
  .next-collection-use-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-collection-use-summary > span:nth-child(2n) { border-right: 0; }
  .next-collection-use-summary > span { border-bottom: 1px solid #d9dcdf; }
  .next-collection-use-summary > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .next-collection-use-fieldsets { padding: 12px; }
  .next-collection-use-modes { grid-template-columns: minmax(0, 1fr); }
  .next-collection-use-modes label,
  .next-collection-use-modes label:nth-child(2n) { border-right: 0; }
  .next-collection-use-assets,
  .next-collection-use-assets-work,
  .next-collection-use-stage,
  .next-collection-use-asset-editor,
  .next-collection-use-completion,
  .next-collection-use-result,
  .next-collection-use-journal,
  .next-collection-use-cancel { margin-left: 12px; margin-right: 12px; }
  .next-collection-use-assets > header,
  .next-collection-use-measurements > header { align-items: stretch; flex-direction: column; }
  .next-collection-use-assets > header > div:last-child { display: grid; grid-template-columns: 1fr; }
  .next-collection-use-assets > header button,
  .next-collection-use-measurements > header button { width: 100%; }
  .next-collection-use-asset-grid,
  .next-collection-use-work-list { grid-template-columns: minmax(0, 1fr); }
  .next-collection-use-asset-grid label,
  .next-collection-use-asset-grid label:nth-child(2n),
  .next-collection-use-work-list button,
  .next-collection-use-work-list button:nth-child(2n) { border-right: 0; }
  .next-collection-use-stage > footer,
  .next-collection-use-asset-editor > footer,
  .next-collection-use-completion > footer { align-items: stretch; flex-direction: column; }
  .next-collection-use-stage > footer > div { display: grid; grid-template-columns: 1fr; }
  .next-collection-use-stage > footer button,
  .next-collection-use-asset-editor > footer button,
  .next-collection-use-completion > footer button { width: 100%; }
  .next-collection-use-measurements article { grid-template-columns: repeat(2, minmax(0, 1fr)) 30px; }
  .next-collection-use-measurements article label.wide { grid-column: 1 / span 2; }
  .next-collection-use-measurements article > button { grid-column: 3; grid-row: 1; }
  .next-collection-use-result dl { grid-template-columns: minmax(0, 1fr); }
  .next-collection-use-register { padding: 14px; }
  .next-collection-use-register-list > button { grid-template-columns: minmax(0, 1fr) 20px; }
  .next-collection-use-register-list button > span:nth-child(2) { grid-column: 1; }
  .next-collection-use-register-list button > svg { grid-column: 2; grid-row: 1 / span 2; }
}
/* Release 1.262: Immobilienbewertung */
.next-value-form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  color: #3e4854;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.next-value-form-divider::after { content: ""; height: 1px; flex: 1; background: #dde2e7; }
.next-value-review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 16px 18px; border: 0; border-top: 1px solid #dde2e7; background: #f8fafb; }
.next-valuation-portfolio-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-valuation-portfolio-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(160px, .32fr) minmax(170px, .35fr); }
.next-valuation-portfolio-list { overflow-x: auto; border-top: 1px solid #e2e6ea; }
.next-valuation-portfolio-list > header,
.next-valuation-portfolio-list > a {
  display: grid;
  grid-template-columns: minmax(205px, 1.05fr) minmax(230px, 1.16fr) minmax(165px, .72fr) minmax(170px, .78fr) minmax(200px, .92fr) 24px;
  align-items: center;
  gap: 14px;
  min-width: 1040px;
}
.next-valuation-portfolio-list > header { padding: 10px 18px; color: #6d7680; background: #f6f7f8; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.next-valuation-portfolio-list > a { min-height: 104px; padding: 14px 18px; color: #252b31; text-decoration: none; border-top: 1px solid #e8ebee; transition: background-color .16s ease; }
.next-valuation-portfolio-list > a:first-of-type { border-top: 0; }
.next-valuation-portfolio-list > a:hover { background: #f7fafc; }
.next-valuation-portfolio-list > a.attention { box-shadow: inset 3px 0 #d04949; }
.next-valuation-portfolio-list > a > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.next-valuation-portfolio-list strong,
.next-valuation-portfolio-list small,
.next-valuation-portfolio-list span,
.next-valuation-portfolio-list em { overflow-wrap: break-word; hyphens: auto; }
.next-valuation-portfolio-list strong { font-size: .88rem; }
.next-valuation-portfolio-list small { color: #747d86; font-size: .76rem; }
.next-valuation-portfolio-list em { width: fit-content; color: #7c3f25; font-size: .7rem; font-style: normal; font-weight: 750; }
.next-valuation-portfolio-list > a > i { width: 18px; height: 18px; color: #77808a; }

@media (max-width: 1240px) {
  .next-valuation-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .next-value-review-fields { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .next-valuation-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-valuation-portfolio-kpis strong { font-size: 15px; }
  .next-valuation-portfolio-toolbar { grid-template-columns: minmax(0, 1fr); }
  .next-valuation-portfolio-list { overflow: visible; padding: 0 12px 12px; }
  .next-valuation-portfolio-list > header { display: none; }
  .next-valuation-portfolio-list > a { min-width: 0; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; margin-top: 10px; padding: 14px; border: 1px solid #dfe4e8; border-radius: 6px; }
  .next-valuation-portfolio-list > a > div { grid-column: 1; }
  .next-valuation-portfolio-list > a > i { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
  .next-technical-register > article > .next-table-actions { grid-column: 3; grid-row: 1 / span 2; align-self: center; flex-direction: column; }
}

.next-strategy-kpis,
.next-strategy-portfolio-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-property-strategy { display: grid; gap: 18px; }
.next-strategy-register { overflow: hidden; border: 1px solid #dfe4e8; border-radius: 6px; background: #fff; }
.next-strategy-register > .next-work-section-header { padding: 16px 18px; border-bottom: 1px solid #e5e8eb; }
.next-strategy-editor { margin: 16px; }
.next-strategy-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: #dfe4e8; border: 1px solid #dfe4e8; border-radius: 6px; }
.next-strategy-facts > span { display: grid; min-width: 0; gap: 4px; padding: 12px; background: #fff; }
.next-strategy-facts small { color: #6c757d; font-size: .72rem; }
.next-strategy-facts strong { overflow-wrap: anywhere; font-size: .9rem; }
.next-strategy-list { margin-top: 1px; }
.next-strategy-list > article { grid-template-columns: minmax(160px, .7fr) minmax(260px, 1.4fr) minmax(180px, .8fr) auto; padding: 14px 18px; }
.next-strategy-list > article > span:not(.next-table-actions) { display: grid; min-width: 0; gap: 4px; }
.next-strategy-list > article strong { overflow-wrap: anywhere; color: #252b31; font-size: .86rem; }
.next-strategy-list > article small { overflow-wrap: anywhere; color: #747d86; font-size: .74rem; }
.next-strategy-portfolio-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(170px, .34fr) minmax(180px, .36fr); }
.next-strategy-portfolio-list { overflow-x: auto; border-top: 1px solid #e2e6ea; }
.next-strategy-portfolio-list > header,
.next-strategy-portfolio-list > a { display: grid; grid-template-columns: minmax(210px, 1.05fr) minmax(190px, .9fr) minmax(210px, .95fr) minmax(220px, 1fr) 20px; gap: 16px; align-items: center; min-width: 980px; }
.next-strategy-portfolio-list > header { padding: 10px 18px; color: #6d7680; background: #f6f7f8; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.next-strategy-portfolio-list > a { min-height: 104px; padding: 14px 18px; color: #252b31; text-decoration: none; border-top: 1px solid #e8ebee; transition: background-color .16s ease; }
.next-strategy-portfolio-list > a:hover { background: #f7fafc; }
.next-strategy-portfolio-list > a.attention { box-shadow: inset 3px 0 #d04949; }
.next-strategy-portfolio-list > a > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.next-strategy-portfolio-list strong,
.next-strategy-portfolio-list small,
.next-strategy-portfolio-list span,
.next-strategy-portfolio-list em { overflow-wrap: break-word; hyphens: auto; }
.next-strategy-portfolio-list strong { font-size: .88rem; }
.next-strategy-portfolio-list small { color: #747d86; font-size: .76rem; }
.next-strategy-portfolio-list em { width: fit-content; color: #7c3f25; font-size: .7rem; font-style: normal; font-weight: 750; }
.next-strategy-portfolio-list > a > i { width: 18px; height: 18px; color: #77808a; }

@media (max-width: 1120px) {
  .next-strategy-kpis,
  .next-strategy-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .next-strategy-kpis,
  .next-strategy-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-strategy-kpis strong,
  .next-strategy-portfolio-kpis strong { font-size: 15px; }
  .next-strategy-editor { margin: 10px; }
  .next-strategy-facts { grid-template-columns: 1fr; }
  .next-strategy-list > article { grid-template-columns: minmax(0, 1fr) 42px; align-items: start; padding: 13px; }
  .next-strategy-list > article > span:not(.next-table-actions) { grid-column: 1; }
  .next-strategy-list > article > .next-table-actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .next-strategy-portfolio-toolbar { grid-template-columns: minmax(0, 1fr); }
  .next-strategy-portfolio-list { overflow: visible; padding: 0 12px 12px; }
  .next-strategy-portfolio-list > header { display: none; }
  .next-strategy-portfolio-list > a { min-width: 0; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; margin-top: 10px; padding: 14px; border: 1px solid #dfe4e8; border-radius: 6px; }
  .next-strategy-portfolio-list > a > div { grid-column: 1; }
  .next-strategy-portfolio-list > a > i { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}
.next-lifecycle-portfolio-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-lifecycle-portfolio-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(160px, .28fr) minmax(190px, .34fr) 74px; }
.next-lifecycle-export { display: inline-flex; height: 34px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #cfd5da; border-radius: 4px; background: #fff; color: #303840; font-size: .76rem; font-weight: 800; text-decoration: none; }
.next-lifecycle-export:hover { border-color: #aeb7bf; background: #f4f6f7; }
.next-lifecycle-export svg { width: 15px; height: 15px; }
.next-lifecycle-forecast { border-bottom: 1px solid #e1e5e8; background: #fbfcfc; }
.next-lifecycle-forecast > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 16px 18px 8px; }
.next-lifecycle-forecast > header > div { display: grid; gap: 3px; }
.next-lifecycle-forecast > header span { color: #68727b; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.next-lifecycle-forecast > header strong { color: #252b31; font-size: 1.05rem; }
.next-lifecycle-forecast > header small { max-width: 580px; color: #6f7880; font-size: .73rem; line-height: 1.45; text-align: right; }
.next-lifecycle-forecast-chart { display: grid; grid-auto-columns: minmax(54px, 1fr); grid-auto-flow: column; gap: 8px; min-width: max-content; padding: 8px 18px 14px; overflow-x: auto; }
.next-lifecycle-forecast-chart > div { display: grid; width: 62px; min-width: 0; grid-template-rows: 130px 18px 18px; align-items: end; justify-items: center; gap: 2px; }
.next-lifecycle-bar-track { position: relative; display: block; width: 28px; height: 130px; border-bottom: 1px solid #aeb7bf; background: repeating-linear-gradient(to top, transparent 0, transparent 31px, #e6e9eb 32px); }
.next-lifecycle-bar-track > i { position: absolute; right: 0; bottom: 0; left: 0; min-height: 4px; background: #607f98; }
.next-lifecycle-bar-track > i.critical { background: #c84747; }
.next-lifecycle-forecast-chart strong { max-width: 62px; overflow: hidden; color: #343b42; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.next-lifecycle-forecast-chart small { color: #6f7880; font-size: .7rem; }
.next-lifecycle-forecast > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 0 18px 14px; color: #707982; font-size: .7rem; }
.next-lifecycle-forecast > footer span { display: inline-flex; align-items: center; gap: 6px; }
.next-lifecycle-forecast > footer span:last-child { margin-left: auto; }
.next-lifecycle-forecast > footer i { width: 9px; height: 9px; background: #607f98; }
.next-lifecycle-forecast > footer i.critical { background: #c84747; }
.next-lifecycle-portfolio-list { overflow-x: auto; border-top: 1px solid #e2e6ea; }
.next-lifecycle-portfolio-list > header,
.next-lifecycle-portfolio-list > a { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(155px, .85fr) minmax(140px, .68fr) minmax(165px, .82fr) minmax(165px, .82fr) 20px; gap: 12px; align-items: center; min-width: 940px; }
.next-lifecycle-portfolio-list > header { padding: 10px 18px; color: #6d7680; background: #f6f7f8; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.next-lifecycle-portfolio-list > a { min-height: 108px; padding: 14px 18px; color: #252b31; text-decoration: none; border-top: 1px solid #e8ebee; transition: background-color .16s ease; }
.next-lifecycle-portfolio-list > a:hover { background: #f7fafc; }
.next-lifecycle-portfolio-list > a.attention { box-shadow: inset 3px 0 #d04949; }
.next-lifecycle-portfolio-list > a > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.next-lifecycle-portfolio-list strong,
.next-lifecycle-portfolio-list small,
.next-lifecycle-portfolio-list span,
.next-lifecycle-portfolio-list em { overflow-wrap: break-word; hyphens: auto; }
.next-lifecycle-portfolio-list strong { font-size: .86rem; }
.next-lifecycle-portfolio-list small { color: #747d86; font-size: .75rem; }
.next-lifecycle-portfolio-list em { width: fit-content; color: #7c3f25; font-size: .7rem; font-style: normal; font-weight: 750; }
.next-lifecycle-portfolio-list > a > i { width: 18px; height: 18px; color: #77808a; }
.next-lifecycle-fci.warning { color: #96620d; }
.next-lifecycle-fci.critical { color: #b52f38; }

@media (max-width: 1180px) {
  .next-lifecycle-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-lifecycle-portfolio-toolbar { grid-template-columns: minmax(240px, 1fr) minmax(160px, .45fr) minmax(180px, .55fr) 74px; }
}

@media (max-width: 760px) {
  .next-lifecycle-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-lifecycle-portfolio-kpis strong { font-size: 15px; }
  .next-lifecycle-portfolio-toolbar { grid-template-columns: minmax(0, 1fr); }
  .next-lifecycle-forecast > header { flex-direction: column; gap: 6px; }
  .next-lifecycle-forecast > header small { text-align: left; }
  .next-lifecycle-forecast > footer span:last-child { width: 100%; margin-left: 0; }
  .next-lifecycle-portfolio-list { overflow: visible; padding: 0 12px 12px; }
  .next-lifecycle-portfolio-list > header { display: none; }
  .next-lifecycle-portfolio-list > a { min-width: 0; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; margin-top: 10px; padding: 14px; border: 1px solid #dfe4e8; border-radius: 6px; }
  .next-lifecycle-portfolio-list > a > div { grid-column: 1; }
  .next-lifecycle-portfolio-list > a > i { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
}
.next-investment-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.next-investment-toolbar { grid-template-columns: minmax(280px, 1fr) minmax(170px, .32fr) minmax(150px, .26fr); }
.next-investment-editor { margin: 18px; border: 1px solid #d9dee3; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgba(20, 28, 36, .08); }
.next-investment-editor > header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid #e1e5e9; background: #f7f8f9; }
.next-investment-editor > header div { min-width: 0; }
.next-investment-editor > header span { color: #777f88; font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.next-investment-editor > header h3 { margin: 4px 0 0; color: #272d33; font-size: 1.05rem; }
.next-investment-editor > header button { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #5d6670; cursor: pointer; }
.next-investment-editor > header button:hover { background: #e9edf0; }
.next-investment-editor > header svg { width: 19px; height: 19px; }
.next-investment-editor fieldset { margin: 0; padding: 18px; border: 0; border-bottom: 1px solid #e3e7ea; }
.next-investment-editor legend { padding: 0; color: #343a40; font-size: .8rem; font-weight: 800; }
.next-investment-limits > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.next-investment-limits label { display: grid; gap: 5px; padding: 10px; border-left: 3px solid #617e9b; background: #f5f7f8; }
.next-investment-limits label > span { font-size: .78rem; font-weight: 800; }
.next-investment-limits label > small { color: #69737d; font-size: .7rem; }
.next-investment-limits input,
.next-investment-source-list input[type="number"] { width: 100%; min-width: 0; height: 38px; padding: 7px 9px; border: 1px solid #cfd5da; border-radius: 4px; background: #fff; color: #252b31; font: inherit; }
.next-investment-source-list { margin-top: 10px; overflow-x: auto; border: 1px solid #e0e4e7; }
.next-investment-source-list > header,
.next-investment-source-list > label { display: grid; grid-template-columns: 26px minmax(210px, 1.2fr) minmax(180px, .85fr) 96px 130px 130px; gap: 12px; min-width: 940px; align-items: center; }
.next-investment-source-list > header { padding: 9px 12px; background: #f2f4f5; color: #69727b; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.next-investment-source-list > label { min-height: 68px; padding: 10px 12px; border-top: 1px solid #e5e8eb; color: #252b31; cursor: pointer; }
.next-investment-source-list > label.selected { box-shadow: inset 3px 0 #3c7f62; background: #f7fbf9; }
.next-investment-source-list > label > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.next-investment-source-list > label strong { overflow-wrap: break-word; font-size: .82rem; }
.next-investment-source-list > label small { color: #727b84; overflow-wrap: break-word; font-size: .72rem; }
.next-investment-source-list input[type="checkbox"] { width: 18px; height: 18px; accent-color: #2f7257; }
.next-investment-execution { padding: 18px; border-bottom: 1px solid #e3e7ea; background: #fbfcfc; }
.next-investment-execution > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.next-investment-execution > header span { color: #6f7881; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.next-investment-execution > header h4 { margin: 4px 0 0; color: #293139; font-size: .95rem; }
.next-investment-execution > header small { max-width: 520px; color: #68737c; font-size: .73rem; line-height: 1.4; text-align: right; }
.next-investment-execution-list { display: grid; gap: 8px; margin-top: 12px; }
.next-investment-execution-list > article { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; min-height: 68px; align-items: center; padding: 10px 12px; border: 1px solid #dce2e6; border-left: 3px solid #d39b3e; background: #fff; }
.next-investment-execution-list > article.linked { border-left-color: #3d8061; background: #f7fbf9; }
.next-investment-execution-list > article > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.next-investment-execution-list strong { overflow-wrap: break-word; color: #2a3137; font-size: .84rem; }
.next-investment-execution-list small { color: #6d7780; font-size: .73rem; }
.next-investment-execution-list em { color: #7b6544; font-size: .68rem; font-style: normal; }
.next-investment-execution-editor { margin-top: 14px !important; padding: 16px !important; border: 1px solid #d6dde1 !important; background: #fff; }
.next-investment-execution-editor > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.next-investment-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #f7f8f9; }
.next-investment-editor > footer > span { color: #68727b; font-size: .78rem; }
.next-investment-editor > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.next-investment-program-list { overflow-x: auto; border-top: 1px solid #e1e5e8; }
.next-investment-program-list > header,
.next-investment-program-list > button { display: grid; grid-template-columns: minmax(230px, 1.2fr) minmax(150px, .55fr) minmax(220px, .85fr) minmax(220px, .9fr) 20px; gap: 16px; min-width: 940px; align-items: center; }
.next-investment-program-list > header { padding: 10px 18px; background: #f5f6f7; color: #6d7680; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.next-investment-program-list > button { width: 100%; min-height: 102px; padding: 14px 18px; border: 0; border-top: 1px solid #e5e8eb; background: #fff; color: #252b31; text-align: left; cursor: pointer; }
.next-investment-program-list > button:hover { background: #f8fafb; }
.next-investment-program-list > button.review { box-shadow: inset 3px 0 #c68b2f; }
.next-investment-program-list > button.released { box-shadow: inset 3px 0 #3e8062; }
.next-investment-program-list > button.historical { opacity: .72; }
.next-investment-program-list > button > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.next-investment-program-list strong,
.next-investment-program-list small,
.next-investment-program-list em { overflow-wrap: break-word; }
.next-investment-program-list strong { font-size: .88rem; }
.next-investment-program-list small { color: #717a83; font-size: .75rem; }
.next-investment-program-list em { width: fit-content; color: #725a40; font-size: .7rem; font-style: normal; }
.next-investment-program-list > button > svg { width: 18px; height: 18px; color: #737d86; }

@media (max-width: 1120px) {
  .next-investment-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .next-investment-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-investment-toolbar { grid-template-columns: 1fr; }
  .next-investment-editor { margin: 10px; }
  .next-investment-editor > header,
  .next-investment-editor > footer { align-items: flex-start; }
  .next-investment-editor > footer { flex-direction: column; }
  .next-investment-editor > footer > div { width: 100%; justify-content: flex-start; }
  .next-investment-limits > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-investment-execution > header { align-items: flex-start; flex-direction: column; }
  .next-investment-execution > header small { max-width: none; text-align: left; }
}

@media (max-width: 440px) {
  .next-investment-kpis { grid-template-columns: 1fr; }
  .next-investment-limits > div { grid-template-columns: 1fr; }
  .next-investment-execution-list > article { grid-template-columns: 40px minmax(0, 1fr); }
  .next-investment-execution-list > article > :last-child { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

/* Vorlagenbasierter Schriftverkehr mit Vier-Augen-Freigabe und Serienausgabe. */
.next-correspondence-layout { min-height: 620px; }
.next-correspondence-template-list > button { grid-template-columns: 42px minmax(0, 1fr) auto; }
.next-correspondence-template-preview { margin: 14px 0; padding: 15px 17px; border-left: 3px solid #687f96; background: #f7f8f9; }
.next-correspondence-template-preview > header { display: grid; gap: 4px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #d9dee3; }
.next-correspondence-template-preview > header span { color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-correspondence-template-preview > header strong { font-size: 12px; }
.next-correspondence-template-preview p { margin: 0 0 10px; color: #394149; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.next-correspondence-placeholders > header { align-items: center; }
.next-correspondence-placeholders > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.next-correspondence-placeholders > div:last-child button { min-height: 30px; padding: 5px 8px; color: #334f67; border: 1px solid #bdcbd6; border-radius: 4px; background: #f4f8fb; font: 700 9px/1.2 inherit; cursor: pointer; }
.next-correspondence-placeholders > div:last-child button:hover { border-color: #68859e; background: #eaf2f7; }
.next-correspondence-target-toggle { display: inline-flex; border: 1px solid #cbd2d8; border-radius: 4px; overflow: hidden; }
.next-correspondence-target-toggle button { min-height: 30px; padding: 5px 10px; border: 0; border-right: 1px solid #cbd2d8; background: #fff; color: #5d6670; font: 700 9px/1 inherit; cursor: pointer; }
.next-correspondence-target-toggle button:last-child { border-right: 0; }
.next-correspondence-target-toggle button.active { color: #fff; background: #435f78; }
.next-correspondence-batch-editor { margin-top: 18px; padding-top: 16px; border-top: 2px solid #cbd2d8; }
.next-correspondence-batch-editor > .next-work-section-header { margin-bottom: 14px; }
.next-correspondence-recipient-builder { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(120px, .45fr) minmax(220px, 1fr) auto; align-items: end; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid #d8dde2; background: #f7f8f9; }
.next-correspondence-recipient-builder > button { min-height: 38px; }
.next-correspondence-recipient-list { max-height: 250px; overflow: auto; border: 1px solid #d8dde2; border-top: 0; }
.next-correspondence-recipient-list > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) 34px; align-items: center; gap: 9px; min-height: 52px; padding: 8px 10px; border-top: 1px solid #e4e7ea; background: #fff; }
.next-correspondence-recipient-list > div:first-child { border-top: 0; }
.next-correspondence-recipient-list > div > svg { width: 16px; height: 16px; color: #435f78; }
.next-correspondence-recipient-list span { min-width: 0; }
.next-correspondence-recipient-list span > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-correspondence-recipient-list strong { font-size: 10px; }
.next-correspondence-recipient-list small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }
.next-correspondence-recipient-list .empty { grid-template-columns: 24px minmax(0, 1fr); color: var(--next-muted); }
.next-correspondence-run-list > article { border-top: 1px solid var(--next-line); }
.next-correspondence-run-list > article > header { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 56px; padding: 9px 4px; background: #f7f8f9; }
.next-correspondence-run-list > article > header > svg { width: 16px; height: 16px; color: #435f78; }
.next-correspondence-run-list > article > header span > * { display: block; }
.next-correspondence-run-list > article > header strong { font-size: 10px; }
.next-correspondence-run-list > article > header small,
.next-correspondence-run-list > article > header em { margin-top: 3px; color: var(--next-muted); font-size: 8px; font-style: normal; }
.next-correspondence-run-list > article > header em { padding: 4px 7px; border: 1px solid #cbd3da; border-radius: 4px; background: #fff; font-weight: 800; }
.next-correspondence-run-list > article > header em.released { color: #1d684e; border-color: #aad2c1; background: #edf8f3; }
.next-correspondence-run-list > article > header em.review { color: #7b5714; border-color: #e3c98e; background: #fff8e6; }
.next-correspondence-run-list > article > header em.blocked { color: #a72a35; border-color: #e4b3b8; background: #fff1f2; }
.next-correspondence-dispatch-control { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, .8fr) auto auto; align-items: end; gap: 10px; padding: 10px 12px 10px 28px; border-top: 1px solid #d8dde2; background: #f2f6f8; }
.next-correspondence-dispatch-control > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.next-correspondence-dispatch-control > div > svg { width: 16px; height: 16px; color: #435f78; }
.next-correspondence-dispatch-control > div span > * { display: block; }
.next-correspondence-dispatch-control > div strong { font-size: 9px; }
.next-correspondence-dispatch-control > div small { margin-top: 3px; color: var(--next-muted); font-size: 8px; line-height: 1.4; }
.next-correspondence-dispatch-control > button { min-height: 38px; }
.next-correspondence-run-list > article > div { display: grid; grid-template-columns: 20px minmax(0, 1fr) 34px; align-items: center; gap: 9px; min-height: 50px; padding: 7px 4px 7px 28px; border-top: 1px solid #e4e7ea; }
.next-correspondence-run-list > article > div > svg { width: 15px; height: 15px; color: #28765c; }
.next-correspondence-run-list > article > div span > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-correspondence-run-list > article > div strong { font-size: 9px; }
.next-correspondence-run-list > article > div small { margin-top: 3px; color: var(--next-muted); font-size: 8px; }

@media (max-width: 900px) {
  .next-correspondence-recipient-builder { grid-template-columns: 1fr 1fr; }
  .next-correspondence-recipient-builder > button { grid-column: 1 / -1; justify-content: center; }
  .next-correspondence-dispatch-control { grid-template-columns: 1fr 1fr; padding-left: 12px; }
  .next-correspondence-dispatch-control > div { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .next-correspondence-recipient-builder { grid-template-columns: 1fr; }
  .next-correspondence-placeholders > header { align-items: flex-start; flex-direction: column; }
  .next-correspondence-target-toggle { width: 100%; }
  .next-correspondence-target-toggle button { flex: 1; }
  .next-correspondence-run-list > article > div { padding-left: 8px; }
  .next-correspondence-dispatch-control { grid-template-columns: 1fr; }
  .next-correspondence-dispatch-control > div { grid-column: auto; }
  .next-correspondence-dispatch-control > button { width: 100%; justify-content: center; }
}

/* Central document inbox */
.next-inbox-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.next-inbox-workspace { overflow: hidden; }
.next-inbox-toolbar { grid-template-columns: minmax(280px, 1fr) minmax(180px, .28fr) auto; }
.next-checkbox-line { display: inline-flex !important; align-items: center; gap: 8px; min-height: 42px; }
.next-checkbox-line input { width: 17px !important; height: 17px; margin: 0; }
.next-inbox-layout { display: grid; grid-template-columns: minmax(320px, 38%) minmax(0, 1fr); min-height: 620px; border-top: 1px solid var(--next-line); }
.next-inbox-list { max-height: 760px; overflow-y: auto; border-right: 1px solid var(--next-line); background: #f8fafc; }
.next-inbox-list-item { width: 100%; min-height: 112px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--next-line); border-left: 4px solid transparent; background: #fff; color: var(--next-text); text-align: left; cursor: pointer; }
.next-inbox-list-item:hover, .next-inbox-list-item.active { background: #f1f5f9; }
.next-inbox-list-item.active { border-left-color: #c93438; }
.next-inbox-list-item > span:nth-child(2) { grid-column: 1 / -1; }
.next-inbox-list-item > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-inbox-list-item > span:last-child { align-items: flex-end; }
.next-inbox-list-item strong, .next-inbox-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-inbox-list-item small { color: var(--next-muted); }
.next-inbox-list-item b { font-size: .76rem; padding: 3px 7px; border-radius: 4px; background: #e2e8f0; }
.next-inbox-list-item.new b, .next-inbox-list-item.review b { background: #fef3c7; color: #92400e; }
.next-inbox-list-item.routed b { background: #dbeafe; color: #1d4ed8; }
.next-inbox-list-item.completed b { background: #dcfce7; color: #166534; }
.next-inbox-list-item.quarantine { border-left-color: #b91c1c; background: #fff7f7; }
.next-inbox-list-item.quarantine b { background: #b91c1c; color: #fff; }
.next-inbox-list-item.rejected b { background: #fee2e2; color: #991b1b; }
.next-inbox-detail { min-width: 0; padding: 24px; }
.next-inbox-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--next-line); }
.next-inbox-detail-header > div:last-child { display: flex; gap: 6px; }
.next-inbox-detail-header span, .next-inbox-editor > header span { color: #b91c1c; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.next-inbox-detail-header h3 { margin: 5px 0; font-size: 1.18rem; }
.next-inbox-detail-header p { margin: 0; color: var(--next-muted); }
.next-inbox-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; border: 1px solid var(--next-line); }
.next-inbox-facts > div { padding: 12px 14px; border-bottom: 1px solid var(--next-line); }
.next-inbox-facts > div:nth-child(odd) { border-right: 1px solid var(--next-line); }
.next-inbox-facts dt { color: var(--next-muted); font-size: .72rem; text-transform: uppercase; }
.next-inbox-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 600; }
.next-inbox-note, .next-inbox-target { margin: 18px 0; padding: 14px 16px; border-left: 3px solid #64748b; background: #f8fafc; }
.next-inbox-note p { margin: 6px 0 0; white-space: pre-wrap; }
.next-inbox-note.classified { border-left-color: #2563eb; background: #eff6ff; }
.next-inbox-security { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 20px 0; padding: 15px 16px; border: 1px solid #cbd5e1; border-left: 4px solid #64748b; background: #f8fafc; }
.next-inbox-security.clean { border-left-color: #15803d; background: #f0fdf4; }
.next-inbox-security.quarantine { border-color: #fecaca; border-left-color: #b91c1c; background: #fff7f7; }
.next-inbox-security-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; color: #475569; }
.next-inbox-security.clean .next-inbox-security-icon { color: #15803d; }
.next-inbox-security.quarantine .next-inbox-security-icon { color: #b91c1c; }
.next-inbox-security-icon svg { width: 19px; height: 19px; }
.next-inbox-security > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-inbox-security > div:nth-child(2) > span { color: #64748b; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.next-inbox-security h4, .next-inbox-security p { margin: 0; }
.next-inbox-security p, .next-inbox-security small { color: var(--next-muted); }
.next-inbox-security strong { margin-top: 3px; color: #991b1b; }
.next-inbox-security-actions { display: flex; align-items: center; gap: 8px; }
.next-inbox-target { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-left-color: #2563eb; }
.next-inbox-target > div { display: flex; flex-direction: column; gap: 3px; }
.next-inbox-action { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(180px, 1fr); gap: 12px; margin: 20px 0; padding: 17px; border: 1px solid var(--next-line); background: #f8fafc; }
.next-inbox-action > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.next-inbox-action > div:first-child span { color: var(--next-muted); font-size: .85rem; }
.next-inbox-action textarea { grid-column: 1 / -1; resize: vertical; }
.next-inbox-action > button, .next-inbox-action > div:last-child { justify-self: end; }
.next-inbox-action > div:last-child { display: flex; gap: 8px; }
.next-inbox-action.compact { grid-template-columns: 1fr; }
.next-inbox-attachments { margin: 20px 0; border: 1px solid var(--next-line); background: #fff; }
.next-inbox-attachments > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--next-line); background: #f8fafc; }
.next-inbox-attachments > header span { color: #b91c1c; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.next-inbox-attachments > header h4 { margin: 3px 0; font-size: .95rem; }
.next-inbox-attachments > header h4 b { margin-left: 5px; color: var(--next-muted); font-size: .78rem; }
.next-inbox-attachments > header p { margin: 0; color: var(--next-muted); font-size: .8rem; }
.next-inbox-attachment-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 34px; align-items: center; gap: 12px; min-height: 70px; padding: 11px 14px; border-bottom: 1px solid var(--next-line); }
.next-inbox-attachment-list article:last-child { border-bottom: 0; }
.next-inbox-attachment-list article.routed { border-left: 3px solid #2563eb; }
.next-inbox-attachment-list article.ready { border-left: 3px solid #16a34a; }
.next-inbox-attachment-list article.blocked { border-left: 3px solid #dc2626; background: #fff7f7; }
.next-inbox-attachment-list article.quarantine { border-left: 3px solid #b91c1c; background: #fff1f2; }
.next-inbox-attachment-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 50%; color: #334155; }
.next-inbox-attachment-icon svg { width: 17px; height: 17px; }
.next-inbox-attachment-list article > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-inbox-attachment-list article > div strong, .next-inbox-attachment-list article > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-inbox-attachment-list article > div small { color: var(--next-muted); font-size: .76rem; }
.next-inbox-attachment-list article > div p { margin: 3px 0 0; color: #991b1b; font-size: .78rem; }
.next-inbox-attachment-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.next-inbox-attachment-state b { font-size: .76rem; }
.next-inbox-attachment-state small { max-width: 190px; color: var(--next-muted); font-size: .7rem; }
.next-inbox-history { margin-top: 26px; }
.next-inbox-history h4 { margin: 0 0 12px; font-size: .9rem; }
.next-inbox-history > div { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--next-line); }
.next-inbox-history > div > svg { width: 17px; height: 17px; color: #64748b; flex: 0 0 auto; }
.next-inbox-history > div > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-inbox-history small { color: var(--next-muted); }
.next-inbox-history p { margin: 5px 0 0; white-space: pre-wrap; }
.next-inbox-editor { margin: 0 22px 22px; border: 1px solid var(--next-line); background: #fff; }
.next-inbox-editor > header, .next-inbox-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-bottom: 1px solid var(--next-line); }
.next-inbox-editor > footer { justify-content: flex-end; border-top: 1px solid var(--next-line); border-bottom: 0; }
.next-inbox-editor > header h3 { margin: 3px 0 0; font-size: 1.02rem; }
.next-inbox-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 18px; }
.next-inbox-form-grid > label:not(.next-checkbox-line) { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.next-inbox-form-grid label > span { font-size: .78rem; font-weight: 700; color: #475569; }
.next-inbox-form-grid .wide { grid-column: 1 / -1; }
.next-inbox-form-grid input:not([type="checkbox"]), .next-inbox-form-grid select, .next-inbox-form-grid textarea, .next-inbox-action select, .next-inbox-action textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: var(--next-text); font: inherit; }
.next-inbox-rules { border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f8fafc; }
.next-inbox-rules > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.next-inbox-rules > header h3 { margin: 3px 0; font-size: 1.02rem; }
.next-inbox-rules > header h3 b { margin-left: 5px; color: var(--next-muted); font-size: .8rem; }
.next-inbox-rules > header p { margin: 0; color: var(--next-muted); font-size: .83rem; }
.next-inbox-rules > header span, .next-inbox-rule-editor > header span { color: #b91c1c; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.next-inbox-rule-editor { margin: 0 22px 18px; border: 1px solid var(--next-line); background: #fff; }
.next-inbox-rule-editor > header, .next-inbox-rule-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 17px; border-bottom: 1px solid var(--next-line); }
.next-inbox-rule-editor > footer { justify-content: flex-end; border-top: 1px solid var(--next-line); border-bottom: 0; }
.next-inbox-rule-editor > header h4 { margin: 3px 0 0; font-size: .96rem; }
.next-inbox-rule-divider { display: flex; align-items: baseline; gap: 10px; padding: 8px 0 2px; border-bottom: 1px solid var(--next-line); }
.next-inbox-rule-divider span { color: var(--next-muted); font-size: .78rem; }
.next-inbox-rule-list { border-top: 1px solid var(--next-line); }
.next-inbox-rule-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 76px; padding: 12px 22px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-inbox-rule-list article:last-child { border-bottom: 0; }
.next-inbox-rule-list article.inactive { background: #f8fafc; opacity: .72; }
.next-inbox-rule-order { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 50%; color: #334155; font-size: .78rem; font-weight: 800; }
.next-inbox-rule-list article > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-inbox-rule-list article small { overflow: hidden; color: var(--next-muted); text-overflow: ellipsis; white-space: nowrap; }
.next-inbox-rule-list article > b { padding: 4px 7px; border-radius: 4px; background: #dcfce7; color: #166534; font-size: .72rem; }
.next-inbox-rule-list article.inactive > b { background: #e2e8f0; color: #475569; }
.next-inbox-rule-list article > div:last-child { display: flex; gap: 5px; }
.next-inbox-sources { border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); background: #f8fafc; }
.next-inbox-sources > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.next-inbox-sources > header span { color: #b91c1c; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.next-inbox-sources > header h3 { margin: 3px 0; font-size: 1.02rem; }
.next-inbox-sources > header h3 b { margin-left: 5px; color: var(--next-muted); font-size: .8rem; }
.next-inbox-sources > header p { margin: 0; color: var(--next-muted); font-size: .83rem; }
.next-inbox-sources > header .next-work-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.next-inbox-source-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--next-line); background: #fff; }
.next-inbox-source-summary > span { display: flex; flex-direction: column; gap: 3px; padding: 12px 18px; border-right: 1px solid var(--next-line); }
.next-inbox-source-summary > span:last-child { border-right: 0; }
.next-inbox-source-summary small { color: var(--next-muted); }
.next-inbox-source-list { border-top: 1px solid var(--next-line); }
.next-inbox-source-list article { display: grid; grid-template-columns: 42px minmax(220px, 1fr) minmax(260px, .8fr) auto; align-items: center; gap: 16px; min-height: 92px; padding: 14px 22px; border-bottom: 1px solid var(--next-line); background: #fff; }
.next-inbox-source-list article:last-child { border-bottom: 0; }
.next-inbox-source-list article.inactive { opacity: .7; background: #f8fafc; }
.next-inbox-source-list article.error { border-left: 4px solid #dc2626; }
.next-inbox-source-list article.pending { border-left: 4px solid #d97706; }
.next-inbox-source-list article.ready { border-left: 4px solid #16a34a; }
.next-inbox-source-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #cbd5e1; border-radius: 50%; color: #334155; }
.next-inbox-source-list article > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-inbox-source-list article > div small { overflow: hidden; color: var(--next-muted); text-overflow: ellipsis; white-space: nowrap; }
.next-inbox-source-list dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.next-inbox-source-list dl div { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; border-left: 1px solid var(--next-line); }
.next-inbox-source-list dt { color: var(--next-muted); font-size: .7rem; }
.next-inbox-source-list dd { margin: 0; font-weight: 800; }
.next-inbox-source-state { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.next-inbox-source-state b { padding: 4px 7px; border-radius: 4px; background: #e2e8f0; font-size: .72rem; }
.next-inbox-source-state small { color: var(--next-muted); }
.next-inbox-imap-controls { padding: 0 22px 18px; }
.next-inbox-imap-list { max-height: 390px; overflow-y: auto; border-top: 1px solid var(--next-line); background: #fff; }
.next-inbox-imap-list .next-inbox-list-item { min-height: 82px; grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.6fr) auto; }
.next-inbox-imap-list .next-inbox-list-item > span:nth-child(2) { grid-column: auto; }
.next-inbox-imap-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--next-line); background: #fff; }
.next-inbox-imap-footer > span { color: var(--next-muted); font-size: .84rem; }

@media (max-width: 1050px) {
  .next-inbox-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-inbox-layout { grid-template-columns: minmax(270px, 34%) minmax(0, 1fr); }
  .next-inbox-detail { padding: 20px; }
}

@media (max-width: 760px) {
  .next-inbox-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-inbox-workspace > .next-work-section-header { align-items: stretch; flex-direction: column; }
  .next-inbox-workspace > .next-work-section-header .next-work-header-actions { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .next-inbox-workspace > .next-work-section-header .next-work-header-actions > * { min-width: 0; justify-content: center; white-space: normal; }
  .next-inbox-workspace > .next-work-section-header .next-work-header-actions > .next-primary-command { grid-column: 1 / -1; }
  .next-inbox-toolbar, .next-inbox-layout, .next-inbox-action { grid-template-columns: 1fr; }
  .next-inbox-list { max-height: 360px; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-inbox-detail { padding: 16px; }
  .next-inbox-facts, .next-inbox-form-grid { grid-template-columns: 1fr; }
  .next-inbox-facts > div:nth-child(odd) { border-right: 0; }
  .next-inbox-form-grid .wide { grid-column: auto; }
  .next-inbox-editor { margin: 0 12px 16px; }
  .next-inbox-target, .next-inbox-detail-header { align-items: stretch; flex-direction: column; }
  .next-inbox-security { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .next-inbox-security-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .next-inbox-attachments > header { align-items: stretch; flex-direction: column; }
  .next-inbox-attachments > header .next-secondary-command { align-self: flex-start; }
  .next-inbox-attachment-list article { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .next-inbox-attachment-state { grid-column: 2 / -1; align-items: flex-start; text-align: left; }
  .next-inbox-rules > header { align-items: stretch; flex-direction: column; padding: 16px; }
  .next-inbox-rules > header .next-primary-command { align-self: flex-start; }
  .next-inbox-rule-editor { margin: 0 12px 16px; }
  .next-inbox-rule-list article { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 12px 14px; }
  .next-inbox-rule-list article > b { justify-self: end; }
  .next-inbox-rule-list article > div:last-child { grid-column: 2 / -1; }
  .next-inbox-sources > header { align-items: stretch; flex-direction: column; padding: 16px; }
  .next-inbox-sources > header .next-primary-command { align-self: flex-start; }
  .next-inbox-sources > header .next-work-header-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .next-inbox-sources > header .next-work-header-actions > * { width: 100%; justify-content: center; }
  .next-inbox-source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-inbox-source-summary > span { border-bottom: 1px solid var(--next-line); }
  .next-inbox-source-list article { grid-template-columns: 38px minmax(0, 1fr); padding: 12px 14px; }
  .next-inbox-source-list article > div { grid-column: 2; }
  .next-inbox-source-list dl { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-top: 1px solid var(--next-line); }
  .next-inbox-source-list dl div { min-width: 0; padding: 9px 8px; }
  .next-inbox-source-list dl div:nth-child(odd) { border-left: 0; }
  .next-inbox-source-state { grid-column: 1 / -1; width: 100%; align-items: center; flex-direction: row; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--next-line); }
  .next-inbox-imap-controls { padding: 0 16px 16px; }
  .next-inbox-imap-list .next-inbox-list-item { grid-template-columns: 1fr auto; }
  .next-inbox-imap-list .next-inbox-list-item > span:nth-child(2) { grid-column: 1 / -1; }
  .next-inbox-imap-footer { align-items: stretch; flex-direction: column; padding: 14px 16px; }
  .next-inbox-imap-footer .next-primary-command { align-self: flex-start; }
}
/* Geführte Ersteinrichtung */
.next-initial-setup-header .next-system-actions { align-items: center; }
.next-initial-setup { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--next-line-strong); border-bottom: 1px solid var(--next-line-strong); background: #fff; }
.next-initial-setup-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-initial-setup-progress li { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; min-height: 64px; padding: 10px 14px; background: #f8f9fa; }
.next-initial-setup-progress li > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: #3f474e; border-radius: 50%; font-size: 12px; font-weight: 800; }
.next-initial-setup-progress strong { align-self: end; font-size: 12px; }
.next-initial-setup-progress small { align-self: start; color: var(--next-muted); font-size: 10px; }
.next-initial-setup-band { padding: 22px 20px 24px; border-bottom: 1px solid var(--next-line); }
.next-initial-setup-band > header { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 13px; align-items: start; margin-bottom: 18px; }
.next-initial-setup-band > header > span { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--next-red-dark); border-radius: 4px; font-size: 14px; font-weight: 800; }
.next-initial-setup-band > header small { color: var(--next-red-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-initial-setup-band > header h2 { margin: 2px 0 3px; font-size: 18px; letter-spacing: 0; }
.next-initial-setup-band > header p { margin: 0; max-width: 940px; color: var(--next-muted); font-size: 11px; line-height: 1.5; }
.next-initial-setup-band .next-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.next-initial-setup-band .next-field span { font-size: 10px; }
.next-initial-setup-band .next-field input, .next-initial-setup-band .next-field select, .next-initial-setup-band .next-field textarea { min-height: 38px; font-size: 12px; }
.next-initial-setup-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.next-initial-setup-scope > label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--next-line); border-radius: 4px; background: #fafafa; }
.next-initial-setup-scope input { margin-top: 3px; accent-color: var(--next-red-dark); }
.next-initial-setup-scope label > span { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 7px; }
.next-initial-setup-scope svg { grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--next-red-dark); }
.next-initial-setup-scope strong { font-size: 11px; }
.next-initial-setup-scope small { color: var(--next-muted); font-size: 9px; line-height: 1.4; }
.next-initial-setup-modules { margin-top: 16px; }
.next-initial-setup-modules > header { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.next-initial-setup-modules > header div { display: grid; }
.next-initial-setup-modules > header small { color: var(--next-muted); font-size: 8px; text-transform: uppercase; font-weight: 800; }
.next-initial-setup-modules > header strong { font-size: 12px; }
.next-initial-setup-modules > header em { color: var(--next-muted); font-size: 10px; font-style: normal; }
.next-initial-setup-modules > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.next-initial-setup-modules label { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 48px; padding: 7px 8px; border: 1px solid var(--next-line); border-radius: 4px; background: #fff; }
.next-initial-setup-modules label.selected { border-color: #b9cfc0; background: #f4f8f5; }
.next-initial-setup-modules input { accent-color: #315f43; }
.next-initial-setup-modules label span { display: grid; min-width: 0; }
.next-initial-setup-modules b { color: var(--next-red-dark); font-size: 8px; }
.next-initial-setup-modules strong { overflow-wrap: anywhere; font-size: 9px; line-height: 1.25; }
.next-initial-setup-coordinate-toggle { display: grid !important; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; padding: 10px 12px; border-left: 3px solid #8b949c; background: #f7f8f9; }
.next-initial-setup-coordinate-toggle input { min-height: auto !important; margin-top: 3px; accent-color: var(--next-red-dark); }
.next-initial-setup-coordinate-toggle > span { display: grid; }
.next-initial-setup-coordinate-toggle strong { font-size: 11px; }
.next-initial-setup-coordinate-toggle small { color: var(--next-muted); font-size: 9px; }
.next-initial-setup-preview { margin: 20px; border: 1px solid var(--next-line-strong); border-left: 4px solid #a13b3b; border-radius: 4px; overflow: hidden; }
.next-initial-setup-preview.ready { border-left-color: #315f43; }
.next-initial-setup-preview > header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; background: #f8f9fa; }
.next-initial-setup-preview > header > span { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: #a13b3b; border-radius: 50%; }
.next-initial-setup-preview.ready > header > span { background: #315f43; }
.next-initial-setup-preview > header svg { width: 18px; height: 18px; }
.next-initial-setup-preview > header small { color: var(--next-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.next-initial-setup-preview > header h2 { margin: 1px 0 2px; font-size: 15px; letter-spacing: 0; }
.next-initial-setup-preview > header p { margin: 0; color: var(--next-muted); font-size: 10px; }
.next-initial-setup-preview > header code { font-size: 9px; }
.next-initial-setup-preview-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-initial-setup-preview-steps > div { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 58px; padding: 10px 12px; border-right: 1px solid var(--next-line); }
.next-initial-setup-preview-steps > div:last-child { border-right: 0; }
.next-initial-setup-preview-steps svg { width: 16px; height: 16px; color: #a13b3b; }
.next-initial-setup-preview-steps .ready svg { color: #315f43; }
.next-initial-setup-preview-steps span { display: grid; min-width: 0; }
.next-initial-setup-preview-steps strong { font-size: 9px; }
.next-initial-setup-preview-steps small { color: var(--next-muted); font-size: 8px; overflow-wrap: anywhere; }
.next-initial-setup-preview > ul { display: grid; gap: 6px; margin: 0; padding: 12px 16px; list-style: none; }
.next-initial-setup-preview > ul li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; align-items: start; font-size: 9px; }
.next-initial-setup-preview > ul svg { width: 14px; height: 14px; }
.next-initial-setup-preview > ul .error { color: #8d2929; }
.next-initial-setup-preview > ul .warning { color: #735415; }
.next-initial-setup-preview > footer, .next-initial-setup-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: #fafafa; }
.next-initial-setup-preview > footer > span, .next-initial-setup-actions > span { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; align-items: center; color: var(--next-muted); font-size: 9px; }
.next-initial-setup-preview > footer svg, .next-initial-setup-actions > span svg { width: 14px; height: 14px; color: #315f43; }
.next-initial-setup-actions { min-height: 62px; }
.next-initial-setup-complete, .next-initial-setup-unavailable { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 18px; padding: 22px; border-top: 1px solid var(--next-line-strong); border-bottom: 1px solid var(--next-line-strong); background: #f7faf8; }
.next-initial-setup-complete > span, .next-initial-setup-unavailable > svg { display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; color: #fff; background: #315f43; border-radius: 50%; }
.next-initial-setup-complete h2, .next-initial-setup-unavailable h2 { margin: 2px 0 3px; font-size: 20px; letter-spacing: 0; }
.next-initial-setup-complete p, .next-initial-setup-unavailable p { margin: 0; color: var(--next-muted); font-size: 11px; }
.next-initial-setup-complete small, .next-initial-setup-unavailable small { color: #315f43; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.next-initial-setup-complete dl, .next-initial-setup-unavailable dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; grid-column: 2; margin: 14px 0 0; }
.next-initial-setup-unavailable dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-initial-setup-complete dl div, .next-initial-setup-unavailable dl div { display: grid; }
.next-initial-setup-complete dt, .next-initial-setup-unavailable dt { color: var(--next-muted); font-size: 8px; }
.next-initial-setup-complete dd, .next-initial-setup-unavailable dd { margin: 0; font-size: 10px; font-weight: 700; }
.next-initial-setup-complete > div:last-child { display: flex; gap: 8px; }

@media (max-width: 1100px) {
  .next-initial-setup-band .next-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-initial-setup-modules > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-initial-setup-preview-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-initial-setup-preview-steps > div:nth-child(2) { border-right: 0; }
  .next-initial-setup-preview-steps > div:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
  .next-initial-setup-complete, .next-initial-setup-unavailable { grid-template-columns: 48px minmax(0, 1fr); }
  .next-initial-setup-complete > div:last-child, .next-initial-setup-unavailable > a { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  .next-initial-setup-header { display: grid; }
  .next-initial-setup-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-initial-setup-band { padding: 18px 12px 20px; }
  .next-initial-setup-band .next-form-grid, .next-initial-setup-scope { grid-template-columns: 1fr; }
  .next-initial-setup-modules > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-initial-setup-preview { margin: 14px 10px; }
  .next-initial-setup-preview > header { grid-template-columns: 34px minmax(0, 1fr); }
  .next-initial-setup-preview > header code { grid-column: 2; }
  .next-initial-setup-preview > footer, .next-initial-setup-actions { align-items: stretch; flex-direction: column; }
  .next-initial-setup-preview > footer .next-command, .next-initial-setup-actions .next-command { width: 100%; justify-content: center; }
  .next-initial-setup-complete, .next-initial-setup-unavailable { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 12px; }
  .next-initial-setup-complete > span, .next-initial-setup-unavailable > svg { width: 38px; height: 38px; padding: 9px; }
  .next-initial-setup-complete dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-initial-setup-unavailable dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-initial-setup-complete > div:last-child { flex-wrap: wrap; }
}

@media (max-width: 980px) {
  .next-work-permit-layout { grid-template-columns: minmax(235px, 34%) minmax(0, 1fr); }
  .next-work-permit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-permit-summary > span:nth-child(2n) { border-right: 0; }
  .next-work-permit-summary > span:nth-child(-n+2) { border-bottom: 1px solid var(--next-line); }
}

@media (max-width: 760px) {
  .next-work-permit-toolbar, .next-work-permit-layout { grid-template-columns: 1fr; }
  .next-work-permit-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-work-permit-form fieldset .next-form-grid, .next-work-permit-transition .next-form-grid { grid-template-columns: 1fr; }
  .next-work-permit-isolation-draft { grid-template-columns: 1fr 30px; }
  .next-work-permit-isolation-draft .wide { grid-column: 1; }
  .next-work-permit-isolation-draft > .icon-button { grid-column: 2; }
  .next-work-permit-isolation-action { grid-template-columns: 1fr; }
  .next-work-permit-isolation-action .next-secondary-command { justify-content: center; width: 100%; }
  .next-work-permit-participant-draft { grid-template-columns: 1fr 30px; }
  .next-work-permit-participant-draft > .next-field { grid-column: 1; }
  .next-work-permit-participant-draft > .icon-button { grid-column: 2; grid-row: 1; }
  .next-work-permit-participant-action { grid-template-columns: 1fr; }
  .next-work-permit-participant-action .next-secondary-command { justify-content: center; width: 100%; }
  .next-work-permit-atmosphere-target-draft { grid-template-columns: 1fr 1fr 30px; }
  .next-work-permit-atmosphere-target-draft > .next-field { grid-column: span 1; }
  .next-work-permit-atmosphere-target-draft > .icon-button { grid-column: 3; grid-row: 1; }
  .next-work-permit-atmosphere-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-permit-atmosphere-plan > span:nth-child(2n) { border-right: 0; }
  .next-work-permit-atmosphere-readings { grid-template-columns: 1fr 1fr; }
  .next-work-permit-rescue-equipment-draft { grid-template-columns: 1fr 1fr 30px; }
  .next-work-permit-rescue-equipment-draft > .next-field { grid-column: span 1; }
  .next-work-permit-rescue-equipment-draft > .next-field.wide { grid-column: 1 / -2; }
  .next-work-permit-rescue-equipment-draft > .icon-button { grid-column: 3; grid-row: 1; }
  .next-work-permit-rescue-plan, .next-work-permit-rescue-equipment-checks > article { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-permit-rescue-plan > span:nth-child(2n) { border-right: 0; }
  .next-work-permit-access-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-work-permit-editor > footer, .next-work-permit-actions { align-items: stretch; flex-direction: column; }
  .next-work-permit-editor > footer > div, .next-work-permit-actions > div { justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .next-work-permit-metrics, .next-work-permit-summary, .next-work-permit-data { grid-template-columns: 1fr; }
  .next-work-permit-metrics > span, .next-work-permit-summary > span, .next-work-permit-data > div { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-work-permit-workspace > header { align-items: stretch; flex-direction: column; }
  .next-work-permit-workspace > header .next-secondary-command { width: 100%; justify-content: center; }
  .next-work-permit-transition > footer { align-items: stretch; flex-direction: column; }
  .next-work-permit-isolation-editor > header, .next-work-permit-isolations > header { align-items: stretch; flex-direction: column; }
  .next-work-permit-isolation-editor > header .next-secondary-command { justify-content: center; width: 100%; }
  .next-work-permit-participant-editor > header, .next-work-permit-participants > header { align-items: stretch; flex-direction: column; }
  .next-work-permit-participant-editor > header .next-secondary-command { justify-content: center; width: 100%; }
  .next-work-permit-atmosphere-target-editor > header, .next-work-permit-atmosphere > header, .next-work-permit-atmosphere-entry > footer { align-items: stretch; flex-direction: column; }
  .next-work-permit-atmosphere-target-editor > header .next-secondary-command, .next-work-permit-atmosphere-entry > footer .next-command { justify-content: center; width: 100%; }
  .next-work-permit-atmosphere-target-draft { grid-template-columns: 1fr 30px; }
  .next-work-permit-atmosphere-target-draft > .next-field { grid-column: 1; }
  .next-work-permit-atmosphere-target-draft > .icon-button { grid-column: 2; grid-row: 1; }
  .next-work-permit-atmosphere-plan, .next-work-permit-atmosphere-readings { grid-template-columns: 1fr; }
  .next-work-permit-atmosphere-plan > span { border-right: 0; border-bottom: 1px solid #eceeef; }
  .next-work-permit-rescue-equipment-editor > header, .next-work-permit-rescue > header, .next-work-permit-rescue-entry > footer { align-items: stretch; flex-direction: column; }
  .next-work-permit-rescue-equipment-editor > header .next-secondary-command, .next-work-permit-rescue-entry > footer .next-command { justify-content: center; width: 100%; }
  .next-work-permit-rescue-equipment-draft { grid-template-columns: 1fr 30px; }
  .next-work-permit-rescue-equipment-draft > .next-field, .next-work-permit-rescue-equipment-draft > .next-field.wide { grid-column: 1; }
  .next-work-permit-rescue-equipment-draft > .icon-button { grid-column: 2; grid-row: 1; }
  .next-work-permit-rescue-plan, .next-work-permit-rescue-equipment-checks > article { grid-template-columns: 1fr; }
  .next-work-permit-rescue-plan > span { border-right: 0; }
  .next-work-permit-access > header, .next-work-permit-access-entry > footer { align-items: stretch; flex-direction: column; }
  .next-work-permit-access-entry > footer .next-command { justify-content: center; width: 100%; }
  .next-work-permit-access-plan { grid-template-columns: 1fr; }
  .next-work-permit-access-plan > span { border-right: 0; border-bottom: 1px solid #eceeef; }
  .next-work-permit-isolation-point > dl { grid-template-columns: 1fr; }
  .next-work-permit-isolation-point > dl > div { border-right: 0; border-bottom: 1px solid #eceeef; }
  .next-work-permit-isolation-point > dl > div:last-child { border-bottom: 0; }
}
.next-field-note{display:flex;align-items:flex-start;gap:.55rem;margin:0;padding:.65rem .75rem;border-left:3px solid #d80f27;background:#f7f8fa;color:#52616b;font-size:.82rem;line-height:1.45}.next-field-note i{width:1rem;height:1rem;flex:0 0 1rem;margin-top:.1rem;color:#b81729}.next-field-note.full{grid-column:1/-1}
.next-lifecycle-overview {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.next-lifecycle-forecast {
    border-top: 1px solid var(--next-border);
    padding-top: 18px;
}

.next-lifecycle-forecast > header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.next-lifecycle-forecast > header span,
.next-lifecycle-forecast > header small {
    color: var(--next-muted);
    font-size: .78rem;
}

.next-lifecycle-forecast > header h3 {
    font-size: 1rem;
    margin: 3px 0 0;
}

.next-lifecycle-bars {
    display: grid;
    gap: 9px;
}

.next-lifecycle-bars > div {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 52px minmax(120px, 1fr) minmax(110px, auto) 76px;
}

.next-lifecycle-bars progress {
    accent-color: #c9152c;
    block-size: 10px;
    inline-size: 100%;
}

.next-lifecycle-bars strong,
.next-lifecycle-bars small,
.next-lifecycle-bars span {
    font-size: .82rem;
}

.next-lifecycle-bars small {
    color: var(--next-muted);
    text-align: right;
}

@media (max-width: 680px) {
    .next-lifecycle-forecast > header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .next-lifecycle-bars > div {
        grid-template-columns: 44px minmax(80px, 1fr) minmax(88px, auto);
    }

    .next-lifecycle-bars small {
        display: none;
    }
}

/* Keyboard and high-contrast foundation shared by every native workspace. */
.next-skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 4px;
  background: #24282c;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .12s ease;
}
.next-skip-link:focus { transform: translateY(0); }

:where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #075f9f !important;
  outline-offset: 2px !important;
}

.next-temporal-context > label > span { color: #5f646a; }
.next-property-nav-group > div > a > small { color: #5f646a; font-size: 9px; }
.next-property-nav-group > summary strong,
.next-property-nav-group > div > a { font-size: 11px; }
.next-security-modes button b { color: #555a60; }

@media (max-width: 760px) {
  .next-command > span,
  .next-secondary-command > span,
  .next-upload-command > span,
  .next-file-command > span,
  .next-temporal-context > label > span {
    position: absolute !important;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .leaflet-zoom-animated { transition: none !important; }
}

@media (prefers-contrast: more) {
  :root { --next-muted: #4f5459; --next-line: #b7bcc1; }
}

@media (forced-colors: active) {
  :where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-color: Highlight !important;
  }
  .next-skip-link { color: Canvas; background: CanvasText; }
}

/* Controlled fictional portfolio for demo and acceptance installations. */
.next-demo-portfolio-header { border-bottom: 3px solid var(--next-red); }

.next-demo-portfolio-status,
.next-demo-portfolio-scope,
.next-demo-portfolio-action,
.next-demo-portfolio-preview,
.next-demo-portfolio-result {
  min-width: 0;
  margin-top: 14px;
  border: 1px solid var(--next-line);
  border-radius: 6px;
  background: var(--next-surface);
  box-shadow: 0 1px 3px rgba(16, 28, 39, .05);
}

.next-demo-portfolio-status { overflow: hidden; }
.next-demo-portfolio-status > header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 14px;
  background: #f7f8f9;
}

.next-demo-portfolio-status > header > span,
.next-demo-portfolio-result > i,
.next-demo-portfolio-action > div > i {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #273846;
}

.next-demo-portfolio-status > header > span svg,
.next-demo-portfolio-result > i,
.next-demo-portfolio-action > div > i { width: 16px; height: 16px; }
.next-demo-portfolio-status.ready > header > span { background: var(--next-red-dark); }
.next-demo-portfolio-status.complete > header > span,
.next-demo-portfolio-result > i { background: #176b52; }

.next-demo-portfolio-status h2,
.next-demo-portfolio-scope h2,
.next-demo-portfolio-preview h2,
.next-demo-portfolio-result h2 {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
}

.next-demo-portfolio-status small,
.next-demo-portfolio-scope header span,
.next-demo-portfolio-preview header span,
.next-demo-portfolio-result small {
  color: var(--next-muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-demo-portfolio-status dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  margin: 0;
}
.next-demo-portfolio-status dl > div {
  min-width: 0;
  min-height: 51px;
  padding: 9px 12px;
  border-top: 1px solid var(--next-line);
  border-right: 1px solid var(--next-line);
}
.next-demo-portfolio-status dl > div:last-child { border-right: 0; }
.next-demo-portfolio-status dt,
.next-demo-portfolio-status dd { margin: 0; }
.next-demo-portfolio-status dt,
.next-demo-portfolio-counts small,
.next-demo-portfolio-sites small,
.next-demo-portfolio-principles small { color: var(--next-muted); font-size: 7px; }
.next-demo-portfolio-status dd { margin-top: 3px; font-size: 13px; font-weight: 800; }

.next-demo-portfolio-scope,
.next-demo-portfolio-preview { padding: 14px; }
.next-demo-portfolio-scope > header,
.next-demo-portfolio-preview > header,
.next-demo-portfolio-preview > footer,
.next-demo-portfolio-result,
.next-demo-portfolio-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.next-demo-portfolio-scope > header > small {
  flex: none;
  padding: 4px 7px;
  border: 1px solid #e9a0a9;
  border-radius: 4px;
  color: #941326;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-demo-portfolio-principles,
.next-demo-portfolio-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.next-demo-portfolio-principles > div,
.next-demo-portfolio-counts > div {
  display: flex;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--next-line);
  background: #fafbfb;
}
.next-demo-portfolio-principles > div > i { width: 15px; height: 15px; color: var(--next-red-dark); }
.next-demo-portfolio-principles span,
.next-demo-portfolio-sites span { display: grid; min-width: 0; gap: 2px; }
.next-demo-portfolio-principles strong,
.next-demo-portfolio-sites strong { font-size: 9px; }
.next-demo-portfolio-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-demo-portfolio-counts > div { display: grid; }
.next-demo-portfolio-counts strong { margin-top: 3px; font-size: 15px; }

.next-demo-portfolio-action,
.next-demo-portfolio-result { padding: 13px 14px; }
.next-demo-portfolio-action > div,
.next-demo-portfolio-result > div {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.next-demo-portfolio-action > div > span { display: grid; gap: 2px; }
.next-demo-portfolio-action strong { font-size: 9px; }
.next-demo-portfolio-action small,
.next-demo-portfolio-result p { color: var(--next-muted); font-size: 8px; }

.next-demo-portfolio-sites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}
.next-demo-portfolio-sites article {
  overflow: hidden;
  border: 1px solid var(--next-line);
  border-radius: 5px;
}
.next-demo-portfolio-sites article > header,
.next-demo-portfolio-sites article > div {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  padding: 9px;
}
.next-demo-portfolio-sites article svg { width: 14px; height: 14px; }
.next-demo-portfolio-sites article > header { background: #f3f5f6; }
.next-demo-portfolio-sites article > div { border-top: 1px solid var(--next-line); }

.next-demo-portfolio-preview > ul {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding: 9px 11px;
  color: #665414;
  background: #fff9dc;
  font-size: 8px;
  list-style: none;
}
.next-demo-portfolio-preview > ul li { display: flex; gap: 7px; }
.next-demo-portfolio-preview > ul svg { width: 13px; height: 13px; }
.next-demo-portfolio-preview > footer {
  align-items: end;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--next-line);
}
.next-demo-portfolio-preview > footer .next-field { width: min(320px, 100%); }

@media (max-width: 980px) {
  .next-demo-portfolio-status dl { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
  .next-demo-portfolio-sites,
  .next-demo-portfolio-principles { grid-template-columns: 1fr; }
  .next-demo-portfolio-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .next-demo-portfolio-status dl,
  .next-demo-portfolio-counts { grid-template-columns: 1fr; }
  .next-demo-portfolio-scope > header,
  .next-demo-portfolio-preview > header,
  .next-demo-portfolio-preview > footer,
  .next-demo-portfolio-result,
  .next-demo-portfolio-action { align-items: stretch; flex-direction: column; }
  .next-demo-portfolio-preview > footer .next-field,
  .next-demo-portfolio-preview > footer .next-command,
  .next-demo-portfolio-action > .next-command,
  .next-demo-portfolio-result > .next-command { width: 100%; }
}

.next-workplace-utilization-review { margin-top: 14px; }
.next-workplace-utilization-review > header > div:last-child { display: flex; align-items: center; gap: 10px; }
.next-workplace-utilization-review > header > div:last-child > small { color: var(--next-muted); font-size: 8px; font-weight: 700; }
.next-workplace-utilization-kpis { grid-template-columns: repeat(4, minmax(155px, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-workplace-utilization-editor { margin: 10px; border: 1px solid #d8dcdf; }
.next-workplace-utilization-summary { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.next-workplace-utilization-list .next-asset-list-head,
.next-workplace-utilization-list .next-asset-row { grid-template-columns: minmax(220px, 1.2fr) minmax(170px, .9fr) minmax(190px, 1fr) minmax(145px, .7fr) minmax(125px, .65fr) 38px; }
.next-workplace-utilization-item-list .next-inventory-audit-list-head,
.next-workplace-utilization-item-list .next-inventory-audit-row { grid-template-columns: minmax(190px, 1.1fr) minmax(105px, .55fr) minmax(190px, 1fr) minmax(170px, .9fr) minmax(130px, .7fr); }
.next-workplace-utilization-item-list .next-inventory-audit-row > span { display: grid; min-width: 0; gap: 2px; }

@media (max-width: 1180px) {
  .next-workplace-utilization-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-workplace-utilization-list { overflow-x: auto; }
  .next-workplace-utilization-list .next-asset-list-head,
  .next-workplace-utilization-list .next-asset-row { min-width: 920px; }
}

@media (max-width: 760px) {
  .next-workplace-utilization-review > header,
  .next-workplace-utilization-review > header > div:last-child { align-items: stretch; flex-direction: column; }
  .next-workplace-utilization-kpis,
  .next-workplace-utilization-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-workplace-utilization-list .next-asset-list-head,
  .next-workplace-utilization-item-list .next-inventory-audit-list-head { display: none; }
  .next-workplace-utilization-list .next-asset-row,
  .next-workplace-utilization-item-list .next-inventory-audit-row { grid-template-columns: 1fr; min-width: 0; padding: 8px; }
}

@media (max-width: 460px) {
  .next-workplace-utilization-kpis,
  .next-workplace-utilization-summary { grid-template-columns: 1fr; }
}

/* A17 portfolio review and follow-up control */
.next-utilization-review-portfolio { margin-top: 14px; }
.next-utilization-review-kpis { grid-template-columns: repeat(4, minmax(155px, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-utilization-review-toolbar { grid-template-columns: minmax(270px, 1.5fr) repeat(5, minmax(130px, .7fr)); }
.next-quality-band.next-utilization-review-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-right: 0; border-left: 0; border-radius: 0; }
.next-utilization-review-band > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 7px; min-width: 0; padding: 10px 11px; border-right: 1px solid var(--next-line); }
.next-utilization-review-band > span:last-child { border-right: 0; }
.next-utilization-review-band > span svg { grid-row: 1 / 3; width: 17px; height: 17px; color: var(--next-red-dark); }
.next-utilization-review-band > span strong { min-width: 0; font-size: 11px; }
.next-utilization-review-band > span small { min-width: 0; overflow: hidden; color: var(--next-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.next-utilization-review-list { min-width: 0; }
.next-utilization-review-list > header, .next-utilization-review-list > a { display: grid; grid-template-columns: minmax(225px, 1.18fr) minmax(205px, 1fr) minmax(155px, .75fr) minmax(185px, .9fr) minmax(185px, .9fr) 76px; align-items: center; gap: 10px; min-width: 0; }
.next-utilization-review-list > header { min-height: 34px; padding: 0 12px; color: var(--next-muted); border-bottom: 1px solid var(--next-line); background: #f4f5f6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-utilization-review-list > a { position: relative; min-height: 72px; padding: 9px 12px; color: var(--next-ink); border-bottom: 1px solid #e9ecee; text-decoration: none; }
.next-utilization-review-list > a:hover { background: #f7f8f8; }
.next-utilization-review-list > a.overdue { box-shadow: inset 3px 0 var(--next-red); }
.next-utilization-review-list > a.due { box-shadow: inset 3px 0 #d48316; }
.next-utilization-review-list > a.review { box-shadow: inset 3px 0 var(--next-blue); }
.next-utilization-review-list > a.released { box-shadow: inset 3px 0 var(--next-green); }
.next-utilization-review-list > a.draft { box-shadow: inset 3px 0 #a4aaad; }
.next-utilization-review-list > a > span { display: grid; min-width: 0; gap: 3px; }
.next-utilization-review-list strong, .next-utilization-review-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-utilization-review-list strong { font-size: 9px; }
.next-utilization-review-list small { color: var(--next-muted); font-size: 7px; }
.next-utilization-review-list .released { color: var(--next-green); }
.next-utilization-review-list .review { color: var(--next-blue); }
.next-utilization-review-list .overdue { color: var(--next-red-dark); }

@media (max-width: 1100px) {
  .next-utilization-review-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-utilization-review-toolbar label { grid-column: 1 / -1; }
  .next-utilization-review-list > header { display: none; }
  .next-utilization-review-list > a { grid-template-columns: repeat(2, minmax(0, 1fr)) 54px; gap: 9px; padding: 10px; }
  .next-utilization-review-list > a > span { padding: 2px; }
  .next-utilization-review-list > a > span::before { content: attr(data-label); color: var(--next-muted); font-size: 6px; font-weight: 700; text-transform: uppercase; }
  .next-utilization-review-list .next-area-portfolio-flags { grid-column: 3; grid-row: 1 / 3; align-content: center; flex-wrap: wrap; padding: 0 !important; }
}

@media (max-width: 760px) {
  .next-utilization-review-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-utilization-review-toolbar { grid-template-columns: 1fr 1fr; }
  .next-quality-band.next-utilization-review-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-utilization-review-band > span:nth-child(2n) { border-right: 0; }
}

@media (max-width: 520px) {
  .next-utilization-review-kpis, .next-utilization-review-toolbar, .next-quality-band.next-utilization-review-band { grid-template-columns: 1fr; }
  .next-utilization-review-toolbar label { grid-column: auto; }
  .next-utilization-review-band > span { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-utilization-review-band > span:last-child { border-bottom: 0; }
  .next-utilization-review-list > a { grid-template-columns: minmax(0, 1fr) 40px; }
  .next-utilization-review-list > a > span { grid-column: 1; overflow-wrap: anywhere; white-space: normal; }
  .next-utilization-review-list .next-area-portfolio-flags { grid-column: 2; grid-row: 1 / 6; }
  .next-utilization-review-list strong, .next-utilization-review-list small { overflow-wrap: anywhere; white-space: normal; }
}

/* Personal user portal and controlled publication workflow */
.next-user-portal-kpis,
.next-portal-admin-kpis { grid-template-columns: repeat(4, minmax(150px, 1fr)); border-top: 1px solid var(--next-line); border-bottom: 1px solid var(--next-line); }
.next-user-portal,
.next-portal-administration { margin-top: 14px; }
.next-portal-announcements { display: grid; gap: 1px; border-bottom: 1px solid var(--next-line); background: var(--next-line); }
.next-portal-announcements article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 16px; background: #fff8f1; }
.next-portal-announcements article > svg { width: 22px; height: 22px; color: var(--next-red-dark); }
.next-portal-announcements span,
.next-portal-properties header span,
.next-portal-content-panel > header span,
.next-portal-documents > header span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-portal-announcements h3,
.next-portal-rentals h3,
.next-portal-properties h3,
.next-portal-content-panel h3,
.next-portal-documents h3 { margin: 2px 0 0; font-size: 13px; }
.next-portal-announcements p { margin: 5px 0 0; color: #4f575d; font-size: 9px; line-height: 1.55; }
.next-portal-rentals { padding: 15px; border-bottom: 1px solid var(--next-line); background: #f7f8f8; }
.next-portal-rentals > header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.next-portal-rentals > header span,
.next-portal-rental > header span,
.next-portal-rental-finance > header span,
.next-portal-rental-details header span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-portal-rentals > header small { max-width: 520px; color: var(--next-muted); font-size: 7px; line-height: 1.45; text-align: right; }
.next-portal-rental-list { display: grid; gap: 10px; }
.next-portal-rental { min-width: 0; border: 1px solid #d8dcdf; border-radius: 6px; background: #fff; }
.next-portal-rental > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 12px 13px; border-bottom: 1px solid var(--next-line); }
.next-portal-rental > header h4 { margin: 3px 0; overflow-wrap: anywhere; font-size: 12px; }
.next-portal-rental > header p { margin: 0; color: var(--next-muted); font-size: 8px; }
.next-portal-rental > header > em,
.next-portal-rental-table-wrap em { flex: none; padding: 4px 6px; border-radius: 3px; font-size: 6px; font-style: normal; font-weight: 800; }
.next-portal-rental .released { color: var(--next-green); background: #eaf7f0; }
.next-portal-rental .review { color: var(--next-blue); background: #eaf2fb; }
.next-portal-rental .archived { color: #60686d; background: #eef0f1; }
.next-portal-rental .draft { color: #60686d; background: #eef0f1; }
.next-portal-rental .overdue { color: var(--next-red-dark); background: #fff0f0; }
.next-portal-rental-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 11px 13px; gap: 10px 18px; border-bottom: 1px solid var(--next-line); }
.next-portal-rental-summary div { display: grid; min-width: 0; gap: 2px; }
.next-portal-rental-summary dt { color: var(--next-muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.next-portal-rental-summary dd { margin: 0; overflow-wrap: anywhere; font-size: 8px; font-weight: 750; }
.next-portal-rental-summary dd.overdue { width: fit-content; padding: 2px 4px; }
.next-portal-rental-finance { padding: 11px 13px; border-bottom: 1px solid var(--next-line); }
.next-portal-rental-finance > header { display: grid; gap: 2px; margin-bottom: 7px; }
.next-portal-rental-finance > header strong { font-size: 9px; }
.next-portal-rental-table-wrap { overflow-x: auto; border: 1px solid var(--next-line); }
.next-portal-rental-table-wrap table { width: 100%; min-width: 650px; border-collapse: collapse; }
.next-portal-rental-table-wrap th,
.next-portal-rental-table-wrap td { padding: 7px 8px; border-bottom: 1px solid var(--next-line); font-size: 7px; text-align: left; white-space: nowrap; }
.next-portal-rental-table-wrap th { color: var(--next-muted); background: #f5f7f7; font-size: 6px; text-transform: uppercase; }
.next-portal-rental-table-wrap tbody tr:last-child td { border-bottom: 0; }
.next-portal-rental-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-portal-rental-details > section { min-width: 0; padding: 11px 13px; }
.next-portal-rental-details > section + section { border-left: 1px solid var(--next-line); }
.next-portal-rental-details header { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.next-portal-rental-details header > svg { width: 17px; height: 17px; color: var(--next-red-dark); }
.next-portal-rental-details header div { display: grid; gap: 2px; }
.next-portal-rental-details header strong { font-size: 8px; }
.next-portal-rental-details p { margin: 0; color: var(--next-muted); font-size: 7px; line-height: 1.5; }
.next-portal-rental-detail-row { display: flex; align-items: start; justify-content: space-between; gap: 9px; padding: 7px 0; border-top: 1px solid var(--next-line); }
.next-portal-rental-detail-row span { display: grid; min-width: 0; gap: 2px; }
.next-portal-rental-detail-row strong { overflow-wrap: anywhere; font-size: 7px; }
.next-portal-rental-detail-row small { color: var(--next-muted); font-size: 6px; }
.next-portal-rental-detail-row em { flex: none; color: var(--next-ink); font-size: 7px; font-style: normal; font-weight: 800; }
.next-portal-rental-document { display: grid; grid-template-columns: 16px minmax(0, 1fr) 14px; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid var(--next-line); color: var(--next-ink); text-decoration: none; }
.next-portal-rental-document > svg { width: 14px; height: 14px; color: var(--next-red-dark); }
.next-portal-rental-document span { display: grid; min-width: 0; gap: 2px; }
.next-portal-rental-document strong { overflow-wrap: anywhere; font-size: 7px; }
.next-portal-rental-document small { color: var(--next-muted); font-size: 6px; }
.next-portal-rental-requests { padding: 11px 13px; border-bottom: 1px solid var(--next-line); background: #fbfcfd; }
.next-portal-rental-requests > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.next-portal-rental-requests > header > div { display: grid; gap: 2px; }
.next-portal-rental-requests > header span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-portal-rental-requests > header strong { font-size: 9px; }
.next-portal-rental-requests > header > a { display: inline-flex; align-items: center; gap: 5px; color: var(--next-red-dark); font-size: 7px; font-weight: 800; text-decoration: none; }
.next-portal-rental-requests > header > a svg { width: 13px; height: 13px; }
.next-portal-rental-requests > p { margin: 0; color: var(--next-muted); font-size: 7px; }
.next-portal-rental-requests > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.next-portal-rental-requests > div > a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 15px; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; color: var(--next-ink); border: 1px solid #dfe4e7; border-radius: 4px; background: #fff; text-decoration: none; }
.next-portal-rental-requests > div > a:hover { border-color: var(--next-red); }
.next-portal-rental-requests > div > a > svg { width: 15px; height: 15px; color: var(--next-red-dark); }
.next-portal-rental-requests > div > a > span { display: grid; min-width: 0; gap: 2px; }
.next-portal-rental-requests > div > a small,
.next-portal-rental-requests > div > a em { overflow: hidden; color: var(--next-muted); font-size: 6px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.next-portal-rental-requests > div > a strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.next-portal-rental-requests > div > a b { padding: 4px 6px; border-radius: 3px; font-size: 6px; white-space: nowrap; }
.next-portal-rental > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 13px; background: #f8f9f9; }
.next-portal-rental > footer > span { display: inline-flex; align-items: center; gap: 6px; color: var(--next-muted); font-size: 7px; }
.next-portal-rental > footer > span svg { width: 14px; height: 14px; color: var(--next-green); }
.next-portal-rental > footer .next-command { min-height: 30px; }
.next-service-request-rental-reference { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 9px 11px; border: 1px solid #bdd8c9; background: #f2faf6; }
.next-service-request-rental-reference > svg { width: 20px; height: 20px; color: var(--next-green); }
.next-service-request-rental-reference > span { display: grid; min-width: 0; gap: 2px; }
.next-service-request-rental-reference small { color: var(--next-muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.next-service-request-rental-reference strong { overflow-wrap: anywhere; font-size: 9px; }
.next-service-request-rental-reference em { color: var(--next-muted); font-size: 7px; font-style: normal; }
.next-portal-properties { padding: 15px; border-bottom: 1px solid var(--next-line); }
.next-portal-properties > header { margin-bottom: 10px; }
.next-portal-properties > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 10px; }
.next-portal-properties article { min-width: 0; border: 1px solid #dfe3e5; border-radius: 6px; background: #fff; }
.next-portal-properties article > header { display: flex; align-items: center; gap: 9px; min-height: 56px; margin: 0; padding: 10px; border-bottom: 1px solid var(--next-line); }
.next-portal-properties article h4 { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 11px; }
.next-portal-properties dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 10px; gap: 9px 12px; }
.next-portal-properties dl div { display: grid; min-width: 0; gap: 2px; }
.next-portal-properties dt { color: var(--next-muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.next-portal-properties dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 8px; font-weight: 700; }
.next-portal-properties article > footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 38px; padding: 8px 10px; border-top: 1px solid var(--next-line); background: #f8f9f9; }
.next-portal-properties footer span,
.next-portal-properties footer a { display: inline-flex; align-items: center; gap: 5px; color: var(--next-muted); font-size: 7px; font-weight: 700; text-decoration: none; }
.next-portal-properties footer a { color: var(--next-red-dark); }
.next-portal-properties footer svg { width: 13px; height: 13px; }
.next-portal-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--next-line); }
.next-portal-content-panel { min-width: 0; padding: 15px; }
.next-portal-content-panel + .next-portal-content-panel { border-left: 1px solid var(--next-line); }
.next-portal-content-panel > header { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.next-portal-content-panel > header > svg { width: 20px; height: 20px; color: var(--next-red-dark); }
.next-portal-content-panel > div { display: grid; gap: 8px; }
.next-portal-content-panel article { display: grid; grid-template-columns: minmax(82px, .38fr) minmax(0, 1fr); gap: 10px; min-width: 0; padding: 10px; border: 1px solid #e1e4e6; border-radius: 5px; }
.next-portal-content-panel article time { color: var(--next-red-dark); font-size: 8px; font-weight: 800; }
.next-portal-content-panel article > div { display: grid; min-width: 0; gap: 3px; }
.next-portal-content-panel article strong { overflow-wrap: anywhere; font-size: 9px; }
.next-portal-content-panel article span,
.next-portal-content-panel article small { color: var(--next-muted); font-size: 7px; }
.next-portal-content-panel article p { margin: 2px 0; overflow-wrap: anywhere; color: #4c555b; font-size: 8px; line-height: 1.45; }
.next-portal-content-panel article small,
.next-portal-content-panel article small a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--next-red-dark); }
.next-portal-content-panel article small svg { width: 12px; height: 12px; }
.next-portal-contact-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--next-red-dark) !important; border-radius: 50%; background: #fff0f0; }
.next-portal-contact-icon svg { width: 18px; height: 18px; }
.next-portal-empty { margin: 0; padding: 14px; color: var(--next-muted); border: 1px dashed #d9dddf; font-size: 8px; }
.next-portal-documents { padding: 15px; }
.next-portal-documents > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.next-portal-documents > header > small { max-width: 380px; color: var(--next-muted); font-size: 7px; text-align: right; }
.next-portal-documents > div { display: grid; gap: 1px; border: 1px solid var(--next-line); background: var(--next-line); }
.next-portal-documents > div > a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; color: var(--next-ink); background: #fff; text-decoration: none; }
.next-portal-documents > div > a:hover { background: #f8f9f9; }
.next-portal-documents > div > a > svg { width: 18px; height: 18px; color: var(--next-red-dark); }
.next-portal-documents > div > a > span { display: grid; min-width: 0; gap: 2px; }
.next-portal-documents strong { overflow-wrap: anywhere; font-size: 9px; }
.next-portal-documents small { color: var(--next-muted); font-size: 7px; }
.next-portal-documents p { margin: 2px 0 0; color: #505960; font-size: 8px; }
.next-portal-documents em { padding: 4px 6px; color: #2c7355; border: 1px solid #b9daca; border-radius: 3px; font-size: 6px; font-style: normal; font-weight: 800; }

.next-portal-editor { margin: 10px; border: 1px solid #d8dcdf; background: #fff; }
.next-portal-editor > header,
.next-portal-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; }
.next-portal-editor > header { border-bottom: 1px solid var(--next-line); }
.next-portal-editor > header span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-portal-editor > header h3 { margin: 2px 0 0; font-size: 12px; }
.next-portal-editor > header button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; background: transparent; }
.next-portal-editor > header button svg { width: 17px; height: 17px; }
.next-portal-editor > .next-form-grid { padding: 13px; }
.next-portal-editor > footer { align-items: end; border-top: 1px solid var(--next-line); background: #f8f9f9; }
.next-portal-editor > footer > span { max-width: 560px; color: var(--next-muted); font-size: 7px; }
.next-portal-editor > footer > div { display: flex; gap: 8px; }
.next-portal-audience { border: 1px solid #d8dcdf; }
.next-portal-audience legend { padding: 0 5px; color: var(--next-muted); font-size: 7px; font-weight: 800; }
.next-portal-audience > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 8px; }
.next-portal-audience label { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 8px; }
.next-portal-audience label span { display: grid; min-width: 0; }
.next-portal-audience label small { overflow: hidden; color: var(--next-muted); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.next-portal-admin-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); min-height: 470px; border-top: 1px solid var(--next-line); }
.next-portal-admin-list { min-width: 0; border-right: 1px solid var(--next-line); }
.next-portal-admin-list .next-work-toolbar { grid-template-columns: minmax(170px, 1fr) minmax(120px, .55fr); }
.next-portal-admin-list > div[role="list"] { display: grid; }
.next-portal-admin-list > div[role="list"] > button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 8px 10px; color: var(--next-ink); border: 0; border-bottom: 1px solid var(--next-line); background: #fff; text-align: left; }
.next-portal-admin-list > div[role="list"] > button:hover,
.next-portal-admin-list > div[role="list"] > button.active { background: #f5f7f7; box-shadow: inset 3px 0 var(--next-red); }
.next-portal-admin-list button > svg { width: 17px; height: 17px; color: var(--next-red-dark); }
.next-portal-admin-list button > span { display: grid; min-width: 0; gap: 3px; }
.next-portal-admin-list button strong,
.next-portal-admin-list button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-portal-admin-list button strong { font-size: 8px; }
.next-portal-admin-list button small { color: var(--next-muted); font-size: 6px; }
.next-portal-admin-list button em,
.next-portal-admin-detail > header > em { padding: 4px 6px; border-radius: 3px; font-size: 6px; font-style: normal; font-weight: 800; }
.next-portal-admin-list .released,
.next-portal-admin-detail .released { color: var(--next-green); background: #eaf7f0; }
.next-portal-admin-list .review,
.next-portal-admin-detail .review { color: var(--next-blue); background: #eaf2fb; }
.next-portal-admin-list .overdue,
.next-portal-admin-detail .overdue { color: var(--next-red-dark); background: #fff0f0; }
.next-portal-admin-list .draft,
.next-portal-admin-detail .draft { color: #60686d; background: #eef0f1; }
.next-portal-admin-detail { min-width: 0; padding: 14px; }
.next-portal-admin-detail > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--next-line); }
.next-portal-admin-detail > header span { color: var(--next-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.next-portal-admin-detail > header h3 { margin: 3px 0; overflow-wrap: anywhere; font-size: 14px; }
.next-portal-admin-detail > header p { margin: 0; color: #4f575d; font-size: 8px; line-height: 1.5; }
.next-portal-admin-detail > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 12px 0; gap: 10px 18px; border-bottom: 1px solid var(--next-line); }
.next-portal-admin-detail > dl div { display: grid; min-width: 0; gap: 2px; }
.next-portal-admin-detail dt { color: var(--next-muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.next-portal-admin-detail dd { margin: 0; overflow-wrap: anywhere; font-size: 8px; font-weight: 700; }
.next-portal-workflow { padding-top: 12px; }
.next-portal-workflow > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.next-secondary-command.danger { color: var(--next-red-dark); border-color: #e3bcbc; }

@media (max-width: 980px) {
  .next-user-portal-kpis,
  .next-portal-admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-portal-rental-details { grid-template-columns: 1fr; }
  .next-portal-rental-details > section + section { border-top: 1px solid var(--next-line); border-left: 0; }
  .next-portal-admin-layout { grid-template-columns: 1fr; }
  .next-portal-admin-list { border-right: 0; border-bottom: 1px solid var(--next-line); }
  .next-portal-audience > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-portal-rental-requests > div { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .next-portal-content-grid { grid-template-columns: 1fr; }
  .next-portal-content-panel + .next-portal-content-panel { border-top: 1px solid var(--next-line); border-left: 0; }
  .next-portal-documents > header,
  .next-portal-rentals > header,
  .next-portal-rental > footer,
  .next-portal-editor > footer { align-items: stretch; flex-direction: column; }
  .next-portal-rentals > header small { max-width: none; text-align: left; }
  .next-portal-rental-requests > header { align-items: start; flex-direction: column; }
  .next-portal-documents > header > small { max-width: none; text-align: left; }
  .next-portal-editor > footer > div,
  .next-portal-editor > footer button { width: 100%; }
  .next-portal-documents > div > a { grid-template-columns: 24px minmax(0, 1fr) 18px; }
  .next-portal-documents > div > a em { display: none; }
}

@media (max-width: 500px) {
  .next-user-portal-kpis,
  .next-portal-admin-kpis,
  .next-portal-rental-summary,
  .next-portal-properties dl,
  .next-portal-admin-detail > dl,
  .next-portal-audience > div { grid-template-columns: 1fr; }
  .next-portal-content-panel article { grid-template-columns: 1fr; }
  .next-portal-admin-list .next-work-toolbar { grid-template-columns: 1fr; }
}
