#justification-dialog{width:min(800px,94vw);padding:0;overflow:auto}
.justification-header{padding:23px 25px;background:linear-gradient(110deg,#f34e28,#ff8746);color:white;margin:0;position:sticky;top:0;z-index:3}
.justification-header h2{font-size:1.3rem}.justification-header p{color:white;margin:5px 0 0;font-weight:650}
.justification-header .quiet{background:#ffffff26;color:white}
.justification-content{padding:0 25px 25px}.justification-content .detail-grid{grid-template-columns:1fr 1fr;margin:20px 0}
.justification-content h3{font-size:.95rem;margin:24px 0 14px}
.note-categories{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0;padding:0;margin:14px 0}
.note-categories legend{font-weight:650;font-size:.9rem;margin-bottom:12px}
.note-categories label{flex-direction:row;align-items:center;background:var(--panel2);border:1px solid var(--border);padding:13px;border-radius:10px;cursor:pointer;color:var(--text)}
.note-categories label:has(input:checked){border-color:var(--accent);background:var(--soft-blue)}
.note-categories input{accent-color:var(--accent);margin:0}.note-categories .note-badge{margin:0}
#justification-comment{width:100%;resize:vertical;min-height:95px;padding:13px;background:var(--input);color:var(--text);border:1px solid var(--border);border-radius:10px;font:inherit;font-size:.85rem}
.justification-help{font-size:.75rem;line-height:1.6}.justification-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}
#justification-result{color:var(--red);font-size:.8rem;margin-top:12px}
.justification-entry{padding:15px 0;border-top:1px solid var(--border)}.justification-entry>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.justification-entry small{color:var(--muted);font-size:.72rem}.justification-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem;margin:10px 0 0}
.note-badge{display:inline-block;padding:3px 7px;border:1px solid var(--border);border-radius:6px;font-size:.69rem;background:var(--panel2);color:var(--muted);line-height:1.5}
.note-driver_loss{color:var(--amber);background:var(--soft-amber)}.note-reviewing{color:var(--blue);background:var(--soft-blue)}.note-resolved{color:var(--green);background:var(--soft-green)}
.note-action{min-width:140px}.note-action .note-badge{display:block;width:fit-content;margin-bottom:5px}.note-action .justify-button{font-size:.74rem}
tr.package-lost{background:var(--panel2)}tr.package-lost td{color:var(--muted)}
tr.package-lost .status,tr.package-lost .age{background:transparent;color:var(--muted);border:1px solid var(--border);font-weight:400}
tr.package-lost td:not(.note-action) .text-link{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--border)}
tr.package-lost .row-select{opacity:.65}tr.package-lost:hover{background:var(--hover)}
@media(max-width:540px){.justification-content{padding:0 16px 20px}.justification-header{padding:20px 16px}.note-categories{grid-template-columns:1fr}.justification-entry>div{align-items:flex-start;flex-direction:column;gap:6px}}
