/* Eén rustige, contrastrijke afwerking voor alle schermen. */
:root{
 --app-page:#edf4fc;--app-surface:#fcfdff;--app-inset:#eaf3ff;
 --app-ink:#17283e;--app-muted:#40536b;--app-line:#9bb5d2;
 --app-blue:#155caa;--app-blue-soft:#dfedff;
 --ink:var(--app-ink);--muted:var(--app-muted);--paper:var(--app-page);
 --line:var(--app-line);--radius:10px;--shadow:0 2px 6px rgba(20,39,62,.05)
}
html{color-scheme:light}
body,body:has(.justice-mail-page){background:var(--app-page)!important;color:var(--app-ink)}
body .topbar{background:#124b85;border-bottom:1px solid #0d3967;box-shadow:none}
body .hero{background:#124b85;background-image:none;box-shadow:none;border-radius:10px}
body .hero h1,body .hero p,body .hero .stats strong{color:#fff}
body .hero .eyebrow{color:#e1eaf5}
body .justice,body .justice-mobile{color:var(--app-ink)}
body .justice-mobile{--jm-ink:var(--app-ink);--jm-border:var(--app-line);--jm-blue:var(--app-blue)}
body :is(.panel,.login-card,.history-item,.vehicle-tile,.reservation-card,.trusted-device-card,.device-name-box,.scan-card,.email-return-card,
 .justice-card,.justice-clean .justice-card,.justice-mail-page .justice-card,.justice-stat,.justice-simple-stat,.justice-hub-card,.justice-mail-attachment,
 .justice-mobile .jm-shortcut,.justice-mobile .jm-search,.justice-mobile .jm-upload-card,.justice-mobile .jm-vehicle,.justice-mobile .jm-install){
 background:var(--app-surface)!important;background-image:none!important;
 border:1px solid var(--app-line)!important;border-radius:10px!important;
 box-shadow:0 3px 12px rgba(30,80,140,.06)!important
}
body .justice-card,body .justice-clean .justice-card{padding:20px!important;margin-bottom:16px}
body :is(.justice-note,.justice-sub,.justice-stat span,.justice-simple-stat>span,.justice-section-title span,
 .justice-eyebrow,.justice-hero p,.justice-heading p,.justice-mobile .jm-heading p,.justice-mobile .jm-eyebrow){color:var(--app-muted);opacity:1}
body .justice-note{font-size:14px;line-height:1.5}
body .justice :is(h1,h2,h3),body .justice-mobile :is(h1,h2,h3){color:var(--app-ink)}
body :is(.justice-table,.table-wrap table) th{background:#e0edfc;color:#263d58;border-bottom:2px solid #9bb5d2}
body :is(.justice-table,.table-wrap table) td{border-bottom-color:#c4d4e7}
body .justice-table tbody tr:nth-child(even) td{background:#f1f7fe}
body .justice-table tbody tr:hover td{background:#e3effe}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]):not([type=button]):not([type=reset]):not([type=color]):not([type=range]),select,textarea){
 background:#fff!important;color:#17283e!important;border-color:#7f91a8!important;border-radius:6px!important
}
body input::placeholder,body textarea::placeholder{color:#52657a;opacity:1}
body input[type=checkbox],body input[type=radio]{accent-color:var(--app-blue)}
body :is(input,select,textarea,button,a,summary):focus-visible{outline:3px solid #175b9f;outline-offset:3px}
body :is(.button,.justice-btn,.justice-mobile .jm-add,.justice-mobile .jm-subaction){border-radius:6px!important;box-shadow:none!important}
body :is(.justice-btn.ghost,.justice-btn.secondary,.button.secondary,.justice-mobile .jm-subaction){
 background:#e6f0ff!important;color:#173f6e!important;border:1px solid #7f9fc3!important
}
body :is(.justice-btn.ghost,.justice-btn.secondary,.button.secondary,.justice-mobile .jm-subaction):hover{background:#d8e9ff!important;border-color:#456e9a!important}
body :is(.justice-tabs,.justice-subnav){background:#e4effc;border:1px solid #9bb5d2;border-radius:8px;box-shadow:none}
body :is(.justice-tabs,.justice-subnav) a{color:#29435f;border-radius:5px}
body :is(.justice-tabs,.justice-subnav) a:is(.active,.selected,[aria-current=page]){background:var(--app-blue);color:white}
body :is(.justice-pill,.status,.badge){border-radius:5px;font-size:12px;line-height:1.4}
body .justice-pill{background:#dcece2;color:#234e35;border:1px solid #8bac98}
body .justice-pill.wait{background:#dce7f6;color:#234e7a;border-color:#8fa9c7}
body .justice-pill.danger{background:#f7e9cb;color:#69470f;border-color:#b39b65}
body :is(.justice-alert,.justice-mobile .jm-notice){background:#f8edcf;color:#594115;border:1px solid #b39b65;border-radius:6px}
body .justice-status-dashboard .justice-simple-stat.selected{background:#d8e6f6!important;border:2px solid #174f89!important}
body .justice :is(.justice-form.justice-mini,.justice-invoice-edit,.justice-expand,.justice-filter-row){border-radius:6px;background:var(--app-inset)}
/* De bijlagenpagina gebruikt dezelfde afwerking, zonder extra gekleurde buitenkaart. */
body .justice-mail-page{background:transparent;padding:0;border-radius:0}
body .justice-mail-page .mail-doc-options label{background:#edf5ff;border-color:#9bb5d2;border-radius:6px;color:var(--app-ink)}
body .justice-mail-page .mail-doc-options label:has(input:checked){background:#d9eaff;border-color:#155caa;box-shadow:inset 0 0 0 1px #174f89}
body .justice-mail-page .mail-doc-recognition{background:#e3eee7!important;border:1px solid #8bac98;border-left:3px solid #518563;border-radius:6px!important}
body .justice-mail-page .mail-doc-corrections{background:#edf5ff;border-color:#9bb5d2!important;border-radius:6px!important}
body .justice-mail-page .mail-doc-filename{background:#e4efff!important;border-color:#9bb5d2;border-radius:6px!important}
body .justice-mail-page .justice-btn.ghost{background:#e6f0ff;border-color:#7f9fc3}
@media(min-width:1050px){
 body .justice-mail-page .justice-mail-attachment{padding:20px!important;margin:16px 0!important}
 body .justice :is(.justice-form label,.justice-table th){font-size:14px}
}
@media(max-width:650px){body .justice-card,body .justice-clean .justice-card{padding:15px!important}body .justice-mail-page{padding:0}}
@media print{
 body{background:white!important;color:black!important}
 body :is(.panel,.justice-card,.justice-stat,.justice-mail-attachment){background:white!important;box-shadow:none!important;border-color:#777!important}
}

/* Waarschuwingen houden een herkenbare, goed leesbare signaalkleur. */
body .justice .justice-card.justice-review-warning{background:#f8edcf!important;border-color:#b39b65!important}
body .justice-mobile .jm-vehicle.jm-alert{border-left:4px solid #a56a27!important}

body .topbar a:focus-visible{outline-color:#fff}
/* Beschikbaarheid en uitgeschakelde velden blijven herkenbaar. */
body .vehicle-tile.free{background:#e3eee7!important;border-color:#8bac98!important}
body .vehicle-tile.occupied{background:#f6e7e7!important;border-color:#ad8585!important}
body :is(input,select,textarea):disabled{background:#e7eff9!important;color:#52657a!important;opacity:1}

/* Respecteer verborgen, niet-toepasselijke documentvelden. */
body .justice-mail-page [hidden]{display:none!important}
body .justice-mail-page .mail-doc-recognition{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
body .justice-mail-page .mail-doc-recognition-label,body .justice-mail-page .mail-doc-recognition .justice-note{flex-basis:100%;margin:0!important}
body .justice-mail-page .mail-doc-number{font-size:20px;overflow-wrap:anywhere}

/* Het dossier toont één rustig overzicht; extra handelingen staan onder Aanpassen. */
body .justice-dossier{font-size:16px}
body .justice-dossier .dossier-next{display:flex;align-items:center;justify-content:space-between;gap:20px}
body .justice-dossier .dossier-next h2{font-size:19px;margin:5px 0 7px}
body .justice-dossier .dossier-next p{margin:0}
body .justice-dossier .dossier-documents>.justice-section-title{padding-bottom:10px}
body .justice-dossier .dossier-documents>.justice-section-title h2{font-size:21px;margin-bottom:6px}
body .justice-dossier .dossier-documents>.justice-section-title p{margin:0}
body .justice-dossier .dossier-document{padding:20px 0;border-bottom:1px solid #bfd0e3;min-width:0;scroll-margin-top:20px}
body .justice-dossier .dossier-document:last-child{border-bottom:0}
body .justice-dossier .dossier-document-header{display:grid;grid-template-columns:minmax(150px,1fr) minmax(110px,auto) minmax(130px,auto);gap:20px;align-items:center}
body .justice-dossier .dossier-document-header h3{font-size:21px;margin:3px 0;color:#17283e;overflow-wrap:anywhere}
body .justice-dossier .dossier-document-header p{margin:4px 0 0}
body .justice-dossier .dossier-document-kind{font-size:12px;font-weight:700;color:#40536b;text-transform:uppercase;letter-spacing:.04em}
body .justice-dossier .dossier-document-amount{font-size:19px;white-space:nowrap}
body .justice-dossier .dossier-document-header>.justice-pill{justify-self:end}
body .justice-dossier .dossier-document-actions{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-top:13px}
body .justice-dossier .dossier-document-edit{min-width:0}
body .justice-dossier .dossier-document-edit>summary{padding:8px 12px;font-size:14px;font-weight:700;list-style:none;cursor:pointer;border:1px solid #8fadd0;border-radius:6px;background:#eef5ff;color:#173f6e}
body .justice-dossier .dossier-document-edit>summary:after{content:' ▾'}
body .justice-dossier .dossier-document-edit[open]{flex-basis:100%}
body .justice-dossier .dossier-document-edit[open]>summary{display:inline-block}
body .justice-dossier .dossier-document-edit[open]>summary:after{content:' ▴'}
body .justice-dossier .dossier-edit-panel{padding:18px;margin-top:12px;background:#eef5ff;border:1px solid #b0c6e0;border-radius:8px}
body .justice-dossier .dossier-edit-panel h4{margin:0 0 15px}
body .justice-dossier .dossier-edit-panel .justice-mini{margin:0;padding:0;background:transparent;min-width:0;max-width:840px}
body .justice-dossier .dossier-source-name{overflow-wrap:anywhere;border-top:1px solid #c5d7ec;padding-top:14px}
body .justice-dossier .dossier-extra-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:14px 0}
body .justice-dossier .dossier-document-review{background:#fff8e8;border-left:3px solid #b98320;border-radius:6px;padding:16px;margin-top:12px}
body .justice-dossier :is(.dossier-planning,.dossier-pickup)>summary{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;cursor:pointer}
body .justice-dossier :is(.dossier-planning,.dossier-pickup)[open]>summary{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #bfd0e3}
body .justice-dossier .dossier-planning-form{margin:15px 0 22px;max-width:720px}
body .justice-dossier .dossier-planning-form input{max-width:280px}
body .justice-dossier .justice-two:has(>section:only-child){grid-template-columns:1fr}
@media(max-width:700px){
 body .justice-dossier .dossier-next{align-items:flex-start;flex-direction:column;gap:12px}
 body .justice-dossier .dossier-document-header{grid-template-columns:1fr auto;gap:10px}
 body .justice-dossier .dossier-document-header>div{grid-column:1/-1}
 body .justice-dossier .dossier-edit-panel{padding:13px}
 body .justice-dossier .dossier-document-header>.justice-pill{max-width:190px}
}

body .justice-dossier .dossier-replacement-form{padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #bfd0e3;max-width:840px}
body .justice-dossier .dossier-replacement-form input{max-width:100%;min-width:0}
body .justice-dossier .dossier-edit-panel h4{margin-top:18px}

/* Klant betaalt zelf: duidelijk aanvinkvak + 6-maandenmerk */
body label.klant-zelf{display:flex!important;align-items:flex-start;gap:12px;padding:12px 14px;margin:6px 0 4px;border:1px solid #c9d6e6;border-radius:10px;background:#f6f9fd;cursor:pointer;font-weight:400}
body label.klant-zelf:hover{border-color:var(--app-blue,#1d5fa8)}
body label.klant-zelf:has(input:checked){background:#e7f0fb;border-color:var(--app-blue,#1d5fa8)}
body label.klant-zelf input[type=checkbox]{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;flex:0 0 22px;margin:1px 0 0!important;padding:0!important}
body label.klant-zelf span{display:flex;flex-direction:column;gap:3px}
body label.klant-zelf strong{font-size:15px}
body label.klant-zelf small{color:#4a5a6e;font-size:13px;line-height:1.35}
body .zes-mnd{font-weight:700;color:#234e7a}
body .zes-mnd.is-bijna{color:#8a5a00}
body .zes-mnd.is-voorbij{color:#a1361f}

/* Vordering ontbreekt: niet te missen */
body .vordering-mis{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:14px 0 6px;padding:12px 14px;border:2px solid #c0392b;border-left-width:6px;border-radius:10px;background:#fdecea;color:#7a1f14}
body .vordering-mis strong{font-size:16px;color:#a1261a}
body .vordering-mis span{flex:1 1 240px;font-size:14px}
body .vordering-tag{display:inline-block;align-self:flex-start;margin:3px 0;padding:2px 8px;border-radius:6px;background:#fdecea;border:1px solid #e3a59c;color:#a1261a;font-size:12px;font-weight:800}
