/* V5.50.10 shared management structure. Old controls retained in DOM solely for legacy editor compatibility. */
#app .le510-doc-pane{padding:8px 10px!important;min-height:0!important}
#app .le510-doc-pane > :not(.le85-pane-head):not(.le510-shell){display:none!important}
#app #le106-trade-section.le510-doc-pane > :not(.le510-shell){display:none!important}
#app .le510-shell{display:block!important;width:100%;padding:5px 0 6px;min-height:0!important}
#app .le510-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:0 0 9px;padding:6px 0 7px;border-bottom:1px solid #dce7f2}
#app .le510-actions button{white-space:nowrap;font-weight:750}
#app .le510-context{font-size:11px;color:#52728e;margin:5px 0 8px}
#app .le510-tablebox{width:100%;overflow:auto;border:1px solid #cddbe9;border-radius:5px}
#app .le510-table{width:100%;min-width:635px;table-layout:fixed;border-collapse:collapse;font:12px 'Malgun Gothic',sans-serif;background:#fff}
#app .le510-table thead th{position:relative;background:#edf4fb;color:#245477;font-weight:800;text-align:center;padding:8px 10px;border:1px solid #d6e3ef;white-space:nowrap}
#app .le510-table td{padding:7px 8px;border-bottom:1px solid #e2e9f1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;height:38px}
#app .le510-table tbody tr[data-row]{cursor:pointer}
#app .le510-table tbody tr[data-row]:hover td{background:#eaf3ff}
#app .le510-table tbody tr[data-row].selected td{background:#dcecff}
#app .le510-table .le510-file{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .le510-table .le510-delete{border-color:#e0b4b4;color:#9a2d2d}
#app .le510-size-grip{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;border-right:2px solid transparent}
#app .le510-size-grip:hover{border-right-color:#2675c5}
#app .le510-pagination{display:flex;justify-content:center;gap:5px;min-height:29px;margin:8px 0 0}
#app .le510-page{min-width:27px;height:27px;border:1px solid #c7d8e7;border-radius:4px;background:white;color:#164e86;cursor:pointer}
#app .le510-page.current{background:#0863b3;color:#fff;font-weight:800}
.le510-modalbg{position:fixed;inset:0;z-index:1000012;background:#0b234a99;display:flex;align-items:center;justify-content:center;padding:15px}
.le510-modal{width:min(820px,97vw);max-height:95vh;overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid #a4bdd2;border-radius:8px;box-shadow:0 12px 55px #0006}
.le510-modalhead{display:flex;justify-content:space-between;align-items:center;background:#0e5ba6;color:white;padding:12px 17px;font-size:16px}
.le510-modalbody{overflow:auto;padding:16px}.le510-form{display:grid;gap:13px}
.le510-form label{display:grid;gap:5px;font-size:12px;font-weight:800}.le510-form input{width:100%;height:37px;padding:6px 9px;border:1px solid #b7c8dc;border-radius:4px}
.le510-modalactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-top:6px}
.le510-fileinfo{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.le510-fileinfo span{font-size:12px;color:#587086}
.le510-filepreview{height:290px;border:1px solid #cdd9e6;background:#f4f7fa;margin:8px 0 14px;display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center;font-size:12px;color:#536b82}
.le510-filepreview iframe{height:100%;width:100%;border:0}.le510-filepreview img{max-height:100%;max-width:100%;object-fit:contain}
@media(max-width:760px){#app .le510-actions{gap:4px}#app .le510-actions button{font-size:11px}.le510-filepreview{height:230px}}

#app #le106-trade-section.le510-doc-pane > .le107-trade-head{display:flex!important;justify-content:flex-start!important;margin-bottom:5px}
#app #le106-trade-section.le510-doc-pane > .le107-trade-head span{display:none!important}

/* V5.56.16 preconstruction document linkage shared across panels 4–7 */
#app .le510-link-doc{background:#eaf3fc;border:1px solid #8bb9df;color:#18598b}
.le510-modal .le510-link-help{font-size:12px;color:#4c687e;line-height:1.5;margin:9px 0}
.le510-modal .le510-link-search{display:flex;gap:8px;margin:10px 0}
.le510-modal .le510-link-search input{flex:1;min-width:160px;padding:8px;border:1px solid #c8d7e6;border-radius:5px}
.le510-modal .le510-link-scroll{max-height:43vh;overflow:auto}
.le510-modal .le510-link-scroll .le510-table{min-width:690px}
.le510-modal .le510-link-scroll th{position:sticky;top:0}
