/* V240: two separated invoice pages -> one jointly analyzed PDF draft. */
.v240-overlay[hidden]{display:none!important}
.v240-overlay{position:fixed;inset:0;z-index:100400;display:grid;place-items:center;background:rgba(12,22,39,.7);padding:12px}
.v240-dialog{width:min(850px,100%);max-height:calc(100dvh - 26px);overflow:auto;background:#fff;color:#192e47;border-radius:13px;border:1px solid #cbd9e8;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:22px}
.v240-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.v240-dialog header h2{font-size:20px;margin:5px 0}
.v240-dialog header small{font-size:11px;color:#155c97;font-weight:750;letter-spacing:.06em}
.v240-dialog p{color:#53637a;font-size:13px;line-height:1.55}
.v240-choices{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:12px;margin:15px 0}
.v240-choices label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#334866;min-width:0}
.v240-choices select{padding:10px;min-height:42px;width:100%;box-sizing:border-box;border:1px solid #bdccdf;border-radius:7px;background:#fff;font-size:13px}
.v240-choices button{min-height:42px}
.v240-preview{background:#f2f6fb;border-radius:9px;border:1px solid #d8e3ef;padding:12px;display:grid;gap:9px}
.v240-preview>div{display:grid;gap:3px}
.v240-preview strong{font-size:13px;overflow-wrap:anywhere}
.v240-preview span{color:#60758c;font-size:12px}
.v240-dialog .v240-explain{margin:13px 0;font-size:12px}
#v240Progress:not(:empty){border-radius:7px;padding:10px 12px;background:#eaf3fd;border:1px solid #d1e4f7;color:#1c5783}
#v240Progress[data-error=true]{background:#fff0ef;color:#a42525;border-color:#eebdb8}
.v240-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.v240-dialog footer button{min-height:40px}
#v240Launch{min-height:36px;margin-left:8px;white-space:normal}
#v143TravelQueueList button.v240-pick{min-height:33px;padding:6px 9px;color:#245679;font-size:11px;white-space:nowrap}
#v143TravelQueueList .v239-entry:has(.v240-pick){grid-template-columns:minmax(0,1fr) auto auto auto}
@media(max-width:780px){
 .v240-dialog{padding:15px}
 .v240-choices{grid-template-columns:1fr}
 .v240-choices button{justify-self:start}
 #v143TravelQueueList .v239-entry:has(.v240-pick){grid-template-columns:minmax(0,1fr) auto;gap:7px}
 #v143TravelQueueList .v240-pick{grid-column:1;justify-self:start}
}

.v242-list{display:grid;gap:8px;max-height:40vh;overflow:auto;padding:4px}
.v242-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #d3dfeb;border-radius:8px;background:#f7fafc}
.v242-choice label{flex:1;display:flex;align-items:center;gap:10px;font-size:13px;overflow-wrap:anywhere}
.v242-choice input{width:18px;height:18px;flex-shrink:0}
.v242-order{display:flex;align-items:center;gap:5px}
.v242-order strong{font-size:12px;white-space:nowrap;color:#173f62}
.v242-order button{min-width:34px;min-height:34px;padding:5px;color:#103b60;background:#e7f0fa;border:1px solid #9fbbd5;border-radius:6px}
@media(max-width:650px){.v242-choice{flex-wrap:wrap}.v242-order{margin-left:auto}}
