.admin-workspace,
.admin-workspace [data-admin-tabpanel] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 14px;
}
.admin-workspace-tabs { display: flex; width: 100%; }
.admin-workspace-tabs small { display: inline-block; margin-left: 5px; }
/* The application-wide nav grid must not size this local tab list. */
[data-admin-workspace] > nav.admin-workspace-tabs {
  display: flex !important; flex-wrap: wrap; width: 100%;
  height: auto !important; min-height: 0 !important;
  padding: 0 0 0 2px !important; overflow: visible !important;
  align-content: flex-start; align-items: flex-end;
}
[data-admin-workspace] > nav.admin-workspace-tabs > button {
  display: inline-flex !important; flex: 0 1 auto !important;
  width: auto !important; align-items: center; justify-content: center;
}
[data-admin-workspace] > nav.admin-workspace-tabs small { white-space: nowrap; }
.admin-workspace .admin-stack { display: block; }
.admin-workspace .admin-stack > * + * { margin-top: 14px; }
.admin-workspace [aria-label="Business setup"] {
  display: flex; flex-wrap: wrap; height: auto !important;
  min-height: 0; overflow: visible !important; align-self: start;
}
.admin-workspace :is(.panel, .rights-box, .access-group-preview) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
}
.admin-workspace .admin-detail { min-width: 0; }
.admin-workspace .admin-detail > * { min-width: 0; max-width: 100%; }
.admin-workspace :is(.xero-table-frame, .table-wrap) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.admin-workspace :is(.admin-register, .users-access-table) {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.admin-workspace :is(.admin-register, .users-access-table) :is(th, td) {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.admin-workspace .admin-register th:first-child { width: 54%; }
.admin-workspace .admin-register td > small {
  display: block;
  margin-top: 3px;
  color: var(--muted-strong);
  line-height: 1.35;
}
.admin-list-pagination,
.admin-list-pagination > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-list-pagination { margin-top: 12px; font-size: 13px; }
.admin-list-pagination button { min-height: 34px; }
.admin-company-rollout { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-company-rollout > summary { cursor: pointer; font-weight: 750; }
.admin-workspace .panel-title { flex-wrap: wrap; gap: 8px; }
.admin-workspace .panel-title > div { min-width: 0; }
.admin-workspace :is(input, select, button) { max-width: 100%; box-sizing: border-box; }
.admin-workspace button { white-space: normal; }
.admin-unsaved-overlay {
  position: fixed; inset: 0; z-index: 2500; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 32, 47, .45);
}
.admin-unsaved-dialog {
  width: min(480px, 100%); padding: 24px; border-radius: 8px;
  background: var(--surface, white); box-shadow: 0 12px 40px rgba(18,32,47,.2);
}
.admin-unsaved-dialog .detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .admin-workspace-tabs > button { flex: 1 1 auto; padding: 8px 10px; }
  .admin-workspace :is(.admin-register, .users-access-table) :is(th, td) { padding: 8px; }
  .admin-workspace .admin-detail { grid-template-columns: minmax(0, 1fr); }
}
