:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243b39;background:#f5f5ef;font-synthesis:none;--green:#214a41;--muted:#73817b;--line:#e2e6dc;--paper:#fffefa;--lime:#e3edbe}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:var(--green)}.loading{padding:12vh;text-align:center}#app{min-height:100vh}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:#193b34;color:#dce6db;padding:30px 20px;display:flex;flex-direction:column;position:fixed;width:232px;height:100vh}.brand{display:flex;gap:12px;align-items:center;font-size:18px;font-weight:650;letter-spacing:-.5px}.mark{width:36px;height:36px;display:grid;place-items:center;background:#e4edc0;color:#1c4238;border-radius:11px;font-size:23px;font-family:Georgia,serif}.brand small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:2px;font-weight:400;color:#aac0af;margin-top:4px}.nav-label{font-size:10px;letter-spacing:1.6px;color:#90ab9b;margin:38px 14px 12px;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;gap:13px;align-items:center;text-align:left;background:none;color:#c4d6c9;border:0;border-radius:8px;padding:12px 14px;font-size:13px}.nav button:hover{background:#23493d}.nav button.active{background:#e4edc0;color:#254638;font-weight:600}.nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-count{margin-left:auto;font-size:10px;background:#ffffff18;padding:3px 6px;border-radius:5px}.nav button.active .nav-count{background:#1e433416}.sidebar-foot{margin-top:auto;border-top:1px solid #ffffff1a;padding:20px 12px 0;font-size:11px;color:#abc2b0;line-height:1.7}.dot{display:inline-block;width:6px;height:6px;background:#b7d48a;border-radius:50%;margin-right:6px}.main{grid-column:2;min-width:0}.topbar{height:84px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:15px;background:#fbfcf6}.tenant-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#829084;margin-bottom:5px}.tenant-select{background:none;border:0;color:#2d463d;font-weight:600;font-size:14px;max-width:300px;padding:0}.topbar .spacer{flex:1}.local-pill{font-size:10px;letter-spacing:.4px;padding:7px 11px;background:#edf0e5;border-radius:20px;color:#5d705c;white-space:nowrap}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#dae2d1;font-size:11px;font-weight:600}.quiet{background:none;border:0;color:#73817a;padding:6px;font-size:12px}.content{max-width:1460px;margin:auto;padding:34px 42px 55px}.breadcrumb{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;color:#869284;margin-bottom:16px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}h1,h2,h3,p{margin:0}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-1.1px;font-size:36px;line-height:1.25;color:#254238}h2{font-weight:600;font-size:16px;letter-spacing:-.3px}h3{font-weight:600;font-size:14px}p.sub{color:#758274;font-size:13px;line-height:1.8;margin-top:10px;max-width:720px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #264e41;background:#264e41;color:#fffdf3;border-radius:7px;padding:11px 17px;font-size:12px;font-weight:550;text-decoration:none;white-space:nowrap}.button.secondary{background:transparent;color:#355440;border:1px solid #cfd8c6}.button.danger{background:#fff4ef;color:#a34f3b;border-color:#e5c5ba}.button.small{padding:7px 11px;font-size:11px}.button.link{border:0;background:none;color:#45664a;padding:3px 0}.hero{border:1px solid #dfe7cf;border-radius:12px;padding:26px 30px;background:linear-gradient(110deg,#eaf0db,#f1f3e6 75%);display:flex;gap:25px;align-items:center;margin-bottom:24px}.hero .symbol{width:60px;height:60px;border:1px solid #cad6b4;border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:32px;color:#718956;flex-shrink:0}.hero h2{font-family:Georgia,serif;font-size:24px;font-weight:400}.hero p{color:#738165;font-size:12px;line-height:1.8;margin:8px 0 14px;max-width:650px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.metric{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:20px}.metric-top{font-size:11px;color:#7a8878;display:flex;justify-content:space-between;align-items:center}.metric-value{font-size:29px;letter-spacing:-1px;margin:13px 0 7px;line-height:1.2;color:#334f3d}.metric-foot{font-size:10px;color:#8a9587}.metric-value.small{font-size:20px;letter-spacing:-.5px;margin-top:18px;margin-bottom:12px}.grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:22px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:11px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #e9ecdf;gap:15px}.panel-head p{font-size:11px;color:#89937f;margin-top:6px;line-height:1.6}.panel-body{padding:22px 24px}.panel+.panel{margin-top:22px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:9px;text-transform:uppercase;letter-spacing:1px;font-weight:500;color:#87917e;background:#fafbf5;padding:13px 22px;border-bottom:1px solid #edf0e5}td{padding:17px 22px;border-bottom:1px solid #edf0e5;vertical-align:middle}tr:last-child td{border-bottom:0}.row-name{font-weight:550;color:#344f3e}.row-name small{display:block;margin-top:6px;font-size:10px;color:#8a9482;font-weight:400}.badge{display:inline-block;font-size:10px;border-radius:4px;padding:5px 8px;white-space:nowrap;background:#eef0e7;color:#6f7a63}.badge.green{background:#e9f0dc;color:#58713d}.badge.amber{background:#fbefda;color:#9c773b}.badge.red{background:#f9e7df;color:#aa6852}.badge.blue{background:#e7eff1;color:#5a7f88}.empty{padding:42px 28px;text-align:center;color:#87927e;font-size:12px;line-height:1.9}.empty .empty-icon{font-size:29px;color:#99a98c;margin-bottom:12px}.empty strong{display:block;font-size:14px;color:#53674c;margin-bottom:7px;font-weight:500}.empty .button{margin-top:18px}.checklist{display:grid;gap:22px}.step{display:flex;gap:13px;align-items:flex-start}.step-number{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:10px;background:#f0f2e8;color:#7f8e6e;flex-shrink:0}.step-number.done{background:#e6edcf;color:#638047}.step p{font-size:11px;line-height:1.7;color:#88917e;margin-top:5px}.step h3{font-size:12px}.info{padding:16px 19px;font-size:12px;line-height:1.8;border:1px solid #dce6cf;background:#f0f4e6;border-radius:8px;color:#6a7f58;margin:0 0 22px}.info.amber{border-color:#e7d9b9;background:#fbf6e8;color:#8f754c}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}.search{flex:1;max-width:400px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field label{font-size:11px;font-weight:550;color:#607257}.field input,.field select,.field textarea,.search,.toolbar select{background:#fffefa;border:1px solid #d9dfcf;border-radius:6px;padding:11px 12px;font-size:12px;color:#334c3b;min-width:0}.field textarea{min-height:90px;resize:vertical;line-height:1.7}.field small{font-size:10px;line-height:1.6;color:#8c957e}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.span2{grid-column:1/-1}.check{font-size:12px;display:flex;align-items:center;gap:8px;color:#687959;margin:4px 0 16px}.check input{accent-color:var(--green)}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:24px}.tabs button{border:0;background:none;padding:0 2px 14px;color:#8a947f;font-size:12px}.tabs button.active{border-bottom:2px solid #507347;color:#365936;font-weight:600}.timeline{padding:5px 0}.event{position:relative;padding:0 0 26px 26px;border-left:1px solid #dce4d0;margin-left:5px}.event:before{content:"";width:7px;height:7px;border-radius:50%;position:absolute;left:-4px;top:4px;background:#a9bc8a}.event h3{font-size:12px}.event p{font-size:11px;color:#859178;margin:6px 0;line-height:1.8}.event time{font-size:10px;color:#9aa28e}.event:last-child{padding-bottom:0}.event details{margin-top:10px;font-size:11px;color:#7e8c6c}.event pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f4f6ed;border-radius:5px;font-size:10px}.card-list{display:grid;gap:14px}.org-card{padding:20px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:flex-start;gap:14px}.org-icon{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;background:#f0f3e6;border-radius:9px;color:#7c9464}.org-detail{flex:1}.org-detail p{font-size:11px;color:#8b957e;margin-top:7px;line-height:1.8}.org-detail .badge{margin-top:10px}.meta{font-size:11px;color:#87937c;line-height:1.9;overflow-wrap:anywhere}.detail-header{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.detail-note{white-space:pre-wrap;font-size:13px;line-height:1.9;color:#6f7c62}.detail-label{font-size:9px;text-transform:uppercase;letter-spacing:1.2px;color:#99a18b;margin:22px 0 9px}.detail-label:first-child{margin-top:0}.file-icon{font-size:10px;font-weight:700;background:#edf1e5;border:1px solid #dce4ce;color:#7c8f68;border-radius:4px;width:32px;height:37px;display:grid;place-items:center}.file-row{display:flex;gap:13px;align-items:center;padding:17px 22px;border-bottom:1px solid #edf0e5}.file-row:last-child{border:0}.file-row .name{font-size:12px;font-weight:500;overflow-wrap:anywhere}.file-row .meta{font-size:10px;margin-top:4px}.file-row>div:nth-child(2){flex:1;min-width:0}dialog{border:1px solid #d7decd;border-radius:12px;padding:0;width:min(650px,calc(100% - 30px));max-height:90vh;background:var(--paper);color:#2e4938;box-shadow:0 30px 100px #152b3433}dialog::backdrop{background:#172c2b66;backdrop-filter:blur(3px)}.modal-head{padding:22px 27px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-head h2{font-family:Georgia,serif;font-size:24px;font-weight:400}.modal-body{padding:25px 27px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:19px 27px}.error{background:#fbece4;color:#a96349;border:1px solid #ebd1bf;border-radius:6px;padding:11px 13px;font-size:12px;line-height:1.7;margin-bottom:18px}.hidden{display:none!important}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#254b3d;color:#fffceb;border-radius:8px;padding:14px 22px;font-size:12px;z-index:10;box-shadow:0 6px 25px #213f3433;display:none}#toast.show{display:block}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fafbf5}.auth-story{background:#1b3e35;color:#e2e9d5;padding:55px clamp(40px,7vw,110px);display:flex;flex-direction:column;justify-content:center}.auth-story .brand{position:absolute;top:45px}.auth-story h1{color:#e4edcd;font-size:clamp(38px,4.5vw,62px);line-height:1.15;margin:70px 0 28px}.auth-story p{color:#a8bda4;font-size:14px;line-height:1.9;max-width:390px}.auth-line{height:1px;background:#ffffff22;width:80px;margin:35px 0}.auth-notes{font-size:11px;line-height:2.4;color:#b4c8a7}.auth-form{padding:45px clamp(30px,7vw,100px);display:flex;justify-content:center;flex-direction:column}.auth-form h2{font-family:Georgia,serif;font-size:29px;font-weight:400;margin-bottom:10px}.auth-form p{font-size:12px;color:#8a947f;line-height:1.9;margin-bottom:26px}.auth-form .button{width:100%;padding:13px}.auth-foot{font-size:10px;color:#929b87;line-height:1.8;margin-top:22px}.auth-form .field{margin-bottom:18px}.demo-banner{padding:12px 30px;background:#f4e8ca;color:#876b3c;display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:15px}.grant-list{max-height:180px;overflow-y:auto;border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin-bottom:17px}.grant-list .check{font-size:11px;margin:8px 0}.invite-url{overflow-wrap:anywhere;background:#f1f4e7;padding:14px;font-size:12px;line-height:1.9;user-select:all;border-radius:6px}.connection{display:flex;gap:17px;padding:24px;align-items:flex-start}.connection .logo{border-radius:10px;width:46px;height:46px;background:#eaf1e5;color:#6e8d66;font-weight:700;display:grid;place-items:center;flex-shrink:0}.connection p{font-size:12px;line-height:1.9;color:#89937d;margin:9px 0}.footer-note{font-size:10px;color:#939b89;margin-top:25px;line-height:1.8}.link-button{border:0;background:none;color:#3f6846;font-size:12px;padding:0;text-align:left;text-decoration:underline;text-underline-offset:3px}.nowrap{white-space:nowrap}@media(min-width:1500px){.content{padding-top:44px}.hero{padding:32px}}@media(max-width:1100px){.sidebar{width:198px;padding:26px 14px}.shell{grid-template-columns:198px 1fr}.topbar{padding:0 26px}.content{padding:28px 26px}.grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.local-pill{display:none}.auth-story{padding:45px}.auth-form{padding:40px}}@media(max-width:720px){.shell{display:block}.sidebar{position:relative;width:auto;height:auto;padding:18px}.brand small,.nav-label,.sidebar-foot{display:none}.brand{font-size:15px}.sidebar .nav{flex-direction:row;overflow-x:auto;margin-top:20px;gap:8px}.nav button{padding:9px;font-size:11px;white-space:nowrap;gap:6px}.nav svg{width:14px;height:14px}.nav-count{display:none}.sidebar .nav+.nav{margin-top:8px}.main{width:100%}.topbar{height:70px;padding:0 20px}.content{padding:24px 18px}.heading{align-items:flex-start}h1{font-size:29px}.heading>.button{padding:10px;font-size:11px}.hero{padding:20px}.hero .symbol{display:none}.hero h2{font-size:21px}.metrics{gap:10px}.metric{padding:16px}.grid{gap:17px}.panel-head,.panel-body{padding:20px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.auth{display:block}.auth-story{padding:28px}.auth-story .brand{position:static}.auth-story h1{font-size:36px;margin:32px 0 15px}.auth-story p{font-size:12px}.auth-line,.auth-notes{display:none}.auth-form{padding:32px 28px}.tenant-select{max-width:200px}.topbar .avatar{display:none}.demo-banner{padding:12px 18px;font-size:11px}.toolbar{flex-wrap:wrap}th,td{padding:13px 15px}.tabs{gap:18px;overflow-x:auto}.tabs button{white-space:nowrap}}
/* Slimzonder.nl — gekozen logo, veel wit, donkerblauw en spaarzaam oranje. */
:root {
  color: #04243b;
  background: #fff;
  --navy: #04243b;
  --orange: #f45d38;
  --green: #04243b; /* compatibility with the existing layout variables */
  --muted: #687987;
  --line: #e5ebf0;
  --paper: #fff;
  --lime: #fff0e9;
}
.shell,.main,.content { background:#fff; }
.sidebar { background:#fff; color:var(--navy); border-right:1px solid var(--line); }
.brand { display:block; line-height:0; }
.brand-logo { display:block; width:188px; max-width:100%; height:auto; }
.brand-logo-full { width:340px; }
.nav-label { color:#85929e; }
.nav button { color:#5c6f7e; }
.nav button:hover { background:#f7f9fb; color:var(--navy); }
.nav button.active { background:#fff0e9; color:var(--navy); box-shadow:inset 3px 0 0 var(--orange); }
.nav-count { background:#f0f4f7; color:#627584; }
.nav button.active .nav-count { background:#ffdfd2; color:#733b2b; }
.sidebar-foot { color:#7d8c98; border-color:var(--line); }
.dot { background:var(--orange); }
.topbar { background:#fff; border-color:var(--line); }
.tenant-label { color:#8795a0; }
.tenant-select { color:var(--navy); }
.local-pill { background:#f5f8fa; color:#647b8d; }
.avatar { background:#eef3f7; color:var(--navy); }
.quiet { color:#6e7f8d; }
.breadcrumb { color:#8b98a3; }
h1,h2,h3 { color:var(--navy); }
p.sub { color:#70818e; }
.button { border-color:var(--orange); background:var(--orange); color:var(--navy); font-weight:650; }
.button:hover { background:#ee512d; border-color:#ee512d; }
.button.secondary { background:#fff; color:var(--navy); border-color:#dce5ec; }
.button.secondary:hover { background:#f6f9fb; border-color:#bdcdd9; }
.button.link { background:none; color:var(--navy); border:0; }
.button.link:hover { color:#a0371d; }
.button.danger { color:#9d3a28; background:#fff5f1; border-color:#f0d4ca; }
.hero { background:#fff; border:1px solid var(--line); border-left:4px solid var(--orange); }
.hero .symbol { border-color:#f9d2c4; color:#c34825; background:#fff8f5; }
.hero p { color:#748593; }
.metric { background:#fff; }
.metric-top,.metric-foot { color:#82929e; }
.metric-value { color:var(--navy); }
.panel { background:#fff; }
.panel-head { border-color:#edf1f4; }
.panel-head p { color:#8a99a5; }
th { background:#fbfcfd; color:#7e91a0; border-color:#edf1f4; }
td { border-color:#edf1f4; }
.row-name { color:var(--navy); }
.row-name small { color:#83939f; }
.badge { background:#f0f4f7; color:#607787; }
.badge.green { background:#edf6ef; color:#376948; }
.badge.amber { background:#fff4e3; color:#8a631d; }
.badge.red { background:#fff0eb; color:#a23a24; }
.badge.blue { background:#edf4fb; color:#3d6684; }
.empty { color:#8295a3; }
.empty .empty-icon { color:#a5b4bf; }
.empty strong { color:#4d687c; }
.step-number { background:#f2f6f9; color:#8397a5; }
.step-number.done { background:#fff0e9; color:#af4327; }
.step p { color:#82939f; }
.info { border-color:#e1e9ef; background:#fbfcfd; color:#647c8e; }
.info.amber { background:#fff8ef; border-color:#f1dfc5; color:#8a6b34; }
.field label { color:#526e83; }
.field input,.field select,.field textarea,.search,.toolbar select { background:#fff; border-color:#dce5ec; color:var(--navy); }
.field input:focus,.field select:focus,.field textarea:focus,.search:focus { outline:2px solid #f8c7b8; border-color:var(--orange); }
.field small { color:#8a9aa6; }
.check { color:#617b8d; }
.check input { accent-color:var(--orange); }
.tabs button { color:#8597a5; }
.tabs button.active { border-color:var(--orange); color:var(--navy); }
.event { border-color:#e4ebf0; }
.event:before { background:var(--orange); }
.event p,.event details { color:#748a9b; }
.event time { color:#93a1ac; }
.event pre { background:#f7f9fb; }
.org-icon { background:#f1f6fa; color:#5f8199; }
.org-detail p,.meta { color:#7a8f9f; }
.detail-note { color:#536f84; }
.detail-label { color:#8ea0ae; }
.file-icon { background:#f4f7fa; color:#68849a; border-color:#dfe8ef; }
.file-row { border-color:#edf1f4; }
dialog { background:#fff; color:var(--navy); border-color:#dce5ec; box-shadow:0 24px 90px #04243b1f; }
dialog::backdrop { background:#04243b55; }
.error { background:#fff3ee; border-color:#f1d4c8; color:#a13b24; }
#toast { background:var(--navy); color:#fff; }
.auth { background:#fff; }
.auth-story { background:#fff; color:var(--navy); border-right:1px solid var(--line); }
.auth-story .brand { position:absolute; top:45px; }
.auth-story h1 { color:var(--navy); }
.auth-story p { color:#748a9b; }
.auth-line { width:64px; height:3px; background:var(--orange); }
.auth-notes { color:#8196a6; }
.auth-form { background:#fff; }
.auth-form p { color:#8194a2; }
.auth-foot { color:#8c9ca8; }
.auth-form>.button.secondary { margin-top:10px; }
.demo-banner { background:#fff7f2; color:#9b512e; border-bottom:1px solid #f9e2d6; }
.invite-url { background:#f5f8fb; }
.connection .logo { background:#f1f6fa; color:#4f7693; }
.connection p,.footer-note { color:#8b9ba8; }
.link-button { color:var(--navy); }
.link-button:hover { color:#a13b24; }
@media(max-width:1100px) { .brand-logo { width:168px; } .brand-logo-full { width:300px; } }
@media(max-width:720px) {
  .sidebar { border-right:0; border-bottom:1px solid var(--line); }
  .sidebar .brand-logo { width:180px; }
  .auth-story { border-right:0; border-bottom:1px solid var(--line); }
  .auth-story .brand { position:static; }
  .auth-story .brand-logo-full { width:275px; }
}

/* Slimzonder: frisse, directe koppen; de rustige witte basis blijft. */
h1,.hero h2,.auth-form h2,.modal-head h2 {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:720;
  letter-spacing:-1.2px;
}
.auth-story h1 {
  font-size:clamp(42px,4.6vw,66px);
  font-weight:780;
  line-height:1.08;
  letter-spacing:-2.5px;
}
.auth-story p { font-size:15px; max-width:390px; line-height:1.85; }
.auth-notes { font-size:12px; line-height:2.6; }
.auth-form h2 { font-size:30px; letter-spacing:-1px; }
.hero h2 { font-size:23px; letter-spacing:-.7px; }
.modal-head h2 { font-size:23px; letter-spacing:-.7px; }
@media(max-width:720px) {
  .auth-story h1 { font-size:42px; letter-spacing:-1.8px; }
  .auth-story p { font-size:13px; }
}

.auth-positioning { margin-top:24px; max-width:390px; }
.auth-positioning h3 { font-size:14px; font-weight:650; letter-spacing:-.2px; line-height:1.5; }
.auth-story .auth-positioning p { margin-top:8px; font-size:13px; line-height:1.8; color:#647b8d; }

/* Document reader and case workbench */
#case-workbench { margin-top:30px; }
.workbench-heading { margin-bottom:18px; }
.workbench-heading h2 { font-size:26px; letter-spacing:-.8px; margin:0 0 6px; }
.case-list { display:grid; gap:16px; }
.case-card { border:1px solid var(--line,#e4e9ed); border-radius:14px; padding:20px; background:#fff; }
.case-card p { white-space:pre-wrap; margin:12px 0; line-height:1.65; }
.case-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.case-card-top h3 { margin:0; font-size:17px; }
.next-step { background:#fafbfc; border-radius:10px; padding:14px 16px; margin:16px 0; border-left:3px solid #f45d38; }
.next-step p { margin:5px 0 0; }
.entry-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:16px; }
.case-event { border-left:3px solid #f45d38; }
.case-event time { display:block; font-size:12px; color:#647681; margin-bottom:10px; }
.letter-excerpt,.version-content { white-space:pre-wrap; }
.version-content { padding:20px 0; line-height:1.8; max-height:55vh; overflow:auto; }
.version-row { padding:16px 0; border-bottom:1px solid #e6ebee; }
.version-row button { float:right; }
.reader-modal { width:min(1120px,96vw); max-width:1120px; }
.reader-columns { display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
.reader-columns figure { margin:0; min-width:0; }
.page-preview { display:block; max-width:100%; max-height:65vh; object-fit:contain; border:1px solid #e6ebee; background:#fff; }
.reader-columns textarea { min-height:380px; font-size:14px; line-height:1.65; }
.preview-error { font-size:12px; color:#647681; margin-top:8px; }
#upload-progress { white-space:pre-wrap; font-size:13px; line-height:1.9; max-height:250px; overflow:auto; }
.search-form { display:flex; gap:10px; }
.search-form input { flex:1; min-width:0; }
.search-result { padding:20px 0; border-bottom:1px solid #e6ebee; }
.search-result blockquote { margin:12px 0; padding:12px 16px; border-left:3px solid #f45d38; background:#fafbfc; white-space:pre-wrap; }
@media(max-width:800px) { .reader-columns { grid-template-columns:1fr; } .reader-columns textarea { min-height:220px; } .case-card-top { flex-direction:column; gap:8px; } .search-form { flex-direction:column; } }

[hidden] { display:none !important; }

.tabs .button { background:transparent; border-radius:6px 6px 0 0; padding:10px 12px; color:var(--muted); }
.tabs .button.active { background:#fff2ec; color:var(--navy); border-bottom:2px solid var(--orange); }
.reader-modal .modal-body { max-height:calc(90vh - 160px); overflow:auto; }

/* The drop target is an actual chooser and drop target, with a separate queue. */
.upload-dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; width:100%; min-height:155px; border:2px dashed #bacbd6; border-radius:12px; color:#04243b; background:#fbfcfd; padding:24px; text-align:center; }
.upload-dropzone:hover,.upload-dropzone:focus-visible { border-color:#f45d38; background:#fff8f4; }
.upload-dropzone.drag-active { border-color:#f45d38; background:#fff0e8; box-shadow:0 0 0 4px #f45d381a; }
.upload-dropzone strong { font-size:16px; }
.upload-dropzone span { font-size:12px; }
.upload-dropzone .upload-drop-icon { font-size:26px; font-weight:700; }
#upload-limits { margin:9px 0 16px; }
.upload-selection-head { display:flex; align-items:center; justify-content:space-between; font-size:12px; }
.upload-selection-list,.upload-result-list { list-style:none; margin:12px 0 20px; padding:0; max-height:240px; overflow:auto; }
.upload-selection-list li { display:flex; justify-content:space-between; gap:15px; padding:8px 0; font-size:12px; overflow-wrap:anywhere; border-bottom:1px solid #eef1f3; }
.upload-selection-list li span { color:#647681; flex-shrink:0; }
.upload-result-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 18px; padding:12px 0; font-size:12px; border-bottom:1px solid #e6ebee; }
.upload-result-list li span { overflow-wrap:anywhere; }
.upload-result-list small { grid-column:1/-1; color:#647681; line-height:1.6; }
.upload-meter { width:100%; height:9px; margin:16px 0 5px; accent-color:#f45d38; }
.upload-explanation { margin:0 0 20px!important; }
.upload-badge { position:fixed; right:24px; bottom:24px; z-index:8; padding:13px 17px; border-radius:12px; border:1px solid #d7e1e8; background:#fff; color:#04243b; font-weight:650; font-size:12px; box-shadow:0 6px 28px #04243b1c; }
.upload-badge:hover { border-color:#f45d38; }
@media(max-width:720px) { .upload-badge { right:14px; bottom:14px; } .upload-result-list li { grid-template-columns:1fr; } }

/* Document panels open the existing upload dialog when files are dropped. */
[data-document-drop] { transition:border-color .15s,box-shadow .15s; }
.document-drop-hint { display:flex; align-items:center; gap:10px; padding:14px 24px; color:#647681; background:#fbfcfd; border-bottom:1px dashed #d7e1e8; font-size:12px; line-height:1.6; }
.document-drop-hint span { color:#f45d38; font-size:20px; font-weight:650; }
[data-document-drop].drag-active { border-color:#f45d38; box-shadow:0 0 0 4px #f45d381a; }
[data-document-drop].drag-active .document-drop-hint { background:#fff0e8; color:#04243b; border-color:#f45d38; }
@media(prefers-reduced-motion:reduce) { [data-document-drop] { transition:none; } }

/* Keep file-drop feedback inside the dialog top layer. */
.modal-body.drag-active { outline:2px dashed #f45d38; outline-offset:-8px; background:#fff8f4; }
#modal-notice { margin-bottom:18px; }

@media(max-width:900px) { .file-row { flex-wrap:wrap; } .file-row>div:nth-child(2) { flex-basis:calc(100% - 60px); } }

/* Dossier checklists and correspondence stay readable on narrow screens. */
.evidence-summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; padding:15px 18px; margin:18px 0; background:#fff8f4; border:1px solid #f5ded1; border-radius:12px; }
.evidence-summary span { color:#647681; font-size:12px; }
.attachment-list { list-style:none; padding:0; margin:14px 0 22px; }
.attachment-list li { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid #e6ebee; }
.attachment-list li span { overflow-wrap:anywhere; min-width:0; }
.attachment-picker,#dispatch-fields { border:1px solid #d7e1e8; border-radius:10px; padding:16px; margin:16px 0 22px; min-width:0; }
.attachment-picker legend,#dispatch-fields legend { font-weight:650; padding:0 6px; }
.attachment-picker .check { overflow-wrap:anywhere; margin:12px 0; }
.dispatch-summary { background:#f6f9fb; border:1px solid #dce6ed; border-radius:10px; padding:16px; margin:15px 0; }
.dispatch-summary p { margin:7px 0; }
#completion-fields[hidden],#dispatch-fields[hidden] { display:none; }
@media(max-width:720px) { .attachment-list li { align-items:flex-start; flex-wrap:wrap; } #case-workbench>.tabs { flex-wrap:wrap; } }

#completion-fields { border:1px solid #d7e1e8; border-radius:10px; padding:16px; margin:16px 0 22px; min-width:0; }
#completion-fields legend { padding:0 6px; font-weight:650; }

/* Financial source views: white surfaces, clear amounts and bounded previews. */
.finance-toolbar,.finance-filter { display:flex; flex-wrap:wrap; align-items:flex-end; gap:15px; margin:22px 0; }
.finance-toolbar .field { min-width:260px; flex:1; }
.finance-filter .field { flex:1; min-width:150px; margin:0; }
.finance-filter button { margin-bottom:2px; }
.finance-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:22px 0; }
.finance-totals>div { padding:22px; border:1px solid #dce6ed; border-radius:12px; background:#fff; }
.finance-totals span { display:block; color:#647681; font-size:12px; margin-bottom:10px; }
.finance-totals strong { display:block; font-size:21px; }
.finance-amount { white-space:nowrap; font-variant-numeric:tabular-nums; }
.finance-preview,.finance-sample { max-height:340px; overflow:auto; margin:18px 0; border:1px solid #dce6ed; border-radius:10px; }
.finance-preview td,.finance-sample td { overflow-wrap:anywhere; min-width:100px; max-width:400px; }
.finance-pagination { display:flex; align-items:center; justify-content:flex-end; gap:15px; padding:16px 22px; }
.finance-review { padding:16px; border:1px solid #f5ded1; border-radius:10px; margin:12px 0; background:#fffaf6; }
@media(max-width:720px) { .finance-totals { grid-template-columns:1fr; } .finance-toolbar .field { min-width:0; width:100%; } }

/* Source-based payment checks */
.checks-filter{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:26px 0 12px}.checks-filter .field{min-width:230px;flex:1}.checks-filter .button{margin-bottom:18px}.check-card{background:#fff;border:1px solid var(--border,#e5e8eb);border-radius:14px;padding:24px;margin:16px 0}.check-card-heading{display:flex;justify-content:space-between;gap:18px;align-items:start}.check-card h2{font-size:20px;line-height:1.35;margin:0 0 12px}.check-card p{line-height:1.6;margin:8px 0}.check-next{color:#425562}.check-review{border-left:3px solid #f45d38;background:#fff9f6;padding:12px 16px;margin:16px 0}.check-sources{padding:20px 0}.checks-totals{margin:24px 0}.check-card .entry-actions{margin-top:18px}@media(max-width:650px){.check-card{padding:18px}.check-card-heading{display:block}.check-card-heading .badge{margin-bottom:8px}.checks-filter{display:block}}

.checks-totals{grid-template-columns:repeat(4,minmax(0,1fr))}.match-choice{border-left-color:#04243b;background:#f6f9fc}.match-choice strong{font-size:15px}.match-choice .entry-actions{margin-top:10px}@media(max-width:1100px){.checks-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.checks-totals{grid-template-columns:1fr}}

.agent-source{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.88rem;line-height:1.6;background:#f8fafb;padding:16px;border-radius:12px}.agent-answer{border-top:1px solid #e3e9ed;padding:24px 0}.agent-answer blockquote{margin:12px 0;padding:12px 16px;border-left:3px solid #f45d38;background:#fff8f5}.agent-answer details{margin:10px 0}.agent-answer summary{cursor:pointer;color:#04243b}

.report-reading{line-height:1.65;overflow-wrap:anywhere}.report-reading h2,.report-reading h3,.report-reading h4{margin:24px 0 10px}.report-reading blockquote{border-left:3px solid #f45d38;margin:12px 0;padding:12px 16px;background:#fff8f5}.report-reading ul{margin:8px 0;padding-left:22px}

/* Concrete correction proposals: short sections with room to read. */
.correction-summary{margin:20px 0 24px;line-height:1.55}
.correction-summary>h3,.correction-decision>h3{margin:22px 0 7px;font-size:15px;line-height:1.4}
.correction-summary>p{margin:0 0 12px;white-space:pre-line;overflow-wrap:anywhere}
.correction-summary .correction-amount{margin:18px 0 10px;padding:16px 18px;border:1px solid #e4eaf0;border-radius:12px;background:#f8fafc}
.correction-summary details{padding:12px 14px;margin:10px 0;border:1px solid #e4eaf0;border-radius:10px}
.correction-summary summary{cursor:pointer;font-size:13px;font-weight:600}
.correction-summary blockquote{margin:14px 0;padding-left:14px;border-left:3px solid #f45d38;white-space:pre-line}
.correction-decision{border-top:1px solid #e4eaf0;margin-top:24px;padding-top:4px}
.correction-decision>p{line-height:1.55;margin:8px 0 18px}
.correction-decision>label:not(.check){display:block;margin:12px 0}
.correction-decision select{display:block;width:100%;padding:11px 12px;border:1px solid #dce3e9;border-radius:9px;background:#fff;color:#04243b;margin-top:7px}
.correction-proof{border:1px solid #e4eaf0;border-radius:12px;margin:16px 0;padding:16px}
.correction-proof>label{display:block;font-size:13px;margin:14px 0}
.correction-proof textarea,.correction-proof select{display:block;width:100%;padding:11px 12px;border:1px solid #dce3e9;border-radius:9px;background:#fff;color:#04243b;margin-top:7px}
.correction-proof textarea{min-height:85px;resize:vertical}

.execution-row input{display:block;width:100%;padding:11px 12px;border:1px solid #dce3e9;border-radius:9px;margin-top:7px}.execution-row legend{font-weight:600}.correction-summary table{width:100%;border-collapse:collapse}.correction-summary td,.correction-summary th{text-align:left;padding:12px 8px;border-bottom:1px solid #e4eaf0}.correction-summary th{font-size:12px}.correction-summary td small{display:block;line-height:1.5;color:#647481}.checks-totals .badge{margin:4px 6px 4px 0}

/* Annual reconstruction: a small checklist, evidence one click away. */
.year-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:20px}
.year-card{margin:0}.year-card h2{font-size:2rem;margin:12px 0}.year-card p{min-height:44px}
.year-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:16px 0}
.year-check-card,.year-section{border:1px solid var(--line,#e5eaed);border-radius:12px;padding:16px;margin:12px 0;background:#fff;min-width:0}
.year-check-card strong{display:block;margin-bottom:10px}.year-check-card p{white-space:pre-wrap}.year-section legend{font-weight:700;padding:0 5px}.year-section select[multiple]{min-height:88px}

.year-grid>.year-card{margin:0}.year-section>summary{font-weight:700;cursor:pointer}.year-section[open]>summary{margin-bottom:12px}

.scan-source{padding:18px 0;border-bottom:1px solid var(--line,#e5eaed)}.scan-source:first-child{padding-top:0}.scan-source:last-child{border:0}.scan-folder{display:block;white-space:normal;overflow-wrap:anywhere;background:#f7f9fa;padding:12px;border-radius:8px;margin:12px 0}.scan-file-list{max-height:420px;overflow:auto;margin:16px 0}.scan-choice{display:flex;gap:12px;align-items:center;border:1px solid var(--line,#e5eaed);border-radius:10px;padding:12px;margin:8px 0}.scan-choice small{display:block;color:#687780;margin-top:5px}.scan-result{padding:12px 0;border-bottom:1px solid var(--line,#e5eaed)}.scan-result>strong{display:block;overflow-wrap:anywhere;margin-bottom:8px}

.attention-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:24px 0}.attention-filters>.entry-actions{align-self:end;grid-column:1/-1}.attention-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:20px 0}.attention-counts>div{border:1px solid var(--line,#e5eaed);border-radius:12px;padding:18px;background:white}.attention-counts strong{display:block;font-size:1.8rem;margin-bottom:7px}.attention-counts span{font-size:.85rem;color:#596b75}.attention-card{background:white;border:1px solid var(--line,#e5eaed);border-radius:14px;padding:22px;margin:16px 0}.attention-card h2{font-size:1.15rem;margin:14px 0 8px}.attention-card>p,.attention-next p{white-space:pre-wrap;overflow-wrap:anywhere}.attention-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.8rem;color:#596b75;flex-wrap:wrap}.attention-soon{border-left:3px solid #fc5c36}.attention-unchecked{font-weight:700;color:#8c5108}.attention-next{background:#f7f9fa;padding:14px;border-radius:9px;margin:14px 0}.attention-next p{margin:6px 0 0}.attention-source{font-size:.85rem;margin:14px 0}.attention-source summary{cursor:pointer}.attention-target{outline:3px solid #fc5c36;outline-offset:4px}.attention-home{margin-top:24px}.attention-home .attention-card{margin:10px 0}.attention-home .panel-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}

/* Handmatig onderbouwd bedragverloop */
.balance-part,.balance-movement{border:1px solid var(--line,#e4e8eb);border-radius:12px;margin:16px 0;padding:18px}.balance-part legend,.balance-movement legend{font-weight:700;padding:0 6px}.balance-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.balance-totals div{padding:14px;background:#f8fafb;border-radius:10px}.balance-totals dt{font-size:12px;color:#526570}.balance-totals dd{font-size:21px;font-weight:700;margin:8px 0 0}.balance-summary{margin:22px 0;padding:16px 0;border-bottom:1px solid #e4e8eb}.balance-proof{margin:10px 0}.balance-proof blockquote{white-space:pre-wrap;border-left:3px solid #ff6136;padding-left:12px;margin-left:0}@media(max-width:600px){.balance-totals{grid-template-columns:1fr}}

.reading-job{padding:18px 0;border-bottom:1px solid #e4e8eb}.reading-items{padding:0;list-style:none}.reading-items li{padding:12px 0;border-bottom:1px solid #edf0f2}.reading-items li:last-child{border-bottom:0}#reading-filters{display:grid;gap:12px;margin:18px 0}#reading-choices fieldset{border:1px solid #e4e8eb;border-radius:10px;margin-top:14px;padding:12px}

.document-family {border:1px solid var(--line,#e5e9ed);border-radius:12px;padding:18px;margin:18px 0 10px;background:#fff}.family-choice {border-bottom:1px solid var(--line,#e5e9ed);padding:12px 0}.document-family h3 {margin-top:0}.document-family .reading-items button {margin-left:8px}

.family-quote {white-space:pre-wrap;border-left:3px solid var(--orange,#ff6235);padding:10px 14px;margin:12px 0;background:#fafbfc;color:var(--ink,#052a40)}


/* Both reading modes keep the complete text in the original form field. */
.reader-text-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.reader-scroll-hint{font-size:12px;line-height:1.6;color:#173d52;font-weight:600}
.reader-readable{box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:scroll;scrollbar-gutter:stable;margin:8px 0 14px;padding:14px;border:1px solid #ccd7df;border-radius:8px;background:#fff;color:#082b40;font:inherit;font-size:14px;line-height:1.65;height:380px;min-height:220px}
.reader-columns #f-recognized_text{height:380px;overflow-y:scroll;scrollbar-gutter:stable}
.reader-text-enlarged #f-recognized_text,.reader-text-enlarged .reader-readable{height:70vh;min-height:380px}
.reader-noise{margin:14px 0;border:1px solid #e2e9ee;border-radius:8px;padding:12px;background:#fafcfd}
.reader-noise summary{cursor:pointer;font-size:13px;font-weight:600;color:#14394e}
.reader-noise p{font-size:12px;line-height:1.7;margin:10px 0}
.reader-noise pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px;line-height:1.5}
.reader-columns #f-reason{min-height:90px;height:90px}

.reader-columns>section{min-width:0}
.reader-columns.reader-text-only{grid-template-columns:1fr}
.reader-readable{width:100%;max-width:100%}

.reader-document-tools{position:sticky;top:0;z-index:2;display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#fff;padding:10px 0;margin:8px 0 0;border-bottom:1px solid #e2e9ee}

/* Briefcheck: the meaning first, source details when needed. */
.letter-modal{width:min(1080px,96vw);max-width:1080px;background:#fff}
.letter-modal .modal-body{max-height:calc(90vh - 160px);overflow:auto;padding:28px 32px}
.letter-modal .modal-foot{background:#fff}
.letter-file{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;margin-bottom:22px;overflow-wrap:anywhere}
.letter-file span{color:#5f7487}
.letter-summary{padding:24px 26px;background:#f3f7fa;border-radius:12px;border-left:4px solid #ff633d}
.letter-eyebrow{font-size:12px;font-weight:700;color:#526c81}
.letter-summary h3{font-size:22px;line-height:1.5;margin:8px 0 12px;letter-spacing:-.3px}
.letter-summary p,.letter-next p,.letter-attention p,.letter-evidence p,.letter-registration p,.letter-limits p{font-size:13px;line-height:1.7;margin-top:8px}
.letter-summary p{color:#526c81}
.letter-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:26px 0;padding-bottom:24px;border-bottom:1px solid #e0e8ee}
.letter-fact dt{font-size:12px;color:#526c81;margin-bottom:8px}
.letter-fact dd{margin:0;font-size:17px;font-weight:650;overflow-wrap:anywhere;line-height:1.5}
.letter-next{margin:22px 0}.letter-next h3,.letter-columns h3,.letter-registration h3{font-size:16px}
.letter-attention{padding:14px 18px;border:1px solid #f2d4b5;background:#fffaf4;border-radius:8px;font-size:13px;margin:20px 0}
.letter-warning{color:#8a551d}.letter-missing{font-size:13px;line-height:1.7;margin:18px 0;color:#526c81}
.letter-evidence,.letter-registration,.letter-limits{border-top:1px solid #e0e8ee;margin-top:24px;padding-top:20px}
.letter-evidence>summary{font-weight:650;font-size:15px;cursor:pointer}
.letter-columns{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin-top:22px}
.letter-columns>section{min-width:0}.letter-data-row{border-bottom:1px solid #e5ebf0;padding:16px 0}
.letter-data-row>div{display:flex;justify-content:space-between;gap:16px;font-size:13px;line-height:1.6}
.letter-data-row>div>span,.letter-data-row .check{color:#526c81;text-transform:none}
.letter-data-row strong{overflow-wrap:anywhere;text-align:right;max-width:65%}
.letter-data-row .check{margin:0;font-size:13px;align-items:flex-start}.letter-data-row input{margin-top:4px}
.letter-sources{margin-top:8px;font-size:12px;line-height:1.7}.letter-sources summary{color:#526c81;cursor:pointer}
.letter-sources details{margin-top:10px}.letter-sources blockquote{white-space:pre-wrap;overflow-wrap:anywhere}
.letter-save-hint{font-size:13px;line-height:1.7;margin-top:24px;color:#526c81}
.letter-registration .field{margin-top:16px}.letter-limits{font-size:12px;color:#526c81}
@media(max-width:760px){.letter-modal .modal-body{padding:20px}.letter-facts{grid-template-columns:1fr 1fr;gap:18px}.letter-columns{grid-template-columns:1fr;gap:24px}.letter-summary{padding:18px}.letter-summary h3{font-size:19px}}
@media(max-width:400px){.letter-facts{grid-template-columns:1fr}.letter-data-row>div{flex-direction:column;gap:4px}.letter-data-row strong{text-align:left;max-width:100%}}
.letter-main-columns{margin:22px 0}.letter-main-columns .letter-next{margin:0}
.letter-breakdown dl{margin:12px 0}.letter-breakdown dl>div{display:flex;justify-content:space-between;gap:16px;font-size:13px;line-height:1.6;padding:7px 0;border-bottom:1px solid #edf1f4}
.letter-breakdown dt{color:#526c81}.letter-breakdown dd{margin:0;white-space:nowrap;font-weight:600}

.letter-subject{margin:24px 0 0}.letter-subject .letter-fact dd{font-size:17px;line-height:1.5}.letter-subject+.letter-facts{margin-top:20px}

.letter-ai-invite{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:18px 0;border:1px solid #dbe7ee;border-radius:12px;background:#f7fafc}.letter-ai-invite p{font-size:14px;margin:6px 0 0;color:var(--muted)}.letter-ai-invite .button{flex-shrink:0}@media(max-width:640px){.letter-ai-invite{align-items:flex-start;flex-direction:column}}

.letter-main-full{grid-template-columns:1fr}.letter-main-full .letter-next{max-width:900px}

/* Shared modal rhythm: meaning first, clear sections, actions always reachable. */
#modal-form{display:flex;flex-direction:column;max-height:90vh;min-height:0}
.modal-head,.modal-foot{flex:0 0 auto;background:#fff}
.modal-body{min-height:0;overflow:auto;overscroll-behavior:contain}
.modal-body>p{font-size:14px;line-height:1.75;margin:0 0 16px}
.modal-body>p.meta,.modal-body .meta{font-size:12px;line-height:1.75}
.modal-body .field{margin-bottom:18px}
.modal-body>.info,.modal-body>.error{margin:18px 0}
.modal-foot{flex-wrap:wrap;align-items:center}
.step-modal{width:min(980px,96vw);max-width:980px;background:#fff}
.step-modal .modal-body{padding:28px 32px}
.modal-intro{margin:0 0 24px}
.modal-kicker{display:block;font-size:11px;line-height:1.5;font-weight:700;color:#5b7386;margin-bottom:8px}
.modal-intro h3{font-size:23px;line-height:1.4;letter-spacing:-.35px;margin:0 0 10px}
.modal-intro p,.modal-card p,.modal-callout p{font-size:14px;line-height:1.75;margin:10px 0 0;color:#496174}
.modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}
.modal-grid>section{min-width:0}
.modal-card{padding:22px 24px;border:1px solid #dce6ed;border-radius:12px;background:#fff;margin:20px 0}
.modal-grid .modal-card{margin:0}
.modal-card h3{font-size:19px;line-height:1.45;margin:0 0 8px;letter-spacing:-.2px}
.modal-card details{margin-top:18px;font-size:13px;line-height:1.7}
.modal-card summary,.modal-history-section>summary{font-weight:650;cursor:pointer;color:#163b50}
.modal-key-values{display:grid;gap:14px;margin:18px 0 0}
.modal-key-values>div{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.modal-key-values dt{font-size:12px;color:#5b7386;line-height:1.7;flex:1}
.modal-key-values dd{margin:0;text-align:right;font-size:14px;font-weight:650;line-height:1.6;max-width:68%;overflow-wrap:anywhere}
.modal-key-values small{display:block;font-size:11px;font-weight:400;color:#5b7386}
.modal-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.modal-callout{background:#fff9f2;border:1px solid #f2d2af;border-radius:10px;padding:18px 22px;margin:22px 0;font-size:14px;line-height:1.65}
.modal-callout p{font-size:13px;margin-top:4px}
.modal-privacy{display:flex;justify-content:space-between;gap:24px;background:#f7fafc}
.modal-privacy .modal-actions{margin-top:0;align-self:flex-start;flex-shrink:0}
.modal-consent{display:flex;align-items:flex-start;gap:12px;border-radius:10px;background:#f5f8fa;padding:18px 20px;font-size:13px!important;line-height:1.7;margin:24px 0!important}
.modal-consent input{margin-top:4px;flex-shrink:0;width:16px;height:16px;accent-color:#ff633d}
.modal-history-section{border-top:1px solid #e0e8ee;margin-top:24px;padding-top:20px;font-size:14px}
.modal-history{list-style:none;padding:0;margin:12px 0 0}
.modal-history>li{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #e7edf2;padding:14px 0;font-size:13px;line-height:1.6}
.modal-history strong,.modal-history span{display:block}
.modal-history span{font-size:12px;color:#5b7386;margin-top:4px}
.modal-history>li>div{min-width:0}
.modal-footnote{font-size:12px!important;line-height:1.75!important;color:#5b7386;margin:24px 0 0!important}
.company-review{margin:24px 0}.company-review .modal-key-values{padding-bottom:12px}
.company-review textarea{min-height:90px}
@media(max-width:700px){.step-modal .modal-body{padding:22px}.modal-grid{grid-template-columns:1fr}.modal-card{padding:20px}.modal-privacy{display:block}.modal-privacy .modal-actions{margin-top:16px}.modal-history>li{align-items:flex-start;flex-wrap:wrap}.modal-foot{padding:16px 20px}.modal-key-values>div{gap:12px}}

.previous-company-name{padding:18px 0;border-bottom:1px solid #e4ebef;margin-bottom:16px}.previous-company-name .field{margin-bottom:14px}.previous-company-name:last-child{border-bottom:0}

/* Reader: the same quiet hierarchy as Briefcheck, with source and text side by side. */
.reader-modal .modal-body{padding:26px 30px}
.reader-file{margin-bottom:20px}
.reader-flow{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:20px 24px;border-radius:12px;background:#f3f7fa;border-left:4px solid var(--orange);margin-bottom:20px}
.reader-flow>section{min-width:0}
.reader-flow>section+section{border-left:1px solid #dce6ed;padding-left:30px}
.reader-flow .modal-kicker{margin-bottom:5px}
.reader-flow h3{font-size:18px;line-height:1.45;letter-spacing:-.2px;margin:0 0 6px}
.reader-flow p{font-size:13px;line-height:1.7;color:#496174;margin:6px 0 0}
.reader-flow .reader-provenance{font-size:12px;color:#5b7386}
.reader-document-tools{padding:10px 0 14px;margin:0;border-bottom:1px solid #e0e8ee}
.reader-page-bar{display:flex;align-items:center;gap:20px;justify-content:space-between;margin:18px 0;font-size:12px;color:#526c81}
.reader-pages{margin:0;border:0;gap:6px;min-width:0;flex-wrap:wrap;justify-content:flex-end}
.reader-pages .button{border:1px solid #dce5ec;border-radius:7px;padding:7px 12px;min-width:34px;background:#fff}
.reader-pages .button.active{border:1px solid #f7c9ba;background:#fff0e9;color:#04243b}
.reader-columns{gap:20px}
.reader-pane{border:1px solid #dce6ed;border-radius:12px;background:#fff;padding:20px;overflow:hidden;min-width:0}
.reader-pane-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.reader-pane-head h3{font-size:17px;line-height:1.4;letter-spacing:-.2px;margin:0}
.reader-pane-head>span{font-size:12px;color:#5b7386;white-space:nowrap}
.reader-preview-stage{display:flex;justify-content:center;background:#f5f8fa;border-radius:8px;padding:14px}
.reader-preview-stage .page-preview{max-height:65vh;box-shadow:0 2px 10px #04243b0a}
.reader-original .preview-error{font-size:12px;line-height:1.7;margin:12px 0 0;color:#5b7386}
.reader-text-tools{gap:8px;align-items:flex-start;margin:0 0 14px}
.reader-scroll-hint{display:block;flex-basis:100%;font-size:12px;font-weight:500;color:#526c81;line-height:1.7}
.reader-mode-choice{margin:0 0 14px;padding:12px 14px;background:#f6f9fb;border-radius:8px}
.reader-noise-note{font-size:12px;line-height:1.7;color:#496174;margin:0}
.reader-mode-choice .entry-actions{gap:8px;margin-top:10px}
.reader-mode-choice .button[aria-pressed=true]{background:#fff0e9;border-color:#f7c9ba}
.reader-transcript .field>label{font-size:12px;color:#526c81;margin-bottom:8px}
.reader-transcript #f-recognized_text,.reader-transcript .reader-readable{margin:0;border-color:#dce6ed;border-radius:8px;padding:16px;line-height:1.8;font-size:14px}
.reader-transcript .reader-readable{margin-top:8px}
.reader-edit-hint{font-size:12px;line-height:1.7;color:#526c81;margin:12px 0 0}
.reader-transcript #reader-reason{border-top:1px solid #e0e8ee;margin-top:18px;padding-top:18px}
.reader-transcript #reader-reason .field{margin-bottom:0}
.reader-noise{background:#fff;border-color:#dce6ed;margin-bottom:0}
.reader-modal .modal-foot{row-gap:10px}
@media(max-width:800px){.reader-modal .modal-body{padding:20px}.reader-flow{gap:16px;padding:18px}.reader-flow>section+section{padding-left:16px}.reader-pane{padding:16px}}
@media(max-width:600px){.reader-flow{grid-template-columns:1fr;gap:16px}.reader-flow>section+section{border-left:0;border-top:1px solid #dce6ed;padding:16px 0 0}.reader-page-bar{align-items:flex-start;gap:12px}.reader-page-bar>span{padding-top:9px;white-space:nowrap}.reader-preview-stage{padding:10px}.reader-modal .modal-foot .button{flex:1 1 auto;text-align:center}.reader-modal .modal-foot [type=submit]{flex-basis:100%}}

.ai-selected-text{max-height:420px;overflow:auto;padding:12px 0}.ai-selected-text pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;padding:14px;background:#f5f8fa;border-radius:8px}.ai-selected-text h4{margin:20px 0 8px}

.ai-page-progress{background:#f5f9fb;border-color:#d3e3ec}
.ai-page-progress .modal-history>li:last-child{border-bottom:0}
.ai-page-overlap[hidden]{display:none}

.ai-document-progress{width:100%;height:14px;accent-color:#ff5b36;margin:16px 0 24px}

/* Dossierpagina: dezelfde rustige hiërarchie als Briefcheck. */
.dossier-page > .heading{align-items:flex-start;margin-bottom:22px;gap:20px;flex-wrap:wrap}
.dossier-page > .heading > div{min-width:0;flex:1 1 360px}
.dossier-page > .heading h1{overflow-wrap:anywhere}
.dossier-page > .heading > .button{flex-shrink:0;margin-top:6px}
.dossier-statuses{gap:12px 22px;margin-bottom:24px}
.dossier-status{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.dossier-status .badge{font-size:11px}
.dossier-updated{margin-left:auto}
.dossier-summary-grid{align-items:start;margin-bottom:24px}
.dossier-main-summary{min-width:0}
.dossier-document-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.dossier-page .panel-head{align-items:flex-start}
.dossier-page .panel-head > div:first-child{min-width:0}
.dossier-page .dossier-file-row{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:10px 14px;padding:20px 24px}
.dossier-file-row > div:nth-child(2){min-width:0}
.dossier-file-row .name{overflow-wrap:anywhere;line-height:1.6}
.dossier-file-row .file-icon{margin-top:3px}
.dossier-file-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:8px;min-width:0;margin-top:4px}
.dossier-file-actions .button{margin:0;min-height:34px}
.dossier-next .panel-body{padding-bottom:20px}
.dossier-next-action{font-size:15px;line-height:1.75;color:var(--navy);overflow-wrap:anywhere}
.dossier-facts{display:grid;gap:18px;margin:22px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.dossier-facts dt{font-size:11px;color:var(--muted);margin-bottom:7px}
.dossier-facts dd{margin:0;font-size:13px;line-height:1.7;color:var(--navy);overflow-wrap:anywhere}
.dossier-deadline-status{margin-top:8px}
.dossier-next-note{padding:16px 24px;background:#fbfcfd;border-top:1px solid var(--line);font-size:11px;line-height:1.75;color:var(--muted)}
.dossier-help{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-bottom:1px solid var(--line);background:#f8fafc}
.dossier-help h2{font-size:20px;letter-spacing:-.5px;line-height:1.35}
.dossier-help p{margin-top:8px;font-size:13px;line-height:1.7;color:var(--muted)}
.dossier-help > .button{flex-shrink:0;min-height:42px}
.dossier-tool-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:24px}
.dossier-tool-group{min-width:0;padding:0 24px}
.dossier-tool-group:first-child{padding-left:0}
.dossier-tool-group:last-child{padding-right:0}
.dossier-tool-group + .dossier-tool-group{border-left:1px solid var(--line)}
.dossier-tool-group h3{font-size:14px;line-height:1.5}
.dossier-tool-group > p{margin:6px 0 14px;font-size:12px;line-height:1.7;color:var(--muted)}
.dossier-tool-list{display:grid;gap:4px}
.dossier-tool{width:100%;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:9px 10px;margin:0 -10px;border:1px solid transparent;border-radius:7px;background:#fff;color:var(--navy);font-size:12px;font-weight:600;line-height:1.5}
.dossier-tool span{min-width:0;overflow-wrap:anywhere}
.dossier-tool svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:#7d91a0}
.dossier-tool:hover{background:#f6f9fb;border-color:#e1e9ef}
.dossier-tool:focus-visible{outline:2px solid var(--orange);outline-offset:2px;background:#fff8f4}
.dossier-tools{margin-bottom:28px}
.dossier-page #case-workbench{margin-top:0}
.dossier-page .workbench-heading{margin-bottom:20px}
.dossier-page .case-card{padding:22px}
.dossier-page .case-card .next-step p{margin-bottom:0}
.dossier-task-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.dossier-task-links:empty{display:none}
.dossier-page #case-workbench > .tabs{gap:6px;flex-wrap:wrap;margin-bottom:22px}
.dossier-page #case-workbench > .tabs .button{gap:8px;min-height:42px}
.dossier-page #case-workbench > .tabs .button > span{display:inline-grid;place-items:center;min-width:21px;height:21px;border-radius:6px;background:#f0f4f7;font-size:10px;font-weight:650}
.dossier-page #case-workbench > .tabs .button.active > span{background:#ffe0d3}
@media(max-width:1100px){.dossier-updated{margin-left:0}.dossier-next .panel-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px}.dossier-facts{margin:0;padding:0 0 0 24px;border-top:0;border-left:1px solid var(--line)}}
@media(max-width:960px){.dossier-tool-groups{gap:22px;padding:22px;grid-template-columns:1fr}.dossier-tool-group,.dossier-tool-group:first-child,.dossier-tool-group:last-child{padding:0}.dossier-tool-group + .dossier-tool-group{border-left:0;border-top:1px solid var(--line);padding-top:22px}.dossier-tool-group > p{margin-bottom:10px}.dossier-tool-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 28px}.dossier-tool{margin:0;width:100%}}
@media(max-width:600px){.dossier-page > .heading > div{flex-basis:100%}.dossier-page > .heading > .button{margin-top:0}.dossier-statuses{gap:10px 16px}.dossier-updated{flex-basis:100%}.dossier-page .panel-head{flex-wrap:wrap;gap:14px}.dossier-document-actions{justify-content:flex-start}.dossier-page .dossier-file-row{padding:18px}.dossier-file-actions{grid-column:1/-1;gap:8px}.dossier-file-actions .button{white-space:normal;text-align:center}.dossier-next .panel-body{display:block}.dossier-facts{margin:20px 0 0;padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}.dossier-next-note{padding:16px 20px}.dossier-help{align-items:flex-start;flex-direction:column;gap:18px;padding:20px}.dossier-tool-groups{padding:20px;gap:20px}.dossier-tool-list{grid-template-columns:1fr;gap:2px}.dossier-tool{min-height:42px}.dossier-tool-group + .dossier-tool-group{padding-top:20px}.dossier-page .case-card{padding:18px}.dossier-page .case-card-top h3{font-size:16px;line-height:1.5}.dossier-page .entry-actions{padding-top:14px;border-top:1px solid var(--line)}}

/* Werkbankvensters: korte uitleg, duidelijke invoergroepen en vaste actieknoppen. */
.dossier-tool-group > p{min-height:3.4em}
.workbench-editor-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin:24px 0}
.workbench-editor-grid > .modal-card{margin:0;min-width:0}
.workbench-editor .modal-card > h3{margin-bottom:18px}
.workbench-editor .modal-card > p{margin:0 0 18px}
.workbench-editor .modal-card > .field:last-child{margin-bottom:0}
.workbench-editor input,.workbench-editor select,.workbench-editor textarea{width:100%;max-width:100%}
.workbench-editor .check input{width:auto;flex-shrink:0}
.workbench-editor .field label{font-size:12px;line-height:1.6}
.workbench-editor .field textarea{min-height:110px;font-size:13px}
.workbench-editor textarea[name=content]{min-height:340px;line-height:1.9}
.workbench-editor [hidden]{display:none!important}
.workbench-editor fieldset.modal-card legend{font-size:16px;font-weight:650;color:var(--navy);padding:0 8px}
.workbench-editor .attachment-picker{padding:16px;margin-top:20px;border:1px solid var(--line);border-radius:10px;min-width:0}
.workbench-editor .attachment-picker legend{font-size:13px;font-weight:650;padding:0 6px}
.workbench-editor .attachment-picker p{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:12px}
.workbench-attachments{max-height:240px;overflow:auto;scrollbar-gutter:stable}
.workbench-attachments .check{align-items:flex-start;overflow-wrap:anywhere;line-height:1.6}
.workbench-modal .version-content{font-size:14px;line-height:1.9;max-height:none;padding:0}
.workbench-version-list{list-style:none;padding:0;margin:20px 0 0}
.workbench-version-list > li{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;padding:20px 0;border-top:1px solid var(--line)}
.workbench-version-list > li > div{min-width:0}
.workbench-version-list p{font-size:13px;line-height:1.75;margin:8px 0;overflow-wrap:anywhere}
.workbench-version-list .button{flex-shrink:0}
@media(max-width:960px){.dossier-tool-group > p{min-height:0}}
@media(max-width:700px){.workbench-editor-grid{grid-template-columns:1fr;gap:16px}.workbench-editor textarea[name=content]{min-height:260px}.workbench-version-list > li{flex-wrap:wrap;gap:12px}.workbench-modal .modal-foot{flex-wrap:wrap;gap:10px}.workbench-modal .modal-foot .button{flex:1 1 auto;white-space:normal}}
.workbench-modal .modal-head h2{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.workbench-modal .modal-head .quiet{flex-shrink:0}
.workbench-modal .version-content{overflow-wrap:anywhere}
.workbench-editor .modal-consent input{width:16px}
@media(max-width:600px){.dossier-tool,.dossier-file-actions .button,.dossier-document-actions .button,.dossier-page .entry-actions .button{min-height:44px}}
@media(max-width:600px){.topbar .tenant-select{max-width:min(200px,calc(100vw - 180px))}}

/* Dossierfuncties: één herkenbare hiërarchie, ook vóór de eerste invoer. */
.tool-modal .modal-body{padding:28px 32px}
.tool-modal .modal-head{gap:20px;align-items:flex-start}
.tool-modal .modal-head h2{font-size:23px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.tool-modal .modal-head .quiet{flex-shrink:0;border-radius:7px}
.tool-modal :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.tool-modal .modal-foot{gap:10px;flex-wrap:wrap}
.tool-modal .modal-foot .button{white-space:normal;min-height:40px}
.tool-view{min-width:0;display:flow-root;font-size:14px;line-height:1.75;color:var(--navy)}
.tool-view [hidden]{display:none!important}
.tool-view :is(p,li,blockquote,legend,summary,h3,h4,label){overflow-wrap:anywhere}
.tool-view > p{margin:0 0 20px;color:#496174}
.tool-view > h3{font-size:16px;line-height:1.5;margin:28px 0 14px}
.tool-view > .field,.tool-view > label:not(.check){margin:20px 0}
.tool-view > .button{margin:4px 8px 16px 0}
.tool-view .button{white-space:normal;line-height:1.5;max-width:100%}
.tool-view .button + .button{margin-left:8px}
.tool-view .entry-actions .button + .button,.tool-actions .button + .button{margin-left:0}
.tool-intro{margin:0 0 26px;max-width:760px}
.tool-intro h3{font-size:24px;letter-spacing:-.4px;line-height:1.4;margin:0 0 10px}
.tool-intro p{font-size:14px;color:#496174;line-height:1.8;margin:0}
.tool-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0}
.tool-actions .button{margin:0}
.tool-section{margin:28px 0 0;padding-top:26px;border-top:1px solid var(--line);min-width:0}
.tool-section-head{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.tool-section-head h3{font-size:16px;line-height:1.5;margin:0;letter-spacing:-.1px}
.tool-section-head p{font-size:13px;line-height:1.75;margin:0;color:#60788b;max-width:680px}
.tool-empty{display:flex;align-items:flex-start;gap:18px;border:1px solid #dce6ed;background:#f7fafc;border-radius:12px;padding:24px;margin:24px 0}
.tool-section .tool-empty{margin:0}
.tool-empty > div{min-width:0;flex:1}
.tool-empty-mark{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:#e8eff4;color:#526c81;font-size:20px}
.tool-empty h3{font-size:18px;letter-spacing:-.2px;line-height:1.5;margin:0 0 6px}
.tool-empty p{font-size:14px;line-height:1.8;color:#496174;margin:0;max-width:660px}
.tool-empty .tool-actions{margin:18px 0 0}
.tool-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:16px;margin:24px 0}
.tool-choice{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border:1px solid #dce6ed;border-radius:12px;padding:22px;text-align:left;background:#fff;color:var(--navy);min-width:0;line-height:1.65}
.tool-choice > span:first-child{display:grid;gap:10px;min-width:0}
.tool-choice strong{font-size:16px;line-height:1.5;letter-spacing:-.15px}
.tool-choice > span:first-child > span{font-size:13px;line-height:1.75;font-weight:400;color:#496174}
.tool-choice-arrow{font-size:20px;color:#7d91a0;flex-shrink:0;line-height:1.2}
.tool-choice:hover{border-color:#ffc1ac;background:#fff9f5}
.tool-choice:hover .tool-choice-arrow{color:var(--orange)}
.tool-view .modal-card{margin:24px 0}
.tool-view .modal-grid{margin:24px 0;align-items:start}
.tool-view .modal-grid:empty{display:none}
.tool-view .modal-grid > .modal-card{margin:0}
.tool-view :is(.agent-answer,.document-family){margin:20px 0;padding:24px;border:1px solid #dce6ed;border-radius:12px;background:#fff;min-width:0}
.tool-view :is(.agent-answer,.document-family) :is(h3,h4){line-height:1.5;margin:0 0 12px;font-size:18px}
.tool-view :is(.agent-answer,.document-family) p{line-height:1.8;margin:10px 0;color:#496174}
.tool-view :is(.agent-answer,.document-family) .button{margin:8px 8px 0 0}
.tool-view :is(.agent-answer,.document-family) .button + .button{margin-left:0}
.tool-view .entry-actions{gap:10px;margin:18px 0;flex-wrap:wrap}
.tool-view .entry-actions .button{margin:0}
.tool-view :is(.modal-footnote,.footer-note){margin:24px 0 0;padding-top:18px;border-top:1px solid var(--line);color:#60788b;font-size:12px;line-height:1.8}
.tool-view :is(.info,.modal-callout){margin:20px 0;line-height:1.8;font-size:13px}
.tool-view details{margin:16px 0;min-width:0}
.tool-view summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.7;color:#24475d}
.tool-view blockquote{font-size:13px;line-height:1.8;margin:16px 0;padding:14px 18px;border-left:3px solid var(--orange);background:#f7fafc}
.tool-view pre{max-height:400px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8}
.tool-view :is(input:not([type=checkbox]):not([type=radio]),select,textarea){display:block;width:100%;min-width:0;max-width:100%;padding:11px 13px;border:1px solid #dce5ec;border-radius:8px;background:#fff;color:var(--navy);font:inherit;font-size:13px;line-height:1.6}
.tool-view textarea{min-height:110px;resize:vertical}
.tool-view :is(input,select,textarea):disabled{background:#f5f7f9;color:#60788b}
.tool-view label:not(.check):has(> :is(input,select,textarea)){display:block;margin:18px 0;font-size:12px;font-weight:550;color:#526c81;line-height:1.6}
.tool-view label:not(.check) > :is(input,select,textarea){margin-top:8px}
.tool-view .field label{display:block;font-size:12px;font-weight:550;line-height:1.6;margin-bottom:8px;color:#526c81}
.tool-view .field small{display:block;font-size:11px;line-height:1.75;margin-top:8px;color:#60788b}
.tool-view .check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.75;color:#496174;margin:14px 0;min-width:0}
.tool-view .check input{width:16px;height:16px;flex:0 0 16px;margin:4px 0 0;accent-color:var(--orange)}
.tool-view fieldset{border:1px solid #dce6ed;border-radius:12px;padding:20px 22px;margin:24px 0;min-width:0}
.tool-view legend{font-size:14px;font-weight:600;padding:0 8px;color:var(--navy)}
.tool-view fieldset > :first-child{margin-top:0}
.tool-view fieldset > :last-child{margin-bottom:0}
.tool-view .tool-form-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:20px;align-items:start}
.tool-form-grid > :is(.field,label:not(.check)){margin:0}
.tool-view .tool-form-grid label.tool-field{margin:0}
.tool-search-form h3{font-size:17px;margin:0 0 20px}
.tool-consent{background:#f7fafc;border-radius:12px;border:1px solid #dce6ed;padding:20px 24px;margin:24px 0}
.tool-consent h3{font-size:15px;margin:0 0 16px}
.tool-consent .sub{font-size:12px;line-height:1.8;margin:14px 0 0}
.tool-consent [role=status]:empty{display:none}
.tool-consent [role=status]:not(:empty){border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.tool-view .family-choice{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,230px);gap:20px;align-items:start;padding:16px 0;border-bottom:1px solid var(--line)}
.tool-view .family-choice:last-child{border-bottom:0}
.tool-view .family-choice .field,.tool-view .family-choice .check{margin:0}
@media(max-width:700px){.tool-modal .modal-body{padding:22px}.tool-modal .modal-head{padding:20px}.tool-modal .modal-head h2{font-size:21px}.tool-intro h3{font-size:22px}.tool-empty{padding:20px;gap:14px}.tool-view .tool-form-grid{grid-template-columns:1fr;gap:18px}.tool-view .tool-form-grid .field{margin:0}.tool-view fieldset{padding:18px}.tool-view .family-choice{grid-template-columns:1fr;gap:12px}.tool-choices{grid-template-columns:1fr;gap:12px}.tool-choice{padding:20px}.tool-modal .modal-foot .button{flex:1 1 auto}.tool-view .modal-grid{grid-template-columns:1fr}}
@media(max-width:420px){.tool-modal .modal-body{padding:20px 18px}.tool-empty-mark{display:none}.tool-actions .button,.tool-empty .button{min-height:44px}.tool-modal .modal-foot .button{min-height:44px}.tool-view :is(.agent-answer,.document-family){padding:18px}.tool-consent{padding:18px}}
.tool-research-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start;margin:24px 0}
.tool-research-grid > :is(.modal-card,.tool-consent){margin:0}
.tool-research-grid .tool-form-grid{grid-template-columns:minmax(100px,.75fr) minmax(0,1.25fr);gap:18px}
.tool-research-grid .tool-consent .check{margin:14px 0}
@media(max-width:800px){.tool-research-grid{grid-template-columns:1fr}}

@media(max-width:600px){.tool-research-grid .tool-form-grid{grid-template-columns:1fr}}

/* Overzicht: korte stand, concrete acties en een rustige ingang naar je dossiers. */
.overview-page > .heading{gap:24px;align-items:flex-start;margin-bottom:26px}
.overview-page > .heading > div:first-child{flex:1;min-width:0}
.overview-page > .heading h1{font-size:clamp(27px,2.5vw,34px);line-height:1.35;overflow-wrap:anywhere}
.overview-page > .heading .sub{font-size:14px;margin-top:8px}
.overview-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;padding-top:4px}
.overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 28px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.overview-metrics > div{padding:22px;min-width:0}
.overview-metrics > div + div{border-left:1px solid var(--line)}
.overview-metrics dt{font-size:12px;line-height:1.6;font-weight:550;color:#60788b}
.overview-metrics dd{margin:10px 0 0}
.overview-metric-value{display:block;font-size:30px;line-height:1.25;font-weight:700;letter-spacing:-.6px;overflow-wrap:anywhere}
.overview-metric-value.overview-metric-text{font-size:17px;letter-spacing:-.2px;line-height:1.5}
.overview-metrics dd > span{display:block;font-size:11px;line-height:1.7;color:#60788b;margin-top:8px}
.overview-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px;align-items:start}
.overview-main,.overview-side{display:grid;gap:24px;min-width:0;align-items:start}
.overview-main > .panel + .panel,.overview-side > .panel + .panel{margin-top:0}
.overview-page .panel-head{align-items:flex-start;padding:22px 24px;gap:16px}
.overview-page .panel-head > div{min-width:0}
.overview-page .panel-head h2{font-size:18px;line-height:1.5;letter-spacing:-.3px}
.overview-page .panel-head p{font-size:12px;margin-top:6px;color:#60788b}
.overview-page .panel-head .button.link{flex-shrink:0;font-size:12px;white-space:normal;text-align:right;min-height:30px}
.overview-attention{border-top:3px solid var(--orange)}
.overview-attention .modal-kicker{margin-bottom:6px}
.overview-attention-list{list-style:none;padding:0;margin:0}
.overview-attention-item{padding:24px;border-bottom:1px solid var(--line);min-width:0}
.overview-attention-item:last-child{border-bottom:0}
.overview-attention-item .attention-meta{font-size:11px;gap:10px;align-items:flex-start;line-height:1.7}
.overview-attention-item h3{font-size:17px;letter-spacing:-.2px;line-height:1.5;margin:14px 0 5px;overflow-wrap:anywhere}
.overview-attention-context{font-size:11px;line-height:1.8;color:#60788b;overflow-wrap:anywhere}
.overview-attention-action{font-size:14px;line-height:1.8;margin:14px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.overview-attention-why{font-size:12px;line-height:1.8;margin:12px 0 0;color:#496174}
.overview-attention-why summary{display:list-item;cursor:pointer;font-size:11px;text-decoration:underline;text-underline-offset:3px;color:#60788b}
.overview-attention-why p{padding:12px 14px;background:#f7fafc;border-radius:8px;margin-top:10px;overflow-wrap:anywhere;white-space:pre-wrap}
.overview-attention-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px}
.overview-attention-bottom .meta{font-size:11px;line-height:1.8;min-width:0;flex:1 1 180px}
.overview-attention-bottom .button{min-height:36px;white-space:normal;text-align:center}
.overview-attention-note{padding:14px 24px;border-top:1px solid var(--line);font-size:11px;line-height:1.8;color:#60788b;background:#fbfcfd}
.overview-attention-empty{padding:26px 24px}
.overview-attention-empty h3{font-size:16px;line-height:1.5}
.overview-attention-empty p{font-size:13px;line-height:1.8;color:#496174;margin-top:10px}
.overview-attention-empty .meta{font-size:11px;color:#60788b}
.overview-cases{padding:0;margin:0;list-style:none}
.overview-cases > li{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line)}
.overview-cases > li:last-child{border:0}
.overview-case-main{min-width:0;flex:1}
.overview-case-open{background:transparent;border:0;padding:0;text-align:left;font-size:14px;font-weight:650;line-height:1.6;color:var(--navy);overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c0cfda}
.overview-case-open:hover{color:#aa4026;text-decoration-color:var(--orange)}
.overview-case-main p{font-size:11px;color:#60788b;line-height:1.8;margin:6px 0 4px;overflow-wrap:anywhere}
.overview-case-main .meta{font-size:10px}
.overview-case-state{text-align:right;flex:0 1 145px;min-width:0}
.overview-evidence{display:block;font-size:10px;color:#60788b;line-height:1.8;margin-top:8px}
.overview-documents{min-width:0}
.overview-documents .panel-head{flex-wrap:wrap;gap:8px}
.overview-documents .panel-head .button.link{text-align:left}
.overview-documents .document-drop-hint{font-size:11px;line-height:1.8;padding:14px 22px;background:#fbfcfd;border-bottom:1px solid var(--line);margin:0}
.overview-document-list{list-style:none;margin:0;padding:0}
.overview-document-list > li{padding:22px;border-bottom:1px solid var(--line);min-width:0}
.overview-document-list > li:last-child{border:0}
.overview-document-head{display:flex;align-items:flex-start;gap:12px}
.overview-document-head .file-icon{flex-shrink:0;margin-top:3px}
.overview-document-head > div{min-width:0;flex:1}
.overview-document-head h3{font-size:13px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}
.overview-document-head .meta{font-size:10px;margin-top:6px}
.overview-document-context{font-size:11px;line-height:1.75;color:#60788b;margin-top:4px;overflow-wrap:anywhere}
.overview-document-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:16px 0 0 44px}
.overview-document-actions .button{min-height:34px}
.overview-help .panel-body{padding:24px}
.overview-help h2{font-size:19px;letter-spacing:-.3px;line-height:1.5;margin-bottom:12px}
.overview-help p{font-size:13px;color:#496174;line-height:1.8;margin-bottom:20px}
.overview-help .overview-help-note{margin:18px 0 0;font-size:11px;color:#60788b}
.overview-start .panel-body{padding:28px}
.overview-start h2{font-size:24px;letter-spacing:-.4px;line-height:1.4;margin-bottom:10px}
.overview-start .panel-body > p{font-size:14px;color:#496174;line-height:1.8}
.overview-start-steps{list-style:none;padding:0;margin:24px 0 0}
.overview-start-steps li{display:flex;gap:16px;align-items:flex-start;padding:20px 0;border-top:1px solid var(--line)}
.overview-start-steps li:last-child{padding-bottom:0}
.overview-step-mark{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;font-size:12px;font-weight:650;background:#f0f4f7;color:#60788b}
.overview-step-mark.done{background:#fff0e9;color:#a14129}
.overview-start-steps li > div{min-width:0}
.overview-start-steps h3{font-size:15px;line-height:1.5}
.overview-start-steps p{font-size:13px;color:#496174;line-height:1.8;margin-top:7px}
.overview-start-steps .button{margin-top:14px}
.overview-page .overview-scope{margin-top:26px;font-size:11px;line-height:1.8;color:#60788b}
.overview-page :is(button,a,summary):focus-visible{outline:2px solid var(--orange);outline-offset:4px;border-radius:4px}
@media(max-width:1200px){.overview-page > .heading{flex-wrap:wrap}.overview-heading-actions{justify-content:flex-start;padding:0}.overview-metrics > div{padding:20px}.overview-columns{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.overview-cases > li{flex-wrap:wrap;gap:12px}.overview-case-state{text-align:left;display:flex;align-items:center;gap:12px;flex-basis:100%}.overview-evidence{margin:0}}
@media(max-width:1100px){.overview-columns{grid-template-columns:1fr}.overview-side{grid-template-columns:1fr 1fr}.overview-documents,.overview-help{min-width:0}.overview-page .panel-head{flex-wrap:wrap}.overview-page .panel-head .button.link{text-align:left}}
@media(max-width:900px){.overview-metrics{grid-template-columns:1fr 1fr}.overview-metrics > div:nth-child(3){border-left:0}.overview-metrics > div:nth-child(n+3){border-top:1px solid var(--line)}}
@media(max-width:700px){.overview-side{grid-template-columns:1fr}.overview-page > .heading{gap:18px}.overview-heading-actions .button{min-height:44px;white-space:normal;text-align:center}.overview-metrics{margin-bottom:22px}.overview-metrics > div{padding:18px}.overview-metric-value{font-size:28px}.overview-metric-value.overview-metric-text{font-size:15px}.overview-metrics dt{font-size:11px}.overview-metrics dd > span{font-size:10px}.overview-columns,.overview-main,.overview-side{gap:22px}.overview-page .panel-head{padding:20px}.overview-attention-item{padding:20px}.overview-attention-bottom{gap:12px;align-items:flex-start}.overview-attention-bottom .button{min-height:44px}.overview-attention-note{padding:14px 20px}.overview-document-actions .button{min-height:44px}.overview-document-actions{margin-left:0}.overview-cases > li{padding:20px}.overview-help .panel-body,.overview-start .panel-body{padding:22px}.overview-document-list > li{padding:20px}}
@media(max-width:380px){.overview-metrics > div{padding:15px}.overview-heading-actions{display:grid;width:100%}.overview-heading-actions .button{width:100%}.overview-attention-bottom .button{width:100%}.overview-case-state{flex-wrap:wrap}.overview-start-steps{margin-top:20px}.overview-start-steps li{gap:12px}}
@media(max-width:700px){.overview-case-open{min-height:44px}.overview-page .panel-head .button.link{min-height:40px}}
/* Volgende documentstappen, geen lijst op recentheid. */
.document-inbox-reason{font-size:12px;line-height:1.8;color:#496174;margin:14px 0 0;overflow-wrap:anywhere}
.document-inbox-list .overview-document-actions{margin-left:0}
.document-inbox-list .overview-document-context{margin-top:6px}
.document-inbox-dismiss{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.document-inbox-dismiss .button{padding:3px 0;font-size:11px;min-height:28px}
.document-inbox-dismiss p{font-size:10px;line-height:1.8;color:#60788b;margin:5px 0 0}
.document-inbox-note{padding:14px 22px;border-top:1px solid var(--line);font-size:11px;line-height:1.8;color:#60788b;background:#fbfcfd}
.document-inbox-error:not(.hidden){margin:14px 0 0}
.tool-view .document-inbox-list{margin:24px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.tool-view .document-inbox-list .button{margin-left:0}
.tool-view .document-inbox-dismiss p{font-size:11px;margin:8px 0 0}
@media(max-width:700px){.document-inbox-dismiss .button{min-height:44px}}
.tool-view .document-inbox-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;overflow:visible}
.tool-view .document-inbox-list > li{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0}
.tool-view .document-inbox-list > li:last-child{border:1px solid var(--line)}
.tool-view .document-inbox-list .overview-document-actions{margin-top:auto;padding-top:18px}
.tool-view .document-inbox-list .document-inbox-reason{margin-bottom:6px}
@media(max-width:700px){.tool-view .document-inbox-list{grid-template-columns:1fr}.tool-view .document-inbox-list > li{padding:20px}}

/* Acties: concrete stappen, rustige selectie en herkenbare dossierkaarten. */
.attention-page-heading{align-items:flex-start;gap:24px;margin-bottom:26px}
.attention-page-heading > div{min-width:0;flex:1}
.attention-page-heading h1{font-size:clamp(28px,2.5vw,34px);line-height:1.35;overflow-wrap:anywhere}
.attention-page-heading .sub{font-size:14px;line-height:1.8}
.attention-page-heading > .button{flex-shrink:0;margin-top:4px}
.attention-loading{padding:24px;border:1px solid var(--line);border-radius:12px;color:#60788b;font-size:14px;line-height:1.8}
.attention-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;margin:0 0 24px;overflow:hidden}
.attention-stats > div{padding:20px 22px;min-width:0}
.attention-stats > div + div{border-left:1px solid var(--line)}
.attention-stats dt{font-size:12px;font-weight:550;line-height:1.6;color:#60788b}
.attention-stats dd{margin:8px 0 0}
.attention-stats strong{display:block;font-size:29px;letter-spacing:-.6px;line-height:1.3;font-weight:700}
.attention-stats dd span{display:block;font-size:11px;color:#60788b;line-height:1.8;margin-top:6px}
.attention-filter-panel{border:1px solid var(--line);border-radius:12px;margin:0 0 28px;padding:22px 24px;background:#fff}
.attention-filter-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(210px,1fr);gap:20px}
.attention-filter-main .field,.attention-filter-extra .field{margin:0;min-width:0}
.attention-filter-panel .field label{font-size:12px;color:#526c81;line-height:1.6}
.attention-filter-panel .field :is(input,select){font-size:13px;line-height:1.6;min-height:42px;max-width:100%;width:100%}
.attention-more-filters{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.attention-more-filters > summary{cursor:pointer;font-size:12px;font-weight:600;color:#24475d;line-height:1.8}
.attention-more-filters > summary > span{font-size:11px;font-weight:400;color:#60788b;margin-left:12px;display:inline-block}
.attention-filter-extra{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 20px;margin-top:20px}
.attention-filter-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px}
.attention-filter-foot > span{font-size:11px;line-height:1.8;color:#60788b}
.attention-filter-foot > div{display:flex;gap:10px;flex-wrap:wrap}
.attention-filter-foot .button{min-height:40px;white-space:normal;text-align:center}
.attention-results-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;flex-wrap:wrap}
.attention-results-head h2{font-size:18px;line-height:1.5;letter-spacing:-.3px}
.attention-results-head p{font-size:11px;color:#60788b;line-height:1.8}
.attention-items{display:grid;gap:22px}
.attention-item{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;min-width:0}
.attention-item-dated{border-left:3px solid var(--orange)}
.attention-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px 20px;border-bottom:1px solid var(--line)}
.attention-item-head > div{min-width:0;flex:1}
.attention-item-head h2{font-size:19px;line-height:1.5;letter-spacing:-.3px;margin:12px 0 7px;overflow-wrap:anywhere}
.attention-item-head p{font-size:12px;color:#60788b;line-height:1.8;overflow-wrap:anywhere}
.attention-urgency{font-size:10px;line-height:1.8;color:#a14129;margin-left:12px;display:inline-block}
.attention-item-timing{flex:0 1 200px;font-size:12px;line-height:1.8;text-align:right;color:#496174;overflow-wrap:anywhere}
.attention-item-timing small{display:block;font-size:11px;margin-top:6px}
.attention-item-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,220px);gap:28px;padding:24px 26px}
.attention-item-copy{display:grid;gap:20px;min-width:0}
.attention-item-copy h3{font-size:12px;font-weight:650;line-height:1.6;color:#526c81;margin-bottom:8px}
.attention-item-copy p{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.attention-item-do{background:#f5f9fc;border-left:3px solid var(--orange);border-radius:0 9px 9px 0;padding:18px 20px}
.attention-item-do h3{color:var(--navy)}
.attention-item-facts{margin:0;padding-left:24px;border-left:1px solid var(--line);display:grid;align-content:start;gap:20px;min-width:0}
.attention-item-facts dt{font-size:11px;line-height:1.8;color:#60788b;margin-bottom:5px}
.attention-item-facts dd{font-size:13px;font-weight:550;line-height:1.8;margin:0;overflow-wrap:anywhere}
.attention-item-facts dd > span{display:block;font-size:10px;font-weight:400;color:#60788b;margin-top:4px}
.attention-item-facts dd > .attention-unchecked{color:#8c5108;font-weight:600}
.attention-item-warning{padding:14px 24px;margin:0 26px 22px;background:#fff8ef;border:1px solid #f1dfc5;border-radius:8px;color:#8a631d;font-size:12px;line-height:1.8}
.attention-item-foot{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:18px 26px;background:#fbfcfd;border-top:1px solid var(--line)}
.attention-item-source{flex:1 1 240px;min-width:0;font-size:12px;line-height:1.8;color:#496174;padding-top:6px}
.attention-item-source summary{font-size:11px;font-weight:550;cursor:pointer;color:#526c81;line-height:1.8}
.attention-item-source p{margin-top:10px;overflow-wrap:anywhere;white-space:pre-wrap}
.attention-item-source .button{margin-top:12px}
.attention-item-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.attention-item-actions .button{min-height:36px;white-space:normal;text-align:center}
.attention-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;flex-wrap:wrap}
.attention-pagination p{font-size:12px;line-height:1.8;color:#60788b}
.attention-pagination > div{display:flex;gap:10px;flex-wrap:wrap}
.attention-page .attention-page-note{font-size:11px;line-height:1.9;color:#60788b;margin-top:24px}
.attention-empty{padding:30px;border:1px solid var(--line);border-radius:12px;background:#f7fafc}
.attention-empty h2{font-size:20px;line-height:1.5;margin-bottom:10px}
.attention-empty p{font-size:14px;line-height:1.8;color:#496174;margin:8px 0 0;max-width:680px}
.attention-empty .meta{font-size:12px;color:#60788b}
.attention-empty .button{margin-top:20px}
.attention-completion-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:20px;margin:24px 0}
.tool-view .attention-completion-grid > .modal-card{margin:0;min-width:0}
.attention-completion-grid .modal-card > h3{font-size:17px;margin-bottom:18px}
.attention-completion-grid .modal-card > p{white-space:pre-wrap;overflow-wrap:anywhere}
.attention-completion-facts{display:grid;gap:16px;margin:22px 0 0;border-top:1px solid var(--line);padding-top:18px}
.attention-completion-facts dt{font-size:11px;color:#60788b;line-height:1.8;margin-bottom:5px}
.attention-completion-facts dd{font-size:13px;line-height:1.8;margin:0;overflow-wrap:anywhere}
.attention-page :is(button,summary,a):focus-visible{outline:2px solid var(--orange);outline-offset:4px;border-radius:4px}
@media(max-width:1100px){.attention-filter-extra{grid-template-columns:repeat(2,minmax(0,1fr))}.attention-item-body{grid-template-columns:minmax(0,1fr) 180px;gap:22px}.attention-item-facts{padding-left:20px}.attention-item-foot{gap:14px}}
@media(max-width:800px){.attention-stats{grid-template-columns:1fr 1fr}.attention-stats > div:nth-child(3){border-left:0}.attention-stats > div:nth-child(n+3){border-top:1px solid var(--line)}.attention-item-body{grid-template-columns:1fr}.attention-item-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}.attention-item-timing{flex-basis:170px}.attention-completion-grid{grid-template-columns:1fr}}
@media(max-width:600px){.attention-page-heading{flex-wrap:wrap;gap:16px}.attention-page-heading > div{flex-basis:100%}.attention-page-heading > .button{margin:0;min-height:44px}.attention-stats > div{padding:18px}.attention-stats strong{font-size:27px}.attention-filter-panel{padding:20px}.attention-filter-main,.attention-filter-extra{grid-template-columns:1fr;gap:16px}.attention-more-filters > summary > span{display:block;margin:6px 0 0 16px}.attention-filter-foot > div{width:100%}.attention-filter-foot .button{flex:1 1 auto;min-height:44px}.attention-item-head{flex-direction:column;gap:14px;padding:20px}.attention-item-timing{flex-basis:auto;text-align:left}.attention-item-timing small{display:inline;margin-left:10px}.attention-item-head h2{font-size:18px}.attention-item-body{padding:20px;gap:20px}.attention-item-facts{grid-template-columns:1fr 1fr;gap:16px}.attention-item-do{padding:16px}.attention-item-foot{padding:18px 20px}.attention-item-source{flex-basis:100%}.attention-item-actions{width:100%}.attention-item-actions .button{min-height:44px;flex:1 1 auto}.attention-item-warning{margin:0 20px 20px;padding:14px}.attention-pagination .button{min-height:44px}.attention-empty{padding:22px}.attention-completion-grid{gap:16px}}

/* Scaninbox en import: dezelfde rustige opbouw als de dossierfuncties. */
.scan-page-heading{align-items:flex-start;gap:24px;margin-bottom:26px}
.scan-page-heading > div:first-child{flex:1;min-width:0}.scan-page-heading h1{font-size:clamp(28px,2.5vw,34px);line-height:1.35;overflow-wrap:anywhere}
.scan-page-heading .sub{font-size:14px;line-height:1.8}.scan-page-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:4px}
.scan-page .button{white-space:normal;text-align:center}.scan-page :is(button,summary,a):focus-visible{outline:2px solid var(--orange);outline-offset:4px;border-radius:5px}
.scan-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:0;margin:0 0 24px;list-style:none}
.scan-workflow li{display:flex;gap:13px;min-width:0}.scan-workflow li > span{display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid #e1eaf0;border-radius:9px;font-size:12px;font-weight:650;color:#526c81;background:#f7fafc}
.scan-workflow strong{display:block;font-size:13px;line-height:1.7}.scan-workflow p{font-size:12px;line-height:1.8;color:#60788b;margin-top:4px}
.scan-privacy{padding:18px 22px;border:1px solid #e1eaf0;border-radius:12px;background:#f7fafc;margin:0 0 32px}
.scan-privacy strong{font-size:13px;line-height:1.7}.scan-privacy p{font-size:12px;line-height:1.9;color:#526c81;max-width:940px;margin:6px 0 0}
.scan-section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;flex-wrap:wrap}.scan-section-head h2{font-size:20px;line-height:1.5;letter-spacing:-.3px}.scan-section-head p{font-size:12px;color:#60788b;line-height:1.8;margin-top:6px}
.scan-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.scan-sources > .tool-empty{grid-column:1/-1;margin:0}
.scan-source-card{border:1px solid var(--line);border-radius:12px;min-width:0;display:flex;flex-direction:column;background:#fff;padding:24px}
.scan-source-card > header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.scan-source-card > header > div{min-width:0}.scan-source-card h3{font-size:19px;line-height:1.5;letter-spacing:-.25px;margin-top:7px;overflow-wrap:anywhere}.scan-source-card .badge{flex-shrink:0;margin-top:3px;white-space:normal;text-align:center}
.scan-destination{border-left:3px solid var(--orange);border-radius:0 8px 8px 0;background:#f5f9fc;padding:16px 18px;margin:22px 0;min-width:0}
.scan-destination > span,.scan-import-context span{display:block;font-size:11px;line-height:1.8;color:#60788b;margin-bottom:6px}.scan-destination strong{display:block;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.scan-destination p{font-size:12px;line-height:1.8;color:#60788b;margin:6px 0 0}
.scan-folder-details{font-size:12px;line-height:1.8;color:#526c81;margin-bottom:20px}.scan-folder-details summary{cursor:pointer;font-size:12px;font-weight:550;color:#24475d}.scan-folder-details p{margin-top:12px}.scan-folder-details .scan-folder{font-size:11px;border:1px solid #e1eaf0;line-height:1.9;margin:12px 0}.scan-folder-details .button{min-height:36px}
.scan-source-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}.scan-source-actions .button{min-height:39px}.scan-source-actions .meta{flex:1;line-height:1.8}
.scan-import-section{margin-top:34px}.scan-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px 12px 0 0;background:#fbfcfd;margin:0}
.scan-history-summary > div{padding:18px 22px;min-width:0}.scan-history-summary > div + div{border-left:1px solid var(--line)}.scan-history-summary dt{font-size:11px;line-height:1.8;color:#60788b}.scan-history-summary dd{margin:6px 0 0;font-size:24px;line-height:1.4;font-weight:650}
.scan-history{list-style:none;padding:0;margin:0;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;overflow:hidden}.scan-history-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px}.scan-history-item + li{border-top:1px solid var(--line)}.scan-history-item > div{min-width:0}.scan-history-item h3{font-size:15px;line-height:1.6;margin:10px 0 6px;overflow-wrap:anywhere}.scan-history-item p{font-size:13px;line-height:1.8;color:#496174;margin:0 0 5px}.scan-history-item .meta{font-size:11px;line-height:1.8}.scan-history-item > .button{flex-shrink:0;min-height:38px}
.scan-import-section > .tool-empty{margin:0}.scan-boundaries{margin-top:26px;font-size:12px;line-height:1.9;color:#60788b}.scan-boundaries summary{font-size:12px;font-weight:550;cursor:pointer;color:#526c81}.scan-boundaries p{margin-top:12px;max-width:920px}
.scan-loading{border:1px solid var(--line);border-radius:10px;padding:20px 22px;background:#f7fafc;color:#60788b;font-size:14px;line-height:1.8}
.scan-empty-error{padding:24px;border:1px solid var(--line);border-radius:12px}.scan-empty-error h2{font-size:20px;line-height:1.5;margin-bottom:18px}.scan-empty-error p{font-size:14px;line-height:1.8;margin:12px 0}
.scan-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 0}.tool-view .scan-form-grid > .modal-card{margin:0;min-width:0}.scan-form-grid .modal-card > h3{font-size:18px;margin-bottom:20px}.scan-form-grid .modal-card > .field:first-of-type{margin-top:0}.scan-form-grid .modal-card > .field:last-child{margin-bottom:0}
.tool-view .scan-general-confirm[hidden]{display:none}.scan-storage-step{padding:0 0 20px;border-bottom:1px solid var(--line);margin-bottom:20px}.scan-storage-step > span{font-size:13px;font-weight:650;line-height:1.8}.scan-storage-step p{font-size:13px;color:#496174;line-height:1.8;margin-top:7px}.scan-storage-card .check:last-child{margin-bottom:0}
.scan-inspect-summary,.scan-result-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:24px 0}
.scan-inspect-summary > div,.scan-result-counts > div{padding:18px 22px;min-width:0}.scan-inspect-summary > div + div,.scan-result-counts > div + div{border-left:1px solid var(--line)}
.scan-inspect-summary dt,.scan-result-counts dt{font-size:11px;line-height:1.8;color:#60788b}.scan-inspect-summary dd,.scan-result-counts dd{font-size:26px;line-height:1.4;font-weight:650;margin:6px 0 0}
.scan-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:14px}.scan-card-heading h3{font-size:17px;line-height:1.6;margin:0}.scan-card-heading > span{font-size:11px;line-height:1.8;color:#60788b;flex-shrink:0}
.tool-view .scan-scroll-hint{font-size:11px;color:#60788b;line-height:1.8;margin:0 0 12px}.scan-selection-files{max-height:360px;margin:0;border:1px solid var(--line);border-radius:10px;padding:8px;overflow:auto;scrollbar-gutter:stable}
.tool-view .scan-selection-files label.scan-choice{display:flex;align-items:flex-start;padding:14px;margin:0;border:0;border-radius:7px;font-size:13px;line-height:1.8;cursor:pointer}.scan-choice + .scan-choice{border-top:1px solid #edf1f5}.scan-choice:hover{background:#f7fafc}.scan-choice:has(input:checked){background:#f7fafc}.tool-view label.scan-choice > input{width:16px;height:16px;flex:0 0 16px;margin:4px 0 0;accent-color:var(--orange)}.scan-choice > span{display:block;min-width:0;overflow-wrap:anywhere}.scan-choice strong{font-size:13px;line-height:1.8;font-weight:550}.scan-choice small{font-size:11px;color:#60788b;line-height:1.8;margin-top:5px}
.tool-view .scan-file-issues{margin-top:22px}.scan-file-issues h4{font-size:14px;line-height:1.8;margin-bottom:12px}.scan-file-issues .error{line-height:1.8;font-size:12px}.scan-selection-grid .tool-empty{margin:0;padding:18px}.scan-selection-grid .tool-empty h3{font-size:16px}.scan-selection-grid .tool-empty p{font-size:13px}.scan-confirm-card > h3{overflow-wrap:anywhere}
.scan-warning{font-size:13px;line-height:1.85;color:#8a631d;background:#fff8ef;border:1px solid #f1dfc5;border-radius:9px;padding:16px 20px;margin:20px 0;overflow-wrap:anywhere}
.scan-progress-head{padding:24px 26px;border-left:3px solid var(--orange);border-radius:0 12px 12px 0;background:#f3f8fc}.scan-progress-head h3{font-size:25px;line-height:1.4;letter-spacing:-.4px;margin:0 0 12px}.scan-progress-head p{font-size:14px;line-height:1.8;color:#496174;margin:0}.scan-progress-attention{background:#fff8ef}
.scan-progress-head progress{display:block;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;appearance:none;margin-top:22px;accent-color:var(--orange);background:#e3ebf1}.scan-progress-head progress::-webkit-progress-bar{background:#e3ebf1}.scan-progress-head progress::-webkit-progress-value{background:var(--orange)}.scan-progress-head progress::-moz-progress-bar{background:var(--orange)}
.scan-result-counts{grid-template-columns:repeat(4,minmax(0,1fr))}.scan-result-counts:has(> div:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}
.scan-import-context{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0;padding:0 0 22px;border-bottom:1px solid var(--line)}.scan-import-context > div{min-width:0}.scan-import-context strong{display:block;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.scan-import-files{border:1px solid var(--line);border-radius:10px;max-height:390px;margin:0;scrollbar-gutter:stable}.scan-result-row{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;min-width:0}.scan-result-row + .scan-result-row{border-top:1px solid var(--line)}.scan-result-name{flex:1;min-width:0}.scan-result-name strong{display:block;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.scan-result-name p{font-size:12px;line-height:1.8;margin:7px 0 0;color:#60788b;overflow-wrap:anywhere}.scan-result-row .badge{white-space:normal;max-width:180px;text-align:center;line-height:1.8}.scan-result-row .button{flex-shrink:0;font-size:11px;min-height:32px}.tool-view .scan-result-row .button + .button{margin-left:0}
@media(max-width:1100px){.scan-page-heading{flex-wrap:wrap}.scan-page-actions{padding:0}.scan-sources{grid-template-columns:1fr}.scan-workflow{gap:18px}}
@media(max-width:760px){.scan-form-grid{grid-template-columns:1fr;gap:18px}.scan-workflow{grid-template-columns:1fr;gap:16px}.scan-workflow p{margin-top:0}.scan-page-heading{gap:18px}.scan-page-actions .button{min-height:44px}.scan-history-item{align-items:flex-start;flex-wrap:wrap}.scan-history-item > .button{min-height:44px}.scan-result-row{flex-wrap:wrap;gap:12px}.scan-result-name{flex-basis:100%}.scan-result-row .badge{max-width:none}.scan-result-row .button{margin-left:auto;min-height:40px}.scan-source-actions .button{min-height:44px}.scan-result-counts,.scan-result-counts:has(> div:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}.scan-result-counts > div:nth-child(odd){border-left:0}.scan-result-counts > div:nth-child(n+3){border-top:1px solid var(--line)}.scan-selection-files{max-height:300px}.scan-inspect-summary > div,.scan-result-counts > div{padding:16px}.scan-import-context{grid-template-columns:1fr;gap:16px}}
@media(max-width:480px){.scan-source-card{padding:20px}.scan-source-card > header{flex-wrap:wrap;gap:8px}.scan-source-card h3{font-size:18px}.scan-source-actions .button{flex:1 1 auto}.scan-history-summary{grid-template-columns:1fr}.scan-history-summary > div{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:14px 18px}.scan-history-summary > div + div{border-left:0;border-top:1px solid var(--line)}.scan-history-summary dd{margin:0;font-size:22px}.scan-history-item{padding:20px}.scan-inspect-summary{grid-template-columns:1fr}.scan-inspect-summary > div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 16px}.scan-inspect-summary > div + div{border-left:0;border-top:1px solid var(--line)}.scan-inspect-summary dd{margin:0;font-size:23px}.scan-progress-head{padding:20px}.scan-progress-head h3{font-size:22px}.scan-progress-head p{font-size:13px}.scan-page-actions{width:100%}.scan-page-actions .button{flex:1}.scan-privacy{padding:18px}.scan-destination{padding:14px 16px}.scan-section-head > .button{min-height:44px}.scan-card-heading{gap:12px}.scan-card-heading h3{font-size:16px}.scan-warning{padding:15px 17px}}

/* Van een actie naar mogelijk bewijs, zonder een nieuwe knoppenwand. */
.task-evidence-source{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;border-left:3px solid var(--orange);background:#f5f9fc;border-radius:0 10px 10px 0;margin:24px 0;min-width:0}.task-evidence-source>div{min-width:0}.task-evidence-source span{display:block;font-size:11px;color:#60788b;margin-bottom:7px}.task-evidence-source strong{display:block;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.task-evidence-source p{font-size:12px;color:#60788b;line-height:1.8;margin:6px 0 0}
.task-evidence-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;margin:24px 0}.task-evidence-stats>div{padding:18px 20px;min-width:0}.task-evidence-stats>div+div{border-left:1px solid var(--line)}.task-evidence-stats dt{font-size:11px;line-height:1.8;color:#60788b}.task-evidence-stats dd{font-size:25px;line-height:1.4;font-weight:650;margin:8px 0 0}
.task-evidence-candidates{display:grid;gap:18px}.tool-view .task-evidence-candidate{margin:0;min-width:0}.task-evidence-candidate-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.task-evidence-candidate-head h3{font-size:17px;line-height:1.6;overflow-wrap:anywhere}.task-evidence-candidate-head .badge{flex-shrink:0}.task-evidence-candidate details{margin:18px 0}.task-evidence-candidate h4{font-size:12px;margin-bottom:10px;color:#526c81}.task-evidence-candidate blockquote{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0;padding:14px 18px;background:#f7fafc;border-left:2px solid var(--line)}
.task-evidence-saved{background:#f7fafc;border:1px solid var(--line);border-radius:10px;padding:17px 20px;margin:20px 0;font-size:12px;line-height:1.8}.task-evidence-saved>strong{font-size:13px}.task-evidence-saved p{font-size:12px;line-height:1.8;margin:7px 0}.task-evidence-saved details{margin-top:12px}.task-evidence-saved summary{cursor:pointer;font-weight:550}.task-evidence-saved blockquote{border-left:2px solid var(--orange);padding-left:14px;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.task-evidence-source{align-items:flex-start;flex-direction:column;padding:18px 20px}.task-evidence-stats{grid-template-columns:1fr}.task-evidence-stats>div{padding:12px 18px;display:flex;align-items:baseline;justify-content:space-between;gap:16px}.task-evidence-stats>div+div{border-left:0;border-top:1px solid var(--line)}.task-evidence-stats dd{margin:0}.task-evidence-candidate-head{flex-wrap:wrap;gap:10px}.task-evidence-candidate-head .badge{white-space:normal}.task-evidence-source>.button{min-height:42px}}
.task-evidence-why{font-size:12px;line-height:1.8;color:#60788b;margin:14px 0}.task-evidence-why summary{cursor:pointer;font-weight:550;color:#526c81}.task-evidence-why p{margin-top:10px;white-space:pre-wrap;overflow-wrap:anywhere}

.scan-auto-reading{border:1px solid var(--line);border-radius:10px;padding:16px;background:#f7fafc}.scan-auto-reading strong{display:block;font-size:13px;line-height:1.8}.scan-auto-reading small{display:block;font-size:12px;line-height:1.85;color:#60788b;margin-top:8px}
.scan-reading-status{padding:22px 24px;border:1px solid var(--line);border-left:3px solid var(--orange);border-radius:0 10px 10px 0;background:#f7fafc;margin:24px 0}.scan-reading-status h3{font-size:20px;line-height:1.5;margin:8px 0 12px}.scan-reading-status p{font-size:13px;line-height:1.85;margin:10px 0}.scan-reading-status .meta{font-size:11px}.scan-reading-counts{color:#496174}.scan-reading-counts strong{color:var(--navy)}
@media(max-width:480px){.scan-reading-status{padding:18px}.scan-reading-status h3{font-size:18px}.scan-auto-reading{padding:14px}}
/* A page index stays visually separate from the preserved source document. */
.parts-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.parts-index-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.parts-index-card h3{margin:6px 0;font-size:18px}.parts-range{margin:6px 0 0;color:var(--muted)}.parts-coverage{display:flex;flex-direction:column;gap:6px;padding:18px 22px;border:1px solid var(--line);border-radius:12px;background:#f5f9fb;margin:20px 0}.parts-incomplete{background:#fff9f3;border-color:#f4ccb1}.parts-draft-status{padding:14px 18px;border-radius:10px;background:#f5f9fb}.parts-split,.parts-edit-range,.parts-edit-title{display:grid;align-items:end;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.parts-split .field{margin-bottom:0}.parts-split{grid-template-columns:minmax(0,1fr) auto}.parts-edit-row{margin:16px 0}.parts-edit-title .field{margin-bottom:12px}.parts-edit-range{grid-template-columns:1fr 1fr auto}.parts-edit-row label{display:block}.parts-pages{max-height:42vh;overflow:auto;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 22px}.parts-pages article+article{border-top:1px solid var(--line)}.parts-pages article{padding:12px 0 20px}.parts-pages pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;margin:12px 0}.parts-pages h4{color:var(--muted);font-size:12px}@media(max-width:760px){.parts-index,.parts-edit-title{grid-template-columns:1fr}.parts-index-card{align-items:flex-start;flex-direction:column}.parts-edit-range{grid-template-columns:1fr 1fr}.parts-edit-range>.button{grid-column:1/-1}.parts-split{grid-template-columns:1fr}.parts-pages{padding:0 16px}.parts-coverage{padding:16px}}
.tool-view .parts-index > .modal-card{margin:0;min-width:0}.parts-index-card > div{min-width:0}.parts-index-card h3{overflow-wrap:anywhere}.parts-index-card > .button{flex-shrink:0}
.parts-suggestion-card .check{margin-top:0}.parts-suggestion-card > p{font-size:13px;color:var(--muted);line-height:1.7}.parts-suggestion-card details,.parts-origin{font-size:13px;line-height:1.7;margin:14px 0}.parts-suggestion-card summary,.parts-origin summary{cursor:pointer;font-weight:600}.parts-suggestion-card blockquote,.parts-origin blockquote{margin:12px 0;padding:10px 14px;border-left:3px solid var(--orange);background:#f5f9fb;white-space:pre-wrap;overflow-wrap:anywhere}.parts-origin h4{margin:14px 0 4px}.parts-suggestion-card > .button{margin-top:14px}
.part-export-hashes{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.part-export-hashes summary{cursor:pointer;font-weight:600}.part-export-hashes p{margin-top:12px}[data-part-export-download][aria-disabled=true]{opacity:.5;pointer-events:none}

/* Self-service account security follows the shared spacious card layout. */
.security-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr); gap:24px; align-items:start; }
.security-card { border:1px solid var(--line, #d8e4ec); border-radius:16px; background:white; padding:30px; }
.security-card h2 { margin:10px 0 16px; }
.security-card p { line-height:1.7; color:var(--muted,#526e84); margin:14px 0 22px; }
.security-card form { margin-top:24px; }
.security-actions { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
.security-setup { display:grid; grid-template-columns:210px minmax(0,1fr); gap:24px; margin:24px 0; align-items:center; }
.security-qr svg { width:210px; height:210px; display:block; }
.security-secret { overflow-wrap:anywhere; user-select:all; }
.security-codes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:20px; border-radius:12px; background:#f3f7fa; }
.security-codes code { overflow-wrap:anywhere; user-select:all; font-size:13px; }
.security-login { max-width:640px; padding:50px 24px; margin:auto; }
.security-login #restart-login { margin-top:20px; }
@media(max-width:800px) { .security-layout,.security-setup,.security-codes { grid-template-columns:1fr; } .security-card {padding:22px;} }

/* Company tax inventory: sourced schedules and separate evidence checks. */
.inventory-scope{display:grid;grid-template-columns:minmax(200px,1.5fr) minmax(110px,.6fr) minmax(170px,1fr) auto;gap:18px;align-items:end;margin:0 0 28px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px}
.inventory-scope>.field,.inventory-scope>label{margin:0;min-width:0}.inventory-scope>label{font-size:12px;font-weight:600;color:#496174}.inventory-scope select{margin-top:7px}.inventory-scope .button{min-height:40px}
.inventory-page #inventory-results{display:grid;gap:24px}.inventory-metrics{margin:0}.inventory-metrics dd>strong{font-size:28px;line-height:1.2;color:var(--navy)}
.inventory-page .panel-head{gap:20px;align-items:start}.inventory-page .panel-head .tool-actions{margin:0;flex-shrink:0;justify-content:flex-end;max-width:48%}.inventory-page .panel-head p{font-size:13px;line-height:1.8;color:#60788b;margin:8px 0 0}
.inventory-table{table-layout:fixed;width:100%}.inventory-table th:first-child{width:24%}.inventory-table th:nth-child(2),.inventory-table th:nth-child(3){width:21%}.inventory-table th:last-child{width:116px}.inventory-table td{vertical-align:top;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.inventory-table td>.sub{font-size:11px;margin:5px 0}.inventory-table .badge{display:inline-block;white-space:normal;margin-top:6px;font-size:10px}.inventory-table .button{white-space:nowrap;overflow-wrap:normal}
.inventory-coverage{display:grid;grid-template-columns:1fr 1fr;gap:16px}.inventory-coverage details{border:1px solid var(--line);border-radius:10px;padding:17px 20px;min-width:0}.inventory-coverage summary{font-size:13px;font-weight:600}.inventory-coverage p{font-size:12px;line-height:1.8;color:#496174;margin-top:14px}
.inventory-source-text{max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:22px;background:#f7fafc;border:1px solid var(--line);border-radius:10px;line-height:1.9}
.inventory-manual-period{border:1px solid var(--line);border-radius:10px;padding:18px;margin:16px 0}.inventory-proof-rest>.button{margin:0 0 18px}
@media(max-width:1100px){.inventory-scope{grid-template-columns:1fr 1fr}.inventory-page .panel-head{flex-wrap:wrap}.inventory-page .panel-head .tool-actions{max-width:none;justify-content:flex-start}.inventory-table{min-width:720px}}
@media(max-width:650px){.inventory-scope,.inventory-coverage{grid-template-columns:1fr}.inventory-scope{padding:18px}.inventory-page .panel-head{padding:20px}.inventory-page .panel-head .tool-actions{width:100%}.inventory-page .panel-head .button{white-space:normal;min-height:44px}.inventory-source-text{max-height:300px;padding:16px}.inventory-metrics dd>strong{font-size:24px}}

.assessment-source-text{max-height:18rem;overflow:auto}

/* Bank reads stay visible while the server completes the selected history. */
#moneybird-progress progress{display:block;width:100%;height:10px;margin:16px 0;accent-color:var(--orange)}

.bank-label-evidence{display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,2fr);gap:10px 20px;font-size:13px;line-height:1.6;margin:20px 0;color:var(--navy)}
.bank-label-evidence dt{color:var(--muted)}.bank-label-evidence dd{margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.bank-label-evidence{grid-template-columns:1fr;gap:4px}.bank-label-evidence dd{margin-bottom:10px}}
