/* OneFSG V8.2.10 - Cursor safety and document/file UI polish */
.onefsg-tabs button:not([disabled]),
.v8-site-apps button:not([disabled]),
button.v8-btn:not([disabled]),
.v8-btn:not([disabled]),
a[href],
[data-go],
[data-v813-go] {
  cursor: pointer !important;
}

button[disabled],
.v8-btn[disabled],
button.disabled,
.v8-btn.disabled,
.backend-pending,
.coming-soon {
  cursor: default !important;
}

#v8-content .onefsg-panel,
#v8-content .onefsg-app-card,
#v8-content .onefsg-kpi-card,
#v8-content .card,
#v8-content .hub-card {
  cursor: default;
}

#v8-content .onefsg-data-table,
#v8-content .onefsg-data-table th,
#v8-content .onefsg-data-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

#v8-content .onefsg-data-table td:last-child,
#v8-content .onefsg-data-table th:last-child {
  min-width: 120px;
}

#v8-content .onefsg-data-table .v8-btn,
#v8-content table .v8-btn {
  white-space: normal;
  max-width: 130px;
  line-height: 1.15;
}

#v8-content .onefsg-panel-grid,
#v8-content .onefsg-kpi-grid {
  max-width: 100%;
}

#v8-content .onefsg-file-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

#v8-content .onefsg-file-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 800;
}

#v8-content .onefsg-file-form-grid input,
#v8-content .onefsg-file-form-grid select,
#v8-content .onefsg-file-form-grid textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: #fff;
  padding: 11px 12px;
}

#v8-content .onefsg-file-form-grid .wide {
  grid-column: 1 / -1;
}

#v8-content .onefsg-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#v8-content .onefsg-file-copy {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

@media (max-width: 900px) {
  #v8-content .onefsg-file-form-grid {
    grid-template-columns: 1fr;
  }
}
