/* Diretórios de gestão; nenhum seletor afeta hall, jogos ou biblioteca. */
.management-directory-toolbar, [data-management-companies], [data-management-people], #companyScopedTeams { scroll-margin-top: 18px; }
.management-workspace-grid { grid-template-columns: minmax(0, 1fr); }
.management-preview-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.management-preview-switch span { margin-right: auto; color: #685b70; font-size: .85rem; }
.management-preview-switch a, .management-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 15px; border: 1px solid #b8a5cd; border-radius: 10px;
  background: #fff; color: #42236f; font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none;
}
.management-preview-switch a[aria-current="page"] { background: #42236f; color: #fff; }
.management-action:disabled { opacity: .55; cursor: not-allowed; }
.management-integration-note { padding: 12px 14px; border-left: 3px solid #7255b7; background: #f5f1fb; color: #55446d; font-size: .85rem; line-height: 1.5; }
.management-directory-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) 160px 155px; gap: 12px; margin: 20px 0 16px; }
.management-directory-toolbar label { display: grid; gap: 7px; color: #42236f; font-size: .85rem; font-weight: 700; }
.management-directory-toolbar input, .management-directory-toolbar select, .management-pagination select {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #b8a5cd;
  border-radius: 10px; background: #fff; color: #42236f; font: inherit;
}
.management-table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b8a5cd #f5f1fb; scrollbar-gutter: stable; }
.management-table { width: 100%; border-collapse: collapse; font-size: .85rem; color: #55446d; }
.management-table caption { text-align: left; padding: 0 0 14px; font-weight: 700; }
.management-table th { text-align: left; color: #685b70; background: #f5f1fb; font-size: .75rem; padding: 12px; }
.management-table td { padding: 14px 12px; border-bottom: 1px solid #e6dfee; overflow-wrap: anywhere; }
.management-table td strong, .management-table td small { display: block; }
.management-table td strong { color: #42236f; margin-bottom: 5px; }
.management-table td small { color: #685b70; line-height: 1.5; }
.management-status { display: inline-block; padding: 5px 9px; border-radius: 6px; background: #f5f1fb; font-size: .8rem; }
.management-pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.management-pagination p { flex: 1 1 170px; margin: 0; color: #685b70; font-size: .85rem; }
.management-pagination label { display: flex; align-items: center; gap: 8px; color: #685b70; font-size: .85rem; }
.management-pagination select { width: 75px; }
.management-detail-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.management-detail-header h3 { flex: 1 1 260px; margin: 0; color: #42236f; }
.management-company-detail dl, .management-person-dialog dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.management-company-detail dl > div, .management-person-dialog dl > div { min-width: 0; }
.management-company-detail dt, .management-person-dialog dt { color: #685b70; font-size: .8rem; margin-bottom: 6px; }
.management-company-detail dd, .management-person-dialog dd { margin: 0; overflow-wrap: anywhere; color: #42236f; font-weight: 600; }
.management-company-detail h4 { color: #42236f; margin: 25px 0 12px; }
.management-registration { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e6dfee; }
.management-registration summary { cursor: pointer; color: #42236f; font-weight: 700; padding: 12px 0; }
.management-registration > p { color: #685b70; font-size: .85rem; }
.management-registration small { color: #685b70; line-height: 1.5; font-weight: 400; }
.management-person-dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 24px; border: 1px solid #b8a5cd; border-radius: 18px; background: #fff; overflow: auto; scrollbar-width: thin; scrollbar-color: #b8a5cd #fff; }
.management-person-dialog::backdrop { background: rgb(30 17 46 / .55); }
.management-person-dialog > p { font-size: .85rem; color: #685b70; line-height: 1.5; }
.management-person-dialog h2 { color: #42236f; font-size: 1.4rem; }
.management-preview-switch a:focus-visible, .management-action:focus-visible, .management-directory-toolbar input:focus-visible,
.management-directory-toolbar select:focus-visible, .management-pagination select:focus-visible, .management-registration summary:focus-visible {
  outline: 3px solid #7255b7; outline-offset: 3px;
}
.admin-sidebar-navigation a[hidden],
.management-companies [hidden], .management-preview-switch[hidden], [data-management-phone-preview][hidden],
.admin-workspace-card[hidden], .management-registration[hidden] { display: none; }
body[data-management-mode] .admin-metric-grid, body[data-management-mode="company"] .admin-quick-actions { display: none; }
.management-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-console [data-management-panel][hidden], .management-workspace-grid[hidden] { display: none; }
.profile-page.is-admin-console .admin-sidebar-navigation a[hidden] { display: none; }
.management-mobile-home { display: none; }
.profile-page .admin-team-list { list-style: none; padding: 0; }
.admin-team-list .management-action { justify-self: start; }
.management-context-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 12px; }
.management-report-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.management-context-filters label { display: grid; gap: 7px; min-width: 0; color: #42236f; font-size: .85rem; font-weight: 700; }
.management-context-filters input, .management-context-filters select {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #b8a5cd;
  border-radius: 10px; background: #fff; color: #42236f; font: inherit;
}
.management-context-filters > p { grid-column: 1 / -1; margin: 0; }
.management-context-filters [hidden], [data-management-team-registration][hidden] { display: none; }
.management-context-filters :is(input, select):focus-visible { outline: 3px solid #7255b7; outline-offset: 2px; }
.profile-page .admin-insights-heading { display: block; }
.admin-console h1:focus, .admin-console h2:focus { outline: none; }
.management-learning-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
.management-learning-grid h2 { margin: 8px 0 14px; color: #2e2152; font-size: 1.5rem; }
.management-report-copy { color: #655a71; font-size: .85rem; line-height: 1.55; }
.management-report-base { color: #55446d; font-size: .8rem; font-weight: 600; line-height: 1.5; }
.management-certificate-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.management-certificate-totals dt { color: #655a71; font-size: .8rem; line-height: 1.5; }
.management-certificate-totals dd { margin: 8px 0 0; color: #42236f; font-size: 2rem; font-weight: 750; }
.management-game-ranking { list-style: none; padding: 0; margin: 0; }
.management-game-ranking li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid #e6dfee; padding: 13px 0; }
.management-game-ranking li > div:first-child { display: flex; gap: 12px; align-items: center; min-width: 0; }
.management-game-ranking strong { color: #42236f; font-size: .9rem; }
.management-ranking-place { flex: 0 0 24px; color: #7255b7; font-size: .75rem; font-weight: 750; }
.management-game-counts { display: grid; gap: 4px; text-align: right; color: #42236f; font-size: .8rem; }
.management-game-counts small { color: #655a71; font-size: .75rem; }
.management-demo-tools { border-top: 1px solid #e6dfee; padding: 14px 0 0; color: #655a71; font-size: .85rem; }
.management-demo-tools summary { cursor: pointer; min-height: 44px; align-content: center; }
.management-demo-tools summary:focus-visible { outline: 3px solid #7255b7; outline-offset: 2px; }
.management-demo-tools p { max-width: 600px; line-height: 1.5; }
.management-demo-tools a[hidden] { display: none; }
.admin-distribution-row > div strong small { display: block; margin: 5px 0; font-size: .75rem; color: #655a71; font-weight: 400; }
@media (max-width: 900px) {
  .management-learning-grid { grid-template-columns: minmax(0, 1fr); }
  .management-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-directory-toolbar, [data-management-companies], [data-management-people], #companyScopedTeams { scroll-margin-top: 126px; }
  .management-directory-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .management-directory-toolbar > label:first-child { grid-column: 1 / -1; }
  .profile-page.has-profile-session .profile-topbar { display: none; }
  .profile-page.has-profile-session .profile-sidebar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px; padding: 8px;
  }
  .profile-page.has-profile-session .profile-persona {
    grid-column: 2; grid-row: 1; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto;
    min-height: 44px; gap: 8px; padding: 0; border: 0; background: transparent; box-shadow: none;
  }
  .profile-page.has-profile-session .profile-persona-label,
  .profile-page.has-profile-session .profile-persona-email { display: none; }
  .profile-page.has-profile-session .profile-persona-avatar-wrap,
  .profile-page.has-profile-session .profile-avatar { width: 44px; height: 44px; }
  .profile-page.has-profile-session .profile-persona-avatar-wrap,
  .profile-page.has-profile-session .profile-persona-copy { grid-row: 1; }
  .profile-page.has-profile-session .profile-persona::after { display: none; }
  .profile-page.has-profile-session .profile-persona-copy strong { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-page.has-profile-session .profile-persona-avatar-wrap > span { display: none; }
  .profile-page.has-profile-session .profile-avatar-edit {
    inset: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
    background: transparent; box-shadow: none; font-size: 0;
  }
  .profile-page.has-profile-session .profile-avatar-edit::after {
    content: "✎"; position: absolute; right: -2px; bottom: -2px;
    display: grid; place-items: center; width: 16px; height: 16px;
    border: 1px solid #fff; border-radius: 5px; background: #c51c69; color: #fff; font-size: 11px;
  }
  .profile-page.has-profile-session .profile-avatar-edit:focus-visible { outline: 3px solid #f6d953; outline-offset: 2px; }
  .profile-page.has-profile-session .profile-persona .profile-persona-role {
    max-width: 100%; margin-top: 0; font-size: .65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .profile-page.has-profile-session .profile-mobile-menu-button { position: static; grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
  .profile-page.has-profile-session .management-mobile-home {
    grid-column: 1; grid-row: 1; width: 44px; height: 44px; display: flex; align-items: center;
    justify-content: center; padding: 0; border: 1px solid #c8b6dc;
    border-radius: 10px; background: rgb(255 255 255 / .08); color: #fff;
    text-decoration: none; font-size: .85rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
  }
  .profile-page.has-profile-session .management-mobile-home:hover { background: rgb(255 255 255 / .16); }
  .management-mobile-home:focus-visible { outline: 3px solid #f6d953; outline-offset: 2px; }
  .profile-page.is-admin-console .profile-sidebar.is-mobile-menu-open > .admin-sidebar-navigation:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-page.is-admin-console .admin-sidebar-navigation a {
    display: flex; min-height: 48px; padding: 8px; font-size: .85rem; line-height: 1.4; gap: 0;
  }
  .profile-page.has-profile-session .profile-sidebar.is-mobile-menu-open > .profile-sidebar-hall,
  .profile-page.has-profile-session .profile-sidebar.is-mobile-menu-open > .profile-sidebar-logout {
    grid-column: 1 / -1; min-height: 44px; padding: 10px 12px;
  }
  .profile-page.is-admin-console .admin-console-header { padding: 20px; gap: 16px; }
  .profile-page.is-admin-console .admin-console-header h1 { font-size: 1.6rem; line-height: 1.2; }
  .profile-page.is-admin-console .admin-console-header > div:first-child > p:last-child { font-size: .9rem; line-height: 1.5; }
  .profile-page.is-admin-console .admin-access-badge { display: none; }
  .profile-page.is-admin-console .admin-console-actions { width: auto; align-self: flex-start; }
  .profile-page.is-admin-console .admin-console-actions button { width: auto; min-height: 44px; }
  .profile-page.is-admin-console .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-page.is-admin-console .admin-metric-card { padding: 16px; }
  .profile-page.is-admin-console .admin-metric-card strong { font-size: 1.65rem; }
  .profile-page.is-admin-console .admin-feedback { margin: 0; padding: 10px 12px; font-size: .8rem; line-height: 1.45; }
}
@media (max-width: 600px) {
  .profile-page .admin-participation-table { overflow: visible; }
  .profile-page .admin-participation-table table { min-width: 0; }
  .profile-page .admin-participation-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
  }
  .profile-page .admin-participation-table tbody { display: grid; gap: 12px; }
  .profile-page .admin-participation-table tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px;
    border: 1px solid #e6dfee; border-radius: 12px; padding: 14px; background: #fff;
  }
  .profile-page .admin-participation-table td { min-width: 0; padding: 0; border: 0; font-size: .82rem; overflow-wrap: anywhere; }
  .profile-page .admin-participation-table td:first-child { grid-column: 1 / -1; }
  .profile-page .admin-participation-table td::before {
    content: attr(data-label); display: block; margin-bottom: 7px; color: #655a71; font-size: .72rem; font-weight: 600;
  }
  .profile-page .admin-participation-table td strong { font-size: .9rem; line-height: 1.4; }
  .profile-page .admin-participation-table td > span:not(.admin-profile-pill) { font-size: .78rem; line-height: 1.5; color: #655a71; }
  .profile-page .admin-participation-table .admin-profile-pill { max-width: 100%; white-space: normal; line-height: 1.4; }
  .management-context-filters, .management-report-filters { grid-template-columns: minmax(0, 1fr); }
  .management-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .management-summary .admin-metric-card small { display: none; }
  .profile-page.is-admin-console .admin-quick-actions a { min-height: 48px; padding: 12px 16px; }
  .profile-page.is-admin-console .admin-quick-actions a span { display: none; }
  .management-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .management-table tbody, .management-table tr, .management-table td { display: block; }
  .management-table tr { margin: 0 0 12px; border: 1px solid #e6dfee; border-radius: 12px; padding: 8px; }
  .management-table td { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; border: 0; padding: 10px 6px; }
  .management-table td::before { content: attr(data-label); font-weight: 600; font-size: .75rem; color: #685b70; }
  .management-preview-switch a { flex: 1 1 140px; }
  .management-company-detail dl, .management-person-dialog dl { grid-template-columns: minmax(0, 1fr); }
}
