.association-stock{background:#fff;padding:16px;border:1px solid var(--line);border-radius:3px}
.association-stock-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#f5f5f5;border-bottom:1px solid #ddd;padding:18px 16px}
.association-stock-selects{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.association-stock select{border-radius:0;height:32px;min-height:32px;padding:4px 10px;font-size:12px;border-color:#d9d9d9}
.association-stock-selects select:first-child{width:205px}
.association-stock-selects select:nth-child(2){width:155px}
.association-stock-search{position:relative;display:flex;width:290px;flex:none}
.association-stock-search input{border-radius:0;padding-right:34px;width:100%;height:32px;min-height:32px;border-color:#d9d9d9}
.stock-search-reset{position:absolute;right:39px;top:0;width:30px;height:32px;border:0;background:none;color:#999;font-size:19px}
.stock-search-button{height:32px;width:38px;flex:none;display:grid;place-items:center;border:0;background:#0878cf;color:#fff}
.association-stock-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:calc(100vh - 320px);min-height:540px;background:#f5f5f5;gap:12px}
.association-stock-model{display:flex;position:relative;min-width:0;min-height:0;overflow:hidden}
.association-stock-model .model-static{min-height:0;background:#f5f5f5;padding:40px 10px 70px}
.association-stock-model .model-static img{width:100%;height:auto;max-height:100%;object-fit:contain}
.association-stock-model .bim-status-legend{left:50%;bottom:18px;transform:translateX(-50%);flex-direction:row;gap:10px;padding:0;background:none;box-shadow:none;font-size:11px;border-radius:0}
.association-stock-model .bim-status-legend>div{gap:5px}
.association-stock-model .bim-status-legend i{width:12px;height:12px;flex-basis:12px}
.association-stock-table{background:#fff;min-width:0;overflow:auto}
.association-stock-table table{font-size:11px;min-width:600px;table-layout:fixed;width:100%}
.association-stock-table th{position:sticky;top:0;z-index:1;background:#f3f3f3;font-size:11px;color:#24364b;padding:12px 8px;border-right:1px solid #e3e3e3;font-weight:400}
.association-stock-table td{height:47px;padding:10px 8px;border-bottom:1px solid #ebebeb;color:#24364b}
.association-stock-table tbody tr:nth-child(even){background:#fafafa}
.association-stock-table tbody tr:hover{background:#f3f8fc}
.association-stock-table .assoc-name-col{width:190px;white-space:normal}
.association-stock-table th:last-child{width:100px}
.assoc-task-cell{display:flex;align-items:center;min-width:0}
.assoc-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assoc-leaf-space{width:20px;flex:none}
.assoc-task-cell .tree-toggle{flex:none;color:#333}
.association-stock-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
.association-stock-actions .link{font-size:11px;cursor:default;color:#0878cf;text-decoration:none}
@media(max-width:1400px){.association-stock-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}.association-stock-table table{min-width:0}.association-stock-table .assoc-name-col{width:170px}.association-stock-table th:last-child{width:90px}.association-stock-table th,.association-stock-table td{padding-left:5px;padding-right:5px;font-size:10.5px}.association-stock-actions{gap:5px}}
@media(max-width:1100px){.association-stock-toolbar{padding:12px}.association-stock-selects select:first-child{width:180px}.association-stock-selects select:nth-child(2){width:130px}.association-stock-search{width:240px}.association-stock-model .bim-status-legend{gap:7px;font-size:10px}}
.association-stock-table{position:relative}
.association-stock-actions .link{cursor:pointer}
.association-stock-table.location-open{overflow:hidden}
.association-stock-table>table[hidden]{display:none}
.stock-location-drawer{position:absolute;inset:0;z-index:2;background:#fff;padding:24px;display:flex;flex-direction:column;gap:16px}
.stock-location-selection{background:#e6f7ff;border:1px solid #91d5ff;min-height:58px;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;color:#172b3a;font-size:12px}
.stock-location-drawer .link{color:#0086df;cursor:pointer;font-size:12px}
.stock-location-list{flex:1;min-height:0;overflow:auto}
.stock-location-drawer table{width:100%;min-width:0;table-layout:fixed;font-size:12px}
.stock-location-drawer th,.stock-location-drawer td{border:1px solid #e4e8eb;text-align:left;padding:12px 16px;white-space:normal;overflow-wrap:anywhere;height:48px}
.stock-location-drawer th{background:#f3f3f3;font-weight:400}
.stock-location-drawer th.stock-location-check{width:42px}
.stock-location-drawer th:last-child{width:64px}
.stock-location-drawer td:first-child{padding:12px;text-align:center}
.stock-location-drawer tr.selected td{background:#e6f7ff}
.stock-location-drawer input[type=checkbox]{width:15px;height:15px;accent-color:#0075c9;cursor:pointer}
.stock-location-footer{background:#add8e6;display:flex;justify-content:space-between;align-items:center;min-height:32px;padding:0 16px;flex-shrink:0}
@media(max-width:1400px){.stock-location-drawer{padding:20px}.stock-location-drawer th,.stock-location-drawer td{font-size:11px;padding:12px 10px}.stock-location-selection{padding:16px}}
