.pw-tools,.pw-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;align-items:end}
.pw-tools label{display:grid;gap:6px;flex:1 1 140px;min-width:0}
.pw-tools input,.pw-tools select{width:100%;min-width:0}
.pw-card{border:1px solid #3b5570;border-radius:12px;background:#102238;padding:14px;margin:12px 0;overflow-wrap:anywhere}
.pw-card h3{margin:0 0 8px;font-size:17px}.pw-card p{line-height:1.5;white-space:pre-wrap;margin:8px 0}
.pw-card .small,.pw-help{color:#b7c9db;line-height:1.5}
.pw-actions .btn{min-height:44px;max-width:100%;white-space:normal;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.pw-error{color:#ffb5aa;white-space:pre-wrap}
.pw-status{display:inline-block;border:1px solid #60826e;background:#143c2c;border-radius:15px;padding:4px 9px;font-size:12px}
.pw-status[data-status="Needs correction"]{background:#583827;border-color:#dbaf80}
.pw-dialog{width:min(740px,94vw);max-height:92dvh;overflow:auto;box-sizing:border-box;border:1px solid #68819b;border-radius:15px;padding:20px;background:#0e2034;color:#eef6ff}
.pw-dialog::backdrop{background:#000b}.pw-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.pw-dialog h2{font-size:21px;margin:0}.pw-dialog form{display:grid;gap:14px}.pw-dialog form label{display:grid;gap:6px;min-width:0}
.pw-dialog input,.pw-dialog textarea,.pw-dialog select{width:100%;min-width:0;box-sizing:border-box;font:inherit}
.pw-dialog textarea{min-height:85px;background:#142238;color:white;border:1px solid #48617e;border-radius:10px;padding:12px}
.pw-dialog input[type=file]{padding:8px;font-size:13px}
.pw-dialog .pw-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#paperworkInbox{width:min(1040px,95vw)}
#driverWelcome{padding:14px 16px;border:1px solid #3f655d;border-radius:12px;background:#0d2b2be8;margin-bottom:12px}
#driverWelcome h2{font-size:20px;margin:0 0 5px}#driverWelcome p{margin:0;color:#d0e1df;line-height:1.4}
@media(max-width:440px){.pw-dialog{padding:16px}.pw-dialog .pw-two{grid-template-columns:1fr}.pw-tools label{flex-basis:100%}.pw-actions .btn{flex:1 1 auto}.pw-card{padding:12px}}
