/* Neuer Dokumenteneingang der Testversion. Eigene Klassen beginnen mit nd-. */
.nd-on>.document-hub-toolbar318,.nd-on>.document-scan331,.nd-on>.document-source-settings324,.nd-on>.document-hub-tools289,
.nd-on>p,.nd-on>.document-hub-grid289,.nd-on>[data-empty],.nd-on>[data-more],.nd-on>.document-batch-tools{display:none!important}
.nd-root{--nd-blue:#223d8c;--nd-ink:#111d31;--nd-sub:#414e62;--nd-line:#d9e1f0;--nd-soft:#eef3fd;--nd-orange:#a94d1e;--nd-green:#1f7a4d;
  color:var(--nd-ink);font-size:15px;line-height:22px;display:flex;flex-direction:column;gap:24px}
.nd-root [hidden]{display:none!important}
.nd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--nd-line);border-radius:10px;background:#fff;
  color:var(--nd-ink);font-weight:500;cursor:pointer;user-select:none;white-space:nowrap;box-sizing:border-box}
.nd-btn:hover{background:var(--nd-soft)}
.nd-btn:focus-visible,.nd-row:focus-visible,.nd-q:focus-visible{outline:2px solid var(--nd-blue);outline-offset:2px}
.nd-btn.nd-primary{background:var(--nd-blue);border-color:var(--nd-blue);color:#fff;font-weight:600}
.nd-btn.nd-primary:hover{background:#1b3275}
.nd-btn[aria-disabled=true]{opacity:.5;cursor:default;pointer-events:none}
.nd-btn.nd-plain{border:0;background:transparent;color:var(--nd-blue);padding:0;min-height:24px;font-weight:500}
.nd-btn.nd-plain:hover{text-decoration:underline;background:transparent}
.nd-btn svg,.nd-state svg,.nd-chip svg{width:16px;height:16px;flex:none}
.nd-key{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;border-radius:5px;background:rgba(255,255,255,.18);font-size:12px}

.nd-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.nd-top .nd-search{flex:1 1 280px;max-width:420px;margin-left:auto;position:relative}
.nd-top .nd-search input{width:100%;height:40px;box-sizing:border-box;border:1px solid var(--nd-line);border-radius:10px;padding:0 14px;font:inherit;background:#fff;color:var(--nd-ink)}
.nd-chips{display:flex;gap:8px;flex-wrap:wrap}
.nd-filter{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid var(--nd-line);border-radius:18px;background:#fff;cursor:pointer;user-select:none}
.nd-filter b{font-weight:600;color:var(--nd-sub);font-size:13px}
.nd-filter[aria-pressed=true]{background:var(--nd-soft);border-color:var(--nd-soft);color:var(--nd-blue);font-weight:600}
.nd-filter[aria-pressed=true] b{color:var(--nd-blue)}
.nd-filter:focus-visible{outline:2px solid var(--nd-blue);outline-offset:2px}
.nd-add{position:relative}
.nd-pop{position:absolute;right:0;top:48px;z-index:30;width:min(560px,86vw);background:#fff;border:1px solid var(--nd-line);border-radius:14px;box-shadow:0 18px 48px rgba(17,29,49,.16);padding:20px;display:flex;flex-direction:column;gap:16px}
.nd-pop .document-hub-toolbar318,.nd-pop .document-hub-actions291{display:flex;flex-wrap:wrap;gap:12px;margin:0;border:0;padding:0}

.nd-banner{display:flex;align-items:center;gap:24px;padding:20px 24px;border-radius:14px;background:var(--nd-blue);color:#fff}
.nd-banner div:first-child{flex:1;min-width:0}
.nd-banner strong{display:block;font-size:17px;line-height:24px;font-weight:600}
.nd-banner span.nd-bsub{display:block;color:#dfe6fb;margin-top:2px}
.nd-banner .nd-btn{background:#fff;border-color:#fff;color:var(--nd-blue);font-weight:600}
.nd-banner .nd-key{background:var(--nd-soft)}
.nd-banner.nd-calm{background:var(--nd-soft);color:var(--nd-ink)}
.nd-banner.nd-calm span.nd-bsub{color:var(--nd-sub)}

.nd-table{border:1px solid var(--nd-line);border-radius:14px;background:#fff;overflow:hidden}
.nd-head,.nd-row{display:grid;grid-template-columns:minmax(260px,2.2fr) minmax(170px,1.3fr) minmax(200px,1.6fr) 150px;gap:24px;align-items:center;padding:0 24px}
.nd-head{height:40px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--nd-sub);font-weight:600;border-bottom:1px solid var(--nd-line)}
.nd-head span:last-child,.nd-row>.nd-state{justify-self:end}
.nd-row{min-height:76px;padding-top:12px;padding-bottom:12px;border-bottom:1px solid var(--nd-line);cursor:pointer}
.nd-row:last-of-type{border-bottom:0}
.nd-row:hover{background:#f8fbff}
.nd-doc{display:flex;gap:14px;align-items:center;min-width:0}
.nd-page{flex:none;width:34px;height:44px;border:1px solid var(--nd-line);border-radius:5px;background:linear-gradient(#c9d3ea,#c9d3ea) 7px 10px/12px 2px no-repeat,linear-gradient(#dfe5f3,#dfe5f3) 7px 18px/19px 2px no-repeat,linear-gradient(#dfe5f3,#dfe5f3) 7px 25px/19px 2px no-repeat,linear-gradient(#dfe5f3,#dfe5f3) 7px 32px/14px 2px no-repeat,#fff}
.nd-doc>div{min-width:0}
.nd-title{font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-sub{color:var(--nd-sub);font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-person{font-weight:600}
.nd-open{color:var(--nd-orange);font-weight:600}
.nd-found{display:flex;gap:8px;flex-wrap:wrap;align-items:center;color:var(--nd-sub);font-size:14px}
.nd-chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:7px;background:var(--nd-soft);color:var(--nd-blue);font-size:13px;font-weight:600;white-space:nowrap}
.nd-chip.nd-due{background:#fdeee4;color:#8a3d15}
.nd-state{display:inline-flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap}
.nd-state.nd-ok svg{color:var(--nd-green)}
.nd-state.nd-warn{color:var(--nd-orange);font-weight:600}
.nd-bar{width:64px;height:4px;border-radius:2px;background:var(--nd-line);overflow:hidden}
.nd-bar i{display:block;height:100%;width:40%;background:var(--nd-blue);border-radius:2px;animation:nd-run 1.4s ease-in-out infinite alternate}
@keyframes nd-run{from{transform:translateX(0)}to{transform:translateX(150%)}}
@media (prefers-reduced-motion:reduce){.nd-bar i{animation:none}}
.nd-drop{padding:18px 24px;text-align:center;color:var(--nd-sub);border-top:1px dashed var(--nd-line)}
.nd-empty{padding:56px 24px;text-align:center;color:var(--nd-sub)}
.nd-empty strong{display:block;color:var(--nd-ink);font-size:17px;margin-bottom:6px}
.nd-note{color:var(--nd-sub);font-size:14px}
.nd-note[role=alert]{color:var(--nd-orange)}

/* Der Reihe nach bearbeiten */
.nd-workhead{display:flex;align-items:center;gap:16px}
.nd-workhead .nd-back{width:40px;padding:0}
.nd-workhead strong{font-size:16px;white-space:nowrap}
.nd-steps{display:flex;gap:6px}
.nd-steps i{width:34px;height:4px;border-radius:2px;background:var(--nd-line)}
.nd-steps i.nd-done{background:var(--nd-blue)}
.nd-workhead .nd-note{margin-left:auto;text-align:right;flex:1;min-width:0}
.nd-sec>.nd-plain,.nd-sec>.nd-btn,.nd-sec>.nd-chip{align-self:flex-start}
.nd-work{display:grid;grid-template-columns:250px minmax(0,1fr) 380px;gap:24px;align-items:start}
.nd-queue,.nd-panel{border:1px solid var(--nd-line);border-radius:14px;background:#fff}
.nd-queue{padding:16px 10px;display:flex;flex-direction:column;gap:2px;max-height:calc(100vh - 210px);overflow:auto}
.nd-queue h4{margin:8px 10px 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--nd-sub);font-weight:600}
.nd-queue h4:not(:first-child){margin-top:20px}
.nd-q{display:flex;gap:12px;align-items:center;padding:8px 10px;border-radius:10px;cursor:pointer}
.nd-q:hover{background:#f8fbff}
.nd-q[aria-current=true]{background:var(--nd-soft)}
.nd-q>i{flex:none;width:24px;height:24px;border-radius:50%;border:1px solid var(--nd-line);display:flex;align-items:center;justify-content:center;font-style:normal;font-size:12px;font-weight:600;color:var(--nd-sub);background:#fff}
.nd-q[aria-current=true]>i{background:var(--nd-blue);border-color:var(--nd-blue);color:#fff}
.nd-q>div{min-width:0}
.nd-q b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-q small{display:block;color:var(--nd-sub);font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-view{border-radius:14px;background:#e7eeff;padding:20px 24px 24px;min-height:520px;max-height:calc(100vh - 210px);overflow:auto;box-sizing:border-box}
.nd-viewhead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;color:var(--nd-sub);font-size:14px}
.nd-pages{display:flex;flex-direction:column;gap:16px;align-items:center}
.nd-pages img{display:block;width:100%;max-width:760px;height:auto;background:#fff;border-radius:4px;box-shadow:0 2px 10px rgba(17,29,49,.10)}
.nd-pages pre{white-space:pre-wrap;background:#fff;padding:24px;border-radius:4px;width:100%;max-width:760px;box-sizing:border-box;font:inherit}
.nd-panel{display:flex;flex-direction:column;max-height:calc(100vh - 210px)}
.nd-panel>header{padding:20px 24px;border-bottom:1px solid var(--nd-line)}
.nd-panel>header h3{margin:0;font-size:18px;line-height:26px;font-weight:600}
.nd-panel>header p{margin:2px 0 0;color:var(--nd-sub);font-size:14px}
.nd-body{overflow:auto;flex:1}
.nd-sec{padding:20px 24px;border-bottom:1px solid var(--nd-line);display:flex;flex-direction:column;gap:12px}
.nd-sec:last-child{border-bottom:0}
.nd-sec h4{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--nd-sub);font-weight:600}
.nd-big{font-size:17px;font-weight:600}
.nd-reason{display:flex;gap:8px;align-items:flex-start;color:var(--nd-sub);font-size:14px}
.nd-reason svg{width:16px;height:16px;flex:none;margin-top:3px;color:var(--nd-green)}
.nd-quote{border-left:3px solid #e9a57e;background:#fdf3ec;padding:8px 12px;border-radius:0 6px 6px 0;font-size:14px;color:#5a2c12}
.nd-facts{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 16px;margin:0}
.nd-facts dt{color:var(--nd-sub);font-size:14px}
.nd-facts dd{margin:0;overflow-wrap:anywhere}
.nd-task{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--nd-line);border-radius:10px;cursor:pointer}
.nd-task:hover{background:#f8fbff}
.nd-task b{font-weight:600}
.nd-task small{color:var(--nd-sub);font-size:13px}
.nd-task small.nd-soon{color:var(--nd-orange);font-weight:600}
.nd-seg{display:inline-flex;border:1px solid var(--nd-line);border-radius:10px;overflow:hidden;align-self:flex-start}
.nd-seg div{min-width:72px;height:38px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-weight:500;padding:0 14px}
.nd-seg div+div{border-left:1px solid var(--nd-line)}
.nd-seg div[aria-checked=true]{background:var(--nd-soft);color:var(--nd-blue);font-weight:600}
.nd-seg div:focus-visible{outline:2px solid var(--nd-blue);outline-offset:-2px}
.nd-foot{display:flex;gap:16px;padding:20px 24px;border-top:1px solid var(--nd-line);flex-wrap:wrap}
.nd-foot .nd-primary{flex:1}
.nd-form{display:flex;flex-direction:column;gap:14px}
.nd-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--nd-sub);font-weight:600;margin:0}
.nd-form input,.nd-form select{height:42px;box-sizing:border-box;border:1px solid var(--nd-line);border-radius:10px;padding:0 12px;font:inherit;font-size:15px;letter-spacing:0;text-transform:none;color:var(--nd-ink);background:#fff;width:100%;font-weight:400}
.nd-form select{padding-right:34px}
.nd-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.nd-sugg{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:1180px){.nd-work{grid-template-columns:minmax(0,1fr) 360px}.nd-queue{display:none}}
@media (max-width:860px){.nd-top{position:relative}.nd-add{position:static}.nd-pop{left:0;right:0;top:calc(100% + 8px);width:auto}.nd-work{grid-template-columns:1fr}.nd-head{display:none}.nd-row{grid-template-columns:1fr;gap:8px}.nd-row>.nd-state{justify-self:start}.nd-view,.nd-panel,.nd-queue{max-height:none}}

/* Alle Dokumente und Dokumente in der Akte */
.nd-filters{display:flex;gap:12px;flex-wrap:wrap}
@layer nb-vorrang{.nd-filters select,.nd-filters input{width:190px!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important}.nd-all .nd-search input,.nd-eingang-search input{margin:0!important}}
.nd-filters select,.nd-filters input{height:40px;box-sizing:border-box;border:1px solid var(--nd-line);border-radius:10px;padding:0 12px;font:inherit;font-size:15px;color:var(--nd-ink);background-color:#fff;min-width:170px;max-width:220px}
.nd-filters select{padding-right:34px}
.nd-all .nd-top{align-items:center}
.nd-all .nd-top .nd-search{flex:1 1 200px;max-width:320px}
.nd-all>.nd-note{margin:-8px 0 -8px;text-align:right}
.nd-split{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}
.nd-ahead,.nd-arow{display:grid;grid-template-columns:minmax(0,1fr) 76px 124px;gap:20px;align-items:center;padding:0 24px}
.nd-ahead.nd-with-person,.nd-arow.nd-with-person{grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) minmax(0,1.3fr) 64px 124px}
.nd-ahead{height:40px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#414e62;font-weight:600;border-bottom:1px solid #d9e1f0}
.nd-arow{min-height:64px;padding-top:10px;padding-bottom:10px;border-bottom:1px solid #d9e1f0;cursor:pointer;position:relative;color:#111d31;font-size:15px;line-height:22px}
.nd-arow:hover{background:#f8fbff}
.nd-arow[aria-current=true]{background:#eef3fd;box-shadow:inset 3px 0 0 #223d8c}
.nd-arow:focus-visible{outline:2px solid #223d8c;outline-offset:-2px}
.nd-arow .nd-doc{display:flex;gap:14px;align-items:center;min-width:0}
.nd-arow .nd-doc>div{min-width:0}
.nd-arow .nd-page{width:26px;height:34px;background-size:10px 2px,14px 2px,14px 2px,10px 2px,auto;background-position:5px 8px,5px 14px,5px 19px,5px 24px,0 0}
.nd-arow .nd-title{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-arow .nd-sub{color:#414e62;font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.nd-dim{color:#414e62}
.nd-num{text-align:right;font-variant-numeric:tabular-nums}
.nd-stand{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#414e62}
.nd-stand i{width:7px;height:7px;border-radius:50%;background:#aab6d0;flex:none}
.nd-stand.nd-s-open{color:#a94d1e;font-weight:600}.nd-stand.nd-s-open i{background:#a94d1e}
.nd-stand.nd-s-out i{background:#223d8c}
.nd-morerow{display:flex;justify-content:center;padding:16px 24px}
.nd-detail{border:1px solid #d9e1f0;border-radius:14px;background:#fff;overflow:hidden;position:sticky;top:16px;color:#111d31;font-size:15px;line-height:22px;min-width:0;align-self:start}
.nd-shot{background:#e7eeff;padding:20px 28px 0;height:230px;overflow:hidden;display:flex;justify-content:center;align-items:flex-start;cursor:pointer;color:#414e62;font-size:14px;box-sizing:border-box}
.nd-shot img{width:100%;max-width:300px;height:auto;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 2px 12px rgba(17,29,49,.12);display:block}
.nd-shot pre{background:#fff;padding:14px;margin:0;width:100%;font:inherit;font-size:12px;line-height:17px;white-space:pre-wrap;border-radius:4px 4px 0 0;overflow:hidden;height:100%;box-sizing:border-box}
.nd-shot:focus-visible{outline:2px solid #223d8c;outline-offset:-2px}
.nd-dhead{padding:20px 24px 16px;border-bottom:1px solid #d9e1f0}
.nd-dhead h3{margin:0;font-size:18px;line-height:26px;font-weight:600;overflow-wrap:anywhere}
.nd-dhead p{margin:2px 0 0;color:#414e62;font-size:13px;line-height:18px;overflow-wrap:anywhere}
.nd-dfacts{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr)}
.nd-dfacts dt,.nd-dfacts dd{margin:0;padding:11px 24px;border-bottom:1px solid #d9e1f0}
.nd-dfacts dt{color:#414e62;padding-right:8px}
.nd-dfacts dd{text-align:right;font-weight:600;overflow-wrap:anywhere}
.nd-dlinked:not(:empty){padding:16px 24px;border-bottom:1px solid #d9e1f0;display:flex;flex-direction:column;gap:10px}
.nd-dlinked h4{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#414e62;font-weight:600}
.nd-detail .nd-task{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #d9e1f0;border-radius:10px;cursor:pointer}
.nd-detail .nd-task:hover{background:#f8fbff}
.nd-detail .nd-task small{color:#414e62;font-size:13px}
.nd-detail .nd-task small.nd-soon{color:#a94d1e;font-weight:600}
.nd-dactions{display:flex;gap:16px;padding:20px 24px;align-items:center}
.nd-dactions .nd-primary{flex:1}
.nd-detail .nd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border:1px solid #d9e1f0;border-radius:10px;background:#fff;color:#111d31;font-weight:500;cursor:pointer;user-select:none;white-space:nowrap;box-sizing:border-box}
.nd-detail .nd-btn:hover{background:#eef3fd}
.nd-detail .nd-btn.nd-primary{background:#223d8c;border-color:#223d8c;color:#fff;font-weight:600}
.nd-detail .nd-btn[aria-disabled=true]{opacity:.5;pointer-events:none}
.nd-detail .nd-btn:focus-visible,.nd-mitem:focus-visible{outline:2px solid #223d8c;outline-offset:2px}
.nd-more{position:relative}
.nd-more>.nd-btn{width:40px;padding:0}
.nd-menu{position:absolute;right:0;bottom:48px;z-index:40;min-width:230px;background:#fff;border:1px solid #d9e1f0;border-radius:12px;box-shadow:0 18px 48px rgba(17,29,49,.16);padding:6px}
.nd-menu[hidden],.nd-detail [hidden]{display:none!important}
.nd-mitem{padding:9px 12px;border-radius:8px;cursor:pointer;white-space:nowrap}
.nd-mitem:hover{background:#eef3fd}
.nd-mitem.nd-danger{color:#a94d1e}
.nd-dempty{padding:56px 24px;text-align:center;color:#414e62;display:flex;flex-direction:column;gap:6px}
.nd-dempty strong{color:#111d31;font-size:16px}
@media (max-width:1180px){.nd-split{grid-template-columns:1fr}.nd-detail{position:static}}
@media (max-width:860px){.nd-ahead{display:none}.nd-arow,.nd-arow.nd-with-person{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}.nd-arow .nd-doc{grid-column:1/-1}.nd-arow .nd-dim{display:none}}

/* Termine, Fristen und Zahlung im Arbeitsgang */
.nd-stack{display:flex;flex-direction:column;gap:10px}
.nd-inline{display:flex;gap:16px;flex-wrap:wrap}
.nd-entry{border:1px solid var(--nd-line);border-radius:12px;padding:16px;background:#f8fbff}
.nd-entry[hidden]{display:none}

/* Finanzen: Übersicht aller Betreuten */
.nd-fin .nd-top .nd-search{flex:1 1 280px;max-width:380px;margin-left:auto}
.nd-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.nd-tile{border:1px solid #d9e1f0;border-radius:14px;background:#fff;padding:18px 20px;display:flex;flex-direction:column;gap:4px;min-width:0}
.nd-tile span{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#414e62;font-weight:600}
.nd-tile strong{font-size:22px;line-height:30px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.nd-tile small{color:#414e62;font-size:13px;line-height:18px}
.nd-fhead,.nd-frow{display:grid;gap:20px;align-items:center;padding:0 24px}
.nd-fhead{height:40px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#414e62;font-weight:600;border-bottom:1px solid #d9e1f0}
.nd-fhead span{cursor:pointer;user-select:none;white-space:nowrap;display:flex;align-items:center;min-height:28px}.nd-fhead span.nd-num{justify-content:flex-end}
.nd-fhead span:hover{color:#223d8c}
.nd-fhead span:focus-visible,.nd-frow:focus-visible{outline:2px solid #223d8c;outline-offset:-2px}
.nd-frow{min-height:60px;padding-top:10px;padding-bottom:10px;border-bottom:1px solid #d9e1f0;cursor:pointer}
.nd-frow:last-child{border-bottom:0}
.nd-frow:hover{background:#f8fbff}
.nd-frow[aria-busy=true]{opacity:.6}
.nd-frow .nd-title{font-size:15px}
.nd-frow .nd-sub{font-size:13px;line-height:18px}
.nd-neg{color:#a94d1e}
.nd-strong{font-weight:600}
@layer nb-vorrang{.nd-fin.task-picker284{max-width:none!important;margin:0!important;padding:0!important}.nd-fin .nd-frow.task-person284{width:auto!important;text-align:left!important;border-radius:0!important;margin:0!important}}
@media (max-width:1100px){.nd-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

.nd-task-edit{cursor:default}
.nd-task-edit>b{cursor:pointer;align-self:flex-start}
.nd-task-edit>b:hover{color:#223d8c;text-decoration:underline}
.nd-due{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.nd-due input{height:34px;border:1px solid #d9e1f0;border-radius:8px;padding:0 10px;font:inherit;font-size:14px;color:#111d31;background:#fff}
@layer nb-vorrang{.nd-due input{width:150px!important;min-height:34px!important;height:34px!important;margin:0!important}}
.nd-sec>.nd-facts{grid-template-columns:96px minmax(0,1fr)}

/* Gespeicherte Ansichten */
.nd-views{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.nd-viewsave{max-width:520px}
.nd-form label.nd-check{flex-direction:row;align-items:center;gap:10px;text-transform:none;letter-spacing:0;font-size:15px;font-weight:400;color:#111d31}
@layer nb-vorrang{.nd-form label.nd-check input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;padding:0!important;flex:none}}
.nd-startviews{border:1px solid #d9e1f0;border-radius:14px;background:#fff;padding:20px 24px;margin:24px 0;color:#111d31}
.nd-svhead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.nd-svhead h2{margin:0;font-size:17px;line-height:24px;font-weight:600}
.nd-svgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.nd-svtile{border:1px solid #d9e1f0;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:2px;cursor:pointer;min-width:0;background:#f8fbff}
.nd-svtile:hover{background:#eef3fd;border-color:#c5d2ee}
.nd-svtile:focus-visible{outline:2px solid #223d8c;outline-offset:2px}
.nd-svtile span{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-svtile strong{font-size:26px;line-height:34px;font-weight:600;color:#223d8c;font-variant-numeric:tabular-nums}
.nd-svtile small{color:#414e62;font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ISO 25010 – Fehlertoleranz: nach einem Ladefehler keine falsche Leermeldung, Meldung mit „Erneut versuchen“ */
.nd-failed .nd-empty{display:none}
.nd-note .nd-btn{display:inline-flex;margin-left:16px;vertical-align:middle}
.nd-failed>.nd-note,.nd-fin>.nd-note{text-align:left;margin:0}
/* ISO 25010 – Bedienbarkeit: Fokus in Feldern immer sichtbar */
@layer nb-vorrang{.nd-root input:focus-visible,.nd-root select:focus-visible,.nd-root textarea:focus-visible,.nb-belege input:focus-visible,.nk-bar input:focus-visible{outline:2px solid #223d8c!important;outline-offset:1px!important}}
@layer nb-vorrang{.nd-root input[type=date]:is(:focus,:focus-within){outline:2px solid #223d8c!important;outline-offset:1px!important}}

/* Mehrfachauswahl und Fristmarke in „Alle Dokumente“ */
.nd-ahead.nd-with-person.nd-pickable,.nd-arow.nd-with-person.nd-pickable{grid-template-columns:24px minmax(0,1.7fr) minmax(0,.9fr) minmax(0,1.3fr) 64px 124px}
.nd-pickcell{display:flex;align-items:center;justify-content:center;width:24px;height:40px;margin:0;cursor:pointer}
@layer nb-vorrang{.nd-root .nd-pickcell input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;padding:0!important;flex:none;cursor:pointer;accent-color:#223d8c}}
.nd-fristtag{color:#8a4a12;font-weight:600;white-space:nowrap}.nd-fristtag.nd-late{color:#a23b12}
.nd-bulk{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 24px;border:1px solid #c9d6f2;border-radius:14px;background:#f4f7fe}
.nd-bulk strong{font-weight:600;margin-right:8px}
.nd-bulk .nd-note{flex-basis:100%;margin:0;text-align:left}
@layer nb-vorrang{.nd-root .nd-bulk select{height:40px!important;min-height:40px!important;width:auto!important;max-width:280px!important;margin:0!important;padding:0 36px 0 14px!important;border:1px solid #8794ad!important;border-radius:10px!important;background-color:#fff!important;font:inherit!important}
 .nd-root .nd-bulk select:disabled{opacity:.6!important}}
.nd-btn[aria-disabled=true]{opacity:.55;cursor:default}
@media (max-width:860px){.nd-arow.nd-with-person.nd-pickable{grid-template-columns:24px minmax(0,1fr) auto}.nd-arow.nd-pickable .nd-doc{grid-column:2/-1}.nd-arow.nd-pickable .nd-pickcell{grid-row:1/span 2}}

/* Betreutenakte: Filter über Liste und Originalvorschau. */
@layer nb-vorrang {
 @media screen {
  html[data-design-preview] body #app #content .document-overview287.nd-akte {
   display: grid !important;
   grid-template-columns: var(--case-list-width, 62%) 18px minmax(0, 1fr) !important;
   align-items: start !important;
   align-content: start !important;
   grid-template-rows: auto auto !important;
   flex: 0 0 auto !important;
   height: auto !important;
   gap: 14px 0 !important;
   min-height: 0 !important;
  }
  html[data-design-preview] body #app #content .nd-akte > .nd-case-tools {
   display: flex;
   grid-column: 1 / -1;
   justify-content: space-between;
   align-items: flex-start;
   flex-wrap: wrap;
   gap: 8px 20px;
  }
  html[data-design-preview] body #app #content .nd-case-filters {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 6px;
   min-width: 0;
  }
  html[data-design-preview] body #app #content .nd-case-filters > button,
  html[data-design-preview] body #app #content .nd-case-folders > summary {
   display: inline-flex !important;
   align-items: center !important;
   justify-content: center !important;
   gap: 6px !important;
   min-height: 31px !important;
   height: auto !important;
   width: auto !important;
   min-width: 0 !important;
   margin: 0 !important;
   padding: 5px 11px !important;
   border: 1px solid var(--preview-line) !important;
   border-radius: 999px !important;
   background: var(--preview-surface) !important;
   color: var(--preview-ink) !important;
   font-size: 12px !important;
   line-height: 18px !important;
   white-space: normal !important;
   text-align: center;
   cursor: pointer;
  }
  html[data-design-preview] body #app #content .nd-case-filters > button[aria-current="page"] {
   background: var(--preview-selection) !important;
   border-color: transparent !important;
   color: var(--preview-active) !important;
   font-weight: 700 !important;
  }
  html[data-design-preview] body #app #content .nd-case-filters small { font-size: inherit; font-weight: 650; }
  html[data-design-preview] body #app #content .nd-case-folders { position: relative; }
  html[data-design-preview] body #app #content .nd-case-folders .document-folder-pane408 {
   position: absolute !important;
   z-index: 160;
   left: 0;
   top: calc(100% + 8px);
   width: min(292px, calc(100vw - 40px)) !important;
   min-height: 0 !important;
   max-height: min(55dvh, 476px) !important;
   margin: 0 !important;
   padding: 12px !important;
   overflow: auto !important;
  }
  html[data-design-preview] body #app #content .nd-case-search {
   display: flex !important;
   align-items: center !important;
   flex: 0 1 264px;
   position: relative;
   width: 264px !important;
   max-width: 100%;
   min-width: 0 !important;
   margin: 0 !important;
  }
  html[data-design-preview] body #app #content .nd-case-search > svg {
   position: absolute;
   left: 10px;
   width: 15px;
   height: 15px;
   fill: none;
   stroke: var(--preview-icon);
   stroke-width: 1.7;
   pointer-events: none;
  }
  html[data-design-preview] body #app #content .nd-case-search > input {
   width: 100% !important;
   height: 32px !important;
   min-height: 32px !important;
   padding: 4px 9px 4px 32px !important;
   margin: 0 !important;
   font-size: 12px !important;
  }
  html[data-design-preview] body #app #content .nd-akte > #documentListCard {
   display: block !important;
   container-type: normal !important;
   padding: 0 !important;
   margin: 0 !important;
   min-height: 0 !important;
   min-width: 0 !important;
   height: auto !important;
   max-height: none !important;
   overflow: hidden !important;
   border-color: var(--preview-line) !important;
  }
  html[data-design-preview] body #app #content .nd-akte #documentLiveResults {
   display: block !important;
   height: auto !important;
   overflow: visible !important;
   margin: 0 !important;
   padding: 0 !important;
   max-height: none !important;
  }
  html[data-design-preview] body #app #content .nd-akte #documentSearchCount {
   position: absolute !important;
   overflow: hidden !important;
   width: 1px;
   height: 1px;
   clip-path: inset(50%);
  }
  html[data-design-preview] body #app #content .nd-akte :is(.nd-ahead,.nd-arow) {
   grid-template-columns: minmax(0, 1fr) 82px minmax(75px, .28fr) !important;
   gap: 12px !important;
   padding-inline: 18px !important;
  }
  html[data-design-preview] body #app #content .nd-akte .nd-ahead {
   height: 31px !important;
   background: var(--preview-canvas);
   font-size: 11px;
   letter-spacing: .035em;
  }
  html[data-design-preview] body #app #content .nd-akte .nd-arow {
   min-height: 50px !important;
   padding-block: 7px !important;
   border-radius: 0 !important;
   line-height: 17px !important;
   font-size: 12px;
  }
  html[data-design-preview] body #app #content .nd-akte .nd-arow .nd-doc { gap: 10px; }
  html[data-design-preview] body #app #content .nd-akte .nd-arow .nd-page { display: none !important; }
  html[data-design-preview] body #app #content .nd-akte .nd-case-file-icon {
   width: 15px;
   height: 15px;
   flex: none;
   color: var(--preview-icon);
   fill: none;
   stroke: currentColor;
   stroke-width: 1.65;
  }
  html[data-design-preview] body #app #content .nd-akte .nd-arow .nd-title { font-size: 13px !important; }
  html[data-design-preview] body #app #content .nd-akte .nd-arow .nd-sub { font-size: 12px !important; line-height: 16px !important; }
  html[data-design-preview] body #app #content .nd-akte .nd-case-month {
   margin: 0;
   padding: 6px 18px;
   border-bottom: 1px solid var(--preview-line);
   background: var(--preview-canvas);
   color: var(--preview-muted);
   font-size: 11px !important;
   line-height: 16px !important;
   font-weight: 650 !important;
   text-transform: uppercase;
   letter-spacing: .045em;
  }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail {
   position: static;
   align-self: start;
   min-height: 0;
   margin: 0;
  }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-shot {
   height: auto;
   aspect-ratio: 1 / 1.08;
   max-height: 68vh;
   padding: 14px 16px 0;
  }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail :is(.nd-dhead,.nd-dfacts,.nd-dactions,.nd-dlinked) { font-size: 13px; }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-dhead { padding: 14px 18px 12px; }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-dhead h3 { font-size: 14px; line-height: 1.35; }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-dhead p { font-size: 12px; }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-dactions {
   gap: 8px;
   padding: 12px 18px;
   background: var(--preview-canvas);
  }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-dactions > .nd-primary { flex: 1 1 auto; }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-dactions .nd-btn {
   min-height: 34px;
   padding: 0 10px;
   font-size: 12px;
  }
 }
 @media screen and (max-width: 1040px) {
  html[data-design-preview] body #app #content .document-overview287.nd-akte { grid-template-columns: minmax(0, 1fr) !important; }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail { grid-column: 1 / -1; }
 }
 @media screen and (max-width: 860px) {
  html[data-design-preview] body #app #content .nd-akte .nd-arow .nd-case-kind { display: none; }
  html[data-design-preview] body #app #content .nd-akte .nd-arow { grid-template-columns: minmax(0, 1fr) 82px minmax(75px, .28fr) !important; }
  html[data-design-preview] body #app #content .nd-akte .nd-arow .nd-doc { grid-column: auto; }
 }
 @media screen and (pointer: coarse) {
  html[data-design-preview] body #app #content .nd-case-filters > button,
  html[data-design-preview] body #app #content .nd-case-folders > summary,
  html[data-design-preview] body #app #content .nd-case-search > input { min-height: 44px !important; }
 }
}

@layer nb-vorrang {
 @media screen {
  html[data-design-preview] body #app #content .document-drop-area {
   flex:1 0 100%!important; width:100%!important; box-sizing:border-box; margin:0; min-width:0;
   color:var(--preview-muted,#495972); 
  }
  html[data-design-preview] body #app #content .document-drop-area > button {
   display:flex; align-items:center; justify-content:center; gap:9px; width:100%!important;
   border:1px dashed #aebfda!important; border-radius:8px!important; background:#f8faff!important;
   min-height:40px!important; padding:7px 12px!important; color:#344e79!important;
   font:inherit; font-size:13px!important; font-weight:500!important; white-space:normal;
  }
  html[data-design-preview] body #app #content .document-drop-area > button svg {width:17px;height:17px;flex:none;}
  html[data-design-preview] body #app #content .document-drop-area:is(:hover,.dragging) > button {border-color:#305193!important;background:#eaf0ff!important;}
  html[data-design-preview] body #app #content .document-drop-area [role=status]:not(:empty) {display:block;padding:6px 0;}
  html[data-design-preview] body #app #content .case-preview-divider {grid-column:2;grid-row:2;align-self:stretch;min-height:100px;cursor:col-resize;touch-action:none;position:relative;}
  .case-preview-divider::before {content:"";position:absolute;top:0;bottom:0;left:50%;border-left:1px solid #d2dcee;}
  .case-preview-divider::after {content:"";position:absolute;top:64px;left:calc(50% - 2px);width:4px;height:34px;border-radius:3px;background:#a3b4d3;}
  .case-preview-divider:is(:hover,:focus-visible)::after,.case-resizing .case-preview-divider::after {background:#29478d;}
  .case-resizing {user-select:none;}
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-shot {
   width:100%!important; max-width:none!important; height:auto!important; aspect-ratio:1/1.08;
   max-height:68vh!important; box-sizing:border-box; padding:14px 16px 0!important;
  }
  html[data-design-preview] body #app #content .nd-akte > .nd-detail .nd-shot img {width:100%!important;max-width:100%!important;}
  html[data-design-preview] body #app #content .document-overview287.nd-akte.case-docs-stacked {grid-template-columns:minmax(0,1fr)!important;}
  html[data-design-preview] body #app #content .case-docs-stacked .case-preview-divider {display:none;}
  html[data-design-preview] body #app #content .nd-akte .nd-cell.nd-num {white-space:nowrap;font-variant-numeric:tabular-nums;}
  html[data-design-preview] body #app .court-summary-choice {padding:7px 0;color:var(--preview-ink);}
  html[data-design-preview] body #app .court-summary-choice > summary {cursor:pointer;font-weight:600;}
  html[data-design-preview] body #app .court-summary-choice label {display:flex;align-items:center;gap:8px;margin:8px 0;}
  html[data-design-preview] body #app .court-summary-choice input {width:auto;}
 }
}
