.management-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-bottom:20px}.management-metrics strong{font-size:30px;line-height:1.4}.management-metrics p{color:var(--muted)}.management-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.management-cards button{display:flex;justify-content:space-between;width:100%;margin:8px 0;text-align:left;min-height:36px}.management-grant{border-top:1px solid var(--line);padding:18px 0}.management-mode .module-title{border-bottom:1px solid var(--line);padding-bottom:16px}.management-mode .sub-tree button{min-height:32px}.management-mode .content>.card{margin-bottom:18px}.org-order-row{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);background:var(--panel);border-radius:var(--ui-radius-control);margin-bottom:8px}.org-order-row span{flex:1}.org-order-row[draggable=true]{cursor:grab}.org-order-row:focus-within{outline:2px solid var(--text)}.management-mode input,.management-mode select,.management-mode textarea{color:var(--text);background:var(--panel)}.management-mode option{color:var(--text);background:var(--panel)}
@media(max-width:700px){.management-cards{grid-template-columns:1fr}.management-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.management-mode .sub-tree button{min-height:40px}.management-mode .card{padding:16px}.org-order-row button{min-width:40px;min-height:40px}}

/* Historical exports keep original column order inside their own scroller. */
#history-detail{scroll-margin-top:80px;min-width:0}#history-detail .history-source-table{max-height:60vh;overflow:auto}#history-detail .history-source-table th,#history-detail .history-source-table td{white-space:nowrap}#history-detail small{overflow-wrap:anywhere}#history-catalog td{overflow-wrap:anywhere}
.self-source-history{min-width:0;margin-top:16px}.self-source-history summary{cursor:pointer;font-weight:var(--font-weight-bold,600)}.self-source-history .actions{flex-wrap:wrap}.self-source-history label{min-width:0;max-width:100%}.self-source-history select{max-width:100%;color:var(--text);background:var(--panel)}.self-source-history .history-source-table{max-height:55vh;overflow:auto}.self-source-history th,.self-source-history td{white-space:nowrap}
