/* PDF is the only operational manifest input; controls sit beneath the cargo image. */
.manifest-upload-panel{margin:12px 0 18px;padding:12px;border:1px solid #315b72;border-radius:9px;background:#08283d;color:#e1edf5}
.manifest-upload-panel h3{margin:0 0 10px;font-size:15px}
.manifest-upload-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}
.manifest-upload-actions button,.manifest-upload-label{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:42px;width:100%;padding:8px 10px;border:1px solid #6a93a8;border-radius:6px;color:#fff;background:#164963;font-size:13px;font-weight:650;text-align:center;cursor:pointer}
.manifest-upload-label{background:#195875}
.manifest-upload-actions button:disabled{opacity:.5;cursor:not-allowed}
.manifest-upload-label:focus-within{outline:2px solid #f5b63e}
.manifest-pdf-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.manifest-upload-panel p[role=status]{overflow-wrap:anywhere;font-size:12px;margin:9px 0}
.manifest-pdf-pages{max-height:390px;overflow:auto;overflow-wrap:anywhere;white-space:normal;font-size:12px}
.manifest-pdf-pages table{width:100%;display:block;overflow-x:auto}
.manifest-saved{padding:9px 0}
.manifest-saved button{min-height:34px;cursor:pointer}
@media(max-width:460px){.manifest-upload-actions{gap:6px}.manifest-upload-actions button,.manifest-upload-label{font-size:12px}}


/* Results occupy the approved lower panel, never the image/upload column. */
.manifest-review-results{max-height:none;overflow:visible;overflow-wrap:normal;scroll-margin-top:24px}
.manifest-review-results:empty{display:none}
.manifest-review-results table{display:table;overflow:visible;min-width:1180px}
.manifest-review-table th{position:sticky;top:0;background:#08283d;z-index:1;white-space:nowrap}
.manifest-review-table td{vertical-align:middle;overflow-wrap:normal;word-break:normal}
.manifest-review-table td:nth-child(4),.manifest-review-table td:nth-child(6),.manifest-review-table td:nth-child(9){white-space:nowrap}
.manifest-destination-group td{padding:9px 12px;background:#164963;color:#fff;font-weight:700;border-bottom:1px solid #527087}
.listpanel:has(.manifest-review-results:not(:empty)) .tablewrap:has(#rows:empty){display:none}

.manifest-review-row.manifest-reviewed td{background:#123e39}
.manifest-review-row.manifest-reviewed td:last-child{color:#9ee5c0;font-weight:650}
