.cargo-registration{padding:23px;background:#fff;border:1px solid #dce6f1;border-radius:16px;margin-top:20px}.cargo-registration h2{font-size:18px;color:#123f6b;margin:0 0 9px}.cargo-registration p{font-size:12px;line-height:1.8;color:#7a91a6;margin:0}.registry-buttons{display:flex;gap:9px;flex-wrap:wrap;margin:17px 0}.registry-buttons button,.registry-buttons label,.registry-buttons a{font-size:12px;text-decoration:none;min-height:40px;padding:10px 14px;display:inline-flex;align-items:center;cursor:pointer}.cargo-registration #registryStatus{font-size:11px}.upload-excel{color:#174d7c}#cargoEditor{max-width:1100px;width:calc(100vw - 30px);max-height:92vh;border:1px solid #c9dcec;border-radius:18px;padding:0;color:#294e72}#cargoEditor::backdrop{background:#03254f88;backdrop-filter:blur(3px)}.cargo-editor-top{display:flex;justify-content:space-between;gap:20px;align-items:start;padding:23px;border-bottom:1px solid #dfe8f2}.cargo-editor-top h2{font-size:22px;color:#07366e;margin:7px 0}.cargo-editor-top p{font-size:11px;color:#869bb0;margin:0;line-height:1.8}.cargo-editor-body{display:grid;grid-template-columns:250px minmax(0,1fr);max-height:60vh;overflow:hidden}.draft-list{background:#f5f9fd;border-right:1px solid #dfe8f2;overflow:auto}.draft-row{display:flex;gap:8px;padding:11px 10px;border-bottom:1px solid #e0e9f2;align-items:start}.draft-row.active{background:#e4f0fc}.draft-row>input{margin-top:7px;accent-color:#07366e}.draft-row>button{background:none;border:0;display:flex;flex-direction:column;gap:6px;text-align:left;padding:4px;min-width:0}.draft-row strong{font-size:11px;line-height:1.7;color:#27577e}.draft-row small{font-size:9px;color:#899eb2;line-height:1.7}.draft-form-area{overflow:auto;padding:25px}.cargo-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.cargo-field{display:flex;flex-direction:column;gap:7px;min-width:0}.cargo-field.full{grid-column:1/-1}.cargo-field>span{font-size:11px;font-weight:700;color:#497294}.cargo-field>small{font-size:10px;color:#8aa0b4}.cargo-field input,.cargo-field select,.cargo-field textarea{width:100%;border:1px solid #d8e4ef;border-radius:8px;padding:11px;font:inherit;font-size:12px;color:#2e587b;background:#fff;line-height:1.7}.cargo-field input,.cargo-field select{min-height:43px}.cargo-field textarea{resize:vertical;min-height:100px}.cargo-editor-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 23px;border-top:1px solid #dfe8f2;background:#f9fbfe}.cargo-editor-bottom p{font-size:11px;line-height:1.8;color:#6c8aa3;margin:0;flex:1}.cargo-editor-bottom>div{display:flex;gap:8px}.cargo-editor-bottom button{font-size:12px}@media(max-width:700px){.cargo-registration{padding:18px}.registry-buttons{gap:7px}.registry-buttons button,.registry-buttons label,.registry-buttons a{font-size:11px;padding:9px 11px}#cargoEditor{width:calc(100vw - 16px);max-height:95vh}.cargo-editor-top{padding:17px}.cargo-editor-top h2{font-size:18px}.cargo-editor-body{grid-template-columns:1fr;max-height:65vh;overflow:auto}.draft-list{max-height:150px;overflow:auto;border-bottom:1px solid #dce6f1}.draft-form-area{overflow:visible;padding:18px}.cargo-form-grid{grid-template-columns:1fr;gap:14px}.cargo-editor-bottom{padding:15px;flex-direction:column;align-items:stretch;gap:10px}.cargo-editor-bottom>div{justify-content:flex-end}}
/* Keep the editor within the viewport and let the form, rather than the grid's content size, own scrolling. */
#cargoEditor[open]{display:flex;flex-direction:column;height:min(900px,92vh);height:min(900px,92dvh);max-height:92vh;max-height:92dvh;overflow:hidden}
.cargo-editor-top,.cargo-editor-bottom{flex-shrink:0}
.cargo-editor-body{flex:1;min-height:0;max-height:none;grid-template-rows:minmax(0,1fr)}
.draft-list,.draft-form-area{min-height:0;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#819fb9 #edf3f9}
.draft-form-area{overflow-y:auto;scroll-padding-block:20px;-webkit-overflow-scrolling:touch}
@media(max-width:700px){#cargoEditor[open]{height:95vh;height:95dvh;max-height:95vh;max-height:95dvh}.cargo-editor-body{display:block;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.draft-list{max-height:130px}.draft-form-area{overflow:visible}}
