/* OneFSG V8.2.8.3 - CSS Only UI Fix
   Scope: cursor polish and document overflow containment only.
   No routing, no registry, no JavaScript, no navigation changes. */

/* Make real interactive controls show the hand cursor. */
a,
button,
[role="button"],
.v16-btn,
.v8-btn,
.tab,
.onefsg-tab,
.onefsg-pill,
.onefsg-action,
.onefsg-card-action,
.onefsg-data-table button,
.onefsg-data-table a,
select,
input[type="button"],
input[type="submit"],
input[type="file"],
summary,
[data-go],
[data-route],
[data-tab],
[onclick] {
    cursor: pointer !important;
}

/* Keep disabled/pending items from pretending they are clickable. */
button:disabled,
.disabled,
[aria-disabled="true"],
.backend-pending,
.coming-soon,
.badge,
.onefsg-badge,
.v16-badge {
    cursor: default !important;
}

/* Prevent governance/document tables from spilling into white browser space. */
#v8-content,
#app,
.onefsg-page,
.onefsg-shell-main,
.onefsg-content,
.v16-page,
.v16-content,
.v16-panel,
.v16-card,
.onefsg-panel,
.onefsg-card {
    max-width: 100%;
    box-sizing: border-box;
}

.onefsg-data-table,
.v16-table,
table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.onefsg-data-table th,
.onefsg-data-table td,
.v16-table th,
.v16-table td,
table th,
table td {
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.onefsg-table-wrap,
.v16-table-wrap,
.document-table-wrap,
.governance-table-wrap,
.recent-documents,
.documents-panel,
.document-library-panel {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

/* Action columns should not force the full page wider than the viewport. */
.onefsg-data-table .actions,
.onefsg-data-table td:last-child,
.v16-table td:last-child {
    white-space: normal;
}

.onefsg-data-table td:last-child .v16-btn,
.onefsg-data-table td:last-child .v8-btn,
.onefsg-data-table td:last-child button {
    margin: 3px;
    display: inline-flex;
}
