/* Compact project/plan tables; overflow retains all accessible columns. */
.governance-table-wrap,.project-table-wrap{overflow-x:auto;max-width:100%;}
.governance-table{width:100%;min-width:900px;border-collapse:collapse;font-size:11px;table-layout:fixed;}
.governance-table th,.governance-table td{height:32px;padding:4px 8px;line-height:16px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--border,#d8dee7);}
.governance-table th{font-weight:600;background:var(--surface,#f5f7fa);}
.governance-table button{font-size:11px;min-height:24px;height:24px;padding:2px 6px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.governance-table button:focus-visible{outline:2px solid #236cb5;outline-offset:-2px;}
.governance-table .project-name{font-size:11px;}
.governance-table .badge{font-size:10px;padding:1px 4px;margin-left:4px;}
.planning-table th:first-child{width:23%;}.planning-table th:nth-child(2){width:7%;}.planning-table th:nth-child(3){width:13%;}.planning-table th:nth-child(6){width:19%;}
.governance-table .main-plan td:first-child{font-weight:700;}.governance-table .main-plan td:first-child button{font-weight:700;}
.governance-table .earlier-plan{color:var(--muted,#677384);}.governance-table .earlier-plan button{color:inherit;}
.governance-table .selected-plan{background:var(--ui-selected,var(--surface2));}.governance-table .main-plan:not(.earlier-plan){color:inherit;}
#planning-view .planning-layout{display:block;}#planning-view .planning-tree{position:static;max-height:none;overflow:visible;max-width:none;width:100%;margin-bottom:18px;}
#planning-view .governance-table-wrap{max-height:60vh;overflow:auto;}
#planning-view .planning-detail{width:100%;}#overview-view .overview-controls{font-size:11px;}
.workspace-d1 #overview-view .governance-table th,.workspace-d1 #overview-view .governance-table td,
.workspace-d1 #planning-view .governance-table th,.workspace-d1 #planning-view .governance-table td{box-sizing:border-box;height:32px;padding:3px 8px;line-height:16px;font-size:11px;}
.workspace-d1 #overview-view .governance-table button,.workspace-d1 #planning-view .governance-table button{box-sizing:border-box;min-height:24px;height:24px;padding:2px 6px;line-height:16px;font-size:11px;}
.workspace-d1 #planning-view .governance-table .main-plan td:first-child,.workspace-d1 #planning-view .governance-table .main-plan td:first-child button{font-weight:700!important;}
html[data-theme="dark"] .governance-table .selected-plan{background:var(--ui-selected,var(--surface2));}
